The smile and wave tactic doesn't work. Some motorists think you are mocking them, and may themselves become enraged.
The best solution is to do nothing. No hand gestures, waving included. Do nothing. Do not even make eye contact. Just keep pedaling and ignore them.