Zimbra Installation Guide

http://www.linuxquestions.org/questions/linux-newbie-8/configure-zimbra-mail-server-on-rhel-6-a-4175425219/

[root@desktop10 ~]#

[root@desktop10 ~]# ifconfig

eth0      Link encap:Ethernet  HWaddr F4:6D:04:AE:7F:85

         inet addr:192.168.0.10  Bcast:192.168.0.255  Mask:255.255.255.0

       …

         RX bytes:549153357 (523.7 MiB)  TX bytes:4417409 (4.2 MiB)

         Interrupt:27 Base address:0x4000

[root@desktop10 ~]# cat /etc/sysconfig/network

NETWORKING=yes

HOSTNAME=desktop10.example.com

[root@desktop10 ~]#

[root@desktop10 ~]# cat /etc/hosts

192.168.0.10    desktop10.example.com    desktop10    # Added by NetworkManager

127.0.0.1    localhost.localdomain    localhost

::1    desktop10.example.com    desktop10    localhost6.localdomain6    localhost6

now configure DNS server for zimbra mail server

[root@desktop10 ~]# yum install nc bind* -y

[root@desktop10 ~]# /etc/init.d/named restart

Stopping named:                                            [  OK  ]

Starting named:                                            [  OK  ]

[root@desktop10 ~]# chkconfig named on

[root@desktop10 ~]# cat /etc/named.conf

options {

   listen-on port 53 { 127.0.0.1; 192.168.0.10; };

   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; };

   recursion yes;

   dnssec-enable yes;

   dnssec-validation yes;

   dnssec-lookaside auto;

   /* Path to ISC DLV key */

   bindkeys-file “/etc/named.iscdlv.key”;

};

logging {

       channel default_debug {

               file “data/named.run”;

               severity dynamic;

       };

};

zone “.” IN {

   type hint;

   file “named.ca”;

};

zone “example.com” IN {

   type master;

   file “example.com.forward”;

};

zone “0.168.192.in-addr.arpa” IN {

   type master;

   file “example.com.reverse”;

};

include “/etc/named.rfc1912.zones”;

[root@desktop10 ~]#

[root@desktop10 ~]# cd /var/named/

[root@desktop10 named]# cp named.localhost example.com.forward

[root@desktop10 named]# cp named.loopback example.com.reverse

[root@desktop10 named]#

[root@desktop10 named]# chgrp named example.com.*

[root@desktop10 named]# cat example.com.forward

$TTL 1D

@    IN SOA    desktop10.example.com. root.desktop10.example.com. (

                   0    ; serial

                   1D    ; refresh

                   1H    ; retry

                   1W    ; expire

                   3H )    ; minimum

   IN    NS    desktop10.example.com.

;    A    127.0.0.1

;    AAAA    ::1

example.com    IN    MX    5    desktop10.example.com.

desktop10    IN    A    192.168.0.10

[root@desktop10 named]#

[root@desktop10 named]# vim example.com.reverse

[root@desktop10 named]# cat example.com.reverse

$TTL 1D

@    IN SOA    desktop10.example.com. root.desktop10.example.com. (

                   0    ; serial

                   1D    ; refresh

                   1H    ; retry

                   1W    ; expire

                   3H )    ; minimum

   IN    NS    desktop10.example.com.

;    A    127.0.0.1

;    AAAA    ::1

10    IN    PTR    desktop10.example.com.

[root@desktop10 named]# /etc/init.d/named restart

Stopping named:                                            [  OK  ]

Starting named:                                            [  OK  ]

[root@desktop10 named]# cat /etc/resolv.conf

nameserver 192.168.0.10

[root@desktop10 ~]# dig desktop10.example.com

; <<>> DiG 9.7.0-P2-RedHat-9.7.0-5.P2.el6 <<>> desktop10.example.com

;; global options: +cmd

;; Got answer:

;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 32497

;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 0

;; QUESTION SECTION:

;desktop10.example.com.        IN    A

;; ANSWER SECTION:

desktop10.example.com.    86400    IN    A    192.168.0.10

;; AUTHORITY SECTION:

example.com.        86400    IN    NS    desktop10.example.com.

;; Query time: 1 msec

;; SERVER: 192.168.0.10#53(192.168.0.10)

;; WHEN: Fri Sep  7 11:55:40 2012

;; MSG SIZE  rcvd: 69

[root@desktop10 ~]# dig -x 192.168.0.10

; <<>> DiG 9.7.0-P2-RedHat-9.7.0-5.P2.el6 <<>> -x 192.168.0.10

;; global options: +cmd

;; Got answer:

