look at http://www.lifewithqmail.org
You need to add 'aaa.bbb.ccc.ddd:allow,RELAYCLIENT=""' in your /etc/tcp.smtp (the tcprules files) and recreate the tcp.smtp.cdb file.
LWQ explains it well.