Tuesday, 28 February 2017

Zimbra Mail Server Install configuration on CentOS and RHEL Step By Step

1.Zimbra Mail Server Install and configuration on CentOS and RHEL Step By Step The Free Email Server Zimbra is a best solution in which Calendar and the collaboration solution,for the both private and public cloud. And It is also considered an Exchange mail server replacement. On the Zimbra it is used to provides a web base GUI-Graphical User Interface from where mailserver. admin user can used to managing zimbra mail server.

Its provide end users with a feature rich secure browser based experience connect to their emails on any platform or device. Require Packages that is for setup of DNS and Zimbra Mail server. # yum install nc wget nano bind* make nc sudo sysstat libtool-ltdl glibc perl ntp -y Download
the Zimbra from Zimbra web page: # cd /opt/ # wget

https://files.zimbra.com/downloads/8.6.0_GA/zcs8.6.0_GA_1153.RHEL6_64.20141215151155.tgz Disable the SELINUX on Host Machine: # vi /etc/sysconfig/selinux #
This file controls the state of SELinux on the system. # SELINUX= can take only SELINUX=disabled # SELINUXTYPE=it can take only one of
these two values one of these three values: # enforcing SELinux securities policy is to be enforced. # permissive SELinux prints the warnings were instead of enforcing. # disabled  No SELinux policy is loaded. SELINUX=disabled # SELINUXTYPE= it can take one of these two values: # targeted Target that is processes are protected, # mls  Multi Level Securities that is tp protection.

SELINUXTYPE=targeted Disable unused packages on host machine: service postfix stop; service sendmail stop; chkconfig postfix off; chkconfig sendmail off; chkconfig named on; chkconfig zimbra on; chkconfig network on; Create NS & MX record for Zimbra using these steps:

Steps 1: 

Configuring host machine static IP address: # vi /etc/sysconfig/network-scripts/ifcfg-eth0 EVICE=eth0 BOOTPROTO=none NM_CONTROLLED=yes ONBOOT=yes TYPE=Ethernet DEFROUTE=yes PEERROUTES=yes IPV4_FAILURE_FATAL=yes IPV6INIT=no NAME= System eth0 IPADDR=192.168.2.144 NETMASK=255.255.255.0 DNS1=192.168.2.144 USERCTL=no

Step 2: 

Make entry into the host for resolved the DNS: # vi /etc/hosts 192.168.2.144 demo.serverlinux.in demo

Step 3: 

For Configuring a permanent host name:

Step 4: 

# vi /etc/sysconfig/network NETWORKING=yes HOSTNAME=demo.serverlinux.in DOMAIN=server linux.in

Step 5: 

Make the entry into these file to resolve hostname: # vi /etc/resolv.conf # Generated by NetworkManager search serverlinux.in nameserver 192.168.2.144

Step 6: 

Configure the DNS : # vi /etc/named.conf // // named.conf // // Provided by Red Hat bind package to configure the ISC BIND named(8) DNS // server as a caching only nameserver (as a localhost DNS resolver only). // // See /usr/share/doc/bind*/sample/ for example named configuration files. // options { listen-on port 53 { 127.0.0.1; 192.168.2.144; }; listen-on-v6 port 53 { ::1; }; directory oe/var/named ; dump-file oe/var/named/data/cache_dump.db ; statistics  file/var/named/data/named_stats.txt ; memstatistics-file oe/var/named/data/named_mem_stats.txt ; allow-query { any; }; recursion yes; dnssec-enable yes; dnssec-validation yes; dnssec lookaside auto; /* Path to ISC DLV key */ bindkeys-file oe/etc/named.iscdlv.key ; managed-keys-directory oe/var/named/dynamic ; }; logging { channel default_debug { file oedata/named.run ; severity dynamic; }; }; zone oe. IN { type hint; file oenamed.ca ; }; zone oeserverlinux.in IN { type master; file oef.zone ; allow-update { none; }; }; zone oe2.168.192.in-addr.arpa IN { type master; file oer.zone ; allow-update { none; }; }; include oe/etc/named.rfc1912.zones ; include oe/etc/named.root.key ;

Step 7: 

