Install & configure Zimbra Open Source Mail Server on CentOS & RHEL

Share this article with your friends


Zimbra  is a Free Email Server and Calendar & collaboration solution, built for the both  public and private cloud . It is also considered an Exchange replacement. Zimbra provides a web GUI from where mailserver admin can manage zimbra server. Zimbra provides end users with a feature-rich browser-based experience that enables them to seamlessly and securely connect to their emails on any device or platform.

In this tutorial we will install & configure open source zimbra server on CentOS 6.X / RHEL 6.X. Before installating zimbra sever following prerequisite should be completed.

1. Create MX record for your domain
2. Create A record for your’s Hostname

In my case domain is “” & Server’s Hostname is “”

Step:1 Install Necessary  Packages & update hosts file

# yum -y install nc wget nano make nc sudo sysstat libtool-ltdl glibc perl ntp

Edit the file /etc/hosts


Step:2 Stop Sendmail & postfix service if started & Disabled Selinux

# chkconfig sendmail off ; service sendmail stop ; chkconfig postfix off ; service  postfix stop ;

Disable selinux  in the file /etc/selinux/config change the selinux= line to SELINUX=disabled 

Step:3 Download the Zimbra Server using below command

# wget

Step:4 Now extract Zimbra tar file using below command

# tar -zxpvf zcs-8.0.4_GA_5737.RHEL6_64.20130524120036.tgz

Step:5 Now Change the directory & run below command to install zimbra

# cd zcs-8.0.4_GA_5737.RHEL6_64.20130524120036 
# ./  --platform-override

We are using ‘–platform-override‘ option in above command because installation script is only for Redhat  Linux but we are installing on CentOS 6.X machine so to override the Platform condition we are using this option. When we execute the above command we will get below output and follow the instructions :

Operations logged to /tmp/install.log.2570
Checking for existing installation... 
zimbra-ldap...NOT FOUND 
zimbra-logger...NOT FOUND 
zimbra-mta...NOT FOUND 
zimbra-snmp...NOT FOUND 
zimbra-store...NOT FOUND 
zimbra-apache...NOT FOUND 
zimbra-spell...NOT FOUND 
zimbra-convertd...NOT FOUND 
zimbra-memcached...NOT FOUND 
zimbra-proxy...NOT FOUND 
zimbra-archiving...NOT FOUND 
zimbra-cluster...NOT FOUND 
zimbra-core...NOT FOUND


License Terms for the Zimbra Collaboration Suite:
Do you agree with the terms of the software license agreement? [N] Y
Do you agree with the terms of the software license agreement? [N] Y
License Terms for the Zimbra Collaboration Suite:
Do you agree with the terms of the software license agreement? [N] Y
Do you agree with the terms of the software license agreement? [N] Y

Checking for prerequisites... 
FOUND: nc-1.84-22 
FOUND: sudo-1.8.6p3-12 
FOUND: libidn-1.18-2 
FOUND: gmp-4.3.1-7 
FOUND: /usr/lib64/
Checking for suggested prerequisites... 
FOUND: perl-5.10.1 
FOUND: sysstat 
FOUND: sqlite

Prerequisite check complete.
Checking for installable packages
Found zimbra-core
Found zimbra-ldap
Found zimbra-logger
Found zimbra-mta
Found zimbra-snmp
Found zimbra-store
Found zimbra-apache
Found zimbra-spell
Found zimbra-memcached
Found zimbra-proxy

Select the packages to install
Install zimbra-ldap [Y] Y
Install zimbra-logger [Y] Y
Install zimbra-mta [Y] Y
Install zimbra-snmp [Y] Y
Install zimbra-store [Y] Y
Install zimbra-apache [Y] Y
Install zimbra-spell [Y] Y
Install zimbra-memcached [N] Y
Install zimbra-proxy [N] Y
Checking required space for zimbra-core
Checking space for zimbra-store

The system will be modified.  Continue? [N] Y
Removing /opt/zimbra
Removing zimbra crontab entry...done.
Cleaning up zimbra init scripts...done.
Cleaning up /etc/
Cleaning up /etc/security/limits.conf...done.
Finished removing Zimbra Collaboration Server.

