Zimbra Collaboration Suite (ZCS) or commonly known as Zimbra Mail, is a collaborative software suite that includes an email server and a web client. It also includes contacts, file sharing, calendar, tasks, and so on which can be easily accessed via webmail.
Setting a Mail Server is one of key requirements when starting any business.
This could mean using mail solutions with SaaS offering or deploying a complete mail solution in your own infrastructure.
Previously, we have explained the installation of Zimbra Collaboration in Ubuntu .
In this context, we shall look into how to set up Zimbra Collaboration Suite on CentOS 8 system.
How to Install Zimbra Collaboration Suite on CentOS 8 ?
To begin, you need to access your server as the root user with Root or sudo privileges. Update System with the command:
$ sudo dnf -y update
Then follow the steps given below:
1. Install Dependencies
First, you will have to install some dependencies in your CentOS system.
To do so, open the Terminal and execute the following command :
$ sudo yum install -y libidn gmp nptl nmap sysstat libaio libstdc++
2. Disable Unwanted Services
You will need to disable unwanted services so that they do not conflict with the installation of the Zimbra collaboration suite.
Here, we are going to disable SELinux, firewall, and postfix.
In order to disable SELinux, first execute the following command in Terminal to check if it is in “Enforcing” mode.
If the output shows “Enforcing”, then change the SELinux mode to “Permissive”. Execute the following command to do so:
$ sudo setenforce 0
Now again run the following command to verify if the mode has been changed to “Permissive”:
In order to disable the firewall, execute the following commands:
$ sudo systemctl stop firewalld
$ sudo systemctl disable firewall
To disable Postfix, run the following commands:
$ sudo systemctl stop postfix
$ sudo systemctl disable postfix
3. Configure hostname and hosts file
i. Open the /etc/hostname file using the following command:
$ sudo nano /etc/hostname
ii. Then in the file, add the FQDN as follows:
iii. Make sure to replace the server.ibmimedia.com with your FQDN.
Now save and close /etc/hostname file.
iv. Now open the /etc/hosts file as follows:
$ sudo nano /etc/hosts
Add the below entry in the file:
ip_address server.ibmimedia.com server
Where, ip_address should be replaced by your Server Ip address.
v. Now save and close /etc/hosts file.
4. Verify A and MX Records
Now verify the DNS configurations for your mail server.
You can do this by using the below command in Terminal:
$ dig -t MX ibmimedia.com
The output will display the MX and A records for our mail server which proves that is has been configured properly.
5. Install Zimbra Collaboration Suite
Now in this step, we will download and install the Zimbra collaboration suite.
1. To download the Zimbra collaboration suite, execute the following command in Terminal:
$ wget https://files.zimbra.com/downloads/8.8.15_GA/zcs-8.8.15_GA_3953.RHEL8_64.20200629025823.tgz
2. The downloaded Zimbra file will be in the .tgz archive format. To extract the archive file, use the following command:
$ tar -zxvf zcs-8.8.15_GA_3953.RHEL8_64.20200629025823.tgz
3. One the file is extracted; navigate to the extracted directory using the following command:
$ cd zcs-8.8.15_GA_3953.RHEL8_64.20200629025823/
4. In the extracted directory, you will see an installer file. To start the installation of Zimbra CS, run the installer as follows:
$ sudo ./install.sh
After executing the above command, the installation of Zimbra will be started.
5. After performing a few checks, the installer will ask you to accept the conditions of the software License Agreement. Press “y” to accept the agreement.
6. Now, press “y” when asked to use Zimbra's package repository.
7. Now, select the packages you want to install by pressing y. Press y for all the packages with the exception of the zimbra-imapd which is only available in the beta edition. After selecting the packages, the system will check the required space for installation. If it verifies the required space, it starts installing the selected packages; otherwise, it stops the installation.
8. When the following prompt appears, press y.
Now it will start installing the selected packages.
9. After the installation of packages is completed, the installer will check to see if the MX record is configured in DNS. At this stage, if an error appears as you can see in the following screenshot, then you will be asked to re-enter the domain name.
First, type yes and press Enter and then type your domain name and again press Enter.
10. Now, the following view will appear showing you the default configurations.
Here, you will also see some unconfigured option which is Admin Password marked with asterisks (******) to its left. To configure the Admin Password, press 7 from the Main menu.
11. Then from the Store configuration submenu, press 4 and then press Enter. Then type a password for the admin user (should at least contain 6 characters) and press Enter.
12. Now press “r” to return to the Main menu.
13. Now to apply the changes you have made, press a and then press Enter.
14. When asked to save the configurations to a file, type yes to save it and then press Enter.
15. After that, it will ask where you want to save the configurations. To save the configurations to the default (/opt/zimbra/config.75773]) location, just press Enter. If you want to save it on some other location, type the directory path and press Enter.
16. Then it will notify you that the system will be modified. Type yes and press Enter.
17. When the Configuration complete message appears, press Enter.
Now the installation of the Zimbra collaboration suite has been completed.
6. Access Zimbra Administration Panel
Now access the Zimbra Administration panel using any web browser and typing the following URL:
When you open the above URL for the first time in your web browser, you will see a warning message that the connection is untrusted. You can simply ignore this message and continue.
After that, a page will appear for you to type the username and password. Enter admin as a username and password that you have configured earlier during the installation.
Once you are logged in, you will see a dashboard where you can view the summary.
How to Uninstall Zimbra Collaboration Suite on CentOS 8 ?
In case, you no longer need Zimbra on your system, you can easily uninstall it.
Open the Terminal and go to the directory which contains the Zimbra installation files.
$ cd zcs-8.8.15_GA_3953.RHEL8_64.20200629025823/
Then execute the installer file with the -u option as follows to uninstall Zimbra from your system.
$ ./install.sh -u
Hit y, when it asks if you want to completely remove the existing installation. After which it, will completely uninstall Zimbra from your system.
Now, use the cd command to go back to the main directory which contains both the Zimbra collaboration archive and extracted directory:
Then execute the following commands to remove both the archive and extracted directory:
$ sudo rm zcs-8.8.15_GA_3953.RHEL8_64.20200629025823.tgz
$ sudo rm –rf zcs-8.8.15_GA_3953.RHEL8_64.20200629025823
By following the above step by step procedure, you can easily install the Zimbra collaboration server on the CentOS system.
We have also shown you how to uninstall Zimbra, in case you no longer want it in your system.