分类:
2009-06-25 16:07:34
Whitelist setup in the mail system of Postfix + amavisd-new + spamassassin
1. Setup amavisd-new
a. Open /etc/amavisd.conf
b. Add the following line into the amavisd.conf file
read_hash(\%whitelist_sender, "/var/amavis/whitelist"),
c. Create a new file which contains the following:
'*@examplesa.com.cn' => -100,
'*@examplesb.com' => -100,
2. That’s all we should do about amavisd.conf, now let’s do with the configuration file of the spamassassin
a. Open the file of /etc/mail/spamassassin/local.cf
b. Add a line similar to the following into local.cf
whitelist_from *@ examplesA.com.cn *@ examplesB.com
That’s all, good luck to you