Pages

Monday 27 November 2017

Amavishd-new, ClamAV, Spam with postfix

How to Install Amavishd-new, ClamAV, Spam with postfix

# Enable the RPMForge Repo

[root@server ~]# wget http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el6.rf.x86_64.rpm
[root@server ~]# rpm -ivh rpmforge-release-0.5.3-1.el6.rf.x86_64.rpm

[root@server ~]# yum repolist
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
* base: mirrors.ispros.com.bd
* epel: kartolo.sby.datautama.net.id
* extras: mirrors.ispros.com.bd
* rpmforge: kartolo.sby.datautama.net.id
* updates: mirrors.ispros.com.bd
rpmforge                                                   | 1.9 kB 00:00
rpmforge/primary_db                                        | 2.7 MB 00:15
repo id repo name status
base CentOS-6 - Base                                                6,367
epel Extra Packages for Enterprise Linux 6 - x86_64                11,050
extras CentOS-6 - Extras                                               14
rpmforge RHEL 6 - RPMforge.net - dag                                4,718
updates CentOS-6 - Updates                                          1,242
repolist:  23,391
[root@server ~]#

Install Amavisd-new
 

[root@server ~]# yum install amavisd-new
..
[root@server ~]#

check user amavis and clamav in /etc/passwd file.
 

[root@server ~]# cat /etc/passwd
...
clamav:x:495:492:Clam Anti Virus Checker:/var/clamav:/sbin/nologin
amavis:x:494:491:User for amavisd-new:/var/spool/amavisd:/sbin/nologin

Add domain name and hostname in /etc/amavisd/amavisd.conf
[root@server ~]# vim /etc/amavisd/amavisd.conf
[root@server ~]# cat /etc/amavisd/amavisd.conf
....
# COMMONLY ADJUSTED SETTINGS:
# @bypass_virus_checks_maps = (1); # controls running of anti-virus code
# @bypass_spam_checks_maps = (1); # controls running of anti-spam code
# $bypass_decode_parts = 1; # controls running of decoders&dearchivers

$max_servers = 2; # num of pre-forked children (2..30 is common), -m
$daemon_user = 'amavis'; # (no default; customary: vscan or amavis), -u
$daemon_group = 'amavis'; # (no default; customary: vscan or amavis), -g

# $mydomain = 'example.com'; # a convenient default for other settings
$mydomain = 'zmailtech.com'; # a convenient default for other settings
...
...
# OTHER MORE COMMON SETTINGS (defaults may suffice):

# $myhostname = 'host.example.com'; # must be a fully-qualified domain name!
$myhostname = 'mailserver.zmailtech.com'; # must be a fully-qualified domain name!

[root@server ~]#

Edit the configuration file /etc/postfix/master.cf to tell Postfix to pass mail to Amasvid-new for filtering.
Create backup file /etc/postfix/master.cf and /etc/postfix/main.cf
[root@server ~]# cd /etc/postfix
[root@server postfix]# cp master.cf master.cf.bkp[root@server postfix]# cp main.cf main.cf.bkp

Edit in /etc/postfix/master.cf file
 


[root@server postfix]# vim master.cf
[root@server postfix]# cat master.cf
#
# Postfix master process configuration file. For details on the format
# of the file, see the master(5) manual page (command: "man 5 master").
#
# Do not forget to execute "postfix reload" after editing this file.
#

=======================================================================
# service type private unpriv chroot wakeup maxproc command + args
# (yes) (yes) (yes) (never) (100)
# ========================================================================
smtp inet n - n - - smtpd
#add amavisd config
amavisfeed unix - - n - 2 lmtp
-o lmtp_data_done_timeout=1200
-o lmtp_send_xforward_command=yes
-o disable_dns_lookups=yes
-o max_use=20

127.0.0.1:10025 inet n - n - - smtpd
-o content_filter=
-o smtpd_delay_reject=no
-o smtpd_client_restrictions=permit_mynetworks,reject
-o smtpd_helo_restrictions=
-o smtpd_sender_restrictions=
-o smtpd_recipient_restrictions=permit_mynetworks,reject
-o smtpd_data_restrictions=reject_unauth_pipelining
-o smtpd_end_of_data_restrictions=
-o smtpd_restriction_classes=
-o mynetworks=127.0.0.0/8
-o smtpd_error_sleep_time=0
-o smtpd_soft_error_limit=1001
-o smtpd_hard_error_limit=1000
-o smtpd_client_connection_count_limit=0
-o smtpd_client_connection_rate_limit=0
-o receive_override_options=no_header_body_checks,no_unknown_recipient_checks,no_milters,no_address_mappings
-o local_header_rewrite_clients=
-o smtpd_milters=
-o local_recipient_maps=
-o relay_recipient_maps=

#submission inet n - n - - smtpd
# -o smtpd_tls_security_level=encrypt
# -o smtpd_sasl_auth_enable=yes
# -o smtpd_client_restrictions=permit_sasl_authenticated,reject
# -o milter_macro_daemon_name=ORIGINATING
#smtps inet n - n - - smtpd
# -o smtpd_tls_wrappermode=yes
# -o smtpd_sasl_auth_enable=yes
# -o smtpd_client_restrictions=permit_sasl_authenticated,reject
# -o milter_macro_daemon_name=ORIGINATING
.....

[root@server postfix]#

Edit the file /etc/postfix/main.cf and enable message filtering in Postfix adding the line:
[root@server postfix]# vim main.cf
[root@server postfix]# cat main.cf
...

#add amavishd configuration..
# use amavisd as filter on port 10024
content_filter=amavisfeed:[127.0.0.1]:10024
[root@server postfix]#

Reload Postfix to get new parameters.
[root@server ~]# service postfix reload
Reloading postfix:                                    [ OK ]
[root@server ~]#

Enable Amavisd and ClamAV services to start during system boot.
 

[root@server ~]# chkconfig amavisd on
[root@server ~]# chkconfig clamd on

Service clamd start
 

[root@server ~]# service clamd start
Starting Clam AntiVirus Daemon: LibClamAV Warning: **************************************************
LibClamAV Warning: *** The virus database is older than 7 days! ***
LibClamAV Warning: *** Please update it as soon as possible. ***
LibClamAV Warning: ************************************************** [ OK ]
[root@server ~]#

Service amavisd start 

[root@server /]# service amavisd start
Starting amavisd: [ OK ]
[root@server /]#

ClamAV database signature may be outdated, you can manually update by using the command freshclam.
[root@server ~]# freshclam  

ClamAV update process started at Fri Aug 1 21:53:39 2014
Downloading main-55.cdiff [100%]
main.cld updated (version: 55, sigs: 2424225, f-level: 60, builder: neo)
WARNING: getfile: daily-15077.cdiff not found on remote server (IP: 120.88.46.210)
WARNING: getpatch: Can't download daily-15077.cdiff from db.in.clamav.net
WARNING: getfile: daily-15077.cdiff not found on remote server (IP: 193.1.193.64)
WARNING: getpatch: Can't download daily-15077.cdiff from db.in.clamav.net
WARNING: getpatch: Can't download daily-15077.cdiff from db.in.clamav.net
WARNING: Incremental update failed, trying to download daily.cvd
Downloading daily.cvd [100%]
daily.cvd updated (version: 19256, sigs: 1087763, f-level: 63, builder: neo)
Downloading bytecode.cvd [100%]
bytecode.cvd updated (version: 242, sigs: 46, f-level: 63, builder: dgoddard)
[LibClamAV] ******************************************************
[LibClamAV] *** Virus database timestamp in the future! ***
[LibClamAV] *** Please check the timezone and clock settings ***
[LibClamAV] ******************************************************
Database updated (3512034 signatures) from db.in.clamav.net (IP: 193.1.193.64) 

Clamd successfully notified about the update.
[root@server ~]#

Sunday 26 November 2017

Mail Relay Configure with postfix service

