1

-----

Install Zimbra 8.7 on CentOS7 

Basic server preparations

Installing Zimbra 

Some of the commands below, especially the installer, take quite a long time to execute, so it is NOT a good idea to run the next bits remotely. If for any reason the installer gets interrupted, it will leave a mess behind which you will need to clean before attempting a re-installation.

Run the installer either directly from a console, or using the “screen” command. If you do not know how to use the screen command, I recommend you google it.

If you intend to use SSL certificates like letsecrypt, make sure that your server name is the same as your webmail url name, or LDAP will not start with the following error (after you install the ssl certificates) :

Unable to start TLS: hostname verification failed when connecting to ldap master.

So basically name your server as webmail.YOURDOMAIN.COM, you can then add as many domains as you want including yourdomain.com for @yourdomain.com mail distribution after the installation is complete. You can do this from the web interface Configure –> Domains

Before we install zimbra, we  need to make sure that none of the standard mail daemons that come with linux are running. Login to the server as “root”

#systemctl stop postfix

#systemctl disable postfix

#systemctl stop sendmail

#systemctl disable sendmail

Let’s doublecheck that SELINUX is set to permissive

#getenforce

should return Permissive

Now let’s create a folder for our installer. (the installer needs to run as root)

#mkdir /root/zimbra

#cd /root/zimbra

#mkdir installer

#cd installer

#wget https://files.zimbra.com/downloads/8.7.1_GA/zcs-8.7.1_GA_1670.RHEL7_6420161025045328.tgz

Download Opensource

https://www.zimbra.com/downloads/zimbra-collaboration-open-source/

https://files.zimbra.com/downloads/8.8.6_GA/zcs-8.8.6_GA_1906.RHEL7_64.20171130041047.tgz

*At the time of writing 8.7.1_GA_1670 was the latest version

Next step is to Unzip and extract the tar ball

#gzip -dc zcs-8.7.1_GA_1670.RHEL7_6420161025045328.tgz | tar xvf -

Once the unzipping operation finishes, it is time to run the installer

#cd zcs-8.7.1_GA_1670.RHEL7_6420161025045328

Finally …. we run the installer : (note that since we are running our own dns server on port 53, we need to say NO to Install zimbra-dnscache [Y] )

# ./install.sh