;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 38039

;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 1

;; QUESTION SECTION:

;10.0.168.192.in-addr.arpa.    IN    PTR

;; ANSWER SECTION:

10.0.168.192.in-addr.arpa. 86400 IN    PTR    desktop10.example.com.

;; AUTHORITY SECTION:

0.168.192.in-addr.arpa.    86400    IN    NS    desktop10.example.com.

;; ADDITIONAL SECTION:

desktop10.example.com.    86400    IN    A    192.168.0.10

;; Query time: 1 msec

;; SERVER: 192.168.0.10#53(192.168.0.10)

;; WHEN: Fri Sep  7 11:56:17 2012

;; MSG SIZE  rcvd: 108

[root@desktop10 ~]# dig example.com -t mx

; <<>> DiG 9.7.0-P2-RedHat-9.7.0-5.P2.el6 <<>> example.com -t mx

;; global options: +cmd

;; Got answer:

;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 1902

;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 1

;; QUESTION SECTION:

;example.com.            IN    MX

;; ANSWER SECTION:

example.com.        86400    IN    MX    5 desktop10.example.com.

;; AUTHORITY SECTION:

example.com.        86400    IN    NS    desktop10.example.com.

;; ADDITIONAL SECTION:

desktop10.example.com.    86400    IN    A    192.168.0.10

;; Query time: 1 msec

;; SERVER: 192.168.0.10#53(192.168.0.10)

;; WHEN: Fri Sep  7 11:56:47 2012

;; MSG SIZE  rcvd: 85

[root@desktop10 ~]#

[root@desktop10 ~]# cd /opt/

[root@desktop10 opt]# tar -zxvf zcs-7.1.3_GA_3346.RHEL6_64.20110928134428.tgz

[root@desktop10 opt]#

[root@desktop10 opt]# ls

lost+found

zcs-7.1.3_GA_3346.RHEL6_64.20110928134428

zcs-7.1.3_GA_3346.RHEL6_64.20110928134428.tgz

[root@desktop10 opt]#

[root@desktop10 opt]# cd zcs-7.1.3_GA_3346.RHEL6_64.20110928134428

[root@desktop10 zcs-7.1.3_GA_3346.RHEL6_64.20110928134428]#

[root@desktop10 zcs-7.1.3_GA_3346.RHEL6_64.20110928134428]# ls

bin   docs        packages                 readme_source_en_US.txt  util

data  install.sh  readme_binary_en_US.txt  README.txt

[root@desktop10 zcs-7.1.3_GA_3346.RHEL6_64.20110928134428]#

[root@desktop10 zcs-7.1.3_GA_3346.RHEL6_64.20110928134428]#

both http and postfix must be stoped

[root@desktop10 zcs-7.1.3_GA_3346.RHEL6_64.20110928134428]# /etc/init.d/postfix stop

Shutting down postfix:                                     [  OK  ]

[root@desktop10 zcs-7.1.3_GA_3346.RHEL6_64.20110928134428]# /etc/init.d/h

haldaemon  halt       httpd

[root@desktop10 zcs-7.1.3_GA_3346.RHEL6_64.20110928134428]# /etc/init.d/httpd stop

Stopping httpd:                                            [FAILED]

[root@desktop10 zcs-7.1.3_GA_3346.RHEL6_64.20110928134428]#

[root@desktop10 zcs-7.1.3_GA_3346.RHEL6_64.20110928134428]# ./install.sh

Operations logged to /tmp/install.log.8932

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.1.html

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.7.2p2-9

    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]

Install zimbra-logger [Y]

Install zimbra-mta [Y]

Install zimbra-snmp [Y]

Install zimbra-store [Y]

Install zimbra-apache [Y]

Install zimbra-spell [Y]

Install zimbra-memcached [N]

Install zimbra-proxy [N]

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

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/prelink.conf…done.

Cleaning up /etc/security/limits.conf…done.

Finished removing Zimbra Collaboration Suite.

Installing packages

    zimbra-core……zimbra-core-7.1.3_GA_3346.RHEL6_64-20110928134428.x86_64.rpm…done

    zimbra-ldap……zimbra-ldap-7.1.3_GA_3346.RHEL6_64-20110928134428.x86_64.rpm…done

    zimbra-logger……zimbra-logger-7.1.3_GA_3346.RHEL6_64-20110928134428.x86_64.rpm…done

    zimbra-mta……zimbra-mta-7.1.3_GA_3346.RHEL6_64-20110928134428.x86_64.rpm…done

    zimbra-snmp……zimbra-snmp-7.1.3_GA_3346.RHEL6_64-20110928134428.x86_64.rpm…done

    zimbra-store……zimbra-store-7.1.3_GA_3346.RHEL6_64-20110928134428.x86_64.rpm…done

    zimbra-apache……zimbra-apache-7.1.3_GA_3346.RHEL6_64-20110928134428.x86_64.rpm…done

    zimbra-spell……zimbra-spell-7.1.3_GA_3346.RHEL6_64-20110928134428.x86_64.rpm…done

