How to Upgrade Zimbra Collaboration Suite 8.0.8 to 8.0.9 on CentOS 7.0

Early of November 2014, Zimbra has released the updates to Zimbra Collaboration Suite (ZCS) 8.0.9 and ZCS 8.5.1. The following are the comparison in the bug list resolved betweenZCS 8.0.9 and ZCS 8.5.1 :

8.5.1 – Bug List resolved

96008 – Upgrade to OpenSSL 1.0.1j in all Zimbra Collaboration components, fixing a critical security issue with Dos vulnerability
95237 – Zimbra Disclaimer/Signature Option per Domain does not work.
95461 – RHEL rpm packaging sets /opt/zimbra/conf files as executable
96145 – Moscow timezone change
94725 – Update timezones.ics to tzdata2014i.tar.gz
96084 – Logrotate Cron error after update to 8.0.8
96120 – ZCS open source license update for 8.5.1 GA
96195 – Upgrade step for migrating global disclaimers to domain level is broken

8.0.9 – Bug List resolved

96008 – Upgrade to OpenSSL 1.0.1j in all Zimbra Collaboration components, fixing a critical security issue with Dos vulnerability
96145 – Moscow timezone change
94725 – Update timezones.ics to tzdata2014i.tar.gz
96084 – Logrotate Cron error after update to 8.0.8
96113 – ZCS open source license update for 8.0.9 GA

There are 4 major fixed in ZCS 8.0.9 which also included in the ZCS 8.5.1 release.

Major Issues Fixed for 8.0.9

1. Admin – Utilities
• 96084 – Logrotate Cron error after update to 8.0.8 is fixed.

2. Install and Upgrade
• 96008 – Upgraded to OpenSSL 1.0.1j. See https://www.openssl.org/news/secadv_20141015.txt and Security Fixes for more information.
• 96113 – ZCS open source license update

3. Security Fix
• 96105 – Security Fix. For more information, see Security Fixes on page 24.

4. Timezone Changes
Updated Zimbra to be aware of the latest timezone information, in particular reflecting changes Russia has made to its existing time zones from October 26, 2014.
• 94725 – Updated timezones.ics to tzdata2014i.tar.gz
• 96145 – Rules for Europe/Moscow timezone do not reflect

I have prepared the steps to upgrade the Zimbra Open Source Edition from 8.0.8 to 8.0.9 in CentOS 7.0.

1. Download Zimbra packages:
a. Download Zimbra Collaboration Suite 8.0.9 :

[root@centos7 ~]# wget http://files2.zimbra.com/downloads/8.0.9_GA/zcs-8.0.9_GA_6191.RHEL7_64.20141103151539.tgz

b. Download Zimbra Collaboration Suite 8.5.1 :

[root@centos7 ~]# wget http://files2.zimbra.com/downloads/8.5.1_GA/zcs-8.5.1_GA_3056.RHEL7_64.20141103151515.tgz

2. Log in as root to the Zimbra server and cd to the directory where the ZCS Open Source Edition 8.0.9 archive tar file is saved. Type the following commands to unpack:

[root@centos7 ~]# tar xzvf zcs-8.0.9_GA_6191.RHEL7_64.20141103151539.tgz
[root@centos7 ~]# cd zcs-8.0.9_GA_6191.RHEL7_64.20141103151539

3. To begin the upgrade installation, type the following command :

./install.sh --platform-override
[root@centos7 zcs-8.0.9_GA_6191.RHEL7_64.20141103151539]# ./install.sh --platform-override

Full installation steps :

[root@centos7 zcs-8.0.9_GA_6191.RHEL7_64.20141103151539]# ./install.sh --platform-override

Operations logged to /tmp/install.log.24390
Checking for existing installation...
    zimbra-ldap...FOUND zimbra-ldap-8.0.8_GA_6184
    zimbra-logger...FOUND zimbra-logger-8.0.8_GA_6184
    zimbra-mta...FOUND zimbra-mta-8.0.8_GA_6184
    zimbra-snmp...FOUND zimbra-snmp-8.0.8_GA_6184
    zimbra-store...FOUND zimbra-store-8.0.8_GA_6184
    zimbra-apache...FOUND zimbra-apache-8.0.8_GA_6184
    zimbra-spell...FOUND zimbra-spell-8.0.8_GA_6184
    zimbra-convertd...NOT FOUND
    zimbra-memcached...NOT FOUND
    zimbra-proxy...NOT FOUND
    zimbra-archiving...NOT FOUND
    zimbra-cluster...NOT FOUND
    zimbra-core...FOUND zimbra-core-8.0.8_GA_6184
