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
Seems ok,but how if I used standard file instead creating 3 new files? I mean, editing amavisd.conf.in directly, is this OK? (Under tag '# a hash....' etc)
ReplyDeleteYes you can do as you are looking for with URL.
ReplyDeletehttp://shahzadlinux.blogspot.in/2016/03/how-to-whitelist-and-blacklist-email.html