Thanks Zsolt.
No idea how to do this beyond what I read as I have no use for this myself. I have enough to deal without multiple bounces from spam addresses, outgoing only mail addresses, mailing lists etc.
You can see $mailprog defined in the vacation script.