<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.tetrain.com/index.php?action=history&amp;feed=atom&amp;title=Rejecting_false_%22mail_from%22_addresses</id>
	<title>Rejecting false &quot;mail from&quot; addresses - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.tetrain.com/index.php?action=history&amp;feed=atom&amp;title=Rejecting_false_%22mail_from%22_addresses"/>
	<link rel="alternate" type="text/html" href="https://wiki.tetrain.com/index.php?title=Rejecting_false_%22mail_from%22_addresses&amp;action=history"/>
	<updated>2026-07-25T07:38:11Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.9</generator>
	<entry>
		<id>https://wiki.tetrain.com/index.php?title=Rejecting_false_%22mail_from%22_addresses&amp;diff=2355&amp;oldid=prev</id>
		<title>Prashantkumar: Editing Rejecting false &quot;mail from&quot; addresses</title>
		<link rel="alternate" type="text/html" href="https://wiki.tetrain.com/index.php?title=Rejecting_false_%22mail_from%22_addresses&amp;diff=2355&amp;oldid=prev"/>
		<updated>2017-02-10T10:11:17Z</updated>

		<summary type="html">&lt;p&gt;Editing Rejecting false &amp;quot;mail from&amp;quot; addresses&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;     Rejecting false &amp;quot;mail from&amp;quot; addresses&lt;br /&gt;
1.-Zimbra Collaboration 8.5 and above &lt;br /&gt;
Please use the next commands to increase the security and reject the logins for users that doesn&amp;#039;t exist in the LDAP: &lt;br /&gt;
     zmprov mcf zimbraMtaSmtpdRejectUnlistedRecipient yes &lt;br /&gt;
     zmprov mcf zimbraMtaSmtpdRejectUnlistedSender yes &lt;br /&gt;
     zmmtactl restart &lt;br /&gt;
     zmconfigdctl restart &lt;br /&gt;
&lt;br /&gt;
2.- For Zimbra Collaboration 8.0.x and previous &lt;br /&gt;
       Open the file /opt/zimbra/conf/zmconfigd/smtpd_sender_restrictions.cf and add this line into the middle of the file, prior to the tag_as_foreign.re lines: Add this: &lt;br /&gt;
       check_sender_access hash:/opt/zimbra/conf/domainrestrict &lt;br /&gt;
&lt;br /&gt;
It should look like this.. &lt;br /&gt;
check_sender_access hash:/opt/zimbra/conf/domainrestrict &lt;br /&gt;
%%contains VAR:zimbraServiceEnabled antivirus^ check_sender_access regexp:/opt/zimbra/postfix/conf/tag_as_foreign.re%% &lt;br /&gt;
&lt;br /&gt;
3. Zimbra Collaboration 7.x &lt;br /&gt;
You should follow the next steps: &lt;br /&gt;
      su - zimbra &lt;br /&gt;
      zmlocalconfig -e postfix_smtpd_sender_restrictions=&amp;quot;reject_unknown_sender_domain, permit_mynetworks, permit_sasl_authenticated, check_sender_access hash:/opt/zimbra/conf/domainrestrict, permit&amp;quot; &lt;br /&gt;
&lt;br /&gt;
4.-Remaining steps are same for ZCS 8.0.x and previous versions &lt;br /&gt;
 i.-Create the file &amp;quot;/opt/zimbra/conf/domainrestrict&amp;quot; and add your domain(s) to it. &lt;br /&gt;
       &lt;br /&gt;
localdomain.com   REJECT &lt;br /&gt;
       anotherlocaldomain.com   REJECT &lt;br /&gt;
ii.- Create the hash database of &amp;quot;/opt/zimbra/conf/domainrestrict&amp;quot;. Run as &amp;#039;zimbra&amp;#039; user. &lt;br /&gt;
         postmap  /opt/zimbra/conf/domainrestrict &lt;br /&gt;
iii.- Restart zmmtactl. &lt;br /&gt;
        zmmtactl stop &lt;br /&gt;
        zmmtactl start &lt;br /&gt;
&lt;br /&gt;
5.- Testing &lt;br /&gt;
&lt;br /&gt;
 i.- Make following connection from a non-local host which is not part of mynetworks. &lt;br /&gt;
        telnet ZCS_server_address 25 &lt;br /&gt;
         mail from: user@localdomain.com &lt;br /&gt;
         rcpt to: user2@localdomain.com &lt;br /&gt;
&lt;br /&gt;
ii.- You should get following error at the rcpt command if you used the Zimbra Collaboration 8.6 steps: &lt;br /&gt;
          550 5.1.0 &amp;lt;hi@example.com&amp;gt;: Sender address rejected: example.com &lt;br /&gt;
iii.- You should get following error at the rcpt command &lt;br /&gt;
           554 5.7.1 &amp;lt;user@localdomain.com&amp;gt;: Sender address rejected: You&amp;#039;re not me!&lt;/div&gt;</summary>
		<author><name>Prashantkumar</name></author>
	</entry>
</feed>