I have configured a qmail server, and modified my /etc/tcp.smtp file to look as follows:
127.:allow,RELAYCLIENT=""
10.9.3.:allow,RELAYCLIENT=""
This should only allow local relaying, as well...
http://www.experts-exchange.com/Software/Server_Software/Email_Servers/Qmail/Q_22985541.ht...