FREE TRIAL

Deploy a Free VPS Server Worldwide. No Credit Card Required.

Start Free Trial
  • +357 2425 0808
  • Login
  • English

Home

Blog

How To Change IP Address on a Zimbra Ser...

How To Change IP Address on a Zimbra Server

How To Change IP Address on a Zimbra Server

NetShop ISP

NetShop ISP · Blog Author

Mar 06, 2023 · Tutorials

There are a few reasons why someone would need to change the IP address of server. It might be that your server is under attack, you are migrating from your existing provider or the current IP address got blacklisted, you will need to follow certain steps to change the IP on your server.

Whilst changing the IP address on a linux server is straight forward, when it comes to a Zimbra server there are a few more steps to be done. In this article we will show the steps and commands you need to perform on your server so that Zimbra can continue working with the new IP address.

Pre-requisities

  1. Root access or sudo-privileges access on server
  2. Ability to switch as the ‘zimbra’ user

Steps to Change IP address on Zimbra Server

Assuming you have already changed the IP address on your server via NetworkManager or the configuration file directly, let’s take a look at the next steps to change your Zimbra server’s IP address.

1. Change the Hosts File

Using your favorite editor, edit the file /etc/hosts and replace your old IP with the new one as follows:

root@mail:~# vi /etc/hosts

Sample output of /etc/hosts files:

127.0.0.1 localhost
45.142.201.1 mail.example.com mail

2. Modify Zimbra MTA Mynetworks

First check your current IP addresses included in the MyNetworks MTA using the following commands:

Switch to zimbra user:

root@mail:~$ su zimbra

Then run the following command:

zimbra@mail:~$ postconf mynetworks

Sample Output:

mynetworks = 127.0.0.0/8 [::1]/128 45.142.201.251/32

You can see the current/old IP address which is “45.142.201.251”. Change it to the newly assigned IP address of your server (e.g. 45.142.201.1) using the following command:

zimbra@mail:~$ zmprov ms mail.example.com zimbraMtaMyNetworks '127.0.0.0/8 [::1]/128 45.142.201.1/32'

Then reload postfix for the new configuration to be applied.

zimbra@mail:~$ postfix reload

You are all set! The last step remaining is to restart Zimbra services using the following command:

zimbra@mail:~$ zmcontrol restart

Sample Output:

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 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.
Host mail.example.com
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.
zimbra@mail:~$

Get Secure and Private E-mail Service powered by Zimbra

At NetShop ISP you can order a Zimbra-based email hosting service which allows you to use a domain name of your choice, create mailboxes and use it on any device.

Browse Email hosting plans: https://netshop-isp.com.cy/addons/zimbra-email-hosting/

Alternatively, you may opt for your own, dedicated Zimbra installation using a VPS or Dedicated Server.

Categories

Backup
6
Business Continuity
4
Cloud Hosting
10
Colocation
4
Company Updates
1
Cryptocurrencies
1
Data Centers
12
Dedicated Servers
4
Disaster Recovery
3
Forex
25
Gaming
1
iGaming
33
Industry News
32
Interviews
10
Joomla
9
Magento
5
Managed Services
1
Operating Systems
1
Press Releases
65
Product News
6
Resellers
1
Security
25
Software & Apps
1
Streaming
1
Tech Startups
12
Tutorials
60
Uncategorized
389
Vps Hosting
11
Web Design & Development
3
Web Hosting
44
Webinars
1
Wordpress
14

Free VPS Trial

No Credit Card Required.

Recent Posts

How To Fix Error Failed to download metadata for repo in CentOS 8

How To Fix Error Failed to download metadata for repo in CentOS 8

23 March, 2023

How can Forex Brokers be Protected from DDoS Attacks

How can Forex Brokers be Protected from DDoS Attacks

20 March, 2023

NetShop ISP Bronze Sponsors for the University of Cyprus at Harvard WorldMUN 2023

NetShop ISP Bronze Sponsors for the University of Cyprus at Harvard WorldMUN 2023

15 March, 2023

Top 5 Cloud Computing Trends in 2023

Top 5 Cloud Computing Trends in 2023

13 March, 2023

MetaTrader 4 and 5 Apps are back on Apple AppStore

MetaTrader 4 and 5 Apps are back on Apple AppStore

07 March, 2023

#letushostyou

Award Winning Hosting Provider established in 2004.

Best iGaming Service ProviderISO Certified

120 Faneromenis Avenue, Imperial Tower, 2nd Floor, Larnaca 6031, Cyprus

Products

Bare Metal Servers

Customized Servers

Virtual / Cloud Servers

Forex VPS

Storage VPS

cPanel Web Hosting

Reseller Web Hosting

Colocation

Addons

Premium DNS

Email Hosting

Cloud Backup

DDoS Protection

Licenses

SSL Certificates

Domain Names

Premium SLAs

About Us

Data Center Locations

Looking Glass

Our Company

Contact Us

Careers in Cyprus

Become a Partner

Awards

Certifications

© 2023 S.S. NetShop Internet Services Ltd. All rights reserved.  Terms & Conditions  |  Privacy Policy
CY Reg. Number: HE 217340 | EU VAT Number: CY10217340J

Visa
Mastercard
PayPal
Bitcoin
Tether
Ethereum
Litecoin
Wise
Revolut
Wire Transfer