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/ and add below line after permit_sasl_authneticated

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

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

POSTCONF    smtpd_restriction_classes  local_only
POSTCONF    local_only  FILE

Create new file  /opt/zimbra/conf/  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;         OK       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.