Tuesday 7 June 2016

Zimbra Installation Method


Domain     : test.net
Hostname   : mail
IP Address : 192.168.80.91
Gateway    : 192.168.80.11 
 
vim /etc/sysconfig/network-scripts/ifcfg-eth0 
 
DEVICE=eth0
ONBOOT=yes
NM_CONTROLLED=no
BOOTPROTO=none
IPADDR=192.168.0.1
NETMASK=255.255.255.0
DNS1=192.168.0.1
GATEWAY=192.168.0.11
DNS2=192.168.0.11
DNS3=8.8.8.8
USERCTL=no
 
#service network restart
#chkconfig network on
 
 
Open file /etc/sysconfig/selinux and change SELINUX=enforcing become SELINUX=disabled
Also disable some service such as iptables and ip6tables.   
 
setenforce 0
service iptables stop
service ip6tables stop
chkconfig iptables off
chkconfig ip6tables off 
 
Open file /etc/hosts and configure as follows
 
127.0.0.1     localhost
192.168.80.91 mail.test.net mail
 
Open file /etc/resolv.conf and configure as follows
 
search test.net
nameserver 192.168.80.91
nameserver 192.168.80.11
nameserver 8.8.8.8
 
Do the following command as root and open file /etc/sysconfig/network 
to change hostname to the name mail.imanudin.net 
 
 
 

hostname mail.imanudin.net
 
#vi /etc/sysconfig/network 
 
NETWORKING=yes
HOSTNAME=mail.test.net
 
#service sendmail stop
#service postfix stop
#chkconfig sendmail off
#chkconfig postfix off 
 
#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 

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

listen-on port 53 { 127.0.0.1; any; };
allow-query     { localhost; any; };
 
Create a zone at the bottom of file named.conf as follows
 
zone "test.net" IN {
type master;
file "db.test.net";
allow-update { none; };
};
 
Create database for a new zone who has been created in folder /var/named/
 
#touch /var/named/db.test.net
#chgrp named /var/named/db.test.net
#vi /var/named/db.test.net 
 
fill as follows
 
$TTL 1D
@       IN SOA  ns1.test.net. root.test.net. (
                                        0       ; serial
                                        1D      ; refresh
                                        1H      ; retry
                                        1W      ; expire
                                        3H )    ; minimum
@       IN      NS      ns1.test.net.
@       IN      MX      0 mail.test.net.
ns1     IN      A       192.168.0.91
mail    IN      A       192.168.0.91
 
#service named restart
#chkconfig named on
#nslookup mail.test.net
#dig test.net mx 
 
After previously preparation for install Zimbra has been finished
we can install Zimbra right now. First, we can download Zimbra 
Binary from this link http://www.zimbra.com/downloads/zimbra-collaboration-open-source or 
if you are in Indonesia region,you can download at the following link http://mirror.linux.or.id/zimbra/binary/

 
#cd /opt/
#wget -c https://files.zimbra.com/downloads/8.6.0_GA/zcs-8.6.0_GA_1153.RHEL6_64.20141215151155.tgz 
 
After finished download, extract Zimbra, move into folder result of extract and install Zimbra
 
#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 
 
type Y if asking license agreement
 
Do you agree with the terms of the software license agreement? [N] Y
 
Select the packages that will be installed
 
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 - if your using for public, otherwise give N
 
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

DNS ERROR resolving MX for mail.test.net
It is suggested that the domain name have an MX record configured in DNS
Change domain name? [Yes] Yes
Create domain: [mail.test.net] test.net
 
if you not change domain name on above section, your domain name will become mail.test.net 
and email of account will become user@mail.test.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 

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@test.net            
******* +Admin Password                        UNSET                         
        +Anti-virus quarantine user:           virus-quarantine.dgnsq8ewc@test.net
......
......
Address unconfigured (**) items  (? - help) 6
Store configuration

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

Password for admin@test.net (min 6 characters): [s8eNUeOms] Verys3cr3t
 
After insert password, Select, or ‘r’ for previous menu. If all has been
 configured, apply configuration and wait a moment until zimbra finished
 install
 
*** 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
 
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 



  
 
 

No comments:

Post a Comment

Permanent hostname setup for RHEL7

Step 1 Set the host name on NMTUI tool like following nmtui set host name   then save and exit Step 2 add the following l...