King0770-Notes-Rejecting-Nested-From-Addresses

Revision as of 01:10, 28 November 2018 by King0770 (talk | contribs)
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

This is a how-to reject nested from addresses.

Example

From:<rick@zimbra.comjohn@zimbra.com>

OR

From:<"rick@zimbra.com john"@zimbra.com>"

From:"<"rick@zimbra.com.johm"@zimbra.com>"

Add the following to the bottom of the /opt/zimbra/conf/zmconfigd/smtpd_sender_restrictions.cf file

check_sender_access pcre:/opt/zimbra/conf/sender_pcre

Next, create the /opt/zimbra/conf/sender_pcre file with the following.

/@.*@/       reject

Restart MTA

zmmtactl restart

Check it.

postconf | grep ^smtpd_sender_restrictions

You should see something similar to to this...

smtpd_sender_restrictions = reject_authenticated_sender_login_mismatch, check_sender_access regexp:/opt/zimbra/common/conf/tag_as_originating.re, permit_mynetworks, permit_sasl_authenticated, permit_tls_clientcerts, check_sender_access regexp:/opt/zimbra/common/conf/tag_as_foreign.re, check_sender_access pcre:/opt/zimbra/conf/sender_pcre
Jump to: navigation, search