By default, Zimbra will not get the problem if we try to change the IP Address. The problem will only occured if the replace IP have a different netmask with the previous one.
If we tried to change Zimbra mail server IP Address from a set of IP, eg : 192.168.0.1 into 192.168.0.101 and both of them are within same net mask, it will not get any problem. Zimbra mail server version 5.x.x will automatically change LDAP setting to proper configuration.
As described above, the problem will only occurred if current IP Address have different net mask, eg : change IP from 192.168.0.1 into 192.168.5.1 or into 10.0.0.101. Below is an example of the error message :

Error: This message could not be sent.
Subject: Sending test message
To: vivian@vavai.com
Note: Soap Fault. Please recreate and resend the message. Details below:
Error Code: mail.SEND_ABORTED_ADDRESS_FAILURE
Error Text: Invalid address: vivian@vavai.com

and then another message :

Message not sent; one or more addresses were not accepted.
Rejected addresses: vivian@vavai.com

The problem occurred because Zimbra have different TrustedNetwork Setting in Postfix configuration within Zimbra configuration. Zimbra used Postfix as MTA engine and while it’s first initial install, trustednetwork setting will be filled out with existing IP Address format. To ensure if this is the main problem, checked current configuration at terminal / konsole and type in :

su - zimbra
$ postconf mynetworks
mynetworks = 127.0.0.0/8 192.168.0.0/24

And another check : Zimbra LDAP configuration :

zmprov getServer zimbra.example.com | grep zimbraMtaMyNetworks

If the setting display different IP set compared to current configuration, change the setting with zmprov modifyserver as noticed below :

zmprov modifyServer hostname.domainname.tld zimbraMtaMyNetworks '127.0.0.0/8 your.server.ip.address'

eg :

zmprov modifyServer mail.vavai.com zimbraMtaMyNetworks '127.0.0.0/8 192.168.0.0/24'

After change the proper setting, reload and restart your Zimbra server :

su - zimbra
postfix reload
zmcontrol stop
zmcontrol start

Another resource : ZimbraMTAMyNetworks

6 thoughts on “Change IP Address of Zimbra Mail Server : How to Resolve the Problem”
  1. This was a bit complex for me. But i do understand it is important to change IP for a variety of reasons. One of the most important one is to be able to be secure and enjoy some privacy on the internet or at least try. There have become available some cool software such as Private Proxy software to rapidly change IP and route the connection through multiple servers. Thus effectively hiding your IP address and allowing one to surf the net anonymously. In order to combat security and privacy challenges on the internet Changing the IP has become an effective weapon against hackers and identity thieves.

  2. Thank you so much for this as I just changed the sub-net for my lan and couldn’t send mail. This was exactly what I needed.

  3. Thank you so much for this as I just changed the sub-net for my lan and couldn’t send mail. This was exactly what I needed.

  4. hey,
    thank you for provided information. I have moved one of my Zimbra’s (5.X) to another host and took the steps you described. I had to edit main.cf in /opt/zimbra/postfix/conf/
    There was still mentioned line (mynetworks) with old values however I set it previously by zmprov and restarted it afterwards
    maybe that helps 😉

  5. hey,
    thank you for provided information. I have moved one of my Zimbra’s (5.X) to another host and took the steps you described. I had to edit main.cf in /opt/zimbra/postfix/conf/
    There was still mentioned line (mynetworks) with old values however I set it previously by zmprov and restarted it afterwards
    maybe that helps 😉

Leave a Reply to Andrew Virender Cancel reply

Your email address will not be published.