How to Setup Zimbra Email Server on CentOS 7

June 2, 2015 | By in LINUX HOWTO, MAIL SERVER
| 3 Replies More

In this article we guide you with basic steps to install and configure Zimbra Collaboration Suite using Open Source Edition with single server installation where all the three components are installed on one server which includes Zimbra MTA, Zimbra LDAP server and Zimbra mailbox server with no additional manual configurations as its build only for Zimbra application suite. This article we are using zimbra collaboration 8.6 open source edition single server installation.

Basic requirements and resources

  • To install Zimbra server we cannot have any other web server, database or MTA services running on it.
  • DNS A record with fully qualified domain name must be configured to resolve host name
  • MX record to route message to mail server
  • Firewall should be disabled or to be allowed for all zimbra ports.
System Resources
Zimbra Version zcs-8.6.0_GA_1153.RHEL7_64.20141215151110
Base OS CentOS Linux 7 (Core), 64-bit
RAM 4 GB Recommended 8 GB
Hard Disk 30 G

Initial Setup

1) Login as a root user on CentOS-7

2) Enter the fully qualified domain name in host file

# vim /etc/hosts linux-tutorials

3) Disable SELINUX and Firewall

# vim /etc/sysconfig/selinux

To stop and disable firewalld, run following commands as root:

#systemctl disable firewalld
#systemctl stop firewalld

4) Check the status of web, database and MTA services to Stop and Disable

#systemctl stop httpd
#systemctl disable httpd
#systemctl stop mysqld
#systemctl disable mysqld
#systemctl stop postfix
#systemctl disable postfix
#systemctl stop sendmail
#systemctl disable sendmail

5) Update your system to upgrade all CentOS system software to the latest version.

#yum update

6) Now before starting the installation script make sure to confirm that its required dependencies are installed. Without required dependencies installation process will not run. We can install the following required dependencies by using below yum command.

# yum install nptl nmap-ncat sudo-1.8.6p7-13 libidn-1.28-3 gmp-6.0.0-11 libaio-0.3.109-12 gmp-6.0.0-11 libaio-0.3.109-12 libstdc++-4.8.3-9 unzip-6.0-13 perl-core perl-5.16.3 sysstat sqlite

Begin Installation of ZCS Open Source Edition

1) Create a new directory and download the latest Zimbra Collaboration Open Source Edition Suite.

#mkdir /backup
#cd /backup
backup]# wget

2) Extract “zcs-8.6.0_GA_1153.RHEL7_64.20141215151110.tgz” package in same /backup directory

backup]# tar zxvf zcs-8.6.0_GA_1153.RHEL7_64.20141215151110.tgz

3) Now change the directory to ZCS and start the installation script using below command

[root@linux-tutorials backup]# cd zcs-8.6.0_GA_1153.RHEL7_64.20141215151110/
[root@linux-tutorials zcs-8.6.0_GA_1153.RHEL7_64.20141215151110]# ./ --platform-override

The installation script checks the installation software to verify that Zimbra packages are present.

4) Press “Y” to accept the License Agreement.
5) Press “Y” to install all the required packages and “N” for the rest that we don’t want to install.

zimbra pkgs
6) Now press “Y” to continue after that system will be modified with the above selected installation packages.
7) During the installation process it might gives DNS error to change hostname which should be resolvable.

Press “N” to change host name
Press “N” to change domain name

After these selections we will now come to Main Menu Configurations where we configure each package settings manually.

Main Menu
1. Common Configuration:
2. Zimbra-ldap: Enabled
3. zimbra-logger: Enabled
4. zimbra-mta: Enabled
5. zimbra-dnscache: Enabled
6. zimbra-snmp: Enabled
7. zimbra-store: Enabled
8. zimbra-spell: Enabled
9. zimbra-proxy: Enab

1) Select option 1 and enter for Common Configurations to update its settings

Common Configuration
1. Host Name
2. Ldap master host
3. Ldap port 389
4. Ldap Admin Password *******
5. Secure interprocess communication Yes
6. Time Zone 83
7. IP Mode Ipv4
8. Default SSL Digest Sha256

2) Press r to return to main menu and choose option 2 for Zimbra-ldap configurations

Zimbra Ldap Configuration
1. Status Enabled
2. Create Domain Yes
3. Domain to Create
4. Ldap root Password *******
5. Ldap replication password *******
6. Ldap postfix password *******
7. Ldap amavis password *******
8. Ldap nginx password *******
9. Ldap Bes searcher password *******

3) Press r to return to main menu and choose option 4 for MTA Settings

