Home > English > Tutorials > How to install Zimbra 8 on Centos 6 (web mail)

How to install Zimbra 8 on Centos 6 (web mail)

I.Preparation

Vps installed with epel and remi repositories, reference link here Click here

Vps instaled with LAMP , reference link here Click here

1. Network configuration

# nano /etc/sysconfig/network-scripts/ifcfg-eth0

# Generated by SolusVM
DEVICE=eth0
BOOTPROTO=static
ONBOOT=yes
IPADDR=107.189.160.9
GATEWAY=107.189.160.1
NETMASK=255.255.255.192
DNS1=
107.189.160.9
DNS2=8.8.8.8

# service network restart

# chkconfig network on

2.  SELinux & Firewall Disabling configuration

# nano /etc/sysconfig/selinux 

SELINUX=disabled

# service iptables stop

# service ip6tables stop

# chkconfig iptables off

# chkconfig ip6tables off

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

# nano /etc/hosts

# Generated by SolusVM
127.0.0.1       localhost

107.189.160.9   mail.nguyenvietduc.net mail
 

# nano /etc/resolv.conf

# Generated by SolusVM
search
nguyenvietduc.net
nameserver 107.189.160.9
nameserver 8.8.8.8
 

Change hostname in  /etc/sysconfig/network

# nano /etc/sysconfig/network

# Generated by SolusVM
NETWORKING=yes
NETWORKING_IPV6=yes
IPV6_AUTOCONF=no
HOSTNAME=
mail.nguyenvietduc.net

Reboot the server

# reboot

4.Turn off sendmail and postfix services

# service sendmail stop

# service postfix stop

# chkconfig sendmail off 

# chkconfig postfix off

5. Needed calls setting

# yum -y install perl perl-core wget screenw3m elinks openssh-clients openssh-server bind bind-utils unzip nmap sednc sysstat libaio rsync telnet aspell nc

6. DNS Server Configuration

# nano /etc/named.conf

options {
        listen-on port 53 { 127.0.0.1;
any; };
        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;
any; };
        recursion yes;

 

Creat this part beneath the file named.conf as follows

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

 

Creat a folder and add group using permision

# touch /var/named/db.nguyenvietduc.net
# chgrp named /var/named/db.nguyenvietduc.net
# nano /var/named/db.nguyenvietduc.net

Creat this content

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

restart the service and test the result configuration of DNS Server

# service named restart
# chkconfig named on

Use nslookup and dig command to test

# nslookup mail.nguyenvietduc.net

Server:         107.189.160.9
Address:        107.189.160.9#53

Name:   mail.nguyenvietduc.net
Address: 107.189.160.9

 

# dig nguyenvietduc.net mx

; <<>> DiG 9.8.2rc1-RedHat-9.8.2-0.37.rc1.el6_7.6 <<>> nguyenvietduc.net mx
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 29090
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 2

;; QUESTION SECTION:
;nguyenvietduc.net.             IN      MX

;; ANSWER SECTION:
nguyenvietduc.net.      86400   IN      MX      0 mail.nguyenvietduc.net.

;; AUTHORITY SECTION:
nguyenvietduc.net.      86400   IN      NS      ns1.nguyenvietduc.net.

;; ADDITIONAL SECTION:
mail.nguyenvietduc.net. 86400   IN      A       107.189.160.9
ns1.nguyenvietduc.net.  86400   IN      A       107.189.160.9

;; Query time: 0 msec
;; SERVER: 107.189.160.9#53(107.189.160.9)
;; WHEN: Tue Mar 15 23:16:50 2016
;; MSG SIZE  rcvd: 106

 

II.Proceeding

Download zimbra installation files into opt folder

# cd /opt/

# wget -c https://files.zimbra.com/downloads/8.6.0_GA/zcs-8.6.0_GA_1153.RHEL6_64.20141215151155.tgz

Unzip zimbra installation files

# tar -zxvf zcs-8.6.0_GA_1153.RHEL6_64.20141215151155.tgz

# cd zcs-8.6.0_GA_1153.RHEL6_64.20141215151155

Run installing command to start install zimbra

# sh install.sh

Do you agree with the terms of the software license agreement? [N] y

type Y if requested system will be edited

Select the packages to install

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
Checking required space for zimbra-core
Checking space for zimbra-store
Checking required packages for zimbra-store
zimbra-store package check complete.

If you receive this notification press Enter or type Yes and rename the domain

If you don't change domain name, your domain name wl become mail.nguyenvietduc.net and your account email will become

[email protected]


DNS ERROR resolving MX for mail.nguyenvietduc.net
It is suggested that the domain name have an MX record configured in DNS
Change domain name? [Yes] 
yes
Create domain: [mail.nguyenvietduc.net] nguyenvietduc.net
        MX: mail.nguyenvietduc.net (107.189.160.9)

        Interface: 107.189.160.9
        Interface: 127.0.0.1
        Interface: ::1
done.

 

Select 6 and press Enter to change administration account's password and select 4 and then press enter. Enter the password that you want

Main menu

   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:                 [email protected]
******* +Admin Password                        UNSET
        +Anti-virus quarantine user:           [email protected]
        +Enable automated spam training:       yes
..........................

Address unconfigured (**) items  (? - help) 6

Store configuration

   1) Status:                                  Enabled
   2) Create Admin User:                       yes
   3) Admin user to create:                    [email protected]
** 4) Admin Password                           UNSET
   5) Anti-virus quarantine user:              [email protected]

...............

Select, or 'r' for previous menu [r] 4

Password for [email protected] (min 6 characters): [hkgAYdPKdu] password

After entering your password, press 'r' to back to the previous menu

Press 'a' to accept the selected cofiguration

Select Yes to save data file 

*** 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.24017]
Saving config in /opt/zimbra/config.24017...done.
The system will be modified - continue? [No] yes
Operations logged to /tmp/zmsetup03152016-221240.log
Setting local config values...done.
Initializing core config...Setting up CA...done.
Deploying CA to /opt/zimbra/conf/ca ...done.

 

 Your Zimbra installation is completed. You can visit https://ip-vps

 Check Zimbra status by commanding 

# su zimbra 

# zmcontrol status 

# zmcontrol restart 

Instructions to enter zimbra