Zimbra Mail Installation Steps


Zimbra is associate degree enterprise-class email, calendar and collaboration resolution, designed for the cloud, each public and personal. With a redesigned browser-based interface, Zimbra offers the foremost innovative electronic communication expertise on the market these days, connecting finish users to the knowledge and activity in their personal clouds.  Allow us to see the installation steps of Zimbra Mail one by one.


Step 1:  BIND name server installation and configuration

Step 2: Zimbra community edition, download & install on centos

Step 3: Zimbra webmail and admin access

Let us see the steps in details:

Step : 1  BIND name server installation and configuration

Name server installation and configuration guide has prepare on following platform and services.

Platform / Services Package
Operating System CentOS release 6.4 (Final) 64bit
Domain demo.com
Name Server  ns1.demo.com
MX record mail.demo.com
IP Address
Authentication Type Native


Dependencies Description
OS Centos / Redhat (Virtual / Physical)
Packages bind-libs-9.8.2-.17.rc1.el6_4.6.x86_64,bind-9.8.2-0.17.rc1.el6_4.6.x86_64,bind-utils-9.8.2-0.17.rc1.el6_4.6.x86_64

Login as root user to zimbra node

 [root@localhost ~]# cat  /etc/redhat-release


[root@localhost ~]# ifconfig


[root@localhost ~]#

Install bind.x86_64 32:9.8.2-0.17.rc1.el6_4.6 from repository using yum command line utility

[root@localhost ~]# yum install bind

Dependencies Resolved

========================================================================== Package          Arch        Version                              Repository      Size              ========================================================================== Installing:

bind             x86_64      32:9.8.2-0.17.rc1.el6_4.6         base        4.0 M

Installing for dependencies:

portreserve      x86_64      0.0.4-9.el6                              base               23 k

Updating for dependencies:

bind-libs        x86_64      32:9.8.2-0.17.rc1.el6_4.6         base      878 k

bind-utils       x86_64      32:9.8.2-0.17.rc1.el6_4.6         base      182 k

Transaction Summary ==========================================================================

Install       2 Package(s) Upgrade       2 Package(s)

Total download size: 5.0 M

Is this ok [y/N]:y

1.1  Modify hostname as mail.demo.com     in (/etc/sysconfig/network)

[root@localhost ~]# vi /etc/sysconfig/network


Save & Exit (:wq)

1.2 Add host entry mail.demo.com    in (/etc/hosts)

 [root@localhost ~]# vi /etc/hosts   localhost localhost.localdomain localhost4 localhost4.localdomain4

::1         localhost localhost.localdomain localhost6 localhost6.localdomain6 mail.solutionatexperts.com mail ns1.demo.com

Save & Exit (:wq!)

1.3 Add name server IP address in (/etc/resolv.conf)

 [root@localhost ~]# vi /etc/resolv.conf

; generated by /sbin/dhclient-script

search demo.com


Save & Exit (:wq!)

1.4  Bind name service configuration

Edit named.conf file located in /etc/named.conf

 [root@localhost ~] #vi /etc/named.conf