Operations logged to /tmp/install.log.jK37Q47Z Checking for existing installation... zimbra-ldap...NOT FOUND zimbra-logger...NOT FOUND zimbra-mta...NOT FOUND zimbra-dnscache...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-core...NOT FOUND ---------------------------------------------------------------------- PLEASE READ THIS AGREEMENT CAREFULLY BEFORE USING THE SOFTWARE. SYNACOR, INC. ("SYNACOR") 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 this Zimbra Collaboration Suite Software: https://www.zimbra.com/license/zimbra-public-eula-2-6.html ---------------------------------------------------------------------- Do you agree with the terms of the software license agreement? [N] y  Checking for installable packages  Found zimbra-core Found zimbra-ldap Found zimbra-logger Found zimbra-mta Found zimbra-dnscache Found zimbra-snmp Found zimbra-store Found zimbra-apache Found zimbra-spell Found zimbra-memcached Found zimbra-proxy  Use Zimbra's package repository [Y] Y Importing Zimbra GPG key Configuring package repository  Select the packages to install  Install zimbra-ldap [Y]  Install zimbra-logger [Y]  Install zimbra-mta [Y]  Install zimbra-dnscache [Y] N <------ Take Note  Install zimbra-snmp [Y]  Install zimbra-store [Y]  Install zimbra-apache [Y]  Install zimbra-spell [Y]  Install zimbra-memcached [Y]  Install zimbra-proxy [Y] Checking required space for zimbra-core Checking space for zimbra-store Checking required packages for zimbra-store zimbra-store package check complete.  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 Installing packages  zimbra-core will be downloaded. zimbra-ldap will be downloaded. zimbra-logger will be downloaded. zimbra-mta will be downloaded. zimbra-snmp will be downloaded. zimbra-store will be downloaded. zimbra-apache will be downloaded. zimbra-spell will be downloaded. zimbra-memcached will be downloaded. zimbra-proxy will be downloaded. Downloading packages. This will not modify the system. This may take some time.  Removing /opt/zimbra Removing zimbra crontab entry...done. Cleaning up zimbra init scripts...done. Cleaning up /etc/security/limits.conf...done.  Finished removing Zimbra Collaboration Server.  Local packages zimbra-core zimbra-ldap zimbra-logger zimbra-mta zimbra-snmp zimbra-store zimbra-apache zimbra-spell zimbra-proxy selected for installation Monitor /tmp/install.log.jK37Q47Z for package installation progress Remote package installation started Installing zimbra-core-components zimbra-ldap-components zimbra-mta-components zimbra-snmp-components zimbra-store-components zimbra-apache-components zimbra-spell-components zimbra-memcached zimbra-proxy-components....done Local package installation started Installing zimbra-core zimbra-ldap zimbra-logger zimbra-mta zimbra-snmp zimbra-store zimbra-apache zimbra-spell zimbra-proxy...done done Operations logged to /tmp/zmsetup20170111122713.log Installing LDAP configuration database...done. Setting defaults... MX: mail.YOURDOMAIN.COM (192.168.0.5) MX: mail1.YOURDOMAIN.COM (192.168.0.5)  Interface: 127.0.0.1 Interface: ::1 Interface: 192.168.0.5 192.168.0.5 192.168.0.5 192.168.0.5 done. Checking for port conflicts  Main menu  1) Common Configuration: 2) zimbra-ldap: Enabled 3) zimbra-logger: Enabled 4) zimbra-mta: Enabled 5) zimbra-snmp: Enabled 6) zimbra-store: Enabled +Create Admin User: yes +Admin user to create: admin@YOURDOMAIN.COM ******* +Admin Password UNSET +Anti-virus quarantine user: virus-quarantine.aejbbp2he@YOURDOMAIN.COM +Enable automated spam training: yes +Spam training user: spam.kenzcrm1e@YOURDOMAIN.COM +Non-spam(Ham) training user: ham.z3ddhlli@YOURDOMAIN.COM +SMTP host: YOURDOMAIN.COM +Web server HTTP port: 8080 +Web server HTTPS port: 8443 +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://YOURDOMAIN.COM:7780/aspell.php +Enable version update checks: TRUE +Enable version update notifications: TRUE +Version update notification email: admin@YOURDOMAIN.COM +Version update source email: admin@YOURDOMAIN.COM +Install mailstore (service webapp): yes +Install UI (zimbra,zimbraAdmin webapps): yes  7) zimbra-spell: Enabled 8) zimbra-proxy: Enabled 9) Default Class of Service Configuration: s) Save config to file x) Expand menu q) Quit

We now need to set the Admin Password.

Address unconfigured (**) items(? – help) 6

Store configuration  1) Status: Enabled 2) Create Admin User: yes 3) Admin user to create: admin@YOURDOMAIN.COM ** 4) Admin Password UNSET 5) Anti-virus quarantine user: virus-quarantine.aejbbp2he@mYOURDOMAIN.COM 6) Enable automated spam training: yes 7) Spam training user: spam.kenzcrm1e@YOURDOMAIN.COM 8) Non-spam(Ham) training user: ham.z3ddhlli@YOURDOMAIN.COM 9) SMTP host: YOURDOMAIN.COM 10) Web server HTTP port: 8080 11) Web server HTTPS port: 8443 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://YOURDOMAIN.COM:7780/aspell.php 19) Enable version update checks: TRUE 20) Enable version update notifications: TRUE 21) Version update notification email: admin@YOURDOMAIN.COM 22) Version update source email: admin@YOURDOMAIN.COM 23) Install mailstore (service webapp): yes 24) Install UI (zimbra,zimbraAdmin webapps): yes

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

Password for admin@@YOURDOMAIN.COM (min 6 characters): [z1rrJPyNvW] (Press ‘enter’ here to choose the pre-defined password or enter one yourself, make sure you do not loose your password)

