Well, sendmail is designed for this sort of thing. There is undoubtedly a trivial one-liner for the config file to make this happen for you.

The trick is understanding the config file.. smile