Operations logged to /tmp/zmsetup.09072012-120351.log

Installing LDAP configuration database…done.

Setting defaults…

DNS ERROR resolving MX for desktop10.example.com

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

Change domain name? [Yes]

Create domain: [desktop10.example.com] example.com

   MX: desktop10.example.com (192.168.0.10)

   Interface: 192.168.0.10

   Interface: 127.0.0.1

done.

Main menu

  1) Common Configuration:

  2) zimbra-ldap:                             Enabled

  3) zimbra-store:                            Enabled

       +Create Admin User:                    yes

       +Admin user to create:                 admin@example.com

******* +Admin Password                        UNSET

       +Anti-virus quarantine user:           virus-quarantine.1yct6rh3s@example.com

       +Enable automated spam training:       yes

       +Spam training user:                   spam.6iarmmbg@example.com

       +Non-spam(Ham) training user:          ham.gdsavisckl@example.com

       +SMTP host:                            desktop10.example.com

       +Web server HTTP port:                 80

       +Web server HTTPS port:                443

       +Web server mode:                      http

       +IMAP server port:                     143

       +IMAP server SSL port:                 993

       +POP server port:                      110

       +POP server SSL port:                  995

       +Use spell check server:               yes

       +Spell server URL:                     http://desktop10.example.com:7780/aspell.php

       +Configure for use with mail proxy:    FALSE

       +Configure for use with web proxy:     FALSE

       +Enable version update checks:         TRUE

       +Enable version update notifications:  TRUE

       +Version update notification email:    admin@example.com

       +Version update source email:          admin@example.com

  4) zimbra-mta:                              Enabled

  5) zimbra-snmp:                             Enabled

  6) zimbra-logger:                           Enabled

  7) zimbra-spell:                            Enabled

  8) 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        # to set admin password

Store configuration

  1) Status:                                  Enabled

  2) Create Admin User:                       yes

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

** 4) Admin Password                           UNSET

  5) Anti-virus quarantine user:              virus-quarantine.1yct6rh3s@example.com

  6) Enable automated spam training:          yes

  7) Spam training user:                      spam.6iarmmbg@example.com

  8) Non-spam(Ham) training user:             ham.gdsavisckl@example.com

  9) SMTP host:                               desktop10.example.com

 10) Web server HTTP port:                    80

 11) Web server HTTPS port:                   443

 12) Web server mode:                         http

 13) IMAP server port:                        143

 14) IMAP server SSL port:                    993

 15) POP server port:                         110

 16) POP server SSL port:                     995

 17) Use spell check server:                  yes

 18) Spell server URL:                        http://desktop10.example.com:7780/aspell.php

 19) Configure for use with mail proxy:       FALSE

 20) Configure for use with web proxy:        FALSE

 21) Enable version update checks:            TRUE

 22) Enable version update notifications:     TRUE

 23) Version update notification email:       admin@example.com

 24) Version update source email:             admin@example.com

Select, or ‘r’ for previous menu [r] 4

Password for admin@example.com (min 6 characters): [9tnPTKipR] redhat

Store configuration

  1) Status:                                  Enabled

  2) Create Admin User:                       yes

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

  4) Admin Password                           set

  5) Anti-virus quarantine user:              virus-quarantine.1yct6rh3s@example.com

  6) Enable automated spam training:          yes

  7) Spam training user:                      spam.6iarmmbg@example.com

  8) Non-spam(Ham) training user:             ham.gdsavisckl@example.com

  9) SMTP host:                               desktop10.example.com

 10) Web server HTTP port:                    80

 11) Web server HTTPS port:                   443

 12) Web server mode:                         http

 13) IMAP server port:                        143

 14) IMAP server SSL port:                    993

 15) POP server port:                         110

 16) POP server SSL port:                     995

 17) Use spell check server:                  yes

 18) Spell server URL:                        http://desktop10.example.com:7780/aspell.php

 19) Configure for use with mail proxy:       FALSE

 20) Configure for use with web proxy:        FALSE

 21) Enable version update checks:            TRUE

 22) Enable version update notifications:     TRUE

 23) Version update notification email:       admin@example.com

 24) Version update source email:             admin@example.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) 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]

