Difference between revisions of "Domain level blocking of users"

(Domain blocking of users)
 
(Domain blocking of users)
Line 1: Line 1:
A method to restrict specific emails from sending mails to the domain exist via blacklist :http://wiki.zimbra.com/index.php?title=Improving_Anti-spam_system#Implementing_Whitelist.2FBlacklist
+
Below mentioned are the steps to "REJECT" an external email address from sending mail to the users of the Zimbra Domain.  
  
Follow the below method if you wish to achieve the same via postfix.
+
The same results can also be achieved via [http://wiki.zimbra.com/index.php?title=Improving_Anti-spam_system#Implementing_Whitelist.2FBlacklist link blacklisting].
  
 
1. Edit /opt/zimbra/conf/zmmta.cf
 
1. Edit /opt/zimbra/conf/zmmta.cf
 
   Add this line below (smtpd_recipient_restrictions)
 
   Add this line below (smtpd_recipient_restrictions)
 
 
         POSTCONF smtpd_sender_restrictions FILE postfix_sender_restrictions
 
         POSTCONF smtpd_sender_restrictions FILE postfix_sender_restrictions
  
Line 17: Line 16:
  
 
5. zmmtactl stop ; zmmtactl start
 
5. zmmtactl stop ; zmmtactl start
 +
 +
Please note that this change will not survive an upgrade and you will have to redo these after the upgrade.

Revision as of 14:01, 29 October 2008

Below mentioned are the steps to "REJECT" an external email address from sending mail to the users of the Zimbra Domain.

The same results can also be achieved via link blacklisting.

1. Edit /opt/zimbra/conf/zmmta.cf

  Add this line below (smtpd_recipient_restrictions)
       POSTCONF smtpd_sender_restrictions FILE postfix_sender_restrictions

2. vi /opt/zimbra/conf/postfix_sender_restrictions

  hash:/opt/zimbra/postfix/conf/reject

3. Create file /opt/zimbra/postfix/conf/reject with the list of email address to be rejected in the below format:

  user@domain.com     REJECT

4. postmap /opt/zimbra/postfix/conf/reject

5. zmmtactl stop ; zmmtactl start

Please note that this change will not survive an upgrade and you will have to redo these after the upgrade.

Jump to: navigation, search