To whitelist a host on a qmail install (qmailrocks in this case) do the following:
Edit /etc/tcp.smtp and add this line:
1 |
XXX.XXX.XXX.:allow,RBLSMTPD="" |
Replacing XXX.XXX.XXX. with the ip of the host to be whitelisted.
Next rebuild the cdb file with:
1 |
qmailctl cdb |
This first procedure prevents RBL checks on the host.
To whitelist a host or domain in spam assassin, edit vi /etc/mail/spamassassin/local.cf and add a line like this:
1 |
whitelist_from *@friendlydomain.net |