Zimbra Installation on centos 6.5
Zimbra Collaboration Suite (ZCS) is a groupware product created by
Zimbra, Inc. Zimbra email is one of the popular open source email in the
world. Before we start installing ZCS email software, please make sure
that all the prerequisites has been configured and installed. This post
will describe the steps to setup Zimbra Collaboration Suite (ZCS) 8.0.3
Mail Server open source edition on CentOS 6.4 64 bit. ZCS 8.0.3 only
released the 64 bit version for Redhat Linux Enteprise 6 (RHEL6) or
CentOS 6 operating system
1. Disabled SELINUX :
[root@centos64 ~]# vi /etc/sysconfig/selinux
# This file controls the state of SELinux on the system. # SELINUX= can take one of these three values: # enforcing - SELinux security policy is enforced. # permissive - SELinux prints warnings instead of enforcing. # disabled - No SELinux policy is loaded. SELINUX=disabled # SELINUXTYPE= can take one of these two values: # targeted - Targeted processes are protected, # mls - Multi Level Security protection. SELINUXTYPE=targeted2. Configure /etc/hosts and hostname :
[root@mail ~]# cat /etc/hosts
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4 ::1 localhost localhost.localdomain localhost6 localhost6.localdomain6 192.168.2.104 mail.example.local mail
[root@mail ~]# hostname mail.example.local3. Stop sendmail, postfix or any MTA service :
[root@mail ~]# service postfix stop [root@mail ~]# chkconfig postfix off [root@mail ~]# service sendmail stop [root@mail ~]# chkconfig sendmail off4. Install the required packages and libraries using the following command :
[root@mail ~]# yum install nc sudo libidn gmp libstdc++ perl sysstat sqlite -y5. Prepare DNS setup for your mail domain. MX record is mandotary in this setup :
Configure named.conf file to fit your DNS requirement :
/var/named/chroot/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.104; }; 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; }; recursion yes; dnssec-enable yes; dnssec-validation yes; dnssec-lookaside auto; /* Path to ISC DLV key */ bindkeys-file "/etc/named.iscdlv.key"; managed-keys-directory "/var/named/dynamic"; }; logging { channel default_debug { file "data/named.run"; severity dynamic; }; }; zone "." IN { type hint; file "named.ca"; }; zone "example.local" { type master; file "example.local.zone"; }; zone "2.168.192.in-addr.arpa" IN { type master; file "192.168.2.zone"; }; include "/etc/named.rfc1912.zones"; include "/etc/named.root.key";Prepare forward zone :
/var/named/chroot/var/named/example.local.zone
; ; Addresses and other host information. ; @ IN SOA example.local. hostmaster.example.local. ( 2013042301 ; Serial 43200 ; Refresh 3600 ; Retry 3600000 ; Expire 2592000 ) ; Minimum ; Define the nameservers and the mail servers IN NS ns1.example.local. IN A 192.168.2.104 IN MX 10 mail.example.local. centos64 IN A 192.168.2.104 mail IN A 192.168.2.104 ns1 IN A 192.168.2.104Prepare the reverse zone :
/var/named/chroot/var/named/192.168.2.zone
; ; Addresses and other host information. ; @ IN SOA example.local. hostmaster.example.local. ( 2013042301 ; Serial 43200 ; Refresh 3600 ; Retry 3600000 ; Expire 2592000 ) ; Minimum 2.168.192.in-addr.arpa. IN NS centos64.example.local. 104.2.168.192.in-addr.arpa. IN PTR mail.example.local. 104.2.168.192.in-addr.arpa. IN PTR ns1.example.local.6. Test the DNS :
[root@mail ~]# host -t mx example.local example.local mail is handled by 10 mail.example.local. [root@mail ~]# host -t ns example.local example.local name server ns1.example.local.
7. Download Zimbra Collaboration Suite 8.0.3 from zimbra official website :
[root@mail ~]# http://files2.zimbra.com/downloads/8.0.3_GA/zcs-8.0.3_GA_5664.RHEL6_64.20130305090204.tgz
8. Extract Zimbra Collaboration Suite 8.0.3 :
[root@mail ~]# tar xzvf zcs-8.0.3_GA_5664.RHEL6_64.20130305090204.tgz
[root@mail ~]# cd zcs-8.0.3_GA_5664.RHEL6_64.20130305090204
9. Start the Zimbra Collaboration Suite 8.0.1 installation :
[root@mail zcs-8.0.3_GA_5664.RHEL6_64.20130305090204]# ./install.sh --platform-override
/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.3_GA_5664.RHEL6_64-20130305090204.x86_64.rpm...done zimbra-ldap......zimbra-ldap-8.0.3_GA_5664.RHEL6_64-20130305090204.x86_64.rpm...done zimbra-logger......zimbra-logger-8.0.3_GA_5664.RHEL6_64-20130305090204.x86_64.rpm...done zimbra-mta......zimbra-mta-8.0.3_GA_5664.RHEL6_64-20130305090204.x86_64.rpm...done zimbra-snmp......zimbra-snmp-8.0.3_GA_5664.RHEL6_64-20130305090204.x86_64.rpm...done zimbra-store......zimbra-store-8.0.3_GA_5664.RHEL6_64-20130305090204.x86_64.rpm...done zimbra-apache......zimbra-apache-8.0.3_GA_5664.RHEL6_64-20130305090204.x86_64.rpm...done zimbra-spell......zimbra-spell-8.0.3_GA_5664.RHEL6_64-20130305090204.x86_64.rpm...done zimbra-memcached......zimbra-memcached-8.0.3_GA_5664.RHEL6_64-20130305090204.x86_64.rpm...done zimbra-proxy......zimbra-proxy-8.0.3_GA_5664.RHEL6_64-20130305090204.x86_64.rpm...
10. Start zimbra service :
[root@mail ~]# su - zimbra [zimbra@mail ~]$ zmcontrol start Host mail.example.local Starting zmconfigd...Done. Starting logger...Done. Starting mailbox...Done. Starting memcached...Done. Starting proxy...Done. Starting antispam...Done. Starting antivirus...Done. Starting snmp...Done. Starting spell...Done. Starting mta...Done. Starting stats...Done.11. Check status of zimbra service :
[zimbra@mail ~]$ zmcontrol status Host mail.example.local antispam Running antivirus Running ldap Running logger Running mailbox Running memcached Running mta Running proxy Running snmp Running spell Running stats Running zmconfigd Running
No comments:
Post a Comment