- Advertisement -
Mythemeshop Ad
Mythemeshop Ad
Mythemeshop Ad

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

[php]Domain : vpshouse.pro
Hostname : mail
IP Address : 192.168.80.91
Gateway : 192.168.80.11[/php]

1. Configure Network

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

[php]# vi /etc/sysconfig/network-scripts/ifcfg-eth0

- Advertisement -
WHMCS Ad
WHMCS Ad
WHMCS Ad

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[/php]

Restart network service and setup for automatic boot

[php]# service network restart
# chkconfig network on[/php]

2. 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.

[php]# setenforce 0
# service iptables stop
# service ip6tables stop
# chkconfig iptables off
# chkconfig ip6tables off[/php]

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

Open file /etc/hosts and configure as follows

[php]127.0.0.1 localhost
192.168.80.91 mail.vpshouse.pro mail[/php]

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

[php]search vpshouse.pro
nameserver 192.168.80.91
nameserver 192.168.80.11
nameserver 8.8.8.8[/php]

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

[php]hostname mail.vpshouse.pro

# vi /etc/sysconfig/network[/php]

Change HOSTNAME so that like below:

[php]NETWORKING=yes
HOSTNAME=mail.vpshouse.pro[/php]

4. Disable service sendmail or postfix

Do the following command as root

[php]# service sendmail stop
# service postfix stop
# chkconfig sendmail off
# chkconfig postfix off[/php]

5. Update repo and install packages dependencies needed by Zimbra

[php]# 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[/php]

6. 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

[php]listen-on port 53 { 127.0.0.1; any; };
allow-query { localhost; any; };[/php]

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

[php]zone “vpshouse.pro” IN {
type master;
file “db.vpshouse.pro”;
allow-update { none; };
};[/php]

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

[php]# touch /var/named/db.vpshouse.pro
# chgrp named /var/named/db.vpshouse.pro
# vi /var/named/db.vpshouse.pro[/php]

fill as follows

[php]$TTL 1D
@ IN SOA ns1.vpshouse.pro. root.vpshouse.pro. (
0 ; serial
1D ; refresh
1H ; retry
1W ; expire
3H ) ; minimum
@ IN NS ns1.vpshouse.pro.
@ IN MX 0 mail.vpshouse.pro.
ns1 IN A 192.168.80.91
mail IN A 192.168.80.91[/php]

7. Restart Service & Check results configuration of DNS Server

[php]# service named restart
# chkconfig named on
# nslookup mail.vpshouse.pro
# dig vpshouse.pro mx[/php]

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

[php][root@mail opt]# nslookup mail.vpshouse.pro
Server: 192.168.80.91
Address: 192.168.80.91#53
Name: mail.vpshouse.pro
Address: 192.168.26.11[/php]

8. Install Zimbra Right Now

We can download Zimbra Binary from this link http://www.zimbra.com/downloads/zimbra-collaboration-open-source.

[php]# cd /opt/
# wget -c https://files.zimbra.com/downloads/8.6.0_GA/zcs-8.6.0_GA_1153.RHEL6_64.20141215151155.tgz[/php]

After finished download, extract Zimbra, move into folder result of extract and install Zimbra

[php]# tar -zxvf zcs-8.6.0_GA_1153.RHEL6_64.20141215151155.tgz
# cd zcs-8.6.0_GA_1153.RHEL6_64.20141215151155
# sh install.sh[/php]

type Y if asking license agreement

[php]Do you agree with the terms of the software license agreement? [N] Y[/php]

Select the packages that will be installed

[php]Install zimbra-ldap [Y] Y
Install zimbra-logger [Y] Y
Install zimbra-mta [Y] Y
Install zimbra-dnscache [Y] N
Install zimbra-snmp [Y] Y
Install zimbra-store [Y] Y
Install zimbra-apache [Y] Y
Install zimbra-spell [Y] Y
Install zimbra-memcached [Y] Y
Install zimbra-proxy [Y] Y[/php]

Type Y if asked The system will be modified. Continue?

If you get message like below, press enter or type Yes and change domain name

[php]DNS ERROR resolving MX for mail.vpshouse.pro
It is suggested that the domain name have an MX record configured in DNS
Change domain name? [Yes] Yes
Create domain: [mail.vpshouse.pro] vpshouse.pro[/php]

If you not change domain name on above section, your domain name will become mail.imanudin.net and email of account will become user@mail.imanudin.net. Type 6 and then press key enter to change password of admin account and type again 4 and then press key enter. Insert your password that you want.

[php] 1) Common Configuration:
2) zimbra-ldap: Enabled
3) zimbra-logger: Enabled
4) zimbra-mta: Enabled
5) zimbra-snmp: Enabled
6) zimbra-store: Enabled
+Create Admin User: yes
+Admin user to create: admin@vpshouse.pro
******* +Admin Password UNSET
+Anti-virus quarantine user: virus-quarantine.dgnsq8ewc@vpshouse.pro
……
……
Address unconfigured (**) items (? – help) 6
Store configuration

1) Status: Enabled
2) Create Admin User: yes
3) Admin user to create: admin@vpshouse.pro
** 4) Admin Password UNSET
5) Anti-virus quarantine user: virus-quarantine.dgnsq8ewc@vpshouse.pro
……
……
Select, or ‘r’ for previous menu [r] 4

Password for admin@vpshouse.pro (min 6 characters): [s8eNUeOms] Ierys8Er3t[/php]

After insert password, Select, or ‘r’ for previous menu. If all has been configured, apply configuration and wait a moment until zimbra finished install

[php]*** 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.24648]
Saving config in /opt/zimbra/config.24648…done.
The system will be modified – continue? [No] Yes
Operations logged to /tmp/zmsetup10052014-214606.log[/php]

Type Yes if asked Notify Zimbra of your installation? and if has been appeared Configuration complete – press return to exit, your zimbra installation has been finished. Check Zimbra status with this command su – zimbra -c “zmcontrol status” and make sure all service running well. You can also trying access webmail via browser at url https://ZimbraServer

zimbra-8-webmail

- Advertisement -
Ting.com Ad
Ting.com Ad
Ting.com Ad