How To Install Zimbra 8.5.0 on CentOS 7 Part 1

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.26.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.26.11
NETMASK=255.255.255.0
DNS1=192.168.26.11
GATEWAY=192.168.26.2
DNS2=192.168.26.2
USERCTL=no
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, ip6tables and firewalld.

1.setenforce 0
2.service firewalld stop
3.service iptables stop
4.service ip6tables stop
5.systemctl disable firewalld
6.systemctl disable iptables
7.systemctl disable ip6tables
# Configure /etc/hosts, /etc/resolv.conf and hostname
Open file /etc/hosts and configure as follows
 
127.0.0.1     localhost
192.168.26.11 mail.imanudin.net mail
Open file /etc/resolv.conf and configure as follows
 
search imanudin.net
nameserver 192.168.26.11
nameserver 192.168.26.2
nameserver 8.8.8.8
Do the following command as root

1.hostname mail.imanudin.net
2.echo "HOSTNAME=mail.imanudin.net" >> /etc/sysconfig/network

# Disable service sendmail or postfix
Do the following command as root

1.service sendmail stop
2.service postfix stop
3.systemctl disable sendmail
4.systemctl disable postfix

# Update repo and install package dependency by Zimbra

1.yum update
2.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 machine of 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 on the bottom of file named.conf as follows
 
zone "imanudin.net" IN {
type master;
file "db.imanudin.net";
allow-update { none; };
};

Create database for new zone has been created on 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
                                        1W      ; expire
                                        3H )    ; minimum
@       IN      NS      ns1.imanudin.net.
@       IN      MX      0 mail.imanudin.net.
ns1     IN      A       192.168.26.11
mail    IN      A       192.168.26.11

# Restart Service & Check results configuring DNS Server

1.service named restart
2.systemctl enable named
3.nslookup mail.imanudin.net
4.dig imanudin.net mx

If results from above command as follows, your configuration dns has been success
 
[root@mail opt]# nslookup mail.imanudin.net
Server:         192.168.26.11
Address:        192.168.26.11#53
Name: mail.imanudin.net
Address: 192.168.26.11
dns-imanudin.net
Preparation for install Zimbra has been finished. Now we can install zimbra and will explained on next section.
Good luck and hopefully useful

Nhận xét

Bài đăng phổ biến từ blog này

CLEANING UP THE ZABBIX DATABASE

Configuring DHCP Relay service on the FortiGate unit

Stuxnet Trojan - Memory Forensics with Volatility | Part I