How to Whitelist and blacklist email in zimbra
Create Blacklist and whitelist file
#su - zimbra
$vim /opt/zimbra/conf/amavisd.conf.in (Make entry in below)
read_hash(\%whitelist_sender, '/opt/zimbra/whitelist');
read_hash(\%blacklist_sender, '/opt/zimbra/blacklist');
read_hash(\%spam_lovers, '/opt/zimbra/spamlovers');
From root
#touch /opt/zimbra/{whitelist,blacklist,spamlovers}
#chown zimbra:zimbra /opt/zimbra/{whitelist,blacklist,spamlovers}
#su - zimbra
$zmamavisdctl restart
$zmmtactl restart
Now Whitelist email
$vim /opt/zimbra/whitelist
accountname@domainname
domain_name
$zmmtactl restart
Now Blacklist email
$vim /opt/zimbra/blacklist
accountname@domainname
domain_name
$zmmtactl restart
#su - zimbra
$vim /opt/zimbra/conf/amavisd.conf.in (Make entry in below)
read_hash(\%whitelist_sender, '/opt/zimbra/whitelist');
read_hash(\%blacklist_sender, '/opt/zimbra/blacklist');
read_hash(\%spam_lovers, '/opt/zimbra/spamlovers');
From root
#touch /opt/zimbra/{whitelist,blacklist,spamlovers}
#chown zimbra:zimbra /opt/zimbra/{whitelist,blacklist,spamlovers}
#su - zimbra
$zmamavisdctl restart
$zmmtactl restart
Now Whitelist email
$vim /opt/zimbra/whitelist
accountname@domainname
domain_name
$zmmtactl restart
Now Blacklist email
$vim /opt/zimbra/blacklist
accountname@domainname
domain_name
$zmmtactl restart