How To Install Zimbra Collaboration Suite 8.6.0 On CentOS 7

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
yum update

yum update

yum update

yum update

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.

DNS - Add a Domain

DNS – Add a Domain

Point to mail.aceakl.my (your Droplet FQDN) with a high priority (lowest number).

DNS - Add a Domain

DNS – Add a Domain

Once you’ve added your domain, add the following records to your DNS settings. In this example, the IP address 128.199.72.229 is used for my DigitalOcean Droplet. However, yours will be different, so set this value to your Droplet IP.

DNS - Add a Domain

DNS – Add a Domain

Final result.

DNS - Add a Domain

DNS – Add a Domain

Go to Zimbra official website to get a download link for the latest version of Zimbra.

Zimbra download page

Zimbra download page

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.

wget https://files.zimbra.com/downloads/8.6.0_GA/zcs-8.6.0_GA_1153.RHEL7_64.20141215151110.tgz
wget Zimbra for Centos 7

wget Zimbra for Centos 7

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:

nano /etc/hosts

Once opened, the hosts file should look similar to the following:

nano /etc/hosts

nano /etc/hosts

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
128.199.72.229 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:

nano /etc/hosts

nano /etc/hosts

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:

cd zcs-*

Finally, we can run the installer.

./install.sh --platform-override

Once the installer starts, you’ll need to accept the license agreements by pressing Y at each license prompt.

Accept the license agreements

Accept the license agreements

When you reach the ‘select packages to install’ section, simply press enter at each of the options which will select the default value.

Installing Zimbra packages

Installing Zimbra packages

Type No and Enter.

DNS ERROR resolving localhost.localdomain

DNS ERROR resolving localhost.localdomain

Type Yes and set your domain name.

DNS ERROR resolving MX for localhost.localdomain

DNS ERROR resolving MX for localhost.localdomain

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.

Zimbra main menu

Zimbra main menu

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: [admin@aceakl.my] admin@aceakl.my
Password for admin@aceakl.my (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
Zimbra common configuration

Zimbra common configuration

Zimbra main menu

Zimbra main menu

After this, choose 6 to edit the time zone.

Select, or 'r' for previous menu [r]  6
Zimbra common configuration

Zimbra common configuration

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: [39]  50
Zimbra timezone

Zimbra timezone

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
Zimbra configuration complete

Zimbra configuration complete

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
Finishing Zimbra installation zimlets

Finishing Zimbra installation zimlets

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:

https://mail.aceakl.my:7071/zimbraAdmin

3 thoughts on “How To Install Zimbra Collaboration Suite 8.6.0 On CentOS 7

  1. hi ,
    i installed zimbra successfully , i can send email to yahoo gmail and local , but unfortunately i cant receive any emails.
    this is the suspected error.
    Oct 3 03:12:43 mail postfix/qmgr[5533]: 5FF2E4046145: from=, size=4295, nrcpt=1 (queue active)
    Oct 3 03:12:43 mail amavis[5157]: (05157-02) Passed CLEAN {RelayedInbound}, [209.85.218.48]:33501 [209.85.218.48] -> , Queue-ID: 64F584046144, Message-ID: , mail_id: He8K85RhDrUg, Hits: 0.7, size: 3397, queued_as: 5FF2E4046145, dkim_sd=20120113:gmail.com, 526 ms
    Oct 3 03:12:43 mail postfix/smtp[26967]: 64F584046144: to=, relay=127.0.0.1[127.0.0.1]:10024, delay=0.99, delays=0.46/0.01/0/0.53, dsn=2.0.0, status=sent (250 2.0.0 from MTA(smtp:[127.0.0.1]:10025): 250 2.0.0 Ok: queued as 5FF2E4046145)
    Oct 3 03:12:43 mail postfix/qmgr[5533]: 64F584046144: removed

    can you please help me in where to fix it
    thanks and regards

Leave a Reply

Your email address will not be published. Required fields are marked *