How To Change IP Address Of Your Carbonio Community Edition Email Server | Carbonio CE

In this article, we will discuss the steps of changing the IP address of your Carbonio Community Edition email server.

Now, there are few situations that might led you to change the IP address of your Carbonio CE email server. These situations includes, changing service provider, server migration etc. Also, there could be some other exceptions. But whatever it is, we are going to know how we can do conveniently. πŸ™‚

Change the IP Address Of Your Server

Change the IP address of your server.

root@mail:~# vi /etc/netplan/00-installer-config.yaml
# This is the network config written by 'subiquity'
network:
  ethernets:
    ens33:
      addresses:
      - 192.168.10.100/24
      gateway4: 192.168.10.1
      nameservers:
        addresses:
        - 8.8.8.8
        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
127.0.0.1 localhost
127.0.1.1 mail

192.168.10.100   mail.example.com    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]

Restart All Services

Now restart all services.

zextras@mail:~$ zmcontrol restart
Host mail.example.com
	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 cbpolicyd...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 directory-server...Done.
Host mail.example.com
	Starting directory server...Done.
	Starting zmconfigd...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 mta...Done.
	Starting stats...Done.
	Starting service webapp...Done.
	Starting zimbra webapp...Done.
	Starting zimbraAdmin webapp...Done.
	Starting zimlet webapp...Done.
zextras@mail:~$

Modify MTA MyNetworks

Check your existing Zimbra MTA mynetworks setup.

zextras@mail:/root$ postconf mynetworks
mynetworks = 127.0.0.0/8 [::1]/128 192.168.2.0/24

Here we can see the old IP was from 192.168.2.0/24 IP network. Change the old IP with the new IP and reload the postfix using:

zextras@mail:/root$ postfix reload 
/postfix-script: refreshing the Postfix mail system 
zextras@mail:/root$

Recommendation: Make sure that the localhost β€œ127.0.0.0/8” 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 servers.

It is all set

All is set now. Check the settings you modified earlier.

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 Carbonio CE Email server.

That’s it for today.

😊

Post your comment

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

Understand And Manage Password Policy In Carbonio CE | Carbonio
Manage Filters Of An Email Account Of Your Carbonio Community Edition Email Server | Carbonio CE