ZCS upgrade from 8.0.8 to 8.0.9 will be performed.

Saving existing configuration file to /opt/zimbra/.saveconfig


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



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


..
..

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

Checking for prerequisites...
     FOUND: NPTL
     FOUND: nmap-ncat-6.40-4
     FOUND: sudo-1.8.6p7-11
     FOUND: libidn-1.28-3
     FOUND: gmp-5.1.1-5
     FOUND: libaio-0.3.109-12
     FOUND: libstdc++-4.8.2-16.2
     FOUND: unzip-6.0-13
     FOUND: perl-core-5.16.3-283

Checking for suggested prerequisites...
     FOUND: perl-5.16.3
     FOUND: sysstat
     FOUND: sqlite
Prerequisite check complete.
Checking current number of databases...

Do you want to verify message store database integrity? [Y]
Verifying integrity of message store databases.  This may take a while.
mysqld is alive
No errors found

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


The Zimbra Collaboration Server appears already to be installed.
It can be upgraded with no effect on existing accounts,
or the current installation can be completely removed prior
to installation for a clean install.

Do you wish to upgrade? [Y] y

Select the packages to install
    Upgrading zimbra-core
    Upgrading zimbra-ldap
    Upgrading zimbra-logger
    Upgrading zimbra-mta
    Upgrading zimbra-snmp
    Upgrading zimbra-store
    Upgrading zimbra-apache
    Upgrading zimbra-spell

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

Shutting down zimbra mail

Backing up the ldap database...done.

Removing existing packages

   zimbra-ldap...done
   zimbra-logger...done
   zimbra-mta...done
   zimbra-snmp...done
   zimbra-store...done
   zimbra-spell...done
   zimbra-apache...done
   zimbra-core...done

Removing deployed webapp directories
Installing packages

    zimbra-core......zimbra-core-8.0.9_GA_6191.RHEL7_64-20141103151539.x86_64.rpm...done
    zimbra-ldap......zimbra-ldap-8.0.9_GA_6191.RHEL7_64-20141103151539.x86_64.rpm...done
    zimbra-logger......zimbra-logger-8.0.9_GA_6191.RHEL7_64-20141103151539.x86_64.rpm...done
    zimbra-mta......zimbra-mta-8.0.9_GA_6191.RHEL7_64-20141103151539.x86_64.rpm...done
    zimbra-snmp......zimbra-snmp-8.0.9_GA_6191.RHEL7_64-20141103151539.x86_64.rpm...done
    zimbra-store......zimbra-store-8.0.9_GA_6191.RHEL7_64-20141103151539.x86_64.rpm...done
    zimbra-apache......zimbra-apache-8.0.9_GA_6191.RHEL7_64-20141103151539.x86_64.rpm...done
    zimbra-spell......zimbra-spell-8.0.9_GA_6191.RHEL7_64-20141103151539.x86_64.rpm...done

Setting defaults from saved config in /opt/zimbra/.saveconfig/config.save
   HOSTNAME=mail.example.local
   LDAPHOST=mail.example.local
   LDAPPORT=389
   SNMPTRAPHOST=mail.example.local
   SMTPSOURCE=admin@example.local
   SMTPDEST=admin@example.local
   SNMPNOTIFY=yes
   SMTPNOTIFY=yes
   LDAPROOTPW=XIaxHi57on
   LDAPZIMBRAPW=XIaxHi57on
   LDAPPOSTPW=XIaxHi57on
   LDAPREPPW=XIaxHi57on
   LDAPAMAVISPW=XIaxHi57on
   LDAPNGINXPW=XIaxHi57on
Restoring existing configuration file from /opt/zimbra/.saveconfig/localconfig.xml...done
Operations logged to /tmp/zmsetup.11152014-152654.log
Upgrading from 8.0.8_GA_6184 to 8.0.9_GA_6191
Stopping zimbra services...done.
This appears to be 8.0.8_GA
Starting mysql...done.
Checking ldap status...not running.
Running zmldapapplyldif...done.
Checking ldap status...not running.
Starting ldap...done.
Stopping mysql...done.
Updating from 8.0.9_GA
Updating global config and COS's with attributes introduced after 8.0.8_GA...done.
Stopping ldap...done.
Upgrade complete.

