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'
        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]

Restart All Services

Now restart all services.

zextras@mail:~$ 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 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.
	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.

Modify MTA MyNetworks

Check your existing Zimbra MTA mynetworks setup.

zextras@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 and reload the postfix using:

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

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.



03/27/2023 0

Looks like there is a cluster address should be changed too. How? Otherwise the service-discover won't start and it is unable to update since consul is not running. Also it'd be nice if you mention how to change the postfix's 'mynetworks' list with the command like zmprov ms zimbraMtaMyNetworks ' [::1]/128'

Post your comment

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

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