Prevent send SPAM emails from self domain to self domain:
Modify file /opt/zimbra/conf/zmconfigd/smtpd_sender_restrictions.cf
:
Add string: %%contains VAR:zimbraMtaSmtpdSenderRestrictions check_sender_access lmdb:/opt/zimbra/conf/postfix_sender_access%%
Result full content file:
%%exact VAR:zimbraMtaSmtpdSenderRestrictions reject_authenticated_sender_login_mismatch%%
%%contains VAR:zimbraMtaSmtpdSenderRestrictions check_sender_access lmdb:/opt/zimbra/conf/postfix_reject_sender%%
%%contains VAR:zimbraServiceEnabled cbpolicyd^ check_policy_service inet:localhost:%%zimbraCBPolicydBindPort%%%%
%%contains VAR:zimbraServiceEnabled amavis^ check_sender_access regexp:/opt/zimbra/common/conf/tag_as_originating.re%%
permit_mynetworks
permit_sasl_authenticated
permit_tls_clientcerts
%%contains VAR:zimbraMtaSmtpdSenderRestrictions check_sender_access lmdb:/opt/zimbra/conf/postfix_sender_access%%
%%contains VAR:zimbraServiceEnabled amavis^ check_sender_access regexp:/opt/zimbra/common/conf/tag_as_foreign.re%%
Create file /opt/zimbra/conf/postfix_sender_access
with content:
domain1.ltd REJECT Not authorized
domain2.ltd REJECT Not authorized
Enable modifications:
su - zimbra
zmprov mcf zimbraMtaSmtpdSenderRestrictions 'check_sender_access lmdb:/opt/zimbra/conf/postfix_sender_access'
postmap /opt/zimbra/conf/postfix_sender_access
zmmtactl reload
LINKS
- http://ossportal.org/forum/zimbra/1114
Comments
comments powered by Disqus