Running zmldapapplyldif...done.
Checking ldap status....not running.
Starting ldap...done.
Setting defaults...done.
Setting defaults from existing config...done.
Checking for port conflicts
Setting defaults from ldap...done.
Saving config in /opt/zimbra/config.5230...done.
Operations logged to /tmp/zmsetup.11152014-152654.log
Setting local config values...done.
Initializing core config...Setting up CA...done.
Deploying CA to /opt/zimbra/conf/ca ...done.
Setting replication password...done.
Setting Postfix password...done.
Setting amavis password...done.
Setting nginx password...done.
Creating server entry for mail.example.local...already exists.
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.example.local...done.
Adding mail.example.local to zimbraMailHostPool in default COS...done.
Setting Keyboard Shortcut Preferences...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.example.local...done.
Creating user spam.zuum3_i3g@example.local...already exists.
Creating user ham.sblunut9k@example.local...already exists.
Creating user virus-quarantine.60bpggjwr@example.local...already exists.
Setting spam training and Anti-virus quarantine accounts...done.
Configuring SNMP...done.
Setting up syslog.conf...done.
Starting servers...done.
Checking for deprecated zimlets...done.
Checking for network zimlets in LDAP...done.
Removing network zimlets...
Finished removing network zimlets.
Installing common zimlets...
        com_zimbra_proxy_config...done.
        com_zimbra_attachmail...done.
        com_zimbra_url...done.
        com_zimbra_phone...done.
        com_zimbra_date...done.
        com_zimbra_ymemoticons...done.
        com_zimbra_clientuploader...done.
        com_zimbra_srchhighlighter...done.
        com_zimbra_tooltip...done.
        com_zimbra_webex...done.
        com_zimbra_bulkprovision...done.
        com_zimbra_email...done.
        com_zimbra_adminversioncheck...done.
        com_zimbra_cert_manager...done.
        com_zimbra_viewmail...done.
        com_zimbra_attachcontacts...done.
Finished installing common zimlets.
Getting list of all zimlets...done.
Updating non-standard zimlets...
Finished updating non-standard zimlets.
Restarting mailboxd...done.
Skipping creation of default domain GAL sync account - existing install detected.

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.9_GA_6191_RHEL7_64)
        The ADMIN EMAIL ADDRESS created (admin@example.local)

Notify Zimbra of your installation? [Yes] no
Notification skipped
Setting up zimbra crontab...done.


Moving /tmp/zmsetup.11152014-152654.log to /opt/zimbra/log


Configuration complete - press return to exit

4. When Configuration complete – press return to exit displays, press Enter. The upgrade is complete.

5. Start Zimbra service :

[root@centos7 ~]# su - zimbra
[zimbra@centos7 ~]$ zmcontrol restart

6. Check zimbra version :

[zimbra@centos7 ~]$ zmcontrol -v
Release 8.0.9_GA_6191.RHEL7_64_20141103151539 RHEL7_64 FOSS edition.

Thats all..

How to Setup Zimbra Collaboration Suite 8.0.8 on CentOS 7.0

Zimbra Collaboration Suite (ZCS) is a groupware product created by Zimbra, Inc. Zimbra Collaboration Open Source Edition version 8.0.8 is available for us to test, evaluate, deploy, customize and improve. I have prepared the steps to install and configure Zimbra Collaboration Suite 8.0.8 on CentOS 7.0. There are new features and enhancements available in the ZCS 8.0.8 Open Source release as below :

Major Issues Fixed for 8.0.8

Admin Console:
• Improved admin console usability when returned results are over the limit.
• GetEffectiveRightRequest in searchdirectory request loading improved.
• Fixed issued causing ZCS 8.0.7 Patch 1 breaking delegated admin functionality.
• Delegated admin ability to edit distribution list fixed.
• Delegated admin ability to edit account fixed.
• Delegated admin ability to edit resources fixed.

Backup and Restore:
• Folders now accessible after a restore of users account.

Briefcase – Server:
• Ability to edit Zimbra Document in Briefcase.
• Share URL correct when selecting files in shared briefcase.

IMAP/POP Server:
• Handling translation of IMAP metacharacters into regexes no longer causes high server load when IMAP LIST commands are issued.

Install and Upgrade:
• Updated EULA.
• MySQL version upgrade is performed prior to checking if upgrade is possible.
• Fixed issue during replication and MMR mode configuration causing masters to go into endless loop.

Localization:
• Fixed typo in ZsMsg_fr.properties results in the share access URL not being embedded in the email.

Mail – MTA/Spam/Virus:
• zmmtactl restart is an option post 8.0.7 upgrade.

Mail – Server:
• Fixed issue causing zmmboxmove to exhaust LDAP connection pool during migrations.

Steps to Install and Configure ZCS 8.0.8 :

1. Prepare for Fully qualified domain name (FQDN) for your zimbra mail server and make sure your domain mx record in configured properly.

2. Configure /etc/hosts and hostname.

3. Allow iptables to listen zimbra ports.

