Huu Phan | Blog Linux operating system | Linux operating system -Blog Huu Phan | www.huuphan.com
huuphan.com. Powered by Blogger.

Follow by Email

Whitelist and Blacklist domain in zimbra 8.6


In my tutorial, How to configure whitelist and blacklist domain in zimbra. To using file amavisd.conf.in
Before to configure, To backup file /opt/zimbra/conf/amavisd.conf.in we need to score Positive is Blacklist and Negative score is whitelist. I'm running the commands with account zimbra ( su - zimbra)


Links to below you maybe likes:
zimbra custom spamassassin rules
How to create auto Bcc for Recipient mails for Zimbra 8.6
How to add spam filters on zimbra 8.6
How to create auto Bcc for sender mails for Zimbra 8.6
list accounts that has not logged in for the last x days in zimbra


Whitelist and Blacklist domain in zimbra 8.6

To backup file amavisd.conf.in
su - zimbra
cp /opt/zimbra/conf/amavisd.conf.in /opt/zimbra/conf/amavisd.conf.in.bak

Whitelist domain in zimbra

To add whitelist domain or emailID  in file amavisd.conf.in
vim /opt/zimbra/conf/amavisd.conf.in

The content as below:
{ # a hash-type lookup table (associative array)
'example.com' => -10.0,
'[email protected]' => -3.0,
'huuphan.com' => -20.0,
'devopsskills.info' => -20.0,

To restart amavisd service
zmamavisdctl restart

Blacklist domain in zimbra

To add blacklist domain  or emailID in file amavisd.conf.in
vim /opt/zimbra/conf/amavisd.conf.in

The content as below:
{ # a hash-type lookup table (associative array)
'[email protected]' => 10.0,
'@mail.example.com' => 10.0,

To restart amavisd service
zmamavisdctl restart

To check log file
tailf /var/log/zimbra.log

post new :

Huu Phan | Blog Linux operating system | Huu Phan ~ Zimbra Mail Server,linux,bash script,centos,linux command | www.huuphan.com