Store configuration  1) Status: Enabled 2) Create Admin User: yes 3) Admin user to create: admin@@YOURDOMAIN.COM 4) Admin Password set 5) Anti-virus quarantine user: virus-quarantine.aejbbp2he@YOURDOMAIN.COM 6) Enable automated spam training: yes 7) Spam training user: spam.kenzcrm1e@YOURDOMAIN.COM 8) Non-spam(Ham) training user: ham.z3ddhlli@YOURDOMAIN.COM 9) SMTP host: @YOURDOMAIN.COM 10) Web server HTTP port: 8080 11) Web server HTTPS port: 8443 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://YOURDOMAIN.COM:7780/aspell.php 19) Enable version update checks: TRUE 20) Enable version update notifications: TRUE 21) Version update notification email: admin@@YOURDOMAIN.COM 22) Version update source email: admin@@YOURDOMAIN.COM 23) Install mailstore (service webapp): yes 24) Install UI (zimbra,zimbraAdmin webapps): yes  Select, or 'r' for previous menu [r] r  Main menu  1) Common Configuration: 2) zimbra-ldap: Enabled 3) zimbra-logger: Enabled 4) zimbra-mta: Enabled 5) zimbra-snmp: Enabled 6) zimbra-store: Enabled 7) zimbra-spell: Enabled 8) zimbra-proxy: Enabled 9) Default Class of Service Configuration: s) Save config to file x) Expand menu q) Quit  *** CONFIGURATION COMPLETE - press 'a' to apply  Press the a key to apply *** 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.6201] Saving config in /opt/zimbra/config.6201...done. The system will be modified - continue? [No] Yes Operations logged to /tmp/zmsetup20170111122713.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. Setting BES searcher password...done. Creating server entry for YOURDOMAIN.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 YOURDOMAIN.COM...done. Setting zimbraFeatureTasksEnabled=TRUE...done. Setting zimbraFeatureBriefcasesEnabled=TRUE...done. Checking current setting of zimbraReverseProxyAvailableLookupTargets Querying LDAP for other mailstores Searching LDAP for reverseProxyLookupTargets...done. Adding YOURDOMAIN.COM to zimbraReverseProxyAvailableLookupTargets Setting TimeZone Preference...done. Initializing mta config...done. Setting services on YOURDOMAIN.COM...done. Adding YOURDOMAIN.COM to zimbraMailHostPool in default COS...done. Creating domain YOURDOMAIN.COM...done. Setting default domain name...done. Creating domain YOURDOMAIN.COM...already exists. Creating admin account admin@YOURDOMAIN.COM...done. Creating root alias...done. Creating postmaster alias...done. Creating user spam.kenzcrm1e@YOURDOMAIN.COM...done. Creating user ham.z3ddhlli@YOURDOMAIN.COM...done. Creating user virus-quarantine.aejbbp2he@YOURDOMAIN.COM...done. Setting spam training and Anti-virus quarantine accounts...done. Initializing store sql database...done. Setting zimbraSmtpHostname for YOURDOMAIN.COM...done. Configuring SNMP...done. Setting up syslog.conf...done. Starting servers...done. Installing common zimlets... com_zimbra_mailarchive...done. com_zimbra_attachmail...done. com_zimbra_tooltip...done. com_zimbra_ymemoticons...done. com_zimbra_attachcontacts...done. com_zimbra_srchhighlighter...done. com_zimbra_webex...done. com_zimbra_url...done. com_zimbra_bulkprovision...done. com_zimbra_adminversioncheck...done. com_zimbra_proxy_config...done. com_zimbra_clientuploader...done. com_zimbra_email...done. com_zimbra_viewmail...done. com_zimbra_date...done. com_zimbra_phone...done. com_zimbra_cert_manager...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.7.1_GA_1670_RHEL7_64) The ADMIN EMAIL ADDRESS created (admin@YOURDOMAIN.COM)  Notify Zimbra of your installation? [Yes] Notifying Zimbra of installation via http://www.zimbra.com/cgi-bin/notify.cgi?VER=8.7.1_GA_1670_RHEL7_64&MAIL=admin@YOURDOMAIN.COM  Notification complete  Setting up zimbra crontab...done.  Moving /tmp/zmsetup20170111122713.log to /opt/zimbra/log  Configuration complete - press return to exit

Everything is now ready.

Next step is to login via the web interface https://192.168.0.5:7071 using admin as username and the password you had setup during the installation to manage your server.

---