4. Disabled SELINUX :

[root@centos7 ~]# vim /etc/sysconfig/selinux

Change enforcing to disabled :

# 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,
#     minimum - Modification of targeted policy. Only selected processes are protected.
#     mls - Multi Level Security protection.
SELINUXTYPE=targeted

5. Stop sendmail, postfix or any MTA service :

[root@centos7 ~]# systemctl stop postfix
[root@centos7 ~]# systemctl disable postfix
[root@centos7 ~]# systemctl stop sendmail
[root@centos7 ~]# systemctl disable sendmail

6. Install the required packages and libraries using the following command :

[root@centos7 ~]# yum install perl perl-core ntpl nmap sudo libidn gmp libaio libstdc++ unzip sysstat sqlite -y

7. Log in as root to the Zimbra server and cd to the directory where the ZCS Open Source Edition 8.0.8 archive tar file is saved. To unpack the file, type the following commands:

[root@centos7 ~]# tar xzvf zcs-8.0.8_GA_6184.RHEL7_64.20140925165850.tgz

8. Go to extracted directory and start the installation, do replace example.local to your own domain :

[root@centos7 ~]# cd zcs-8.0.8_GA_6184.RHEL7_64.20140925165850
[root@centos7 zcs-8.0.8_GA_6184.RHEL7_64.20140925165850]# ./install.sh --platform-override

Operations logged to /tmp/install.log.3552
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-5.html



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


..
..
..

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

Checking for prerequisites...
     FOUND: NPTL
     FOUND: nmap-ncat-6.40-4
     FOUND: sudo-1.8.6p7-11
     FOUND: libidn-1.28-3
     FOUND: gmp-5.1.1-5
     FOUND: libaio-0.3.109-12
     FOUND: libstdc++-4.8.2-16.2
     FOUND: unzip-6.0-13
     FOUND: perl-core-5.16.3-283

Checking for suggested prerequisites...
     FOUND: perl-5.16.3
     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/security/limits.conf...done.

Finished removing Zimbra Collaboration Server.

Installing packages

    zimbra-core......zimbra-core-8.0.8_GA_6184.RHEL7_64-20140925165850.x86_64.rpm...done
    zimbra-ldap......zimbra-ldap-8.0.8_GA_6184.RHEL7_64-20140925165850.x86_64.rpm...done
    zimbra-logger......zimbra-logger-8.0.8_GA_6184.RHEL7_64-20140925165850.x86_64.rpm...done
    zimbra-mta......zimbra-mta-8.0.8_GA_6184.RHEL7_64-20140925165850.x86_64.rpm...done
    zimbra-snmp......zimbra-snmp-8.0.8_GA_6184.RHEL7_64-20140925165850.x86_64.rpm...done
    zimbra-store......zimbra-store-8.0.8_GA_6184.RHEL7_64-20140925165850.x86_64.rpm...done
    zimbra-apache......zimbra-apache-8.0.8_GA_6184.RHEL7_64-20140925165850.x86_64.rpm...done
    zimbra-spell......zimbra-spell-8.0.8_GA_6184.RHEL7_64-20140925165850.x86_64.rpm...done
Operations logged to /tmp/zmsetup.11132014-000729.log
Installing LDAP configuration database...done.
Setting defaults...No results returned for A lookup of centos7.ehowstuff.local
Checked nameservers:
        127.0.0.1
No results returned for AAAA lookup of centos7.ehowstuff.local
Checked nameservers:
        127.0.0.1


DNS ERROR resolving centos7.ehowstuff.local
It is suggested that the hostname be resolvable via DNS
Change hostname [Yes] yes
Please enter the logical hostname for this host [centos7.ehowstuff.local] mail.example.local


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

        Interface: 127.0.0.1
        Interface: ::1
        Interface: 192.168.0.70
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.local
******* +Admin Password                        UNSET
        +Anti-virus quarantine user:           virus-quarantine.60bpggjwr@example.local
        +Enable automated spam training:       yes
        +Spam training user:                   spam.zuum3_i3g@example.local
        +Non-spam(Ham) training user:          ham.sblunut9k@example.local
        +SMTP host:                            mail.example.local
        +Web server HTTP port:                 80
        +Web server HTTPS port:                443
        +Web server mode:                      https
        +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.local: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@centos7.ehowstuff.local
        +Version update source email:          admin@centos7.ehowstuff.local

   4) zimbra-mta:                              Enabled
   5) zimbra-snmp:                             Enabled
   6) zimbra-logger:                           Enabled
   7) zimbra-spell:                            Enabled
   8) Enable VMware HA:                        no
   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@example.local