Save config in file: [/opt/zimbra/config.18116]

Saving config in /opt/zimbra/config.18116…done.

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

Operations logged to /tmp/zmsetup.09072012-120351.log

Setting local config values…done.

Setting up CA…done.

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

Creating SSL certificate…done.

Installing mailboxd SSL certificates…done.

Initializing ldap…done.

Setting replication password…done.

Setting Postfix password…done.

Setting amavis password…done.

Setting nginx password…done.

Setting BES searcher  password…done.

Creating server entry for desktop10.example.com…done.

Saving CA in ldap …done.

Saving SSL Certificate in ldap …done.

Setting spell check URL…done.

Setting service ports on desktop10.example.com…done.

Adding desktop10.example.com to zimbraMailHostPool in default COS…done.

Installing webclient skins…

   twilight…done.

   steel…done.

   sand…done.

   carbon…done.

   smoke…done.

   hotrod…done.

   beach…done.

   lake…done.

   bones…done.

   pebble…done.

   lemongrass…done.

   tree…done.

   sky…done.

   oasis…done.

   waves…done.

   bare…done.

   lavender…done.

Finished installing webclient skins.

Setting zimbraFeatureTasksEnabled=TRUE…done.

Setting zimbraFeatureBriefcasesEnabled=TRUE…done.

Setting MTA auth host…done.

Setting TimeZone Preference…done.

Initializing mta config…done.

Setting services on desktop10.example.com…done.

Creating domain example.com…done.

Setting default domain name…done.

Creating domain example.com…already exists.

Creating admin account admin@example.com…done.

Creating root alias…done.

Creating postmaster alias…done.

Creating user spam.6iarmmbg@example.com…done.

Creating user ham.gdsavisckl@example.com…done.

Creating user virus-quarantine.1yct6rh3s@example.com…done.

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

Initializing store sql database…done.

Setting zimbraSmtpHostname for desktop10.example.com…done.

Configuring SNMP…done.

Checking for default IM conference room…not present.

Initializing default IM conference room…done.

Setting up syslog.conf…done.

You have the option of notifying Zimbra of your installation.

This helps us to track the uptake of the Zimbra Collaboration Suite.

The only information that will be transmitted is:

   The VERSION of zcs installed (7.1.3_GA_3346_RHEL6_64)

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

Notify Zimbra of your installation? [Yes]         # its not compulsary to notify you may choose No

Notifying Zimbra of installation via http://www.zimbra.com/cgi-bin/notify.cgi?VER=7.1.3_GA_3346_RHEL6_64&MAIL=admin@example.com

Notification complete

Starting servers…done.

Installing common zimlets…

   com_zimbra_social…done.

   com_zimbra_phone…done.

   com_zimbra_linkedin…done.

   com_zimbra_date…done.

   com_zimbra_dnd…done.

   com_zimbra_cert_manager…done.

   com_zimbra_srchhighlighter…done.

   com_zimbra_adminversioncheck…done.

   com_zimbra_attachmail…done.

   com_zimbra_webex…done.

   com_zimbra_attachcontacts…done.

   com_zimbra_url…done.

   com_zimbra_bulkprovision…done.

   com_zimbra_email…done.

Finished installing common zimlets.

Restarting mailboxd…done.

Setting up zimbra crontab…done.

Moving /tmp/zmsetup.09072012-120351.log to /opt/zimbra/log

Configuration complete – press return to exit

[root@desktop10 zcs-7.1.3_GA_3346.RHEL6_64.20110928134428]#

[root@desktop10 zcs-7.1.3_GA_3346.RHEL6_64.20110928134428]# cd

[root@desktop10 ~]# su – zimbra

[zimbra@desktop10 ~]$

[zimbra@desktop10 ~]$ zmcontrol status

Host desktop10.example.com

   antispam                Running

   antivirus               Running

   ldap                    Running

   logger                  Running

   mailbox                 Running

   mta                     Running

   snmp                    Running

   spell                   Running

   stats                   Running

   zmconfigd               Running

[zimbra@desktop10 ~]$

[zimbra@desktop10 ~]$ logout

[root@desktop10 ~]#

now type in firefox browser

http://desktop10.example.com        # its for zimbra client console

https://desktop10.example.com:7071    # its for zimbra admin console

and login with username “admin” with password “redhat” which we have define before.

now enjoy………………….

Advertisements

About bpn4it

Feel Free in Linux. Bipin Patel bpn4it@gmail.com Ahmadabad, Gujarat, India
This entry was posted in Uncategorized and tagged , , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s