options {
 listen-on port 53 {;; };
 listen-on-v6 port 53 { ::1; };
 directory       "/var/named";
 dump-file       "/var/named/data/cache_dump.db";
 statistics-file "/var/named/data/named_stats.txt";
 memstatistics-file "/var/named/data/named_mem_stats.txt";
 allow-query     { localhost; };
 recursion yes;
 dnssec-enable yes;
 dnssec-validation yes;
 dnssec-lookaside auto;
/* Path to ISC DLV key */
 bindkeys-file "/etc/named.iscdlv.key";
 managed-keys-directory "/var/named/dynamic";
logging {
 channel default_debug {
 file "data/named.run";
 severity dynamic;
 zone "." IN {
 type hint;
 file "named.ca";
 zone "demo.com" in {
 type master;
 file "fwd.demo.com";
 allow-update {none;};
 zone "0.168.192.in-addr.arpa" in {
 type master;
 file "0.168.192.in-addr.arpa";
 allow-update {none;};
 include "/etc/named.rfc1912.zones";
 include "/etc/named.root.key";

Save & Exit (:wq!)

[root@localhost ~]#cd  /var/named/


[root@localhost named]# pwd


1.5  Create a file and add the following

 [root@localhost named]#vi fwd.demo.com
$ORIGIN demo.com.
 $TTL 1d
 @ IN SOA ns1.demo.com.  support.demo.com. (
 2010031500 ; se = serial number
 3h ; ref = refresh
 15m ; ret = update retry
 3w ; ex = expiry
 3h ; min = minimum
 IN NS ns1
 IN MX 10 mail.demo.com.
ns1 IN A
 mail IN A

Save & Exit (:wq!)

[root@localhost named]# vi 0.168.192.in-addr.arpa 
@ IN SOA ns1.demo.com. support.solutionsatexperts. (
 2010031500 ; se = serial number
 3h ; ref = refresh
 15m ; ret = update retry
 3w ; ex = expiry
 3h ; min = minimum
IN NS ns1.demo.com.
161 IN PTR ns1.demo.com.
 25 IN PTR mail.demo.com.

Save & Exit (:wq!)

[root@localhost named] # service named  start


[root@localhost named] # dig  demo.com


[root@localhost named] # dig mx demo.com


[root@localhost named] # nslookup


[root@localhost named] # ping  mail.demo.com


Step : 2 Zimbra community edition,  download & install on centos

Packages :  sysstat gmp perl libstdc++.i686 nc wget nano

Install dependency packages

[root@localhost ~]#yum install sysstat gmp perl libstdc++.i686 nc wget nano


2.1  Disable  SELINUX Firewall

[root@localhost ~]#vi  /etc/selinux/config
# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
 #       enforcing - SELinux security policy is enforced.
 #       permissive - SELinux prints warnings instead of enforcing.
 #       disabled - SELinux is fully disabled.
 # SELINUXTYPE= type of policy in use. Possible values are:
 #       targeted - Only targeted network daemons are protected.
 #       strict - Full SELinux protection.

Save & Exit (: wq!)

2.2  Comment out  #Defaults  requiretty  in (/etc/sudoers).

 [root@localhost ~]#vi /etc/sudoers
# Defaults specification
# Disable "ssh hostname sudo <cmd>", because it will show the password in clear.
 #         You have to run "ssh -t hostname sudo <cmd>".
 #Defaults    requiretty

Save & Exit (: wq!)

2.3  Reboot the node  in order to effect selinux configuration

 [root@localhost ~]#reboot

2.4  Stop following services

[root@localhost ~]#chkconfig sendmail off
[root@localhost ~]#service sendmail stop
[root@localhost ~]#chkconfig postfix off
[root@localhost ~]#service postfix stop
[root@localhost ~]#chkconfig httpd off
[root@localhost ~]#service httpd stop

2.5   Add host name entry in (/etc/hosts)

[root@localhost ~]#vi /etc/hosts mail.demo.com mail

Save & Exit (:wq!)

2.6   Download Zimbra open source edition source package

 [root@localhost ~]#cd  /var/opt
 [root@localhost  opt] # wget http://files2.zimbra.com/downloads/8.0.6_GA/zcs-8.0.6_GA_5922.RHEL6_64.20131203103705.tgz


If you got dns error resolve public domains , modify by adding dns entry/etc/resolv.conf


2.7  Extract the downloaded file

 [root@localhost opt ] # tar -zxvf zcs-8.0.6_GA_5922.RHEL6_64.20131203103705.tgz

2.8  Rename from long folder name to shorter

[root@localhost opt ] # mv zcs-8.0.6_GA_5922.RHEL6_64.20131203103705 zcs

2.9  Switch to zcs folder

[root@localhost  opt] # cd zcs
 [root@localhost  zcs]#./install.sh –platform-override
 [root@localhost  zcs]# service zimbra status


Step 3: Zimbra webmail and admin access

3.1 Go to your etc folder and check hosts.


3.2 Open hosts and add  mail.demo.com


3.3 Open browser and Enter at URL:




For more Details you catch the video:



Leave a Reply

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

6 + 3 =