** 4) Admin Password                           UNSET
   5) Anti-virus quarantine user:              virus-quarantine.60bpggjwr@example.local
   6) Enable automated spam training:          yes
   7) Spam training user:                      spam.zuum3_i3g@example.local
   8) Non-spam(Ham) training user:             ham.sblunut9k@example.local
   9) SMTP host:                               mail.example.local
  10) Web server HTTP port:                    80
  11) Web server HTTPS port:                   443
  12) Web server mode:                         https
  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.local: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@centos7.ehowstuff.local
  24) Version update source email:             admin@centos7.ehowstuff.local

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

Password for admin@example.local (min 6 characters): [9j08ZCNI] password

Store configuration

   1) Status:                                  Enabled
   2) Create Admin User:                       yes
   3) Admin user to create:                    admin@example.local
   4) Admin Password                           set
   5) Anti-virus quarantine user:              virus-quarantine.60bpggjwr@example.local
   6) Enable automated spam training:          yes
   7) Spam training user:                      spam.zuum3_i3g@example.local
   8) Non-spam(Ham) training user:             ham.sblunut9k@example.local
   9) SMTP host:                               mail.example.local
  10) Web server HTTP port:                    80
  11) Web server HTTPS port:                   443
  12) Web server mode:                         https
  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.local: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@centos7.ehowstuff.local
  24) Version update source email:             admin@centos7.ehowstuff.local

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

Version update destination address: [admin@centos7.ehowstuff.local] admin@example.local

Store configuration

   1) Status:                                  Enabled
   2) Create Admin User:                       yes
   3) Admin user to create:                    admin@example.local
   4) Admin Password                           set
   5) Anti-virus quarantine user:              virus-quarantine.60bpggjwr@example.local
   6) Enable automated spam training:          yes
   7) Spam training user:                      spam.zuum3_i3g@example.local
   8) Non-spam(Ham) training user:             ham.sblunut9k@example.local
   9) SMTP host:                               mail.example.local
  10) Web server HTTP port:                    80
  11) Web server HTTPS port:                   443
  12) Web server mode:                         https
  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.local: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.local
  24) Version update source email:             admin@centos7.ehowstuff.local

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

Version update source address: [admin@centos7.ehowstuff.local] admin@example.local

Store configuration

   1) Status:                                  Enabled
   2) Create Admin User:                       yes
   3) Admin user to create:                    admin@example.local
   4) Admin Password                           set
   5) Anti-virus quarantine user:              virus-quarantine.60bpggjwr@example.local
   6) Enable automated spam training:          yes
   7) Spam training user:                      spam.zuum3_i3g@example.local
   8) Non-spam(Ham) training user:             ham.sblunut9k@example.local
   9) SMTP host:                               mail.example.local
  10) Web server HTTP port:                    80
  11) Web server HTTPS port:                   443
  12) Web server mode:                         https
  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.local: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.local
  24) Version update source email:             admin@example.local

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) Enable VMware HA:                        no
   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]
Save config in file: [/opt/zimbra/config.10476]
Saving config in /opt/zimbra/config.10476...done.
The system will be modified - continue? [No] yes
Operations logged to /tmp/zmsetup.11132014-000729.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.
Installing mailboxd SSL certificates...done.
Installing MTA SSL certificates...done.
Installing LDAP SSL certificate...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.local...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.example.local...done.
Adding mail.example.local 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.example.local...done.
Creating domain example.local...done.
Setting default domain name...done.
Creating domain example.local...already exists.
Creating admin account admin@example.local...done.
Creating root alias...done.
Creating postmaster alias...done.
Creating user spam.zuum3_i3g@example.local...done.
Creating user ham.sblunut9k@example.local...done.
Creating user virus-quarantine.60bpggjwr@example.local...done.
Setting spam training and Anti-virus quarantine accounts...done.
Initializing store sql database...done.
Setting zimbraSmtpHostname for mail.example.local...done.
Configuring SNMP...done.
Setting up syslog.conf...done.
Starting servers...done.
Installing common zimlets...
        com_zimbra_proxy_config...done.
        com_zimbra_attachmail...done.
        com_zimbra_url...done.
        com_zimbra_phone...done.
        com_zimbra_date...done.
        com_zimbra_ymemoticons...done.
        com_zimbra_clientuploader...done.
        com_zimbra_srchhighlighter...done.
        com_zimbra_tooltip...done.
        com_zimbra_webex...done.
        com_zimbra_bulkprovision...done.
        com_zimbra_email...done.
        com_zimbra_adminversioncheck...done.
        com_zimbra_cert_manager...done.
        com_zimbra_viewmail...done.
        com_zimbra_attachcontacts...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.8_GA_6184_RHEL7_64)
        The ADMIN EMAIL ADDRESS created (admin@example.local)

