Zimbra 8.6 restrict to user sending mail to certain domain
Introduction
Controlling email flow within an organization is crucial for maintaining security and compliance. ZimbraZimbra 8.6 offers robust features that allow administrators to restrict users from sending emails to specific domains or addresses.
This article will provide a step-by-step guide on how to implement these restrictions effectively, ensuring that your email system remains secure and well-regulated.
How to restrict to user sending mail to certain domain.
To configure on zimbra mta.
Step 1: To add lines in file /opt/zimbra/conf/zmconfigd/smtpd_sender_restrictions.cf as bellow:
#vi /opt/zimbra/conf/zmconfigd/smtpd_sender_restrictions.cfAdding lines the top as following:
check_sender_access lmdb:/opt/zimbra/postfix/conf/restricted_sendersStep 2: To add lines in file /opt/zimbra/conf/zmconfigd.cf
vim /opt/zimbra/conf/zmconfigd.cfAdding the lines following before RESTART mta.
POSTCONF smtpd_restriction_classes local_only
POSTCONF local_only FILE postfix_check_recipient_access.cf
RESTART mta
Step 3: To create file "/opt/zimbra/conf/postfix_check_recipient_access.cf"
vi /opt/zimbra/conf/postfix_check_recipient_access.cfAdding the lines following:
check_recipient_access lmdb:/opt/zimbra/postfix/conf/local_domains, rejectStep 4: To create file "/opt/zimbra/postfix/conf/restricted_senders" and list all user whom you restrict.
vi /opt/zimbra/postfix/conf/restricted_sendersAdding the lines following:
user@yourdomain.com local_onlyIf you restricting all users in domain.
yourdomain.com local_onlyStep 5: To create file “/opt/zimbra/postfix/conf/local_domains” to list all domain where restrict to user sending mail.
vi /opt/zimbra/postfix/conf/local_domainsAdding the lines following:
yourdomain.com OKStep 6: Run command the below to apply.
otheralloweddomain.com OK
postmap /opt/zimbra/postfix/conf/restricted_senders*Note: I’m not survive when you upgrade system. Before upgrade you backup the configrue
postmap /opt/zimbra/postfix/conf/local_domains
zmmtactl stop
zmmtactl start
If you undo this configure.
#postconf -e smtpd_restriction_classes=' '
#zmmtactl reload
Conclusion
Implementing user-specific email restrictions in Zimbra 8.6 is an essential step towards enhancing your organization's email security and compliance. By following this guide, you can ensure that your email system operates within defined parameters, preventing unauthorized communications. Stay updated with our future articles for more valuable insights and practical tips on managing your email infrastructure. Thank you for reading the huuphan.com page!Source: https://wiki.zimbra.com/wiki/Restrict_users_to_certain_domain
is it possible to have multiple rules for the blokcing? example: 1st config has useer1 & user2 and can only send to gmail.com; 2nd config has user3 & useer4 and can only send to yahoo.com
ReplyDelete