I recently read the riot act to a big rig driver who didn't give me enough room when passing (he nearly ran me off the road). I caught up to him at a stop sign and by the end of our conversation, he was apologizing profusely. So, it can work with truckers, too. I also felt better, like he would be more careful passing other bikes from now on, if for no other reason than to avoid the likes of me. 
If you need to do this, use appropriate language (no name calling), and don't lose your cool. Like Indy did, keep it civilized. If you're isolated, if the person looks sketchy, let it go. Although I was really angry, I was able to stay reasonable and explain why his passing was dangerous and illegal, and the best option when passing a bike is to wait until it is safe.
It must have looked really funny to anyone watching, to see this little squirt on a bike stop a Mack truck, then hear him yelling "I'm really sorry" out the window.
'02 Eddy Merckx Fuga, Selle An Atomica
'85 Eddy Merckx Professional, Selle An Atomica
'10 Soma Double Cross DC, Selle An Atomica
Slacker on wheels.