Zimbra Collaboration Suite (ZCS) is a groupware product created by Zimbra, Inc. It is widely used in the world. Users can share folders, contacts, schedules and other things, using a very rich web interface. Currently the latest version of Collaboration Suite is Zimbra 8.6.0. It brings new features, improvements in Mail server and it provides a better web client experience. In this tutorial, I will explain how to install Zimbra 8.6.0 on RHEL 7 or CentOS 7.
If you don’t have Digital Ocean account yet, you need to sign up first. Sign Up Digital Ocean. Then you need to deploy your droplet. http://blog.revivalx.com/2014/10/15/deploy-droplet-in-digital-ocean/
Login your VPS via SSH using Terminal (Mac) or Putty (Windows). First, we need to ensure that CentOS 7 is up to date. Therefore, we’ll run the following command:
yum update –y
Next, we need to install some pre-requisites. Since there are 12 different applications required to install Zimbra, we can handle the installation in one single command:
yum install -y gmp libidn wget nano make nc sudo sysstat libtool-ltdl glibc perl ntp libaio unzip perl-core
Next, we’ll need to install check if postfix is running – if it is, disable it. Since we cannot have two different mail transfer agents running, postfix must go.
service postfix status
If postfix is running, we’ll need to disable it:
service postfix stop && chkconfig postfix off
Setup DigitalOcean DNS for your domain, head over to the DNS tab in the DO control panel. Once there, add your domain.
Point to mail.aceakl.my (your Droplet FQDN) with a high priority (lowest number).
Once you’ve added your domain, add the following records to your DNS settings. In this example, the IP address 220.127.116.11 is used for my DigitalOcean Droplet. However, yours will be different, so set this value to your Droplet IP.
Go to Zimbra official website to get a download link for the latest version of Zimbra.
And then fetch the file from the Zimbra website. You can use wget to achieve this. Obviously, you’ll need to place the URL you copied earlier into this command rather than using the link here.
Now we’ll need to edit the hosts file in CentOS to contain the IP address of the Droplet, the FQDN, and name of the server. We can do this by typing:
Once opened, the hosts file should look similar to the following:
Remove IPV6 and this line.
127.0.0.1 Aceakl Aceakl # The following lines are desirable for IPv6 capable hosts ::1 Aceakl Aceakl ::1 localhost.localdomain localhost ::1 localhost6.localdomain6 localhost6
You’ll need to edit the file to contain another row with your Droplet’s IP address, FQDN and name. The line should look like the following:
127.0.0.1 localhost.localdomain Aceakl localhost 127.0.0.1 localhost4.localdomain4 localhost4 18.104.22.168 mail.aceakl.my mail
You’ll need to ensure that you replace the above with the actual data values for your Droplet. You should also make sure that you use a tabbed space between each value. This means that you’ll have a host file looking something similar to:
Once done, press CTRL+O and then Enter to save. Then press CTRL+X to return.
The next stage is to unpack the tgz file we downloaded earlier. To do this, we can execute the following command:
tar zxvf zcs-*.tgz
Next, change directory into the folder that the files were extracted into:
Finally, we can run the installer.
Once the installer starts, you’ll need to accept the license agreements by pressing Y at each license prompt.
When you reach the ‘select packages to install’ section, simply press enter at each of the options which will select the default value.
Type No and Enter.
Type Yes and set your domain name.
This error is presented by Zimbra because it’s looking for an MX record for the domain ‘subdomain.example.com’. Instead, we want it to search for an MX record for ‘example.com’. This means that we should press Y`, and change the domain name to just ‘example.com’. If you get a port conflict error, you may need to exit the installer and resolve the issue before continuing. You’ll soon reach the configuration page, similar to that below. First we should choose option 3 to allow us to enter the zimbra-store section.
Address unconfigured (**) items (? – help) 7
Next, choose 4. This will allow us to configure the admin username and password.
Select, or 'r' for previous menu [r] 3 Create admin user: [firstname.lastname@example.org] email@example.com Password for firstname.lastname@example.org (min 6 characters): [MBUKGBcH] password
Next, choose r to return to the previous menu.
Select, or 'r' for previous menu [r] r
Then, choose 1 to go to the common configuration section.
*** CONFIGURATION COMPLETE - press 'a' to apply Select from menu, or press 'a' to apply config (? - help) 1
After this, choose 6 to edit the time zone.
Select, or 'r' for previous menu [r] 6
Here, you should choose the number relative to the time zone you’re in. For example, you could type 50 to get the Kuala Lumpur time zone.
Enter the number for the local timezone:  50
Then choose ‘r’ to return and ‘a’ to apply the configuration. You should also choose the log the installation to a file, in case any errors arise.
Select, or 'r' for previous menu [r] r *** CONFIGURATION COMPLETE - press 'a' to apply Select from menu, or press 'a' to apply config (? - help) a Save configuration data to a file? [Yes] yes Save config in file: [/opt/zimbra/config.7622] /root/zimbra-installation.txt Saving config in /root/zimbra-installation.txt...done. The system will be modified - continue? [No] yes
The system will then continue the installation. Setup of Zimbra should take about 20 minutes, depending on the Droplet size you selected.
Finally, you’ll be given the option of notifying Zimbra of the installation, which allows them to track the uptake of their products. You can either type ‘yes’ or ‘no’ here, either way, this is the final step of the installation. You can make sure that the installation was successful from the final confirmation message:
Configuration complete – press return to exit
It is recommended that you reboot your Droplet.
Accessing The Zimbra Admin Control Panel
The control panel can be easily accessed by visiting the following URL: