Domain level of blocking users Zimbra 8.0.5

This is very useful example howto reject an external email address from sending mail to our users.

su – zimbra

[zimbra@mail ~]$ vim /opt/zimbra/conf/zmconfigd/smtpd_sender_restrictions.cf

add on the first line

hash:/opt/zimbra/postfix/conf/reject

create the reject file

[zimbra@mail ~]$ vim /opt/zimbra/postfix/conf/reject
user_to_block@spamdomain.com REJECT
spamdomain.com REJECT

[zimbra@mail ~]$ postmap /opt/zimbra/postfix/conf/reject

[zimbra@mail ~]$ zmmtactl stop && zmmtactl start
/postfix-script: stopping the Postfix mail system
Stopping saslauthd...done.
Rewriting configuration files...done.
Starting saslauthd...done.
/postfix-script: starting the Postfix mail system

Original source: link

Leave a Reply

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