How to add whitelist and blacklist users or domains on zimbra, this trick has been tested on my server add very simple to improving into your server. How to add whitelist and blacklist users account or domains on zimbra mail server? Read the following step....
Why need whitelist, blacklist, spamlist and implroving spam filtering? I had configure zimbra mail server with strict security, so sometimes, i found some email send into spam folder while email is not spam, and i need to blocked some email for policy issue.
You are need to add some rules to amavis.conf*, before change it, may you need change file permission on this file and change to 711, how do it? Like this:
[cumibuntung@mx1-prm ~]$ sudo /bin/chmod 711 /opt/zimbra/conf/amavisd.conf*
After that, You will be able to modify amavisd.conf* files. What should to do?
To adding whitelist and blacklist, you need to put whitelist and/or blacklist users or domoain into files. list. Im using vi editor for make whitelist and blacklist files, like this:
[cumibuntung@mx1-prm ~]$ sudo vi/etc/zimbra/whitelist <----listing of whitelist account
This e-mail address is being protected from spam bots, you need JavaScript enabled to view it
mydomain.org
mycompany.com
#end.
Example for blacklist accounts or domain
[cumibuntung@mx1-prm ~]$ sudo vi/etc/zimbra/blacklist <----listing of whitelist account
This e-mail address is being protected from spam bots, you need JavaScript enabled to view it
sex.org
sexi.net
denied.com
#end.
Example for spammers list
[cumibuntung@mx1-prm ~]$ sudo vi/etc/zimbra/spamlovers <----listing of whitelist account
This e-mail address is being protected from spam bots, you need JavaScript enabled to view it
spammers.org
#end.
And now you can modify amavis.conf, please put in /opt/zimbra/conf/amavis.conf*
read_hash(\%whitelist_sender, '/etc/zimbra/whitelist');
read_hash(\%blacklist_sender, '/etc/zimbra/blacklist');
read_hash(\%spam_lovers, '/etc/zimbra/spamlovers');
A spamlovers list is for that accounts that always need to receive all messages, even if spam. According to rfc 2822 postmaster, abuse and other account of this kind should be spam lovers.
Reference: