How to Install Zimbra Collaboration Suite 7.1.4 Mail Server on CentOS 6.2 x86_64

In this post, i will share with you on how to install zimbra open source mail server on linux CentOS 6.2 x86_64 (64 bit) server. The original package of this Zimbra Collaboration Suite (zcs) is for Red Hat Enterprise Linux 6, however it’s tested working on CentOS 6 version. According to wikipedia, Zimbra Collaboration Suite (ZCS) is a groupware product created by Zimbra, Inc. It was located in Palo Alto, California, USA. In September 2007, The company was purchased by Yahoo! and subsequently purchased by VMware on January 12, 2010. Two current available version of the zimbra are zimbra open-source version and zimbra network version. Zimbra Network is commercial edition of Zimbra Collaboration Suite. Before you start this steps, make sure you have installed and configured all the prerequisites steps and software :

1. Download Zimbra Collaboration Suite 7.1.4 from zimbra official website :

[root@mail ~]# wget http://files2.zimbra.com/downloads/7.1.4_GA/zcs-7.1.4_GA_2555.RHEL6_64.20120105094542.tgz

2. Extract the downloaded zcs file :

[root@mail ~]# tar -xzvf 7.1.4_GA/zcs-7.1.4_GA_2555.RHEL6_64.20120105094542.tgz

3. Change directory to extracted zcs folder :

[root@mail ~]# cd zcs-7.1.4_GA_2555.RHEL6_64.20120105094542

4. Start installing zimbra using the following command. Make sure you put “–platform-override” as this zimbra is install on the operating system other than RHEL :

[root@mail zcs-7.1.4_GA_2555.RHEL6_64.20120105094542]# ./install.sh --platform-override

Example of full Zimbra Collaboration Suite 7.1.4 installation :

[root@mail zcs-7.1.4_GA_2555.RHEL6_64.20120105094542]# ./install.sh --platform-override

Operations logged to /tmp/install.log.22842
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: sudo-1.7.4p5-7
     FOUND: libidn-1.18-2
     FOUND: gmp-4.3.1-7
     FOUND: /usr/lib/libstdc++.so.6
Checking for suggested prerequisites...
     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

You appear to be installing packages on a platform different
than the platform for which they were built.

This platform is CentOSUNKNOWN_64
Packages found: RHEL6_64
This may or may not work.

Using packages for a platform in which they were not designed for
may result in an installation that is NOT usable. Your support
options may be limited if you choose to continue.


Install anyway? [N] y

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.4_GA_2555.RHEL6_64-20120105094542.x86_64.rpm...done
    zimbra-ldap......zimbra-ldap-7.1.4_GA_2555.RHEL6_64-20120105094542.x86_64.rpm...done
    zimbra-logger......zimbra-logger-7.1.4_GA_2555.RHEL6_64-20120105094542.x86_64.rpm...done
    zimbra-mta......zimbra-mta-7.1.4_GA_2555.RHEL6_64-20120105094542.x86_64.rpm...done
    zimbra-snmp......zimbra-snmp-7.1.4_GA_2555.RHEL6_64-20120105094542.x86_64.rpm...done
    zimbra-store......zimbra-store-7.1.4_GA_2555.RHEL6_64-20120105094542.x86_64.rpm...done
    zimbra-apache......zimbra-apache-7.1.4_GA_2555.RHEL6_64-20120105094542.x86_64.rpm...done
    zimbra-spell......zimbra-spell-7.1.4_GA_2555.RHEL6_64-20120105094542.x86_64.rpm...done
Operations logged to /tmp/zmsetup.04012012-202229.log
Installing LDAP configuration database...done.
Setting defaults...

DNS ERROR resolving MX for mail.example.com
It is suggested that the domain name have an MX record configured in DNS
Change domain name? [Yes]
Create domain: [mail.example.com] example.com
        MX: mail.example.com (192.168.1.20)

        Interface: 192.168.1.20
        Interface: 127.0.0.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@example.com
