Chris Johnson wrote something called "The qmail newbie's guide to relaying", which is supposed to answer most of the relaying questions that come across the qmail list. http://www.palomine.net/qmail/relaying.html and http://www.palomine.net/qmail/relaymailfrom.html