Anteriormente hemos visto qué es Zimbra Collaboration, qué prerrequisitos hay que cumplir para su instalación y cómo instalar y configurar DNSMasq para trabajar con Zimbra. Finalmente, una vez tenemos el servidor preparado podemos pasar a la instalación Zimbra Collaboration 8.6.
Descargar y Descomprimir Zimbra Collaboration
Para descargar el archivo usamos el siguiente comando (Puedes encontrar más versiones para descargar pulsando aquí):
sudo wget https://files.zimbra.com/downloads/8.6.0_GA/zcs-8.6.0_GA_1153.UBUNTU14_64.20141215151116.tgz
Y para descomprimirlo:
sudo tar -xvf zcs-8.6.0_GA_1153.UBUNTU14_64.20141215151116.tgz
Instalación de Zimbra Collaboration
Por fin ya tenemos el servidor configurado y hemos descargado y descomprimido Zimbra. Ahora podemos pasar a instalarlo. Para ello, entramos en el directorio descomprimido:
cd zcs-8.6.0_GA_1153.UBUNTU14_64.20141215151116/
Y ejecutamos el instalador:
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]
Escribimos “Y” y pulsamos entrar para aceptar la EULA que nos indica Zimbra en el enlace http://www.zimbra.com/license/zimbra-public-eula-2-5.html.
A continuación Zimbra revisará el sistema para ver si los prerrequisitos están instalados.
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
Si falta algún prerrequisito, Zimbra cancelará la instalación y nos indicará qué falta de la siguiente forma:
MISSING: libaio1
Si nos falta alguna dependencia, simplemente la instalamos:
sudo apt-get install libaio1
Y reiniciamos de nuevo la instalación de Zimbra con el mismo comando:
sudo ./install.sh
Una vez tengamos todas las dependencias requeridas, el instalador nos preguntará qué paquetes queremos instalar. En nuestro caso instalaremos todos los paquetes aparte de “zimbra-dnscache” dado que utilizamos DNSMasq para ese propósito.
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]
Llegados a este punto, como nos indica el instalador, nuestro sistema será modificado. Escribimos “Y” y pulsamos entrar para que Zimbra sea instalado. Este proceso puede tardar un rato, así que no os preocupéis si se queda en un mismo punto durante algunos minutos.
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
Establecer la Contraseña de Administrador
Una vez Zimbra esté instalado nos encontraremos con un menú principal que nos ayudará con la configuración inicial del sistema:
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
Lo primero que debemos hacer es establecer la contraseña de administrador. Para ello vamos a la opción 6 del menú. Nos encontraremos con el submenú de la “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
Aquí seleccionamos la opción 4 para cambiar la contraseña:
Select, or 'r' for previous menu [r] 4 Password for admin@mailserver.com (min 6 characters): [sm1PFMBL] CONTRASEÑA
Una vez cambiada veremos que la opción 4 ha cambiado a “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
Volvemos al menú anterior escribiendo “r” y pulsando entrar:
Select, or 'r' for previous menu [r] r
Finalizar Instalación
Estando en el menú principal, escribiremos “a” y pulsaremos entrar para guardar los cambios, y de nuevo entrar dos veces para guardar la configuración en un archivo. También nos volverá a advertir de que el sistema será modificado y si queremos continuar.
*** 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]
Si queremos notificar a Zimbra de la instalación, simplemente pulsamos entrar. Si no queremos notificar a Zimbra de la instalación escribimos “No” y pulsamos entrar.
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
Finalmente pulsamos entrar para terminar y salir del instalador.
Ya tenemos nuestro servidor Zimbra Collaboration 8.6 Open Source Edition instalado y funcionando! Ahora podemos añadir dominios, cuentas de correo, listas de difusión y un largo etcétera más.