******* +Admin Password                        UNSET
        +Anti-virus quarantine user:           virus-quarantine.arpxp2fk_x@example.com
        +Enable automated spam training:       yes
        +Spam training user:                   spam.nr6hggm7yu@example.com
        +Non-spam(Ham) training user:          ham.swbriegq@example.com
        +SMTP host:                            mail.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://mail.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


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.arpxp2fk_x@example.com
   6) Enable automated spam training:          yes
   7) Spam training user:                      spam.nr6hggm7yu@example.com
   8) Non-spam(Ham) training user:             ham.swbriegq@example.com
   9) SMTP host:                               mail.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://mail.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): [cMYJeRN5oY] password

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.arpxp2fk_x@example.com
   6) Enable automated spam training:          yes
   7) Spam training user:                      spam.nr6hggm7yu@example.com
   8) Non-spam(Ham) training user:             ham.swbriegq@example.com
   9) SMTP host:                               mail.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://mail.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]

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.5436]
Saving config in /opt/zimbra/config.5436...done.
The system will be modified - continue? [No] yes
Operations logged to /tmp/zmsetup.04012012-202229.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 mail.example.com...done.
Saving CA in ldap ...done.
Saving SSL Certificate in ldap ...done.
Setting spell check URL...done.
Setting service ports on mail.example.com...done.
Adding mail.example.com to zimbraMailHostPool in default COS...done.
Installing webclient skins...
        beach...done.
        lavender...done.
        oasis...done.
        smoke...done.
        sand...done.
        pebble...done.
        lemongrass...done.
        lake...done.
        waves...done.
        sky...done.
        tree...done.
        steel...done.
        carbon...done.
        bare...done.
        hotrod...done.
        twilight...done.
        bones...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 mail.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.nr6hggm7yu@example.com...done.
Creating user ham.swbriegq@example.com...done.
Creating user virus-quarantine.arpxp2fk_x@example.com...done.
Setting spam training and Anti-virus quarantine accounts...done.
Initializing store sql database...done.
Setting zimbraSmtpHostname for mail.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.4_GA_2555_CentOSUNKNOWN_64)
        The ADMIN EMAIL ADDRESS created (admin@example.com)

Notify Zimbra of your installation? [Yes] no
Notification skipped
Starting servers...done.
Installing common zimlets...
        com_zimbra_email...done.
        com_zimbra_phone...done.
        com_zimbra_date...done.
        com_zimbra_cert_manager...done.
        com_zimbra_attachmail...done.
        com_zimbra_dnd...done.
        com_zimbra_social...done.
        com_zimbra_webex...done.
        com_zimbra_bulkprovision...done.
        com_zimbra_srchhighlighter...done.
        com_zimbra_adminversioncheck...done.
        com_zimbra_linkedin...done.
        com_zimbra_url...done.
        com_zimbra_attachcontacts...done.
Finished installing common zimlets.
Restarting mailboxd...done.
Setting up zimbra crontab...done.


Moving /tmp/zmsetup.04012012-202229.log to /opt/zimbra/log


Configuration complete - press return to exit

5. Login as zimbra user to administer zimbra mail services :

[root@mail ~]# su - zimbra

6. Check zimbra services :

[zimbra@mail ~]$ zmcontrol status
Host mail.example.com
        antispam                Running
        antivirus               Running
        ldap                    Running
        logger                  Running
        mailbox                 Running
        mta                     Running
        snmp                    Running
        spell                   Running
        stats                   Running
        zmconfigd               Running

7. Start zimbra services :

[zimbra@mail ~]$ zmcontrol start

8. Stop zimbra services :

[zimbra@mail ~]$ zmcontrol stop

Comments

3 Comments

  • Avatar tom miller says:

    I’ve been running the ZCS appliance v6.04 for about 8 months but it does not get updated very much. I saw version 7 is available and I wanted to run it on centos 6.2 verses as an appliance. Your guide was perfect timing for me and what a great write-up. I followed your guide about the prep work and I had no troubles at all. Wish all techies would document their processes as well as you have done here.

    Thanks tom miller

  • Avatar tom miller says:

    The only problem I’m having is splitDNS? I think. My internal domain is example.loc and my registered domain is example.com. Working to figure that out.

  • Avatar tom miller says:

    Cooking with gas! Followed http://wiki.zimbra.com/wiki/Split_DNS then followed your awesome article. Everything is perfect. Thanks again for your work. Site is bookmarked for sure.

Leave a Reply

Your email address will not be published. Required fields are marked *