Configure the Zone file on host # cd /var/named/ #ll drwxr-x. 6 root named 4096 May 1 00:53 chroot drwxrwx.2 named named 4096 May 1 01:25 data drwxrwx—. 2 named named 4096 May 1 13:58 dynamic -rwr. 1 root named 262 May 1 01:23 f.zone -rw-r. 1 root named 2075 Apr 23 2014 named.ca -rw-r. 1 root named 152 Dec 15 2009 named.empty -rw-r. 1 root named 152 Jun 21 2007 named.localhost -rw-r. 1 root named 168 Dec 15 2009 named.loopback -rw-r. 1 root named 195 May 1 01:25 r.zone drwxrwx. 2 named named 4096 Mar 10 21:25 slaves

Step 8:

Configure forword zone file: # vi f.zone $TTL 1D @ IN SOA @ demo.serverlinux.in. ( 0 ; serial 1D ; refresh 1H ; retry 1W ; expire 3H ) ;minimum @ NS server linux.in. @ MX 0 demo.serverlinux.in. serverlinux.in. IN A 192.168.2.144 mail IN A 192.168.2.144

Step 9: 

Configure reverse zone file: # vi r.zone $TTL 1D @ IN SOA @ demo.serverlinux.in. ( 0 ; serial 1D ; refresh 1H ; retry 1W ; expire 3H ) ; minimum @ NS serverlinux.in. 144 PTR serverlinux.in. 144 PTR demo

Step 10: 

Restart service of DNS: # service named restart Stopping named: . [ OK ] Starting named: [ OK ]

Step 11: 

Check the DNS Working status: # hostname demo.serverlinux.in #hostname -f demo.serverlinux.in # host -t mx serverlinux.in serverlinux.in mail is handled by 0 demo.serverlinux.in. # dig serverlinux.in ; < <>> DiG 9.8.2rc1-RedHat-9.8.2-0.30.rc1.el6_6.2 < <>> serverlinux.in ;; global options: +cmd ;; Got answer: ;; ->>HEADER< <- opcode: QUERY, status: NOERROR, id: 44706 ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 0 ;; QUESTION SECTION: ;serverlinux.in. IN A ;; ANSWER SECTION: serverlinux.in. 86400 IN A 192.168.2.144 ;; AUTHORITY SECTION: serverlinux.in. 86400 IN NS serverlinux.in. ;; Query time: 0 msec ;; SERVER: 192.168.2.144#53(192.168.2.144) ;; WHEN: Fri May 1 15:01:51 2015 ;; MSG SIZE rcvd: 60 Note: If your DNS unable to resloved these then reboot host & after reboot check Step 5 entry

Step 12: 

Install the Zimbra mail server on host machine: Change the directory & unzip the download zimbra mail server pakages: # cd/opt/ # tar -zxpvf zcs-8.6.0_GA_1153.RHEL6_64.20141215151155.tgz # cd zcs-8.0.4_GA_5737.RHEL6_64.20130524120036

Step 13: 

To Run oe./install.sh platform-override for installallation option oe platform-override used because installation script make for Redhat Linux but we installing on CentOS 6.X host machine. # ./install.sh platform-override After run this we will get following: Operations logged to /tmp/install.log.2570 Checking for existing installation¦ zimbra-ldap¦NOT FOUND zimbralogger ¦NOT FOUND zimbra-mta¦NOT FOUND zimbra-snmp¦NOT FOUND zimbra-store¦NOT FOUND zimbraapache ¦NOT FOUND zimbra-spell¦NOT FOUND zimbra-convert d0¦NOT FOUND zimbra-memcached¦NOT FOUND zimbraproxy¦NOT FOUND zimbra-archiving¦NOT FOUND zimbra-cluster¦NOT FOUND zimbra-core¦NOT FOUND PLEASE READ THIS AGREEMENT CAREFULLY BEFORE USING THE SOFTWARE.

