Sender Restriction on Zimbra

 


Sometimes we mail server administrators are facing spamming problem from our mail server. To make more secure your mail server it will be very helpful if you restrict your sender local only.  So that only authenticated user can be able to send mail.

To increase the Security, configure the below as user of Zimbra:

 

Step:1

Vim /opt/zimbra/conf/zmconfigd/smtpd_sender_restrictions.cf

add this line at the top

check_sender_access lmdb:/opt/zimbra/postfix/conf/restricted_senders


Step:2

vim /opt/zimbra/conf/zmconfigd.cf

 

add those lines

POSTCONF    smtpd_restriction_classes  local_only
POSTCONF    local_only  FILE  postfix_check_recipient_access.cf


restart
postfix (MTA)


Step:3

Create a file “/opt/zimbra/conf/postfix_check_recipient_access.cf

 

add the following line

check_recipient_access lmdb:/opt/zimbra/postfix/conf/local_domains, reject


Step:4

Create a file “/opt/zimbra/postfix/conf/restricted_senders”

 

list all the users, whom you want to restrict according to the following syntax:

user@yourdomain.com            local_only


Step: 5

Create a file “/opt/zimbra/postfix/conf/local_domains”

list all the domains where “restricted users” allowed to sent emails according to the following syntax:

yourdomain.com              OK
otheralloweddomain.com      OK


Step:6

Run following commands

postmap /opt/zimbra/postfix/conf/restricted_senders
postmap /opt/zimbra/postfix/conf/local_domains


zmmtactl stop
zmmtactl start


Post a Comment

0 Comments