
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
1.vi /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
ONBOOT=yes
NM_CONTROLLED=no
BOOTPROTO=none
NETMASK=255.255.255.0
IPADDR=192.168.80.91
GATEWAY=192.168.80.11
DNS1=192.168.80.91
DNS2=192.168.80.11
USERCTL=no
DNS3=8.8.8.8
#Restart network service and setup for automatic boot
1.service network restart
2.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.
1.setenforce 0
2.service iptables stop
3.service ip6tables stop
4.chkconfig iptables off
5.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
1.hostname mail.imanudin.net
2.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
1.service sendmail stop
2.service postfix stop
3.chkconfig sendmail off
4.chkconfig postfix off
# Update repo and install packages dependencies needed by Zimbra
1.yum update
2.yum -y install perl perl-core wget screenw3m elinks openssh-clients openssh-server bind bind-utils unzip nmap sednc 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;
allow-update { none; };
file "db.imanudin.net"; };
Create database for a new zone who has been created in folder /var/named/
1.touch /var/named/db.imanudin.net
2.chgrp named /var/named/db.imanudin.net
3.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
3H ) ; minimum
1W ; expire
@ IN NS ns1.imanudin.net.
mail IN A 192.168.80.91
@ IN MX 0 mail.imanudin.net.
ns1 IN A 192.168.80.91
# Restart Service & Check results configuration of DNS Server
1.service named restart
2.chkconfig named on
3.nslookup mail.imanudin.net
4.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
Name: mail.imanudin.net
Address: 192.168.80.91#53
Address: 192.168.26.11
Preparation for install Zimbra has been finished. Now we can install zimbra and will explained on part 2
Good luck and hopefully useful
Blogger Comment
Facebook Comment