Zimbra MTA Configuration
1. Status Enabled
2. Enable Spamassassin: Yes
3. Enable Clam AV: Yes
4. Enable OpenDKIM: Yes
5. Notification address for AV alerts:
6. Bind password for postfix ldap user: *******
7. Bind password for amavis ldap user: *******

4) Press r to return to main menu and choose option 5 for DNS-Cache settings we keep this feature Disabled as we are not using it.

Zimbra DNS-Cache Configuration
1. Status Disabled
2. Master DNS IP address(es): xx.xx.xx.xx
3. Enable DNS lookups over TCP: Yes
4. Enable DNS lookups over UDP: Yes
5. Only allow TCP to communicate with Master DNS: No

5) To return back press r and choose option 6 for Zimbra SNMP settings

Zimbra SNMP Configuration
1. Status Enabled
2. Enable SNMP notifications: Yes
3. SNMP Trap hostname:
4. Enable SMTP notifications: Yes
5. SMTP Source email address:
6. SMTP Destination email address:

6) Press r to return and choose option 7 for Zimbra Store Settings as below

Zimbra Store Configuration
1. Status Enabled
2. Create Admin User: Yes
3. Admin user to create:
4. Admin Password *******
5. Anti-virus quarantine user:
6. Enable automated spam training: Yes
7. Spam training user:
8. Non-spam(Ham) training user:
9. SMTP host:
10. Web server HTTP port: 8080
11. Web server HTTPS port: 8443
12. Web server mode: https
13. IMAP server port: 7143
14. IMAP server SSL port: 7993
15. POP server port: 7110
16. POP server SSL port: 7995
17. Use spell check server: Yes
18. Spell server URL:
19. Enable version update checks: TRUE
20. Enable version update checks: TRUE
21. Version update notification email:
22. Version update source email:
23. Install mailstore (service webapp): Yes
24. Install UI (zimbra,zimbraAdmin webapps) Yes

7) Now again press r to return to main configuration and choose the last option 9 for Zimbra Proxy configurations as

Zimbra Proxy Configuration
1. Status Enabled
2. Enable POP/IMAP Proxy: TRUE
3. IMAP proxy port: 143
4. IMAP SSL proxy port: 443
5. POP proxy port: 110
6. POP SSL proxy port: 995
7. Bind password for nginx ldap user: set
8. Enable HTTP[S] Proxy: TRUE
9. HTTP proxy port: 80
10. HTTPS proxy port: 443
11. Proxy server mode: https

Here we had setup all our internal configurations of each installed Zimbra package.

Now after returning to main menu press “x” to expand the menu to confirm that all settings are fine. We can save all main menu setting by pressing “s” or press “q” to quit.

8) Now to apply all the change press “a” then press “YES” to save the configuration data to a new file and type “YES” to continue system modifications.

The setup will take few minutes to implement all configuration changes, after configurations completion notice press “Enter” to exit.

Now do the following steps to run the server properly

1) Restart Crond service and Enable it to start automatically

#systemctl enable crond
#systemctl restart crond

2) Go to rsyslog.conf file and uncomment the below two lines under UDP syslog reception

#vim /etc/rsyslog.conf
Uncomment these two lines
$modload imupd

3) Restart the rsyslogd service and enable it permanently

#systemctl enable rsyslog
#systemctl restart rsyslog

4) Now run following command to Update /etc/rsyslog.conf

# /opt/zimbra/libexec/zmsyslogsetup

5) Now go to zimbra user account and execute following two commands and then restart Zimbra services

#su – zimbra
$ zmupdateauthkeys
Updating keys for
Fetching key for
Updating keys for
Updating /opt/zimbra/.ssh/authorized_keys

$zmcontrol restart
$zmcontrol status

zimbra status
Now let’s open any of your favourite web browser to access Zimbra Administration Console using the configured Zimbra domain name or IP with user admin and password same as setup in the script:

zimbra admin
Congratulations! Zimbra Collaboration Suite has been setup successfully with Open Source Edition using Single Server Installation.


Zimbra Collaboration Open Source Edition provides great features for administration and to the end users. It has an excellent 'web' version. Many people find it their favorite way to use email after trying it for awhile, even if they were used to another program like Outlook or Thunderbird other than its features like a calendar and task function to help coordinate schedules and plan meetings etc.


Share This :

Free Linux Ebook to Download

Comments (3)

Trackback URL | Comments RSS Feed

  1. Bruno says:

    Thank you, very much this tutorial is complete and help me so much.

  2. Ibnu Azaim says:

    where is configuration DNS Server ??

Leave a Reply

Commenting Policy:
Promotion of your products ? Comment gets deleted.
All comments are subject to moderation.