Notify Zimbra of your installation? [Yes] no
Notification skipped
Setting up zimbra crontab...done.


Moving /tmp/zmsetup.11132014-000729.log to /opt/zimbra/log


Configuration complete - press return to exit

9. Restart the zimbra service :

[zimbra@centos7 ~]$ zmcontrol restart

How to use tmpwatch to Auto Clean Up Files and Logs in Linux

Tmpwatch is tools that recursively removes files which have not been used or accessed for certain period of time. In this post, i will describe how we can automate the clean up process on log directory on linux CentOS 6.6. You can use tmpwatch to safely remove unwanted files for a given time.

1. How to install tmpwatch package :

[root@centos66 ~]# yum install tmpwatch -y

2. As example, delete all logs in /var/log/nginx for more than 30d(30 days).

[root@centos66 ~]# /usr/sbin/tmpwatch 30d /var/log/nginx

3. Add the tmpwatch into the cronjob so that we can automate the removal process. As example let the removal task start 10PM every night.

 
0 22 * * * /usr/sbin/tmpwatch 30d /var/log/nginx

Thats All.

How to Install open-vm-tools in CentOS 6.6

Q. How to install open-vm-tools in linux CentOS 6.6 ?

A. VMware is announcing the release of large portions of VMware Tools for Linux, Solaris and FreeBSD guests under GPL and GPL-compatible licenses. VMware is also announcing the creation of the Open Virtual Machine Tools (“open-vm-tools”) project on Sourceforge.net. Even-though CentOS 6 not on the recommendation list, you still able to install the third party VMware-Tools (open-vm-tools) via EPEL repo as below steps.

open-vm-tools is available with these operating systems:

  • Fedora 19 and later releases
  • Debian 7.x and later releases
  • openSUSE 11.x and later releases
  • Recent Ubuntu releases (12.04 LTS, 13.10 and later)
  • Red Hat Enterprise Linux 7.0 and later releases
  • SUSE Linux Enterprise 12 – available Q4 2014
  • CentOS 7
  • Oracle Linux 7

1. Prepare EPEL repo for CentOS 6.6

[root@centos66 ~]# rpm --import http://ftp.riken.jp/Linux/fedora/epel/RPM-GPG-KEY-EPEL-6
[root@centos66 ~]# rpm -ivh http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm

2. Simply run yum command to install open-vm-tools

[root@centos66 ~]# yum install open-vm-tools -y

Examples :

[root@centos66 ~]# yum install open-vm-tools -y
Loaded plugins: fastestmirror
Setting up Install Process
Loading mirror speeds from cached hostfile
 * base: centos.ipserverone.com
 * epel: kartolo.sby.datautama.net.id
 * extras: centos.ipserverone.com
 * updates: centos.ipserverone.com
Resolving Dependencies
--> Running transaction check
---> Package open-vm-tools.x86_64 0:9.4.6-1.el6 will be installed
--> Processing Dependency: libicuuc.so.42()(64bit) for package: open-vm-tools-9.4.6-1.el6.x86_64
--> Processing Dependency: libicui18n.so.42()(64bit) for package: open-vm-tools-9.4.6-1.el6.x86_64
--> Processing Dependency: libicudata.so.42()(64bit) for package: open-vm-tools-9.4.6-1.el6.x86_64
--> Processing Dependency: libdnet.so.1()(64bit) for package: open-vm-tools-9.4.6-1.el6.x86_64
--> Running transaction check
---> Package libdnet.x86_64 0:1.12-6.el6 will be installed
---> Package libicu.x86_64 0:4.2.1-9.1.el6_2 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

====================================================================================================
 Package                   Arch               Version                        Repository        Size
====================================================================================================
Installing:
 open-vm-tools             x86_64             9.4.6-1.el6                    epel             402 k
Installing for dependencies:
 libdnet                   x86_64             1.12-6.el6                     epel              28 k
 libicu                    x86_64             4.2.1-9.1.el6_2                base             4.9 M

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

