How to blacklist domain in zimbra mail server

zimbra

In this tutorial we will show you how to blacklist domain in zimbra mail server. Using blacklist method you can block spam mail and sent to junk folder. We can blacklist by domain or by single email address.

Prerequisites
This article assumes you have at least basic knowledge of linux and zimbra mail service, know how to use the shell, root user or non-root user account with sudo privileges set up on your server.

Configuration

For example we will blacklist domain advertising.com

PS : some zimbra version we must edit file using root account

Login to your server as root and change to zimbra user

Edit this file /opt/zimbra/conf/amavisd.conf.in

Find soft-blacklisting and add the blacklist domain like below (usually in line 272)

you need to set the number to 10.0 for blacklist

Restart Amavis Service

we need to restart amavis service to apply the change, still using zimbra account

Congratulations, you have successfully adding blacklist in your zimbra mail server. Thanks for using this tutorial to blacklist domain in zimbra mail server.

 

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *