Friday, September 22, 2017

How to Install Zimbra in CentOS

# yum install epel-release
[root@localhost ~]# rm -rf /etc/localtime
[root@localhost ~]# cp /usr/share/zoneinfo/Asia/Kolkata /etc/localtime
[root@localhost ~]# date
Wed Aug  9 16:47:36 IST 2017

[root@localhost ~]# vi /etc/hosts
127.0.0.1               localhost
192.168.1.115           mail.boobi.com mail
#::1            localhost6.localdomain6 localhost6

[root@localhost ~]# vi /etc/sysconfig/network
NETWORKING=yes
NETWORKING_IPV6=no
HOSTNAME=mail.boobi.com

[root@localhost ~]# reboot
[root@mail ~]# hostname
mail.boobi.com

[root@mail ~]# vi /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE="eth0"
TYPE="Ethernet"
BOOTPROTO="Static"
ONBOOT="Yes"
IPADDR=192.168.1.115
NETMASK=255.255.255.0
GATEWAY=192.168.1.100
DNS1=192.168.1.115
DNS2=192.168.1.100
DNS3=8.8.8.8
USERCTL=no
[root@mail ~]# /etc/init.d/network restart

[root@mail ~]# vi /etc/sysconfig/selinux
SELINUX=disabled

[root@mail ~]# setenforce 0
[root@mail ~]# service iptables stop
[root@mail ~]# chkconfig iptables off
[root@mail ~]# reboot

[root@mail ~]# vi /etc/resolv.conf
search boobi.com
nameserver 192.168.1.115
nameserver 192.168.1.100
nameserver 8.8.8.8

[root@mail ~]# service postfix stop
Shutting down postfix:                                     [  OK  ]
[root@mail ~]# yum remove postfix

[root@mail ~]# 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

[root@mail ~]# vi /etc/named.conf
listen-on port 53 { 127.0.0.1; any; };
allow-query     { localhost; any; };
.
.
zone "boobi.com" IN {
        type master;
        file "db.boobi.com";
        allow-update { none; };
};

[root@mail ~]# touch /var/named/db.boobi.com
[root@mail ~]# chgrp named /var/named/db.boobi.com
[root@mail ~]# vi /var/named/db.boobi.com
$TTL 1D
@       IN SOA  ns1.boobi.com. root.boobi.com. (
                                        0       ; serial
                                        1D      ; refresh
                                        1H      ; retry
                                        1W      ; expire
                                        3H )    ; minimum
@       IN      NS      ns1.boobi.com.
@       IN      MX      0 mail.boobi.com.
ns1     IN      A       192.168.1.115
mail    IN      A       192.168.1.115

[root@mail ~]# service named restart
Stopping named:                                            [  OK  ]
Generating /etc/rndc.key:                                  [  OK  ]
Starting named:                                            [  OK  ]
[root@mail ~]# chkconfig named on
[root@mail ~]# nslookup mail.boobi.com
Server:         192.168.1.115
Address:        192.168.1.115#53

Name:   mail.boobi.com
Address: 192.168.1.115

[root@mail ~]# dig boobi.com mx

; <<>> DiG 9.8.2rc1-RedHat-9.8.2-0.62.rc1.el6_9.4 <<>> boobi.com mx
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 53205
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 2

;; QUESTION SECTION:
;boobi.com.                     IN      MX

;; ANSWER SECTION:
boobi.com.              86400   IN      MX      0 mail.boobi.com.

;; AUTHORITY SECTION:
boobi.com.              86400   IN      NS      ns1.boobi.com.

;; ADDITIONAL SECTION:
mail.boobi.com.         86400   IN      A       192.168.1.115
ns1.boobi.com.          86400   IN      A       192.168.1.115

;; Query time: 1 msec
;; SERVER: 192.168.1.115#53(192.168.1.115)
;; WHEN: Wed Aug  9 17:22:00 2017
;; MSG SIZE  rcvd: 98

Download Link - https://www.zimbra.com/downloads/zimbra-collaboration-open-source/
[root@mail ~]# cd /opt/
[root@mail opt]# wget https://files.zimbra.com/downloads/8.7.11_GA/zcs-8.7.11_GA_1854.RHEL6_64.20170531151956.tgz
[root@mail opt]# tar -xzvf zcs-8.7.11_GA_1854.RHEL6_64.20170531151956.tgz
[root@mail opt]# cd zcs-8.7.11_GA_1854.RHEL6_64.20170531151956
[root@mail zcs-8.7.11_GA_1854.RHEL6_64.20170531151956]# ./install.sh
Do you agree with the terms of the software license agreement? [N] Y
.
.
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
zimbra-chat
zimbra-drive
.
.
Change domain name? [Yes] Yes
Create domain: [mail.boobi.com] boobi.com

Address unconfigured (**) items  (? - help) 6
.
Select, or 'r' for previous menu [r] 4
Password for admin@boobi.com password
.
Select, or 'r' for previous menu [r] r
*** 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
.
.
Finished installing common zimlets.
Restarting mailboxd...done.
Creating galsync account for default domain...done.

You have the option of notifying Zimbra of your installation.
This helps us to track the uptake of the Zimbra Collaboration Server.
The only information that will be transmitted is:
        The VERSION of zcs installed (8.7.11_GA_1854_RHEL6_64)
        The ADMIN EMAIL ADDRESS created (admin@boobi.com)

Notify Zimbra of your installation? [Yes] Yes
Notifying Zimbra of installation via http://www.zimbra.com/cgi-bin/notify.cgi?VER=8.7.11_GA_1854_RHEL6_64&MAIL=admin@boobi.com

Notification complete

Setting up zimbra crontab...done.


Moving /tmp/zmsetup.20170809-175859.log to /opt/zimbra/log


Configuration complete - press return to exit r
[root@mail zcs-8.7.11_GA_1854.RHEL6_64.20170531151956]#

now you can access our webmail https://192.168.1.115



[root@mail ~]# su - zimbra -c "zmcontrol status"
Host mail.boobi.com
        amavis                  Running
        antispam                Running
        antivirus               Running
        ldap                    Running
        logger                  Running
        mailbox                 Running
        memcached               Running
        mta                     Running
        opendkim                Running
        proxy                   Running
        service webapp          Running
        snmp                    Running
        spell                   Running
        stats                   Running
        zimbra webapp           Running
        zimbraAdmin webapp      Running
        zimlet webapp           Running
        zmconfigd               Running
[root@mail ~]# su - zimbra -c "zmcontrol stop"
[root@mail ~]# su - zimbra -c "zmcontrol start"

https://192.168.1.115:7071 for admin

No comments:

Post a Comment