Total download size: 5.3 M
Installed size: 20 M
Downloading Packages:
(1/3): libdnet-1.12-6.el6.x86_64.rpm                                         |  28 kB     00:00
http://centos.ipserverone.com/centos/6.6/os/x86_64/Packages/libicu-4.2.1-9.1.el6_2.x86_64.rpm: [Errno 12] Timeout on http://centos.ipserverone.com/centos/6.6/os/x86_64/Packages/libicu-4.2.1-9.1.el6_2.x86_64.rpm: (28, 'Operation too slow. Less than 1 bytes/sec transfered the last 30 seconds')
Trying other mirror.
(2/3): libicu-4.2.1-9.1.el6_2.x86_64.rpm                                     | 4.9 MB     01:21
(3/3): open-vm-tools-9.4.6-1.el6.x86_64.rpm                                  | 402 kB     00:04
----------------------------------------------------------------------------------------------------
Total                                                                44 kB/s | 5.3 MB     02:04
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Warning: RPMDB altered outside of yum.
  Installing : libdnet-1.12-6.el6.x86_64                                                        1/3
  Installing : libicu-4.2.1-9.1.el6_2.x86_64                                                    2/3
  Installing : open-vm-tools-9.4.6-1.el6.x86_64                                                 3/3
  Verifying  : libicu-4.2.1-9.1.el6_2.x86_64                                                    1/3
  Verifying  : open-vm-tools-9.4.6-1.el6.x86_64                                                 2/3
  Verifying  : libdnet-1.12-6.el6.x86_64                                                        3/3

Installed:
  open-vm-tools.x86_64 0:9.4.6-1.el6

Dependency Installed:
  libdnet.x86_64 0:1.12-6.el6                    libicu.x86_64 0:4.2.1-9.1.el6_2

Complete!

3. Start vmtoolsd service :

[root@centos66 ~]# service vmtoolsd start

What are the Differences Between the Open-VM-Tools package and VMware Tools package

Question.
Many of the system administrator asked whether they need to install Open-VM-Tools package or VMware Tools package that ships with ESX/ESXi VMware products.

Answer.
VMware Tools is a suite of utilities that enhances the performance of the virtual machine’s guest operating system and improves management of the virtual machine.

How to Install Vmware-tools for windows
How to Install Vmware-tools for Linux

The Open Virtual Machine Tools (open-vm-tools) are the open source implementation of VMware Tools. They consists of a suite of virtualization utilities that improves the functionality, administration, and management of virtual machines within a VMware environment. As virtualization technology rapidly becomes mainstream, each virtualization solution provider implements their own set of tools and utilities to supplement the guest virtual machine. The primary purpose for open-vm-tools is to enable operating system vendors and/or communities and virtual appliance vendors to bundle VMware Tools into their product releases.

open-vm-tools is available with these operating systems:

  • Fedora 19 and later releases
  • Debian 7.x and later releases
  • openSUSE 11.x and later releases
  • Recent Ubuntu releases (12.04 LTS, 13.10 and later)
  • Red Hat Enterprise Linux 7.0 and later releases
  • SUSE Linux Enterprise 12 – available Q4 2014
  • CentOS 7
  • Oracle Linux 7

Note : If your OS is not listed above, i would suggest you to install VMware Tools package that ships with ESX/ESXi VMware products.

VMware support policy

  • VMware recommends using open-vm-tools redistributed by operating system vendors.
  • VMware fully supports virtual machines that include open-vm-tools redistributed by operating system vendors, which is done in collaboration with the OS vendor and OS communities. However, the operating system release must be published as certified by the specific VMware product in the online VMware Compatibility Guide.
  • VMware provides assistance to operating system vendors and communities with the integration of open-vm-tools with OS releases.
  • VMware fully supports virtual appliances that include open-vm-tools, which is done in collaboration with the virtual appliance vendor.
  • VMware does not recommend removing open-vm-tools redistributed by operating system vendors.

References :
http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=2073803
http://partnerweb.vmware.com/GOSIG/CentOS_7.html

How to Create an Archive using tar Command

In Linux, tar command is the primary utility to create compressed archive files and directories. “tar” stands for tape archive and it is actually archiving file format. The following example will show you how to creating an archive using tar command.

tar option(s) archive_name file_name(s)
OptionsDescription
A, –catenate, –concatenateAppend tar files to an archive.
c, –createCreate a new archive.
d, –diff, –compareCalculate any differences between the archive and the file system.
–deleteDelete from the archive. (This function doesn’t work on magnetic tapes).
r, –appendAppend files to the end of a tar archive.
t, –listList the contents of an archive.
–test-labelTest the archive label, and exit.
u, –updateAppend files, but only those that are newer than the copy in the archive.
x, –extract, –getExtract files from an archive.
-v, –verboseOperate verbosely.
-z, –gzip, –gunzipThis option tells tar to read or write archives through gzip, allowing tar to directly operate on several kinds of compressed archives transparently. This option should be used, for example, when operating on files with the extension.tar.gz.
-Z, –compress, –uncompresstar will use the compress program when operating on files.

How to archive /home/scriptsmy directory :