Installing packages
Operations logged to /tmp/zmsetup.12152013-081656.log
Installing LDAP configuration database...done.

Setting defaults...
DNS ERROR resolving MX for
It is suggested that the domain name have an MX record configured in DNS
Change domain name? [Yes] Yes
Create domain: []                                            
MX: ( 
Interface: 2a00:1a48:7807:102:c7d4:45f6:ff08:2209
Interface: ::1

Step:6 Next you will come to the Main Menu which will show your configuration. Select #3 then change the Admin Password under option #4 next hit r to go back.

*** 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.10975] 
Saving config in /opt/zimbra/config.10975...done.
The system will be modified - continue? [No] Yes
Operations logged to /tmp/zmsetup.12152013-081656.log
Setting local config values...

When Configuration complete – press return to exit. Now the zimbra installation is completed.

Step:7 Access web administration console

Use the URL ‘https://<Server’s HostName>:7071′

In my case URL is “”

Use the User Name as admin and Password that we have set while installation in the above steps.


After entering the credential, we will get the below Admin Console from where mail admin can monitor and can perform the tasks like creating users a, setting quota for users & reset their password & much more…


Step:8 End Users can access their mails via Web

Use the the URL “”, replace the hostname according to your setup. After entering the  the credentials, end users will get the below console from where they can send & receive emails.


Note : Use zmcontrol Command to  stop, start & to check Status of zimbra Server

[root@zimbra ~]# su - zimbra 
[zimbra@zimbra ~]$ zmcontrol status
[zimbra@zimbra ~]$ zmcontrol stop
[zimbra@zimbra ~]$ zmcontrol start

Free Download Linux e-Books

You may also like...

14 Responses

  1. Prakash says:

    I am setting up a server for mailing.
    Zimbra on Cent OS 6.6

    Everything went well while installing.
    And all services running fine., I am able to login to webmail., and admin page.

    but I am unable to send or receive email.

    Even i tried using IP address in SMTP and POP.

    Will PTR record causing this. Because I just got it configured from our ISP.

    I got the mx record updated. When I check in it shows reverse DNS does not match SMTP banner.

    but when I am trying with IP address I should be able to send and receive mails.. right.?
    am I missing anything.? Please let me know how can I address this.
    I did check via Telnet for port 25

    I am able to get “220 ESMTP Postfix” for port 25
    and for 110 ” +OK Zimbra POP3 server ready”

    iptables is off.

    But still unable to send and receive emails.
    I configured Outlook using SSL Ports (995, 465). I am unable to telnet those ports.

    And, while installing zimbra, i disabled postfix. Is that required?
    I disabled postfix by by seeing a guide online.

  2. SACHIN says:

    In step 5 i got this error

    “zimbra-core-8.0.4_GA_5737.RHEL6_64-20130524120036.x86_64.rpm installation failed”

  3. Prem says:


    if we have configured 2 zimbra email servers, how can we configure the failover for web users.
    means, if one server is down, then user request should automatically switched to secondary server.

  4. Rahul Jain says:

    I want to configure zimbra with a static ip to access world wide access, how to setup dns and other settings.

  5. Vaibhav says:


    mkdir /opt/zimbra/perl5: Permission denied at /usr/share/perl5/vendor_perl/local/ line 269

  6. mukseh says:

    its good post for configured done successfully working.

  7. kalyan says:

    Hi friends

    I have one issue after configuring zimbra mail server in linux 6.4. The issue is I have installed it in my vmware, I am able access my mailserver from my vmware firefox browser through ip and also host name, but i could not able to access my mailserver from another system in my network. And vmware network is in bridge connect with static ip. all the ports were open for ssh dns http/https imap pop smtp. and i have tried all the ways from client machines. Could any one help me in figuring this out.

  8. Prince says:


    I have installed the server as per guide successfully but at the end. when i am trying to access the web on this link :

    its not working, everything went smooth at the time of installation without error, i don’t know what to do in this situation. 😐

    Please help me – you can also email me at

  9. pratap says:

    send me errer screen

  10. Rahul Yadav says:

    i have install and configured zimbra server and one domain created in server , i am able to send email to other domain but i am not able to receive emails from local and other domain ?
    pl. help me

Leave a Reply

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