This time, it’s about limiting email certain user on Zimbra to only send email to local domain on certain domain.

Edit /opt/zimbra/conf/zmconfigd/smtpd_recipient_restrictions.cf and add below line after permit_sasl_authneticated

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

Edit  /opt/zimbra/conf/zmconfigd.cf file and add line below at postfix groups before “RESTART mta” line.

POSTCONF    smtpd_restriction_classes  local_only
POSTCONF    local_only  FILE  postfix_check_recipient_access.cf

Create new file  /opt/zimbra/conf/postfix_check_recipient_access.cf  with below lines.

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

Now, create the files /opt/zimbra/postfix/conf/restricted_senders and list the restricted user on the file. Example;

[email protected]            local_only

Create /opt/zimbra/postfix/conf/local_domains. This will be the list where the restricted sender above. Example;

asrarbuakheir.com         OK 
bolehkesinijuga.com       OK

Now, update the all lmdb files above and restart zimbra mta

postmap /opt/zimbra/postfix/conf/restricted_senders
postmap /opt/zimbra/postfix/conf/local_domains 
zmmtactl stop 
zmmtactl start

Previous ArticleNext Article

Leave a Reply

Your email address will not be published. Required fields are marked *