How To Install Zimbra 8.6 on CentOS 6 Part 1

Home » Zimbra » How To Install Zimbra 8.6 on CentOS 6 Part 1
Zimbra 49 Comments

Usually, i am always using SUSE Linux Enterprise Server as operating system for Zimbra Mail Server. But, starting from Zimbra 9.x.x, SLES has been deprecated (end of life) and may be will not supported by Zimbra. Therefore, i attempt to using CentOS as operating system for Zimbra. For easy understanding, this is my information system

Domain     : imanudin.net
Hostname   : mail
IP Address : 192.168.80.91
Gateway    : 192.168.80.11

# Configure Network

First, we must configure network on CentOS. Assuming name of your network interface is eth0

vi /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
ONBOOT=yes
NM_CONTROLLED=no
BOOTPROTO=none
IPADDR=192.168.80.91
NETMASK=255.255.255.0
DNS1=192.168.80.91
GATEWAY=192.168.80.11
DNS2=192.168.80.11
DNS3=8.8.8.8
USERCTL=no

Restart network service and setup for automatic boot

service network restart
chkconfig network on

# Configure Disable Selinux & Firewall

Open file /etc/sysconfig/selinux and change SELINUX=enforcing become SELINUX=disabled. Also disable some service such as iptables and ip6tables.

setenforce 0
service iptables stop
service ip6tables stop
chkconfig iptables off
chkconfig ip6tables off

# Configure /etc/hosts, /etc/resolv.conf and hostname

Open file /etc/hosts and configure as follows

127.0.0.1     localhost
192.168.80.91 mail.imanudin.net mail

Open file /etc/resolv.conf and configure as follows

search imanudin.net
nameserver 192.168.80.91
nameserver 192.168.80.11
nameserver 8.8.8.8

Do the following command as root and open file /etc/sysconfig/network to change hostname to the name mail.imanudin.net

hostname mail.imanudin.net
vi /etc/sysconfig/network

Change HOSTNAME so that like below :

NETWORKING=yes
HOSTNAME=mail.imanudin.net

# Disable service sendmail or postfix

Do the following command as root

service sendmail stop
service postfix stop
chkconfig sendmail off
chkconfig postfix off

# Update repo and install packages dependencies needed by Zimbra

yum update
yum -y install perl perl-core wget screen w3m elinks openssh-clients openssh-server bind bind-utils unzip nmap sed nc sysstat libaio rsync telnet aspell

# Configure local DNS Server

Zimbra needed lookup to MX records on domain that used. For that purpose, we can configure dns server on the same machine with Zimbra mail server

Open file /etc/named.conf and add any on listen-on port 53 and allow-query as follows

listen-on port 53 { 127.0.0.1; any; };
allow-query     { localhost; any; };

Create a zone at the bottom of file named.conf as follows

zone "imanudin.net" IN {
type master;
file "db.imanudin.net";
allow-update { none; };
};

Create database for a new zone who has been created in folder /var/named/

touch /var/named/db.imanudin.net
chgrp named /var/named/db.imanudin.net
vi /var/named/db.imanudin.net

fill as follows

$TTL 1D
@       IN SOA  ns1.imanudin.net. root.imanudin.net. (
                                        0       ; serial
                                        1D      ; refresh
                                        1H      ; retry
                                        1W      ; expire
                                        3H )    ; minimum
@       IN      NS      ns1.imanudin.net.
@       IN      MX      0 mail.imanudin.net.
ns1     IN      A       192.168.80.91
mail    IN      A       192.168.80.91

# Restart Service & Check results configuration of DNS Server

service named restart
chkconfig named on
nslookup mail.imanudin.net
dig imanudin.net mx

If results from above command like follows, your dns configuration has been success

[root@mail opt]# nslookup mail.imanudin.net
Server:         192.168.80.91
Address:        192.168.80.91#53
Name: mail.imanudin.net
Address: 192.168.80.91

Preparation for install Zimbra has been finished. Now we can install zimbra and will explained on part 2 😀

Good luck and hopefully useful 😀

Let’s See the Video on Youtube

49 thoughts on - How To Install Zimbra 8.6 on CentOS 6 Part 1

LEAVE A COMMENT