For running the Zimbra collaboration server, you should have:
- Ubuntu machine 18.04 – 64bit
- Root privileges
- Free Disk space 30 GB (minimum)
- RAM 8 GB (minimum)
- CPU/Processor 2.0 GHz (minimum)
For the setup, we have used:
Zimbra: 8.8.15 GA Release
Installing Zimbra on Linux
Here are the steps to install the Zimbra Collaboration Server on Linux. Let’s get started.
Step 1: Update and upgrade existing packages
First, you will need to update and upgrade the existing packages. To do so, issue the below commands in Terminal:
$ sudo apt upgrade
Step 2: Edit hostname and hosts file
Now, we will need to setup a hostname for Zimbra. To do so, edit /etc/hostname file using the below command in Terminal:
Replace the hostname with the mail.test.org and then save and close the hostname file.
Replace mail.test.org with your own domain name.
Now edit the /etc/hosts file using the below command in Terminal:
Type the following entry and then save and close the hosts file.
Where 192.168.72.167 is the IP address of your Zimbra server, and mail.test.org is the fully qualified domain name (FQDN).
Step 3: Install DNS server
In this step, we will install dnsmasq as our DNS server. However, before installing dnsmasq, we will first need to disable systemd-resolve as it runs on port 53. The DNS server dnsmasq also runs on port 53 which can cause port conflict.
Therefore, we will disable the systemd-resolve. Use the following command to do so:
Then stop the systemd-resolved using the below command:
Now remove the resolv.conf symlink file:
Then create a new resolv.conf file using the below command:
Now to install dsmasq, issue the below command in Terminal:
Once the installation of dnsmasq is completed, run the below command to edit the dnsmasq configuration file:
Add the following lines in the configuration file:
mx-host= test.org, mail.test.org, 5
mx-host=mail.test.org, mail.test.org, 5
Then restart the dnsmasq service using the below command in Terminal:
Step 4: Downloading and installing Zimbra Collaboration Tool
Now download Zimbra for Ubuntu 18.04 LTS from the following link:
Or use the following wget command in Terminal to download Zimbra:
The downloaded file will be in the .tgz format. Issue the below command in Terminal to extract the downloaded file:
Navigate to the extracted folder using the cd command as follows:
Then run the installer as follows:
Once the installation is started, you will see something like this:
When the following Software License agreement appear, hit y to accept. Then again hit y to use Zimbra’s package repository for installation.
When the following view appears, hit y for each of the packages except for the zimbra-imapd which is available only in the beta version.
When you are notified that the system will be modified, hit y after which the installation will be started.
Once the installation is done, the following view will appear and you will be asked to configure the unconfigured items.
Here, we will configure the admin password for Zimbra which is not yet configured. You can also see the Admin Password marked as ***** under the zimbra-store section. Hit 7 on your keyboard to enter into the zimbra-store section.
Now for Admin Password configuration, hit 4. You will be prompted to set the password for admin. Type any password (with a minimum of 6 characters).
Now hit a to apply the configurations and hit y again to save the configurations. When you are notified that the system will be modified, hit y.
Now you will see the following screen with the configuration completed message, hit Enter to exit.
Now the installation of Zimbra mail server has been completed.
Step 5: Access Zimbra administration page
Now you can access the Zimbra administration page. Open any web browser and type:
You will see the following default Zimbra login page. Enter admin as username and type password you have set earlier (as described in the previous section).
Once you are logged in, you will see the following view showing the summary and other statistics.
Zimbra is an open-source mail server that offers several features but on the other hand, it consumes a lot of resources. Therefore, it is recommended to install it in a machine that has enough memory, processor, and disk space available. Now, you have learned how to install Zimbra in Ubuntu. In some other posts, we will follow up with the configuration of Zimbra.