Restrict postfix recipient in zimbra
This will show how you can modify postfix to restrict who can send to certain address in your domain such as distribution like firstname.lastname@example.org.
These change will most likely not persist between upgrades!!!
zimbra/conf/postfix_recipient_restrictions.cf. Also permissions on files created in /opt/zimbra/postfix/conf/ will be changed.
- Create permitted sender list as zimbra user under /opt/zimbra/postfix/conf/
permitted_sender List :- This file contains domains list OR User mail list, Only protected senders can send mail to this domains OR users.
# vim /opt/zimbra/postfix/conf/permitted_senders
- Create protected recipient file as zimbra user under /opt/zimbra/postfix/conf/
protected_recipients :- This file contains email address that can only receive from permitted senders
# vim /opt/zimbra/postfix/conf/protected_senders
- Include the important setting to /opt/zimbra/postfix/conf/main.cf
smtpd_restriction_classes = permitted_senders_list,local_only
FYI :- The changes in main.cf will not survive after the upgrade of zimbra.
- Now add the this restriction on the top of all line.
# vim /opt/zimbra/conf/postfix_recipient_restrictions.cf
- Reload the settings
FYI :- This configuration can also used in normal postfix..