Previously we’ve seen what Zimbra is, what prerequisites must be met for its installation and how to install and configure DNSMasq to work with Zimbra. Finally, once we have the server prepared we can go on and continue with the installation of Zimbra Collaboration 8.6.
Download and uncompress Zimbra Collaboration
To download Zimbra we use the following command (you can find more versions to download clicking here):
sudo wget https://files.zimbra.com/downloads/8.6.0_GA/zcs-8.6.0_GA_1153.UBUNTU14_64.20141215151116.tgz
And to uncompress it:
sudo tar -xvf zcs-8.6.0_GA_1153.UBUNTU14_64.20141215151116.tgz
Installation of Zimbra Collaboration
At last, we have configured the server and we have downloaded and uncompressed Zimbra. Now we can proceed and install it. To do si, we jump into the uncompressed folder:
cd zcs-8.6.0_GA_1153.UBUNTU14_64.20141215151116/
And run the installer:
sudo ./install.sh Operations logged to /tmp/install.log.1275 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. 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]
We write “Y” and press enter to accept the EULA for Zimbra which can be found in the following link: http://www.zimbra.com/license/zimbra-public-eula-2-5.html
Now Zimbra will check the system to make sure all prerequisites are installed.
Checking for prerequisites... FOUND: NPTL FOUND: netcat-openbsd-1.105-7ubuntu1 FOUND: sudo-1.8.9p5-1ubuntu1.2 FOUND: libidn11-1.28-1ubuntu2 FOUND: libpcre3-1:8.31-2ubuntu2.1 FOUND: libgmp10-2:5.1.3+dfsg-1ubuntu1 FOUND: libexpat1-2.1.0-4ubuntu1.1 FOUND: libstdc++6-4.8.4-2ubuntu1~14.04 FOUND: libperl5.18-5.18.2-2ubuntu1 FOUND: libaio1-0.3.109-4 FOUND: resolvconf-1.69ubuntu1.1 FOUND: unzip-6.0-9ubuntu1.5 Checking for suggested prerequisites... FOUND: pax FOUND: perl-5.18.2 FOUND: sysstat FOUND: sqlite3 Prerequisite check complete. 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
If any prerequisite is missing, Zimbra will cancel the installation and will let us know which one is missing:
MISSING: libaio1
If any dependency is missing, we can simply install it:
sudo apt-get install libaio1
And restart the Zimbra installation running the same command:
sudo ./install.sh
Once we have all necessary dependencies, the installed will ask us which packages we want to install. In our case we will install all packages but “zimbra-dnscache” since we use DNSMasq for this purpose.
Select the packages to install Install zimbra-ldap [Y] Y Install zimbra-logger [Y] Y Install zimbra-mta [Y] Y Install zimbra-dnscache [Y] N Install zimbra-snmp [Y] Y Install zimbra-store [Y] Y Install zimbra-apache [Y] Y Install zimbra-spell [Y] Y Install zimbra-memcached [Y] Y Install zimbra-proxy [Y] 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]
At this point, the installer will warn us that the system will be modified. We write “Y” and press enter for Zimbra to be installed. This process can take some time, so don’t worry if it stays “stuck” at one point for some minutes.
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/logrotate.d/zimbra...done. Cleaning up /etc/security/limits.conf...done. Finished removing Zimbra Collaboration Server. Installing packages zimbra-core......zimbra-core_8.6.0.GA.1153.UBUNTU14.64_amd64.deb...done zimbra-ldap......zimbra-ldap_8.6.0.GA.1153.UBUNTU14.64_amd64.deb...done zimbra-logger......zimbra-logger_8.6.0.GA.1153.UBUNTU14.64_amd64.deb...done zimbra-mta......zimbra-mta_8.6.0.GA.1153.UBUNTU14.64_amd64.deb...done zimbra-snmp......zimbra-snmp_8.6.0.GA.1153.UBUNTU14.64_amd64.deb...done zimbra-store......zimbra-store_8.6.0.GA.1153.UBUNTU14.64_amd64.deb...done zimbra-apache......zimbra-apache_8.6.0.GA.1153.UBUNTU14.64_amd64.deb...done zimbra-spell......zimbra-spell_8.6.0.GA.1153.UBUNTU14.64_amd64.deb...done zimbra-memcached......zimbra-memcached_8.6.0.GA.1153.UBUNTU14.64_amd64.deb...done zimbra-proxy......zimbra-proxy_8.6.0.GA.1153.UBUNTU14.64_amd64.deb...done Operations logged to /tmp/zmsetup02172016-182936.log Installing LDAP configuration database...done. Setting defaults... Checking for port conflicts
Establish the Administrator Password
Once Zimbra is installed we will find ourselves with a Main Menu which will help us to perform the initial system configuration:
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@mailserver.com ******* +Admin Password UNSET +Anti-virus quarantine user: virus-quarantine.cebjqslvu@mailserver.com +Enable automated spam training: yes +Spam training user: spam.oqcaklal4@mailserver.com +Non-spam(Ham) training user: ham.igpx_1jn@mailserver.com +SMTP host: mailserver.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://mailserver.com:7780/aspell.php +Enable version update checks: TRUE +Enable version update notifications: TRUE +Version update notification email: admin@mailserver.com +Version update source email: admin@mailserver.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 Address unconfigured (**) items (? - help)6
The first thing we have to do is to establish the Administrator password. To do si we go to option 6 of the menu. We will see the submenu for the ” Store Configuration”:
Store configuration 1) Status: Enabled 2) Create Admin User: yes 3) Admin user to create: admin@mailserver.com ** 4) Admin Password UNSET 5) Anti-virus quarantine user: virus-quarantine.cebjqslvu@mailserver.com 6) Enable automated spam training: yes 7) Spam training user: spam.oqcaklal4@mailserver.com 8) Non-spam(Ham) training user: ham.igpx_1jn@mailserver.com 9) SMTP host: mailserver.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://mailserver.com:7780/aspell.php 19) Enable version update checks: TRUE 20) Enable version update notifications: TRUE 21) Version update notification email: admin@mailserver.com 22) Version update source email: admin@mailserver.com 23) Install mailstore (service webapp): yes 24) Install UI (zimbra,zimbraAdmin webapps): yes
Here we select the option 4 to change the password:
Select, or 'r' for previous menu [r] 4 Password for admin@mailserver.com (min 6 characters): [sm1PFMBL] CONTRASEÑA
Once we’ve changed it we will see that the option 4 has changed to “SET”:
Store configuration 1) Status: Enabled 2) Create Admin User: yes 3) Admin user to create: admin@mailserver.com 4) Admin Password set 5) Anti-virus quarantine user: virus-quarantine.cebjqslvu@mailserver.com 6) Enable automated spam training: yes 7) Spam training user: spam.oqcaklal4@mailserver.com 8) Non-spam(Ham) training user: ham.igpx_1jn@mailserver.com 9) SMTP host: mailserver.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://mailserver.com:7780/aspell.php 19) Enable version update checks: TRUE 20) Enable version update notifications: TRUE 21) Version update notification email: admin@mailserver.com 22) Version update source email: admin@mailserver.com 23) Install mailstore (service webapp): yes 24) Install UI (zimbra,zimbraAdmin webapps): yes
Now we go back to the previous menu by typing “r” and pressing enter:
Select, or 'r' for previous menu [r] r
Finalizing the Installation
From the Main Menu we will write “a” and press enter to save the changes, and press enter twice again to save the configuration in a file. We will also be advised again that the system will be modified and ask if we want to continue.
*** 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.11671] Saving config in /opt/zimbra/config.11671...done. The system will be modified - continue? [No] Y Operations logged to /tmp/zmsetup02172016-184418.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 mailserver.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 mailserver.com...done. Setting zimbraFeatureTasksEnabled=TRUE...done. Setting zimbraFeatureBriefcasesEnabled=TRUE...done. Setting TimeZone Preference...done. Initializing mta config...done. Setting services on mailserver.com...done. Adding mailserver.com to zimbraMailHostPool in default COS...done. Creating domain mailserver.com...done. Setting default domain name...done. Creating domain mailserver.com...already exists. Creating admin account admin@mailserver.com...done. Creating root alias...done. Creating postmaster alias...done. Creating user spam.oqcaklal4@mailserver.com...done. Creating user ham.igpx_1jn@mailserver.com...done. Creating user virus-quarantine.cebjqslvu@mailserver.com...done. Setting spam training and Anti-virus quarantine accounts...done. Initializing store sql database...done. Setting zimbraSmtpHostname for mailserver.com...done. Configuring SNMP...done. Setting up syslog.conf...done. Starting servers...done. Installing common zimlets... com_zimbra_email...done. com_zimbra_mailarchive...done. com_zimbra_ymemoticons...done. com_zimbra_srchhighlighter...done. com_zimbra_adminversioncheck...done. com_zimbra_attachcontacts...done. com_zimbra_webex...done. com_zimbra_attachmail...done. com_zimbra_date...done. com_zimbra_viewmail...done. com_zimbra_url...done. com_zimbra_phone...done. com_zimbra_tooltip...done. com_zimbra_clientuploader...done. com_zimbra_bulkprovision...done. com_zimbra_proxy_config...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.6.0_GA_1153_UBUNTU14_64) The ADMIN EMAIL ADDRESS created (admin@mailserver.com) Notify Zimbra of your installation? [Yes]
Once this is done, if we want to notify Zimbra of the installation, we simply press enter. If we don’t want to notify Zimbra, we write “No” and press enter.
Notify Zimbra of your installation? [Yes] No Notification skipped Setting up zimbra crontab...done. Moving /tmp/zmsetup02172016-184418.log to /opt/zimbra/log Configuration complete - press return to exit
Finally, we press enter to finish and exit the installer.
We now got out Zimbra Collaboration 8.6 Open Source Edition server installed and working! Now we can add domains, mailboxes, distribution lists and a long list of other things!