Difference between revisions of "ZimbraMtaMyNetworks"

 
m
Line 1: Line 1:
 
== Enabling Mail Submission from Remote Networks ==
 
== Enabling Mail Submission from Remote Networks ==
To enable this, you'll want to add the remote networks to the zimbraMtaMyNetworks attribute on the server.
+
To enable this, you'll want to add the remote networks to the zimbraMtaMyNetworks attribute on the server. If this is not set, the postfix default is used.
  
If this is not set, the postfix default is used.
+
Get the current value from postconf:
  
Get the default:
+
  # su - zimbra
 
+
  $ postconf mynetworks
  su - zimbra
+
mynetworks = 127.0.0.0/8 10.10.130.0/23
  postconf -d mynetworks
 
  
 
Check the existing value:
 
Check the existing value:
  zmprov gs SERVERNAME | grep zimbraMtaMyNetworks
+
  zmprov getServer SERVERNAME | grep zimbraMtaMyNetworks
  
Add your new network or IP
+
Add your new network or IP (for example, 192.168.0.0/24):
  zmprov ms SERVERNAME zimbraMtaMyNetworks "1.2.3.0/24 127.0.0.0/8 10.0.0.0/8"
+
  zmprov modifyServer SERVERNAME zimbraMtaMyNetworks "127.0.0.0/8 10.10.130.0/23 192.168.0.0/24"
  
 
NOTE - make sure that the 127.0.0.0/8 network is included.  Quotes are important in the above command
 
NOTE - make sure that the 127.0.0.0/8 network is included.  Quotes are important in the above command

Revision as of 00:39, 23 December 2006

Enabling Mail Submission from Remote Networks

To enable this, you'll want to add the remote networks to the zimbraMtaMyNetworks attribute on the server. If this is not set, the postfix default is used.

Get the current value from postconf:

# su - zimbra
$ postconf mynetworks
mynetworks = 127.0.0.0/8 10.10.130.0/23 

Check the existing value:

zmprov getServer SERVERNAME | grep zimbraMtaMyNetworks

Add your new network or IP (for example, 192.168.0.0/24):

zmprov modifyServer SERVERNAME zimbraMtaMyNetworks "127.0.0.0/8 10.10.130.0/23 192.168.0.0/24"

NOTE - make sure that the 127.0.0.0/8 network is included. Quotes are important in the above command

Jump to: navigation, search