ZimbraMtaMyNetworks: Difference between revisions

mNo edit summary
mNo edit summary
Line 8: Line 8:
  mynetworks = 127.0.0.0/8 10.10.130.0/23  
  mynetworks = 127.0.0.0/8 10.10.130.0/23  


Check the existing value:
Check for the existing value in zimbra (replace <SERVERNAME> with the zmhostname of the server):
  zmprov getServer SERVERNAME | grep zimbraMtaMyNetworks
  zmprov getServer <SERVERNAME> | grep zimbraMtaMyNetworks


Add your new network or IP (for example, 192.168.0.0/24):
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"
  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 19:31, 8 January 2007

Enabling Mail Submission/Relaying 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 for the existing value in zimbra (replace <SERVERNAME> with the zmhostname of the server):

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