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

Share on Google Plus

About Penguin Technology

I am a passionate cloud and DevOps professional specializing in Linux and open-source solutions. Through this blog, I share my knowledge and experience with the community, offering tips and insights on cloud technologies and DevOps practices.
    Blogger Comment

2 comments:

  1. 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)

    ReplyDelete
  2. Yes you can do as you are looking for with URL.
    http://shahzadlinux.blogspot.in/2016/03/how-to-whitelist-and-blacklist-email.html

    ReplyDelete