CONFIGURE MAIL RELAY IN POSTFIX MAIL SERVICE
note: postfix basic configuration was prerequisites.
 

Add below line to the /etc/postfix/main.cf file
relayhost = [smtp.gamil.com]:587
smtp_sasl_password_maps = hash:/etc/postfix/relay_password
smtp_sasl_security_options = noanonymous
smtp_cname_overrides_servername = yes
smtp_tls_security_level = may
smtp_tls_CAfile = /etc/postfix/cacert.pem
smtp_sasl_auth_enable = yes
sender_dependent_relayhost_maps = hash:/etc/postfix/relay_maps
smtp_sender_dependent_authentication = yes
address_verify_sender_dependent_relayhost_maps = $sender_dependent_relayhost_maps

# add new parameter for trusted relationship
smtp_generic_maps = hash:/etc/postfix/generic

Create cacert.pem just copy form /usr/she

[root@server ~]# cat /usr/share/purple/ca-certs/Equifax_Secure_CA.pem >> /etc/postfix/cacert.pem
[root@server ~]# cat /usr/share/purple/ca-certs/Thawte_Premium_Server_CA.pem >> /etc/postfix/cacert.pem

Create generic map file

[root@server ~]# cp generic generic.orig
[root@server ~]# vim generic
[root@server ~]# postmap generic

Create file /etc/postfix/relay_password and make db via postmap command.

[root@server ~]# vim /etc/postfix/relay_password
[root@server ~]# cat /etc/postfix/relay_password
user1@zmailtech.com gmailuser1@gmail.com:password1
user2@zmailtech.com gmailuser2@gmail.com:password2
[root@server ~]#

[root@server ~]# postmap /etc/postfix/relay_password

Create file /etc/postfix/relay_maps and make db via postmap command.

[root@server ~]# vim /etc/postfix/relay_maps
[root@server ~]# cat /etc/postfix/relay_maps
@gmail.com [smtp.gmail.com]:587

[root@server ~]# postmap /etc/postfix/relay_maps
service postfix restart

