How To Change IP Address of Zimbra Server | Zimbra

Alert! This article is written for Zimbra OSE users. As of December 2023, Synacor will no longer be providing support for Zimbra OSE. You might want to consider trying out Carbonio Community Edition – Zextras’s free and open-source email and collaboration platform.

For additional guidance, check out our community articles detailing the process of migrating from your current platform to Carbonio CE.

We often need to change the IP address of the Zimbra server. In this guide, we will show you the precise way to change the IP address of your Zimbra server.

Let’s imagine, in your Multiverse Of Madness you are dealing with multiple issues as mentioned below:

In Earth-616, you are going to change your existing service provider. Therefore, the existing IP addresses of your network infrastructure need to be changed including your Zimbra server.

In Earth-1610, you have suffered severe spamming incidents from your server. For that, your server IP address’s reputation is damaged beyond repair. Also, the IP address is listed in several known/unknown BL databases (black listing) and you are unable to delist them by yourself. Your email communication with the remote end is critically hampered. In this situation, you want to change the IP address of your Zimbra server.

In Earth-10005, you are migrating your server from one hardware to another hardware. After the migration, you need to change the IP address of your new server as per the old IP information.

There can be some other exceptional situations when you may need to change the IP address of your Zimbra server.

Follow this article and change the IP address in a convenient way.

Change the IP Address Of Your Server

Before modifying Zimbra, change the IP address of your server.

root@mail:~# vi /etc/netplan/00-installer-config.yaml
# This is the network config written by 'subiquity'
        search: []
  version: 2
[Save and Exit]

root@mail:~# sudo netplan apply

Change The Hosts Configuration

Modify your /etc/hosts file configuration with the new IP information.

root@mail:~# vi /etc/hosts localhost mail    mail

# The following lines are desirable for IPv6 capable hosts
::1     ip6-localhost ip6-loopback localhost
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
[Save and Exit]

Modify Zimbra MTA Mynetworks

Check your existing Zimbra MTA mynetworks setup.

zimbra@mail:/root$ postconf mynetworks
mynetworks = [::1]/128

Here we can see the old IP was from IP network. Change the old IP with the new IP.


Make sure that the localhost “” network is included. Never allow a full network address/IP block in your mynetworks settings. Only allow the specific IP address of your server or any other server.

Change the Zimbra MTA mynetworks

zimbra@mail:/root$ zmprov ms zimbraMtaMyNetworks ' [::1]/128'
zimbra@mail:/root$ postfix reload
/postfix-script: refreshing the Postfix mail system

[Only change your old IP and keep other information as it is]

Check if Zimbra LDAP needs any modification:

zimbra@mail:/root$ zmprov gs zimbraMtaMyNetworks
# name
zimbraMtaMyNetworks: [::1]/128

It is all set

All is set now. Restart your Zimbra services and check the settings you modified earlier.

zimbra@mail:/root$ zmcontrol restart
        Stopping zmconfigd...Done.
        Stopping zimlet webapp...Done.
        Stopping zimbraAdmin webapp...Done.
        Stopping zimbra webapp...Done.
        Stopping service webapp...Done.
        Stopping stats...Done.
        Stopping mta...Done.
        Stopping spell...Done.
        Stopping snmp...Done.
        Stopping cbpolicyd...Done.
        Stopping archiving...Done.
        Stopping opendkim...Done.
        Stopping amavis...Done.
        Stopping antivirus...Done.
        Stopping antispam...Done.
        Stopping proxy...Done.
        Stopping memcached...Done.
        Stopping mailbox...Done.
        Stopping logger...Done.
        Stopping dnscache...Done.
        Stopping ldap...Done.
        Starting ldap...Done.
        Starting zmconfigd...Done.
        Starting dnscache...Done.
        Starting logger...Done.
        Starting mailbox...Done.
        Starting memcached...Done.
        Starting proxy...Done.
        Starting amavis...Done.
        Starting antispam...Done.
        Starting antivirus...Done.
        Starting opendkim...Done.
        Starting snmp...Done.
        Starting spell...Done.
        Starting mta...Done.
        Starting stats...Done.
        Starting service webapp...Done.
        Starting zimbra webapp...Done.
        Starting zimbraAdmin webapp...Done.
        Starting zimlet webapp...Done.

Your email service should be okay now.

Remember to change your old IP address from all relevant DNS records and relay hosts or else you may face a mail send/receive problem in spite of a fully functional Zimbra server.

That’s it for today.

Download Zextras Suite for Zimbra OSE

Post your comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Installation Of SSL Certificate On Zimbra Server | Zimbra
Import/Export Feature In Zimbra | Zimbra