Restricting Users to Send mails to Certain Domains on Zimbra 8.5 and above
Please make sure to make all this changes you are using the zimbra user no root user because when you create the databases with root user doesn't work it's not creating the databases required as lmdb root create the databases with postmap as hash be aware of this. 1. Open file /opt/zimbra/conf/zmconfigd/smtpd_sender_restrictions.cf and add this line at the top check_sender_access lmdb:/opt/zimbra/postfix/conf/restricted_senders 2. Open file /opt/zimbra/conf/zmconfigd.cf and add those lines before RESTART mta. make a search for RESTART mta and add the lines before of the RESTART POSTCONF smtpd_restriction_classes local_only POSTCONF local_only FILE postfix_check_recipient_access.cf RESTART mta 3. Create a file /opt/zimbra/conf/postfix_check_recipient_access.cf and add the following line check_recipient_access lmdb:/opt/zimbra/postfix/conf/local_domains, reject 4. Create a file “/opt/zimbra/postfix/conf/restricted_senders” and list all the users, whom