[root@server ~]# service postfix restart
Shutting down postfix                                 [ OK ]
Starting postfix:                                     [ OK ]
[root@server `]#


Saturday 25 November 2017

Dovecot configure with postfix


Install dovecot service via yum command

[root@server ~]# yum install dovecot

Dovecot POP3/IMAP Server Setup

Edit the file /etc/dovecot/dovecot and set the following parameters:

[root@server ~]# vim /etc/dovecot/dovecot.conf
[root@server ~]# cat /etc/dovecot/dovecot.conf
...
enabled imap pop3 and lmtp protocols
# Protocols we want to be serving.
protocols = imap pop3 lmtp

enabled to listen in all ipv4 interfaces
# A comma separated list of IPs or hosts where to listen in for connections.
# "*" listens in all IPv4 interfaces, "::" listens in all IPv6 interfaces.
# If you want to specify non-default ports or anything more complex,
# edit conf.d/master.conf.
listen = *
...

[root@server ~]#


Then we need to specify the mail location by editing the file /etc/dovecot/conf.d/10-mail.conf.

[root@server ~]# vim /etc/dovecot/conf.d/10-mail.conf
[root@server ~]# cat /etc/dovecot/conf.d/10-mail.conf
....
#
# mail_location = maildir:~/Maildir
# mail_location = mbox:~/mail:INBOX=/var/mail/%u
# mail_location = mbox:/var/mail/%d/%1n/%n:INDEX=/var/indexes/%d/%1n/%n
#
# <doc/wiki/MailLocation.txt>
#
#mail_location =
mail_location = maildir:~/mailbox
...

[root@server ~]#




[root@server ~]# vim /etc/dovecot/conf.d/20-pop3.conf
[root@server ~]# cat /etc/dovecot/conf.d/20-pop3.conf
...
# Note that Outlook 2003 seems to have problems with %v.%u format which was
# Dovecot's default, so if you're building a new server it would be a good
# idea to change this. %08Xu%08Xv should be pretty fail-safe.
#
pop3_uidl_format = %08Xu%08Xv
...
..
# Workarounds for various client bugs:
# outlook-no-nuls:
# Outlook and Outlook Express hang if mails contain NUL characters.
# This setting replaces them with 0x80 character.
# oe-ns-eoh:
# Outlook Express and Netscape Mail breaks if end of headers-line is
# missing. This option simply sends it if it's missing.
# The list is space-separated.
pop3_client_workarounds = outlook-no-nuls oe-ns-eoh
}
[root@server ~]#


Postfix SMTP Authentication and Dovecot SASL

Edit the file /etc/dovecot/conf.d/10-auth.conf and set the following parameters:

[root@server ~]#vim /etc/dovecot/conf.d/10-auth.conf
[root@server ~]#cat /etc/dovecot/conf.d/10-auth.conf
....
# If you want to allow master users to log in by specifying the master
# username within the normal username string (ie. not using SASL mechanism's
# support for it), you can specify the separator character here. The format
# is then <username><separator><master username>. UW-IMAP uses "*" as the
# separator, so that could be a good choice.
#auth_master_user_separator =
disable_plaintext_auth =no
auth_mechanisms = plain login
...

[root@server ~]#

Edit /etc/dovecot/conf.d/10-master.conf.

[root@server ~]# vim /etc/dovecot/conf.d/10-master.conf
[root@server ~]# cat /etc/dovecot/conf.d/10-master.conf
...
service auth {
# auth_socket_path points to this userdb socket by default. It's typically
# used by dovecot-lda, doveadm, possibly imap process, etc. Its default
# permissions make it readable only by root, but you may need to relax these
# permissions. Users that have access to this socket are able to get a list
# of all usernames and get results of everyone's userdb lookups.
unix_listener auth-userdb {
#mode = 0600
user = postfix
group = postfix
}
....

[root@server ~]#

Edit /etc/postfix/main.cf, find the keys below and change its values as follows or add it at the bottom of the file if the key (the word before the = sign)

[root@server ~]# vim /etc/postfix/main.cf
[root@server ~]# cat /etc/postfix/main.cf
..

mynetworks = 127.0.0.0/8
smtpd_sasl_type = dovecot
smtpd_sasl_path = private/auth
smtpd_sasl_auth_enable = yes
smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination
broken_sasl_auth_clients = yes
..

[root@server ~]#

Service dovecot restart

[root@server ~]# service dovecot restart
Stopping Dovecot Imap:                               [ OK ]
Starting Dovecot Imap:                               [ OK ]
[root@server ~]#

Enabled dovecot on reboot

[root@server ~]# chkconfig dovecot on


Zimbra Mail 8.0.X installation on CentOS 6

Zimbra 8.0.X server instllation in centos 6 step by step.

Requirements
1.        An external DNS server with both A and MX valid records to point to your Zimbra mail server IP Address.
2.       A clean installation of CentOS 6 without any postfix,mysql,LDAP,DNS or http servers up and running.
3.       A static IP Address assigned to network interface.
# Basic Configuration of Email server.

1.  configure or set hostname of server.

[root@localhost ~]# hostname mail.zmailtech.com
[root@localhost ~]# vim /etc/sysconfig/network
[root@localhost ~]# cat /etc/sysconfig/network
[root@localhost ~]# hostname
mail.zmailtech.com

2. Configure local host name for local resolve.

[root@localhost ~]# vim /etc/hosts
[root@localhost ~]# cat /etc/hosts
127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
::1         localhost localhost.localdomain localhost6 localhost6.localdomain6

192.168.0.145                     mail.zmailtech.com        mail
[root@lcoalhost ~]#

3. Configure Static Network on server.

[root@localhost ~]# vim /etc/sysconfig/network-scirpt/ifcfig-eth0
[root@localhost ~]# vim /etc/sysconfig/network-scirpt/ifcfig-eth0
DEVICE=eth0
TYPE=Ethernet
UUID=9e9a20d9-d64b-45ee-aedb-28f2ac62b197
ONBOOT=yes
NM_CONTROLLED=no
BOOTPROTO=none
HWADDR=00:23:54:1E:B0:5F
IPADDR=192.168.0.145
PREFIX=24
GATEWAY=192.168.0.253
DNS1=8.8.8.8
DEFROUTE=yes
IPV4_FAILURE_FATAL=yes
IPV6INIT=no
NAME="System eth0"
[root@lcoalhost ~]#

CentOS 5/6 or Rhel 5/6 have two network service named NetworkManager and network, here we are using network service for manger network, so we have disable and stop NetworkManager service. and start and enable network service after configure boot protocol static/none.

[root@localhost ~]# service NetworkManager stop

[root@localhost ~]# chkconfig NetworkManager off

[root@localhost ~]# service network start

[root@localhost ~]# chkconfig network on

Stop postfix service disable it after reboot server,

[root@lcoalhost ~]# service postfix stop
Shutting down postfix:                                         [  OK  ]
[root@localhost ~]# chkconfig postfix off

defaults sendmail service was not installed or configure in Centos 6 or rhel 6 version  but if you are configure zimbra mail server on Centos 5 or rhel 5 then you need to stop and disable sendmail service

[root@lcoalhost ~]# service sendmail stop
Shutting down postfix:                                         [  OK  ]
[root@localhost ~]# chkconfig sendmail off

SElinux must be disabled

[root@localhost ~]# getenforce
Enforcing
[root@localhost ~]# setenforce 0
[root@localhost ~]# vi /etc/selinux/config
[root@localhost ~]# cat /etc/selinux/config

# 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=targeted


[root@localhost ~]#


Reboot your server to confirm above configuration are successfully done and we will do further configure setup. Zimbra mail server installation prerequisite was need to configure MX record on local bind (dns server), so we begin with configure bind service in CentOS 

Following below step to installation and configure bind server

 Installation of bind rpm

[root@mail ~]# yum install bind*
Loaded plugins: fastestmirror
Setting up Install Process
base                                        | 3.7 kB     00:00    
base/primary_db                             | 4.6 MB     00:22    
extras                                      | 3.4 kB     00:00    
extras/primary_db                           |  31 kB     00:01    
updates                                     | 3.4 kB     00:00    
updates/primary_db                          | 3.8 MB     00:45    
Resolving Dependencies
--> Running transaction check
---> Package bind.x86_64 32:9.8.2-0.30.rc1.el6_6.3 will be installed
--> Processing Dependency: portreserve for package: 32:bind-9.8.2-0.30.rc1.el6_6.3.x86_64


....
...
output omitted
....
....

Installed:
  bind.x86_64 32:9.8.2-0.30.rc1.el6_6.3                                        
  bind-chroot.x86_64 32:9.8.2-0.30.rc1.el6_6.3                                 
  bind-devel.x86_64 32:9.8.2-0.30.rc1.el6_6.3                                  
  bind-dyndb-ldap.x86_64 0:2.3-6.el6_6                                         
  bind-libs.x86_64 32:9.8.2-0.30.rc1.el6_6.3                                   
  bind-sdb.x86_64 32:9.8.2-0.30.rc1.el6_6.3                                    
  bind-utils.x86_64 32:9.8.2-0.30.rc1.el6_6.3                                  
Dependency Installed:
  portreserve.x86_64 0:0.0.4-9.el6    postgresql-libs.x86_64 0:8.4.20-2.el6_6  

Complete!
[root@mail ~]#

After installation of named service we need to start named service for generate rndc.key

[root@mail ~]# service named start
Generating /etc/rndc.key:                           [  OK  ]
Starting named:                                     [  OK  ]
[root@mail ~]#

Now configure Bind service in server
Configure Domain in /var/name/chroot/etc/named.conf file in bind service.

[root@mail ~]# vi /var/named/chroot/etc/named.conf
[root@mail ~]# cat /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.0.145; };
                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; };
                forwarders         { 8.8.8.8; };
                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 "zmailtech.com" IN {
                type master;
                file "zmailtech.com.for";
};

zone "0.168.192.ip-addr.arpa" IN {
                type master;
                file "zmailtech.com.rev";
};

include "/etc/named.rfc1912.zones";
include "/etc/named.root.key";
[root@mail ~]#

after Configure named.conf file, we need to create zone file in /var/named/chroot/var/named folder.
zone name.localhost file example for forword zone file. so we copy named.localhost file content in new file name zmailtech.com.for

[root@mail ~]# cat /var/named/chroot/var/named/
chroot/          dynamic/         named.empty      named.loopback
data/            named.ca         named.localhost  slaves/
[root@mail ~]#

[root@mail ~]# cat /var/named/chroot/var/named/named.localhost > /var/named/chroot/var/named/zmailtech.com.for
[root@mail ~]#

Now make below change in zmailtech.com.for file.

[root@mail ~]# vim /var/named/chroot/var/named/zmailtech.com.for
[root@mail ~]# cat /var/named/chroot/var/named/zmailtech.com.for
$TTL 1D
@            IN SOA  zmailtech.com  root.zmailtech.com. (
                                    2015062501  ; serial
                                    1D     ; refresh
                                    1H     ; retry
                                    1W     ; expire
                                    3H )   ; minimum
                   IN       NS      zmailtech.com.
                   IN       A       192.168.0.145
                   IN       MX      10     mail.zmailtech.com.

server             IN       A       192.168.0.145
mail               IN       A       192.168.0.145
[root@mail ~]#

zone name.loopback file example for revers zone file. so we copy named.loopback file content in new file name zmailtech.com.rev

[root@mail ~]# cat /var/named/chroot/var/named/zmailtech.comfor > /var/named/chroot/var/named/zmailtech.com.rev
[root@mail ~]#

[root@mail ~]# vim /var/named/chroot/var/named/zmailtech.com.rev
[root@mail ~]# cat /var/named/chroot/var/named/zmailtech.com.rev
$TTL 1D
@            IN SOA  zmailtech.com  root.zmailtech.com. (
                                    2015062501  ; serial
                                    1D     ; refresh
                                    1H     ; retry
                                    1W     ; expire
                                    3H )   ; minimum
                   IN        NS     zmailtech.com
                   IN        A      192.168.0.145

145         IN           PTR        mail.zmailtech.com
145         IN           PTR        server.zmailtech.com
[root@mail ~]#

Now we need to change zmailtech.com.for and zmailtech.com.rev zone file group own change into named.

[root@mail ~]# chgrp named /var/named/chroot/var/named/zmailtech.com*

[root@mail ~]# ll /var/named/chroot/var/named/total 40
drwxr-x---. 6 root  named 4096 Jun 26 00:15 chroot
drwxrwx---. 2 named named 4096 Jun 26 00:15 data
drwxrwx---. 2 named named 4096 Jun 26 00:16 dynamic
-rw-r--r--. 1 root  named  298 Jun 26 00:27 zmailtech.com.for
-rw-r--r--. 1 root  named  278 Jun 26 00:28 zmailtech.com.rev
-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
drwxrwx---. 2 named named 4096 May 19 18:57 slaves
[root@mail ~]#

now restart named service

[root@mail ~]# service named restart
Stopping named: .                                    [  OK  ]
Starting named:                                      [  OK  ]
[root@mail ~]#

Change Dns server in /etc/resolv.conf file

[root@mail ~]# vi /etc/resolv.conf
[root@mail ~]# cat /etc/resolv.conf
nameserver 192.168.0.145
nameserver 8.8.8.8

Checking name resolving in local system

[root@mail ~]# dig mail.zmailtech.com

; <<>> DiG 9.8.2rc1-RedHat-9.8.2-0.30.rc1.el6_6.3 <<>> mail.zmailtech.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 40288
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 1

;; QUESTION SECTION:
;mail.zmailtech.com        IN       A

;; ANSWER SECTION:
mail.zmailtech.com 86400   IN       A      192.168.0.145

;; AUTHORITY SECTION:
zmailtech.com   86400      IN       NS     zmailtech.com

;; ADDITIONAL SECTION:
zmailtech.com   86400      IN       A      192.168.0.145

;; Query time: 13 msec
;; SERVER: 192.168.0.145#53(192.168.0.145)
;; WHEN: Fri Jun 26 03:21:38 2015
;; MSG SIZE  rcvd: 91

[root@mail ~]# dig server.zmailtech.com

; <<>> DiG 9.8.2rc1-RedHat-9.8.2-0.30.rc1.el6_6.3 <<>> server.zmailtech.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 27958
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 1

;; QUESTION SECTION:
;server.zmailtech.com          IN       A

;; ANSWER SECTION:
server.zmailtech.com 86400     IN       A       192.168.0.145

;; AUTHORITY SECTION:
zmailtech.com   86400          IN       NS      zmailtech.com

;; ADDITIONAL SECTION:
zmailtech.com   86400          IN       A       192.168.0.145

;; Query time: 0 msec
;; SERVER: 192.168.0.145#53(192.168.0.145)
;; WHEN: Fri Jun 26 03:21:45 2015
;; MSG SIZE  rcvd: 87
[root@mail ~]#


Check mail server mx record

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

; <<>> DiG 9.8.2rc1-RedHat-9.8.2-0.30.rc1.el6_6.3 <<>> mx zmailtech.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 11392
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 2

;; QUESTION SECTION:
;zmailtech.com            IN        MX

;; ANSWER SECTION:
zmailtech.com   86400     IN        MX      10 mail.zmailtech.com

;; AUTHORITY SECTION:
zmailtech.com   86400     IN        NS      zmailtech.com

;; ADDITIONAL SECTION:
mail.zmailtech.com 86400  IN        A       192.168.0.145
zmailtech.com   86400     IN        A       192.168.0.145

;; Query time: 0 msec
;; SERVER: 192.168.0.145#53(192.168.0.145)
;; WHEN: Fri Jun 26 03:21:59 2015
;; MSG SIZE  rcvd: 107

[root@mail ~]#

Package Required need to be installed before installating ZCS:

[root@mail ~]# yum install nc sudo libidn gmp libstdc++ perl sysstat sqlite -y
Loaded plugins: fastestmirror
Setting up Install Process
Loading mirror speeds from cached hostfile
 * base: mirror.nbrc.ac.in
 * extras: mirror.nbrc.ac.in
 * updates: mirror.nbrc.ac.in
Package sudo-1.8.6p3-15.el6.x86_64 already installed and latest version
Package libidn-1.18-2.el6.x86_64 already installed and latest version
Package gmp-4.3.1-7.el6_2.2.x86_64 already installed and latest version
Package libstdc++-4.4.7-11.el6.x86_64 already installed and latest version
Package sqlite-3.6.20-1.el6.x86_64 already installed and latest version
Resolving Dependencies
--> Running transaction check
---> Package nc.x86_64 0:1.84-22.el6 will be installed
---> Package perl.x86_64 4:5.10.1-136.el6_6.1 will be installed
--> Processing Dependency: perl-libs = 4:5.10.1-136.el6_6.1 for package: 4:perl-5.10.1-136.el6_6.1.x86_64
--> Processing Dependency: perl-libs for package: 4:perl-5.10.1-136.el6_6.1.x86_64
--> Processing Dependency: perl(version) for package: 4:perl-5.10.1-136.el6_6.1.x86_64
--> Processing Dependency: perl(Pod::Simple) for package: 4:perl-5.10.1-136.el6_6.1.x86_64
--> Processing Dependency: perl(Module::Pluggable) for package: 4:perl-5.10.1-136.el6_6.1.x86_64
--> Processing Dependency: libperl.so()(64bit) for package: 4:perl-5.10.1-136.el6_6.1.x86_64
---> Package sysstat.x86_64 0:9.0.4-27.el6 will be installed
--> Running transaction check
---> Package perl-Module-Pluggable.x86_64 1:3.90-136.el6_6.1 will be installed
---> Package perl-Pod-Simple.x86_64 1:3.13-136.el6_6.1 will be installed
--> Processing Dependency: perl(Pod::Escapes) >= 1.04 for package: 1:perl-Pod-Simple-3.13-136.el6_6.1.x86_64
---> Package perl-libs.x86_64 4:5.10.1-136.el6_6.1 will be installed
---> Package perl-version.x86_64 3:0.77-136.el6_6.1 will be installed
--> Running transaction check
---> Package perl-Pod-Escapes.x86_64 1:1.04-136.el6_6.1 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

===============================================================================
 Package                                              Arch      Version                                 Repository                          Size
===============================================================================
Installing:
 nc                                                          x86_64    1.84-22.el6               base        57 k
 perl                     x86_64    4:5.10.1-136.el6_6.1      updates     10 M
 sysstat                  x86_64    9.0.4-27.el6              base       233 k
Installing for dependencies:
 perl-Module-Pluggable    x86_64    1:3.90-136.el6_6.1        updates     40 k
 perl-Pod-Escapes         x86_64    1:1.04-136.el6_6.1        updates     32 k
 perl-Pod-Simple          x86_64    1:3.13-136.el6_6.1        updates    212 k
 perl-libs                x86_64    4:5.10.1-136.el6_6.1      updates    578 k
 perl-version             x86_64    3:0.77-136.el6_6.1        updates     51 k

Transaction Summary
===============================================================================
Install       8 Package(s)

Total download size: 11 M
Installed size: 37 M
Downloading Packages:
(1/8): nc-1.84-22.el6.x86_64.rpm                        |  57 kB     00:00    
(2/8): perl-5.10.1-136.el6_6.1.x86_64.rpm               |  10 MB     00:49    
(3/8): perl-Module-Pluggable-3.90-136.el6_6.1.x86_64.rp |  40 kB     00:00    
(4/8): perl-Pod-Escapes-1.04-136.el6_6.1.x86_64.rpm     |  32 kB     00:00    
(5/8): perl-Pod-Simple-3.13-136.el6_6.1.x86_64.rpm      | 212 kB     00:01    
(6/8): perl-libs-5.10.1-136.el6_6.1.x86_64.rpm          | 578 kB     00:02    
(7/8): perl-version-0.77-136.el6_6.1.x86_64.rpm         |  51 kB     00:00    
(8/8): sysstat-9.0.4-27.el6.x86_64.rpm                  | 233 kB     00:01    
-------------------------------------------------------------------------------
Total                                          205 kB/s |  11 MB     00:56    
 Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing : 1:perl-Pod-Escapes-1.04-136.el6_6.1.x86_64                  1/8
  Installing : 1:perl-Module-Pluggable-3.90-136.el6_6.1.x86_64             2/8
  Installing : 4:perl-libs-5.10.1-136.el6_6.1.x86_64                       3/8
  Installing : 1:perl-Pod-Simple-3.13-136.el6_6.1.x86_64                   4/8
  Installing : 3:perl-version-0.77-136.el6_6.1.x86_64                      5/8
  Installing : 4:perl-5.10.1-136.el6_6.1.x86_64                            6/8
  Installing : nc-1.84-22.el6.x86_64                                       7/8
  Installing : sysstat-9.0.4-27.el6.x86_64                                 8/8
  Verifying  : 3:perl-version-0.77-136.el6_6.1.x86_64                      1/8
  Verifying  : 1:perl-Pod-Simple-3.13-136.el6_6.1.x86_64                   2/8
  Verifying  : 1:perl-Module-Pluggable-3.90-136.el6_6.1.x86_64             3/8
  Verifying  : sysstat-9.0.4-27.el6.x86_64                                 4/8
  Verifying  : 4:perl-5.10.1-136.el6_6.1.x86_64                            5/8
  Verifying  : 4:perl-libs-5.10.1-136.el6_6.1.x86_64                       6/8
  Verifying  : nc-1.84-22.el6.x86_64                                       7/8
  Verifying  : 1:perl-Pod-Escapes-1.04-136.el6_6.1.x86_64                  8/8

Installed:
  nc.x86_64 0:1.84-22.el6              perl.x86_64 4:5.10.1-136.el6_6.1      
  sysstat.x86_64 0:9.0.4-27.el6      

Dependency Installed:
  perl-Module-Pluggable.x86_64 1:3.90-136.el6_6.1                             
  perl-Pod-Escapes.x86_64 1:1.04-136.el6_6.1                                  
  perl-Pod-Simple.x86_64 1:3.13-136.el6_6.1                                   
  perl-libs.x86_64 4:5.10.1-136.el6_6.1                                       
  perl-version.x86_64 3:0.77-136.el6_6.1                                      

Complete!
[root@mail ~]#

[root@mail ~]# yum install libaio-0.3.107-10.el6.x86_64
Loaded plugins: fastestmirror, presto
Loading mirror speeds from cached hostfile
 * base: mirrors.sonic.net
 * extras: mirror.tocici.com
 * updates: mirrors.xmission.com
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package libaio.x86_64 0:0.3.107-10.el6 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

===============================================================================
 Package                                              Arch      Version                                 Repository                          Size
===============================================================================
Installing:
 libaio                                        x86_64       0.3.107-10.el6             base                                         21 k

Transaction Summary
===========================================================================================Install       1 Package(s)

Total download size: 21 k
Installed size: 34 k
Is this ok [y/N]: y
Downloading Packages:
Setting up and reading Presto delta metadata
Processing delta metadata
Package(s) data still to download: 21 k
http://mirrors.sonic.net/centos/6.5/os/x86_64/Packages/libaio-0.3.107-10.el6.x86_64.rpm: [Errno 14] PYCURL ERROR 6 - "Couldn't resolve host 'mirrors.sonic.net'"
Trying other mirror.
libaio-0.3.107-10.el6.x86_64.rpm                                                                                                                      |  21 kB     00:00    
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing : libaio-0.3.107-10.el6.x86_64                                                                                                           1/1
  Verifying  : libaio-0.3.107-10.el6.x86_64                                                                                                           1/1

Installed:
  libaio.x86_64 0:0.3.107-10.el6                                                                                                                                                                     

Complete!
[root@mail ~]#

Extract Zimbra tar file



[root@mail ~]# tar -xf zcs-8.0.7_GA_6021.RHEL6_64.20140408123911.tgz



[root@mail ~]# cd zcs-8.0.7_GA_6021.RHEL6_64.20140408123911

[root@mail zcs-8.0.7_GA_6021.RHEL6_64.20140408123911 ]# ls

bin       docs                 packages                                  readme_source_en_US.txt  util

data     install.sh          readme_binary_en_US.txt      README.txt

[root@mail zcs-8.0.7_GA_6021.RHEL6_64.20140408123911 ]# ./install.sh --help

./install.sh [-r <dir> -l <file> -a <file> -u -s -c type -x -h] [defaultsfile]



-c|--cluster type           Cluster install type active|standby.

-h|--help                       Usage

-l|--license <file>         License file to install.

-a|--activation <file>  License activation file to install. [Upgrades only]

-r|--restore <dir>          Restore contents of <dir> to localconfig

-s|--softwareonly         Software only installation.

-u|--uninstall                Uninstall ZCS

-x|--skipspacecheck                 Skip filesystem capacity checks.

--beta-support              Allows installer to upgrade Network Edition Betas.

--platform-override                 Allows installer to continue on an unknown OS.

--skip-activation-check            Allows installer to continue if license activation checks fail.

[defaultsfile]               File containing default install values.



[root@mail zcs-8.0.7_GA_6021.RHEL6_64.20140408123911 ]# ./install.sh --platform-override



Operations logged to /tmp/install.log.7043

Checking for existing installation...

    zimbra-ldap...NOT FOUND

    zimbra-logger...NOT FOUND

    zimbra-mta...NOT FOUND

    zimbra-snmp...NOT FOUND

    zimbra-store...NOT FOUND

    zimbra-apache...NOT FOUND

    zimbra-spell...NOT FOUND

    zimbra-convertd...NOT FOUND

    zimbra-memcached...NOT FOUND

    zimbra-proxy...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. ("ZIMBRA") WILL ONLY LICENSE THIS SOFTWARE TO YOU IF YOU

FIRST ACCEPT THE TERMS OF THIS AGREEMENT. BY DOWNLOADING OR INSTALLING

THE SOFTWARE, OR USING THE PRODUCT, YOU ARE CONSENTING TO BE BOUND BY

THIS AGREEMENT. IF YOU DO NOT AGREE TO ALL OF THE TERMS OF THIS

AGREEMENT, THEN DO NOT DOWNLOAD, INSTALL OR USE THE PRODUCT.



License Terms for the Zimbra Collaboration Suite:

  http://www.zimbra.com/license/zimbra_public_eula_2.4.html





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





Oracle Binary Code License Agreement for the Java SE Platform Products



ORACLE  AMERICA, INC. ("ORACLE"), FOR AND ON BEHALF OF ITSELF AND ITS SUBSIDIARIES AND AFFILIATES UNDER COMMON CONTROL, IS WILLING TO  LICENSE  THE SOFTWARE  TO YOU ONLY UPON THE CONDITION THAT YOU ACCEPT ALL OF THE TERMS  CONTAINED IN THIS BINARY CODE LICENSE AGREEMENT AND SUPPLEMENTAL  LICENSE TERMS (COLLECTIVELY "AGREEMENT").  PLEASE READ THE AGREEMENT  CAREFULLY.  BY SELECTING THE "ACCEPT LICENSE AGREEMENT" (OR THE EQUIVALENT) BUTTON AND/OR BY USING THE SOFTWARE YOU ACKNOWLEDGE THAT YOU HAVE READ THE TERMS AND AGREE TO THEM.  IF YOU ARE AGREEING TO THESE TERMS ON BEHALF OF A  COMPANY OR OTHER LEGAL ENTITY, YOU REPRESENT THAT YOU HAVE THE LEGAL  AUTHORITY TO BIND THE LEGAL ENTITY TO THESE TERMS.  IF YOU DO NOT HAVE SUCH  AUTHORITY, OR IF YOU DO NOT WISH TO BE BOUND BY THE TERMS, THEN SELECT THE "DECLINE LICENSE AGREEMENT" (OR THE EQUIVALENT) BUTTON AND YOU MUST NOT USE THE SOFTWARE ON THIS SITE OR ANY OTHER MEDIA ON WHICH THE SOFTWARE IS CONTAINED.



1.  DEFINITIONS.  "Software" means the Java SE Platform Products in binary form that you selected for download, install or use from Oracle or its authorized licensees, any other machine readable materials (including, but not limited to,  libraries,  source  files,  header  files, and data  files), any updates or error corrections provided by Oracle, and any user manuals, programming guides and other documentation provided to you by Oracle under this Agreement.  "General Purpose Desktop Computers and Servers" means computers,  including desktop and laptop computers, or servers, used for general  computing functions under end user control (such as but not specifically  limited to email, general purpose Internet browsing, and office suite  productivity tools).  The use of Software in systems and solutions that provide dedicated functionality (other than as mentioned above) or designed  for use in embedded or function-specific software applications, for example but not limited to: Software embedded in or bundled with industrial control systems, wireless mobile telephones, wireless handheld devices, netbooks, kiosks, TV/STB, Blu-ray Disc devices, telematics and network control switching equipment, printers and storage management systems, and other related systems are excluded from this definition and not licensed under this  Agreement.  "Programs" means Java technology applets and applications  intended to run on the Java Platform, Standard Edition platform on Java-enabled General Purpose Desktop Computers and Servers.  ?Commercial Features? means those features identified in Table 1-1 (Commercial Features In Java SE Product Editions) of the Software documentation accessible at  http://www.oracle.com/technetwork/java/javase/documentation/index.html.  ?README File? means the README file for the Software accessible at http://www.oracle.com/technetwork/java/javase/terms/readme/index.html.



2.  LICENSE TO USE.  Subject to the terms and conditions of this Agreement   including, but not limited to, the Java Technology Restrictions of the  Supplemental License Terms, Oracle grants you a non-exclusive, non-transferable, limited license without license fees to reproduce and use internally the Software complete and unmodified for the sole purpose of  running Programs.  THE LICENSE SET FORTH IN THIS SECTION 2 DOES NOT EXTEND TO THE COMMERCIAL FEATURES.  YOUR RIGHTS AND OBLIGATIONS RELATED TO THE COMMERCIAL FEATURES ARE AS SET FORTH IN THE SUPPLEMENTAL TERMS ALONG WITH ADDITIONAL LICENSES FOR DEVELOPERS AND PUBLISHERS.



3.  RESTRICTIONS.  Software is copyrighted.  Title to Software and all associated intellectual property rights is retained by Oracle and/or its licensors.  Unless enforcement is prohibited by applicable law, you may not modify, decompile, or reverse engineer Software.  You acknowledge that the Software is developed for general use in a variety of information management applications; it is not developed or intended for use in any inherently dangerous applications, including applications that may create a risk of personal injury. If you use the Software in dangerous applications, then you shall be responsible to take all appropriate fail-safe, backup, redundancy, and other measures to ensure its safe use.  Oracle disclaims any express or implied warranty of fitness for such uses.  No right, title or interest in or to any trademark,  service mark, logo or trade name of Oracle or its licensors is granted under this  Agreement.  Additional restrictions for developers and/or publishers licenses are set forth in the Supplemental License Terms.



4.  DISCLAIMER OF WARRANTY.  THE SOFTWARE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND.  ORACLE FURTHER DISCLAIMS ALL WARRANTIES, EXPRESS AND IMPLIED, INCLUDING WITHOUT LIMITATION, ANY IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR NONINFRINGEMENT.



5.  LIMITATION OF LIABILITY.  IN NO EVENT SHALL ORACLE BE LIABLE FOR ANY INDIRECT, INCIDENTAL, SPECIAL, PUNITIVE OR CONSEQUENTIAL DAMAGES, OR DAMAGES FOR LOSS OF PROFITS, REVENUE, DATA OR DATA USE, INCURRED BY YOU OR ANY THIRD PARTY, WHETHER IN AN ACTION IN CONTRACT OR TORT, EVEN IF ORACLE HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. ORACLE'S ENTIRE LIABILITY FOR DAMAGES HEREUNDER SHALL IN NO EVENT EXCEED ONE THOUSAND DOLLARS (U.S. $1,000).



6.  TERMINATION.  This Agreement is effective until terminated.  You may terminate this Agreement at any time by destroying all copies of Software.  This Agreement will terminate immediately without notice from Oracle if you  fail to comply with any provision of this Agreement.  Either party may  terminate this Agreement immediately should any Software become, or in either party's opinion be likely to become, the subject of a claim of infringement  of any intellectual property  right.  Upon termination, you must destroy all copies of Software.



7.  EXPORT  REGULATIONS.  You agree that U.S. export control laws and other applicable export and import laws govern your use of the Software, including technical data; additional information can be found on Oracle's Global Trade Compliance web site (http://www.oracle.com/products/export). You agree that neither the Software nor any direct product thereof will be exported, directly, or indirectly, in violation of these laws, or will be used for any purpose prohibited by these laws including, without limitation, nuclear, chemical, or biological weapons proliferation.



8.  TRADEMARKS AND LOGOS.  You acknowledge and agree as between you

and Oracle that Oracle owns the ORACLE and JAVA trademarks and all ORACLE- and JAVA-related trademarks, service marks, logos and other brand

designations ("Oracle Marks"), and you agree to comply with the Third

Party Usage Guidelines for Oracle Trademarks currently located at

http://www.oracle.com/us/legal/third-party-trademarks/index.html.  Any use you make of the Oracle Marks inures to Oracle's benefit.



9.  U.S.  GOVERNMENT LICENSE RIGHTS.  If Software is being acquired by or on  behalf of the U.S. Government or by a U.S. Government prime contractor or  subcontractor (at any tier), then the Government's rights in Software and accompanying documentation shall be only those set forth in this Agreement.



10.  GOVERNING  LAW.  This agreement is governed by the substantive and procedural laws of California. You and Oracle agree to submit to the exclusive jurisdiction of, and venue in, the courts of San Francisco, or Santa Clara counties in California in any dispute arising out of or relating to this agreement.



11.  SEVERABILITY.  If any  provision of this  Agreement is held to be unenforceable, this Agreement will remain in effect with the provision omitted, unless omission would frustrate the intent of the parties, in which case this Agreement will immediately terminate.



12.  INTEGRATION.  This Agreement is the entire agreement  between you and Oracle relating to its subject matter.  It supersedes all prior or contemporaneous oral or written communications, proposals, representations  and warranties and prevails over any  conflicting  or additional  terms  of  any  quote, order, acknowledgment, or other communication between the parties  relating to its subject matter during the term of this Agreement.  No modification of this Agreement will be  binding,  unless  in  writing  and  signed  by an  authorized representative of each party.



SUPPLEMENTAL LICENSE TERMS



These  Supplemental  License  Terms add to or modify  the terms of the Binary Code License Agreement.  Capitalized terms not defined in these Supplemental  Terms shall have the same meanings ascribed to them in the Binary Code License Agreement.  These Supplemental Terms shall supersede any  inconsistent or conflicting terms in the Binary Code License Agreement, or in any license contained within the Software.



A.  COMMERCIAL FEATURES.  You may not use the Commercial Features for running Programs, Java applets or applications in your internal business operations or for any commercial or production  purpose, or for any purpose other than as set forth in Sections B, C, D and E of these Supplemental Terms.  If You want to use the Commercial Features for any purpose other than as permitted in this Agreement, You must obtain a separate license from Oracle.



B.  SOFTWARE INTERNAL USE FOR DEVELOPMENT LICENSE GRANT.  Subject to the terms and conditions of this Agreement and restrictions and exceptions set forth in the README File incorporated herein by reference,  including, but not limited to the Java Technology Restrictions of these  Supplemental Terms, Oracle grants you a non-exclusive, non-transferable,  limited license without fees to reproduce internally and use internally the Software complete and unmodified for the purpose of designing, developing, and testing your Programs.



C.  LICENSE TO DISTRIBUTE SOFTWARE.  Subject to the terms and conditions of this Agreement and restrictions and exceptions set forth in the   README File, including, but not limited to the Java Technology Restrictions of these Supplemental Terms, Oracle grants you a non-exclusive, non-transferable, limited license without fees to reproduce and distribute the  Software, provided that (i) you distribute the Software complete and  unmodified and only bundled as part of, and for the sole purpose of running, your Programs, (ii) the Programs add significant and primary functionality  to the Software, (iii) you do not distribute additional  software intended to replace any component(s) of the Software, (iv) you do not remove or alter any proprietary legends or notices contained in the Software, (v) you only distribute the Software subject to a license agreement that: (a) is a complete, unmodified reproduction of this Agreement; or (b) protects Oracle's  interests consistent with the terms contained in this Agreement and that includes the notice set forth in Section G, and (vi) you agree to defend and indemnify Oracle and its licensors from and against any damages, costs, liabilities, settlement amounts and/or expenses (including  attorneys' fees)  incurred in connection  with any claim, lawsuit or action by any third party that arises or results from the use or distribution of any and all Programs and/or Software.



D.  LICENSE TO DISTRIBUTE REDISTRIBUTABLES.  Subject to the terms and conditions of this Agreement and restrictions and exceptions set forth in the README  File, including but not limited to the Java Technology Restrictions of these Supplemental Terms, Oracle grants you a non-exclusive,  non-transferable, limited license without fees to reproduce and distribute  those files specifically identified as redistributable in the   README File ("Redistributables") provided that: (i) you distribute the  Redistributables complete and unmodified, and only bundled as part of Programs, (ii) the Programs add significant and primary functionality to the  Redistributables, (iii) you do not distribute additional software intended to supersede any component(s) of the Redistributables (unless otherwise specified in the applicable README File), (iv) you do not remove or alter any proprietary legends or notices contained in or on the Redistributables, (v)  you only distribute the Redistributables pursuant to a license agreement  that: (a) is a complete, unmodified reproduction of this Agreement; or (b) protects Oracle's interests consistent with the terms contained in the Agreement and includes the notice set forth in Section G, (vi) you agree to defend and indemnify Oracle and its licensors from and against any damages,  costs, liabilities, settlement amounts and/or expenses (including  attorneys'  fees) incurred in connection with any claim, lawsuit or action by any third  party that arises or results from the use or distribution of any and all Programs and/or Software.



E.  DISTRIBUTION BY PUBLISHERS.  This section pertains to your distribution  of the JavaTM SE Development Kit Software with your printed book or magazine (as those terms are commonly used in the industry) relating to Java technology ("Publication").  Subject to and conditioned upon your compliance  with the restrictions and obligations contained in the Agreement, Oracle hereby grants to you a non-exclusive, nontransferable limited right to reproduce complete and unmodified copies of the Software on electronic  media (the "Media") for the sole purpose of inclusion and distribution with your Publication(s), subject to the following terms: (i) You may not distribute  the Software on a stand-alone basis; it must be distributed with your Publication(s); (ii) You are responsible for downloading the Software from the applicable Oracle web site; (iii) You must refer to the Software as JavaTM SE Development Kit; (iv) The Software must be reproduced in its entirety and without any modification whatsoever (including with respect to all proprietary notices) and distributed with your Publication subject to a license agreement that is a complete, unmodified reproduction of this Agreement; (v) The Media label shall include the following information:  Copyright 2011, Oracle America, Inc.  All rights reserved.  Use is subject to license terms.  ORACLE and JAVA trademarks and all ORACLE- and JAVA-related trademarks, service marks, logos and other brand

designations are trademarks or registered  trademarks of Oracle in the U.S. and other countries.  This information must be placed on the Media  label in such a manner as to only apply to the Oracle  Software;  (vi) You must clearly identify the Software as Oracle's product on the Media  holder or Media label, and you may not state or imply that Oracle is responsible for any third-party software contained on the Media; (vii) You may not include any third  party software on the Media which is intended to be a  replacement or substitute for the Software; (viii) You agree to defend and indemnify Oracle and its licensors from and against any damages, costs, liabilities, settlement amounts and/or expenses (including  attorneys'  fees) incurred in connection with any claim, lawsuit or action by any third party that arises or results from the use or distribution of the Software and/or the Publication; ; and (ix) You shall provide Oracle with a written notice for each Publication; such notice shall include the following information: (1) title of Publication, (2) author(s), (3) date of Publication,  and (4)  ISBN or ISSN  numbers.  Such notice shall be sent to  Oracle America, Inc.,  500 Oracle  Parkway, Redwood Shores,  California  94065 U.S.A , Attention:  General Counsel.



F.  JAVA TECHNOLOGY RESTRICTIONS.  You may not create, modify, or change the behavior of, or authorize your licensees to create, modify, or change the behavior of, classes, interfaces, or subpackages that are in any way  identified  as  "java", "javax", "sun", ?oracle? or similar convention as   specified by Oracle in any naming convention designation.



G.  COMMERCIAL FEATURES NOTICE.  For purpose of complying with Supplemental Term Section  C.(v)(b) and D.(v)(b), your license agreement shall include the following notice, where the notice is displayed in a manner that anyone using the Software will see the notice:



Use of the Commercial Features for any commercial or production purpose requires a separate license from Oracle.  ?Commercial Features? means those features identified Table 1-1 (Commercial Features In Java SE Product Editions) of the Software documentation accessible at http://www.oracle.com/technetwork/java/javase/documentation/index.html



H.  SOURCE CODE.  Software may contain source code that, unless expressly   licensed for other purposes, is provided solely for reference purposes  pursuant to the terms of this Agreement.  Source code may not be redistributed  unless  expressly  provided for in this Agreement.



I.  THIRD PARTY CODE.  Additional copyright notices and license terms applicable to portions of the Software are set forth in the THIRDPARTYLICENSEREADME file accessible at http://www.oracle.com/technetwork/java/javase/documentation/index.html.  In addition to any terms and conditions of any third party opensource/freeware license identified in the  THIRDPARTYLICENSEREADME file, the disclaimer of warranty and limitation of liability  provisions in  paragraphs 4 and 5 of the Binary Code License Agreement shall apply to all Software in this distribution.



J.  TERMINATION FOR INFRINGEMENT.  Either party may terminate this Agreement immediately should any Software become, or in either party's opinion be likely to become, the subject of a claim of infringement of any intellectual property right.



K.  INSTALLATION AND AUTO-UPDATE.  The Software's installation and auto-update processes transmit a limited amount of data to Oracle (or its service  provider) about those specific processes to help Oracle understand and optimize them.  Oracle does not associate the data with personally  identifiable  information.  You can find more  information about the data Oracle collects as a result of your Software download at http://www.oracle.com/technetwork/java/javase/documentation/index.html.



For inquiries please contact:  Oracle America, Inc., 500 Oracle Parkway,

Redwood Shores, California 94065, USA.



Last updated May 17, 2011







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: libaio-0.3.107-10

     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 zimbra-apache [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.7_GA_6021.RHEL6_64-20140408123911.x86_64.rpm...done

    zimbra-ldap......zimbra-ldap-8.0.7_GA_6021.RHEL6_64-20140408123911.x86_64.rpm...done

    zimbra-logger......zimbra-logger-8.0.7_GA_6021.RHEL6_64-20140408123911.x86_64.rpm...done

    zimbra-mta......zimbra-mta-8.0.7_GA_6021.RHEL6_64-20140408123911.x86_64.rpm...done

    zimbra-snmp......zimbra-snmp-8.0.7_GA_6021.RHEL6_64-20140408123911.x86_64.rpm...done

    zimbra-store......zimbra-store-8.0.7_GA_6021.RHEL6_64-20140408123911.x86_64.rpm...done

    zimbra-apache......zimbra-apache-8.0.7_GA_6021.RHEL6_64-20140408123911.x86_64.rpm...done

    zimbra-spell......zimbra-spell-8.0.7_GA_6021.RHEL6_64-20140408123911.x86_64.rpm...done

    zimbra-memcached......zimbra-memcached-8.0.7_GA_6021.RHEL6_64-20140408123911.x86_64.rpm...done

    zimbra-proxy......zimbra-proxy-8.0.7_GA_6021.RHEL6_64-20140408123911.x86_64.rpm...done

Operations logged to /tmp/zmsetup.09162014-064354.log

Installing LDAP configuration database...done.

Setting defaults...



DNS ERROR resolving MX for mail.zmailtech.com

It is suggested that the domain name have an MX record configured in DNS

Change domain name? [Yes] yes

Create domain: [mail.zmailtech.com] zmailtech.com

            MX: mail.zmailtech.com (192.168.0.145)



            Interface: 192.168.0.145

            Interface: 127.0.0.1

            Interface: ::1

done.

Checking for port conflicts



Main menu



   1) Common Configuration:                                                 

   2) zimbra-ldap:                                             Enabled                      

   3) zimbra-store:                                            Enabled                      

        +Create Admin User:                                          yes                          

        +Admin user to create:                                       admin@zmailtech.com               

******* +Admin Password                           UNSET                        

        +Anti-virus quarantine user:                               virus-quarantine.mrc2px9g6@zmailtech.com

        +Enable automated spam training:         yes                          

        +Spam training user:                                           spam.x1ytb6pjz0@zmailtech.com     

        +Non-spam(Ham) training user:             ham.z2qbxcdhu@zmailtech.com       

        +SMTP host:                                           mail.zmailtech.com          

        +Web server HTTP port:                                     80                           

        +Web server HTTPS port:                                   443                           

        +Web server mode:                                             https                        

        +IMAP server port:                                             7143                         

        +IMAP server SSL port:                                     7993                         

        +POP server port:                                    7110                         

        +POP server SSL port:                                        7995                         

        +Use spell check server:                                      yes                          

        +Spell server URL:                                             http://mail.zmailtech.com:7780/aspell.php

        +Enable version update checks:              TRUE                         

        +Enable version update notifications:    TRUE                         

        +Version update notification email:        admin@zmailtech.com               

        +Version update source email:                admin@zmailtech.com               



   4) zimbra-mta:                                              Enabled                      

   5) zimbra-snmp:                                           Enabled                      

   6) zimbra-logger:                                          Enabled                      

   7) zimbra-spell:                                             Enabled                      

   8) zimbra-proxy:                                           Enabled                      

   9) Default Class of Service Configuration:                               

   r) Start servers after configuration               yes                          

   s) Save config to file                                                    

   x) Expand menu                                                           

   q) Quit                                   



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





Store configuration



   1) Status:                                                                  Enabled                      

   2) Create Admin User:                                             yes                          

   3) Admin user to create:                                           admin@zmailtech.com               

** 4) Admin Password                                               UNSET                         

   5) Anti-virus quarantine user:                                   virus-quarantine.mrc2px9g6@zmailtech.com

   6) Enable automated spam training:            yes                          

   7) Spam training user:                                              spam.x1ytb6pjz0@zmailtech.com     

   8) Non-spam(Ham) training user:                ham.z2qbxcdhu@zmailtech.com       

   9) SMTP host:                                              mail.zmailtech.com          

  10) Web server HTTP port:                                       80                           

  11) Web server HTTPS port:                                     443                          

  12) Web server mode:                                               https                        

  13) IMAP server port:                                               7143                         

  14) IMAP server SSL port:                                       7993                         

  15) POP server port:                                      7110                         

  16) POP server SSL port:                                          7995                         

  17) Use spell check server:                                        yes                          

  18) Spell server URL:                                               http://mail.zmailtech.com:7780/aspell.php

  19) Enable version update checks:                TRUE                         

  20) Enable version update notifications:     TRUE                         

  21) Version update notification email:          admin@zmailtech.com               

  22) Version update source email:                  admin@zmailtech.com               



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



Password for admin@zmailtech.com (min 6 characters): [GaX4npj2E8]



Store configuration



   1) Status:                                                                  Enabled                      

   2) Create Admin User:                                             yes                          

   3) Admin user to create:                                           admin@zmailtech.com               

   4) Admin Password                                                 set                          

   5) Anti-virus quarantine user:                                   virus-quarantine.mrc2px9g6@zmailtech.com

   6) Enable automated spam training:            yes                          

   7) Spam training user:                                              spam.x1ytb6pjz0@zmailtech.com     

   8) Non-spam(Ham) training user:                ham.z2qbxcdhu@zmailtech.com       

   9) SMTP host:                                              mail.zmailtech.com          

  10) Web server HTTP port:                                       80                           

  11) Web server HTTPS port:                                     443                          

  12) Web server mode:                                               https                        

  13) IMAP server port:                                               7143                         

  14) IMAP server SSL port:                                       7993                         

  15) POP server port:                                      7110                          

  16) POP server SSL port:                                          7995                         

  17) Use spell check server:                                        yes                          

  18) Spell server URL:                                               http://mail.zmailtech.com:7780/aspell.php

  19) Enable version update checks:                TRUE                         

  20) Enable version update notifications:     TRUE                         

  21) Version update notification email:          admin@zmailtech.com                

  22) Version update source email:                  admin@zmailtech.com               



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



Main menu



   1) Common Configuration:                                                 

   2) zimbra-ldap:                                             Enabled                      

   3) zimbra-store:                                            Enabled                      

   4) zimbra-mta:                                              Enabled                      

   5) zimbra-snmp:                                           Enabled                       

   6) zimbra-logger:                                          Enabled                      

   7) zimbra-spell:                                             Enabled                      

   8) zimbra-proxy:                                           Enabled                       

   9) Default Class of Service Configuration:                               

   r) Start servers after configuration               yes                          

   s) Save config to file                                                   

   x) Expand menu                                                           

   q) Quit                                   



*** 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.15123]

Saving config in /opt/zimbra/config.15123...done.

The system will be modified - continue? [No] yes

Operations logged to /tmp/zmsetup.09162014-064354.log

Setting local config values...done.

Initializing core config...Setting up CA...done.

Deploying CA to /opt/zimbra/conf/ca ...done.

Creating SSL zimbra-store certificate...done.

Creating new zimbra-ldap SSL certificate...done.

Creating new zimbra-mta SSL certificate...done.

Creating new zimbra-proxy SSL certificate...done.

Installing mailboxd SSL certificates...done.

Installing MTA SSL certificates...done.

Installing LDAP SSL certificate...done.

Installing Proxy SSL certificate...done.

Initializing ldap...done.

Setting replication password...done.

Setting Postfix password...done.

Setting amavis password...done.

Setting nginx password...done.

Creating server entry for mail.zmailtech.com...done.

Setting Zimbra IP Mode...done.

Saving CA in ldap ...done.

Saving SSL Certificate in ldap ...done.

Setting spell check URL...done.

Setting service ports on mail.zmailtech.com...done.

Adding mail.zmailtech.com to zimbraMailHostPool in default COS...done.

Setting zimbraFeatureTasksEnabled=TRUE...done.

Setting zimbraFeatureBriefcasesEnabled=FALSE...done.

Setting MTA auth host...done.

Setting TimeZone Preference...done.

Initializing mta config...done.

Setting services on mail.zmailtech.com...done.

Creating domain zmailtech.com...done.

Setting default domain name...done.

Creating domain zmailtech.com...already exists.

Creating admin account admin@zmailtech.com...done.

Creating root alias...done.

Creating postmaster alias...done.

Creating user spam.x1ytb6pjz0@zmailtech.com...done.

Creating user ham.z2qbxcdhu@zmailtech.com...done.

Creating user virus-quarantine.mrc2px9g6@zmailtech.com...done.

Setting spam training and Anti-virus quarantine accounts...done.

Initializing store sql database...done.

Setting zimbraSmtpHostname for mail.zmailtech.com...done.

Configuring SNMP...done.

Setting up syslog.conf...done.

Starting servers...done.

Installing common zimlets...

            com_zimbra_phone...done.

            com_zimbra_attachcontacts...done.

            com_zimbra_ymemoticons...done.

            com_zimbra_attachmail...done.

            com_zimbra_proxy_config...done.

            com_zimbra_viewmail...done.

            com_zimbra_webex...done.

            com_zimbra_date...done.

            com_zimbra_bulkprovision...done.

            com_zimbra_email...done.

            com_zimbra_srchhighlighter...done.

            com_zimbra_adminversioncheck...done.

            com_zimbra_cert_manager...done.

            com_zimbra_clientuploader...done.

            com_zimbra_url...done.

            com_zimbra_tooltip...done.

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.0.7_GA_6021_RHEL6_64)

            The ADMIN EMAIL ADDRESS created (admin@zmailtech.com)



Notify Zimbra of your installation? [Yes] no

Notification skipped

Setting up zimbra crontab...done.





Moving /tmp/zmsetup.09162014-064354.log to /opt/zimbra/log





Configuration complete - press return to exit





[root@mail zcs-8.0.7_GA_6021.RHEL6_64.20140408123911 ]#

Check Zimbra Admin console with https://mail.zmailtech.com:7071
and for Zimbra web console with https://mail.zmailtech.com