<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="fr">
	<id>https://wikiold.home.tartarefr.eu/index.php?action=history&amp;feed=atom&amp;title=MTA%2FZimbra%2FzimbraMtaMyNetworks</id>
	<title>MTA/Zimbra/zimbraMtaMyNetworks - Historique des versions</title>
	<link rel="self" type="application/atom+xml" href="https://wikiold.home.tartarefr.eu/index.php?action=history&amp;feed=atom&amp;title=MTA%2FZimbra%2FzimbraMtaMyNetworks"/>
	<link rel="alternate" type="text/html" href="https://wikiold.home.tartarefr.eu/index.php?title=MTA/Zimbra/zimbraMtaMyNetworks&amp;action=history"/>
	<updated>2026-07-07T03:01:26Z</updated>
	<subtitle>Historique des versions pour cette page sur le wiki</subtitle>
	<generator>MediaWiki 1.43.8</generator>
	<entry>
		<id>https://wikiold.home.tartarefr.eu/index.php?title=MTA/Zimbra/zimbraMtaMyNetworks&amp;diff=716&amp;oldid=prev</id>
		<title>Didier : Page créée avec « = Enabling Mail Submission/Relaying from Remote Networks =  ==What is the problem== The default postfix configuration allows relaying only for the local network [[#Making_sur... »</title>
		<link rel="alternate" type="text/html" href="https://wikiold.home.tartarefr.eu/index.php?title=MTA/Zimbra/zimbraMtaMyNetworks&amp;diff=716&amp;oldid=prev"/>
		<updated>2012-09-07T12:37:48Z</updated>

		<summary type="html">&lt;p&gt;Page créée avec « = Enabling Mail Submission/Relaying from Remote Networks =  ==What is the problem== The default postfix configuration allows relaying only for the local network [[#Making_sur... »&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Nouvelle page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;= Enabling Mail Submission/Relaying from Remote Networks =&lt;br /&gt;
&lt;br /&gt;
==What is the problem==&lt;br /&gt;
The default postfix configuration allows relaying only for the local network [[#Making_sure_the_LAN_interface_of_the_zimbra_server_itself_is_allowed|(1)]], but you can configure postfix to allow relaying unconditionally for arbitrary hosts or networks.&lt;br /&gt;
&lt;br /&gt;
==When you want to do this==&lt;br /&gt;
*You would like to allow machines that are not on the local network to send mail through the zimbra server&lt;br /&gt;
*You are observing &amp;quot;Relay Access Denied&amp;quot; errors in the MTA log (/var/log/zimbra.log) for hosts or subnets that you trust for relaying.&lt;br /&gt;
*You are observing &amp;quot;Relay Access Denied&amp;quot; errors in the MTA log (/var/log/zimbra.log) for the zimbra server itself.&lt;br /&gt;
&lt;br /&gt;
==Checking the current configuration==&lt;br /&gt;
&amp;#039;&amp;#039;Note: For the examples here, we will assume the hostname of the zimbra server is &amp;quot;zimbra.example.com&amp;quot; with an IP address of 10.10.130.10.&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
Get the current value from postconf:&lt;br /&gt;
&lt;br /&gt;
 # su - zimbra&lt;br /&gt;
 $ postconf mynetworks&lt;br /&gt;
 mynetworks = 127.0.0.0/8 10.10.130.0/23 &lt;br /&gt;
&lt;br /&gt;
This shows that postfix will relay for all machines with 10.10.130.x and 10.10.131.x IP addresses.&lt;br /&gt;
&lt;br /&gt;
Check next whether this is set in the server configuration in the zimbra ldap:&lt;br /&gt;
 zmprov getServer zimbra.example.com | grep zimbraMtaMyNetworks&lt;br /&gt;
&lt;br /&gt;
Up until at least ZCS 4.5.5, this is unset by default; in a future release, this will probably be set. If set, this value will propagate to postconf&amp;#039;s mynetworks when the MTA is restarted.&lt;br /&gt;
&lt;br /&gt;
==Examples==&lt;br /&gt;
&amp;#039;&amp;#039;Note: For the examples here, we will assume the hostname of the zimbra server is &amp;quot;zimbra.example.com&amp;quot; with an IP address of 10.10.130.10.&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;Note: Make sure that the localhost &amp;quot;127.0.0.0/8&amp;quot; network is included.&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
====Making sure the LAN interface of the zimbra server itself is allowed====&lt;br /&gt;
If you see lines like this one in /var/log/zimbra.log when a webmail user (for example, &amp;quot;user@example.com&amp;quot;) tries to send mail (for example, to &amp;quot;somebody@domain.com&amp;quot;):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Jun 28 06:39:23 zimbra postfix/smtpd[31788]: NOQUEUE: reject: &lt;br /&gt;
RCPT from zimbra.example.com[10.10.130.10]: 554 &amp;lt;somebody@domain.com&amp;gt;: &lt;br /&gt;
Relay access denied; from=&amp;lt;user@example.com&amp;gt; to=&amp;lt;somebody@domain.com&amp;gt; &lt;br /&gt;
proto=SMTP helo=&amp;lt;zimbra.example.com&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You probably see this as well:&lt;br /&gt;
&lt;br /&gt;
 postconf mynetworks&lt;br /&gt;
 mynetworks = 127.0.0.0/8&lt;br /&gt;
&lt;br /&gt;
If you want to allow all the other machines on the 10.10.130.x network to relay, configure the server like this:&lt;br /&gt;
&lt;br /&gt;
 zmprov modifyServer zimbra.example.com zimbraMtaMyNetworks &amp;#039;127.0.0.0/8 10.10.130.0/24&amp;#039;&lt;br /&gt;
 postfix reload&lt;br /&gt;
&lt;br /&gt;
If you don&amp;#039;t want to allow relaying for the network, but only for the zimbra server itself, configure the server like this:&lt;br /&gt;
&lt;br /&gt;
 zmprov modifyServer zimbra.example.com zimbraMtaMyNetworks &amp;#039;127.0.0.0/8 10.10.130.10/32&amp;#039;&lt;br /&gt;
 postfix reload&lt;br /&gt;
&lt;br /&gt;
===Allowing relaying for a remote machine===&lt;br /&gt;
&lt;br /&gt;
Let&amp;#039;s say you have a single machine on a remote network (for example, an automated mailing list manager with the IP address 10.10.200.25), and the current settings look like this:&lt;br /&gt;
&lt;br /&gt;
 postconf mynetworks&lt;br /&gt;
 mynetworks = 127.0.0.0/8 10.10.130.0/24&lt;br /&gt;
&lt;br /&gt;
Add the remote machine like this:&lt;br /&gt;
&lt;br /&gt;
 zmprov modifyServer zimbra.example.com zimbraMtaMyNetworks &amp;#039;127.0.0.0/8 10.10.130.0/24 10.10.200.25/32&amp;#039;&lt;br /&gt;
 postfix reload&lt;br /&gt;
&lt;br /&gt;
===Allowing relaying for a remote network===&lt;br /&gt;
&lt;br /&gt;
Let&amp;#039;s say you have POP or IMAP users on a remote network (for example, 192.168.1.x, with a netmask of 255.255.255.0), and the current settings look like this:&lt;br /&gt;
&lt;br /&gt;
 postconf mynetworks&lt;br /&gt;
 mynetworks = 127.0.0.0/8 10.10.130.0/24&lt;br /&gt;
&lt;br /&gt;
Add the remote network like this:&lt;br /&gt;
&lt;br /&gt;
 zmprov modifyServer zimbra.example.com zimbraMtaMyNetworks &amp;#039;127.0.0.0/8 10.10.130.0/24 192.168.1.0/24&amp;#039;&lt;br /&gt;
 postfix reload&lt;br /&gt;
&lt;br /&gt;
==Possible Problems==&lt;br /&gt;
Make sure you specify the network properly. If you see an error like this in /var/log/zimbra.log, take a look at the subnet notation guide linked below, and compare the CIDR suffixes (/27) with the network address suffixes (.198).&lt;br /&gt;
&lt;br /&gt;
 Jul 17 20:29:12 zimbra postfix/smtpd[5092]: fatal: non-null host address bits in &amp;quot;10.10.130.198/27&amp;quot;, perhaps you should use &amp;quot;10.10.130.192/27&amp;quot; instead&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Additional Reading==&lt;br /&gt;
[http://www.postfix.org/postconf.5.html#mynetworks postconf mynetworks]&lt;br /&gt;
&lt;br /&gt;
private networks address space - [http://en.wikipedia.org/wiki/Private_network wikipedia article], [http://www.faqs.org/rfcs/rfc1918.html RFC 1918]&lt;br /&gt;
&lt;br /&gt;
[http://en.wikipedia.org/wiki/Subnetwork subnet notation]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Troubleshooting MTA]]&lt;br /&gt;
[[Category:Pending Certification]]&lt;/div&gt;</summary>
		<author><name>Didier</name></author>
	</entry>
</feed>