ZIMBRA, INC.. License Terms for the Zimbra Collaboration  Suite: http://www.zimbra.com/license/zimbra_public_eula_2.1.html Do you agree with the terms of the software license agreement? [N] Y Do you agree with the terms of the software license agreement? [N] Y License Terms for the Zimbra Collaboration Suite: http://www.zimbra.com/license/zimbra_public_eula_2.1.html Do you agree with the terms of the software license agreement? [N] Y Do you agree with the terms of the software license agreement? [N] Y Checking for prerequisites¦ FOUND: NPTL FOUND: nc-1.84-22 FOUND: sudo-1.8.6p3-12 FOUND: libidn-1.18-2 FOUND: gmp-4.3.1-7 FOUND: /usr/lib64/libstdc++.so.6 Checking for suggested prerequisites¦ FOUND: perl-5.10.1 FOUND: sysstat FOUND: sqlite Prerequisite check complete. Checking for installable packages Found zimbra-core Found zimbra-ldap Found zimbra-logger Found zimbra-mta Found zimbra-snmp Found zimbra-store Found zimbra-apache Found zimbra-spell Found zimbra-memcached Found zimbra-proxy Select the packages to install Install zimbra-ldap [Y] Y Install zimbra-logger [Y] Y Install zimbra-mta [Y] Y Install zimbra-snmp [Y] Y Install zimbra-store [Y] Y Install zimbraapache [Y] Y Install zimbra-spell [Y] Y Install zimbra-memcached [N] Y Install zimbra-proxy [N] Y Checking required space for zimbra core
Checking space for zimbra-store Installing: zimbra-core zimbra-ldap zimbra-logger zimbra-mta zimbra-snmp zimbra-store zimbra-apache zimbra-spell zimbra-memcached zimbra-proxy The system will be modified. Continue? [N] Y Removing /opt/zimbra Removing zimbra crontab entry¦done. Cleaning up zimbra init scripts¦done. Cleaning up /etc/ld.so.conf¦done. Cleaning up/etc/security/limits.conf¦done. Finished removing Zimbra Collaboration Server. Installing packages zimbra-core¦¦zimbra-core- 8.0.4_GA_5737.RHEL6_64-20130524120036.x86_64.rpm¦done zimbra-ldap¦¦zimbra-ldap-8.0.4_GA_5737.RHEL6_64-
20130524120036.x86_64.rpm¦done zimbra-logger¦¦zimbra-logger-8.0.4_GA_5737.RHEL6_64-
20130524120036.x86_64.rpm¦done zimbra-mta¦¦zimbra-mta-8.0.4_GA_5737.RHEL6_64-
20130524120036.x86_64.rpm¦done zimbra-snmp¦¦zimbra-snmp-8.0.4_GA_5737.RHEL6_64-
20130524120036.x86_64.rpm¦done zimbra-store¦¦zimbra-store-8.0.4_GA_5737.RHEL6_64-
20130524120036.x86_64.rpm¦done zimbra-apache¦¦zimbra-apache-8.0.4_GA_5737.RHEL6_64-
20130524120036.x86_64.rpm¦done zimbra-spell¦¦zimbra-spell-8.0.4_GA_5737.RHEL6_64-
20130524120036.x86_64.rpm¦done zimbra-memcached¦¦zimbra-memcached-8.0.4_GA_5737.RHEL6_64-
20130524120036.x86_64.rpm¦done zimbra-proxy¦¦zimbra-proxy-8.0.4_GA_5737.RHEL6_64-
20130524120036.x86_64.rpm¦done Operations logged to /tmp/zmsetup.12152013-081656.log 

Installing LDAP configuration
database¦done.

Setting defaults¦ DNS ERROR resolving MX for demo.serverlinux.in It is suggested that the domain name have an MX record configured in DNS Change domain name? [Yes] Yes Create domain: [demo.serverlinux.in] serverlinux.in MX: demo.serverlinux.in (192.168.2.144) Interface: 192.168.2.144 Interface: 2a00:1a48:7807:102:c7d4:45f6:ff08:2209 Interface: 192.168.2.144 Interface: 127.0.0.1 Interface: ::1 done.

Step 14:

Next Main Menu come on which show your configuration. Select #3 then change the Admin Password under option #4 next hit r to go back.

Step 15: 

After press a key from the keyboard. ***CONFIGURATION COMPLETE  press to apply Select from menu, or press  to apply config ( help) a Save configuration data to a file? [Yes] Yes Save config in file: [/opt/zimbra/config.10975] Saving config in/opt/zimbra/config.10975¦done.
The system will be modified continue? [No] Yes Operations logged to /tmp/zmsetup.12152013- 081656.log Setting local config values¦

Step 16: 

Restart these services: # service named restart # service zimbra restart