[root@vps ~]# tar -cvf scriptsmy-07-11-2014.tar /home/scriptsmy

How to archive /home/scriptsmy directory then gunzip it :

[root@vps ~]# tar cvzf scriptsmy-07-11-2014.tar.gz /home/scriptsmy

3 Command to Change the Linux Date and Time in CentOS 7/RHEL 7

Red Hat Enterprise Linux 7 or CentOS 7 come with three default utilities or command line that help to configure and display the information about the system date and time:

3 Command to Change the Linux Date and Time in CentOS 7/RHEL 7

1.The timedatectl utility, which is new in Red Hat Enterprise Linux 7 and is part of systemd;
2.The traditional date command;
3.The hwclock utility for accessing the hardware clock.

1. timedatectl Utility

The timedatectl utility is a part of the systemd system and service manager that allows you to change the current date and time of the linux system.

1.1. How to check time server linux using timedatectl ?

Run the timedatectl command with no additional command line options:

[root@centos7 ~]# timedatectl
      Local time: Mon 2014-11-03 22:44:24 MYT
  Universal time: Mon 2014-11-03 14:44:24 UTC
        RTC time: Mon 2014-11-03 14:44:24
        Timezone: Asia/Kuala_Lumpur (MYT, +0800)
     NTP enabled: n/a
NTP synchronized: no
 RTC in local TZ: no
      DST active: n/a

1.2. How to set date on centos sing timedatectl ?

timedatectl set-time YYYY-MM-DD

Example of change the current date :

[root@centos7 ~]# timedatectl set-time 2014-11-04

1.3. How to change server time centos using timedatectl ?

timedatectl set-time HH:MM:SS

Example of change the current time :

[root@centos7 ~]# timedatectl set-time 00:50:00

1.4. How to change the Time Zone using timedatectl ?

Use the following command to list all available time zones in Asia :

[root@centos7 ~]# timedatectl list-timezones | grep Asia
Asia/Aden
Asia/Almaty
Asia/Amman
Asia/Anadyr
Asia/Aqtau
Asia/Aqtobe
Asia/Ashgabat
Asia/Baghdad
..
Asia/Kuala_Lumpur
..

In order to change the time zone to Asia/Kuala_Lumpur, type the following command as a root user :

[root@centos7 ~]# timedatectl set-timezone Asia/Kuala_Lumpur

2. date Utility

The date utility is available on all Linux systems. date allows you to display and change the current date and time and it is frequently used in scripts to display the system clock.

2.1. How to display the current Date and Time using date ?

To display the current date and time, run the date command with no additional command line options:

[root@centos7 ~]# date
Tue Nov  4 01:12:39 MYT 2014

This displays the day of the week followed by the current date, local time, abbreviated time zone, and year.

2.2. How to display the current Date and Time in customized the format ?

You can also customize the format of the displayed information by providing the +”format” option on the command line:

date +"format"

Example :

[root@centos7 ~]# date +"%Y-%m-%d %H:%M"
2014-11-04 01:20

2.3. How to change the current time using date ?

In order to change the current date and time, type the date command with the –set or -s option as a root user :

To change the current time, run the date command with the –set or -s option as root:

date +%T -s HH:MM:SS

Replace HH with an hour, MM with a minute, and SS with a second, all typed in a two-digit form.

As an example change the current time to 11:56 p.m., as a root, run the following command :

[root@centos7 ~]# date +%T --set 23:56:00

3. hwclock Utility

hwclock is a utility for accessing the hardware clock. Hardware clock is independent of the operation system you use and works even when the machine is shut down. This program is used to find out the time from the hardware clock and set the system time at boot time.

3.1 How to display the Current Date and Time using hwclock ?

To display the current date and time, run hwclock with no command line options as a root :

[root@centos7 ~]# hwclock
Tue 04 Nov 2014 01:41:08 AM MYT  -0.131049 seconds

3.2. How to change the current Date and Time using hwclock ?

In order to change the hardware clock date and time, you can do so by appending –set and –date options along with your specification:

hwclock --set --date "dd mmm yyyy HH:MM"

As an example, if we want to set the date and time to to “15:20, October 29, 2015”, run the command in the following format:

[root@centos7 ~]# hwclock --set --date "29 Oct 2015 15:20"

Note : In Red Hat Enterprise Linux 6 / CentOS 6, the hwclock command was run automatically on every system shutdown or reboot, but it is not in Red Hat Enterprise Linux 7 /CentOS 7.

For more information on how to change the Linux Date and time in Red Hat Enterprise Linux 7 and CentOS 7, please read the manual page for the timedatectl, date and hwclock.