Difference between revisions of "King0770-Notes-Rejecting-Nested-From-Addresses"

(Created page with "This is a how-to reject nested from addresses.<br> Example<br> <code><pre> From:<rick@zimbra.comjohn@zimbra.com> OR From:<"rick@zimbra.com john"@zimbra.com>" From:"<"rick@...")
 
 
(5 intermediate revisions by the same user not shown)
Line 7: Line 7:
 
OR
 
OR
  
From:<"rick@zimbra.com john"@zimbra.com>"
+
From:<"rick@zimbra.comjohn"@zimbra.com>"
  
 
From:"<"rick@zimbra.com.johm"@zimbra.com>"
 
From:"<"rick@zimbra.com.johm"@zimbra.com>"
 
</pre></code>
 
</pre></code>
  
Add the following to the bottom of the /opt/zimbra/conf/zmconfigd/smtpd_sender_restrictions.cf file<br>
+
Add the following to the top of the /opt/zimbra/conf/zmconfigd/smtpd_sender_restrictions.cf file<br>
 
<code><pre>
 
<code><pre>
 
check_sender_access pcre:/opt/zimbra/conf/sender_pcre
 
check_sender_access pcre:/opt/zimbra/conf/sender_pcre
Line 26: Line 26:
 
zmmtactl restart
 
zmmtactl restart
 
</pre></code>
 
</pre></code>
 +
 +
Check it.
 +
<code><pre>
 +
postconf | grep ^smtpd_sender_restrictions
 +
 +
You should see something similar to to this...
 +
 +
smtpd_sender_restrictions = check_sender_access pcre:/opt/zimbra/conf/sender_pcre, 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
 +
</pre></code>
 +
 +
More articles written by me, https://wiki.zimbra.com/wiki/King0770-Notes
 +
 +
[[Category:Community Sandbox]]
 +
[[Category:Command Line Interface]]
 +
[[Category:MTA]]
 +
[[Category:King0770-Notes]]

Latest revision as of 22:26, 5 December 2018

This is a how-to reject nested from addresses.

Example

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

OR

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

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

Add the following to the top 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 = check_sender_access pcre:/opt/zimbra/conf/sender_pcre, 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

More articles written by me, https://wiki.zimbra.com/wiki/King0770-Notes

Jump to: navigation, search