INSTALAR ZIMBRA 8.6 EN UBUNTU 14.04 LTS SIN TENER UN DOMINIO

Imagen de RazaMetaL

Tema: 

Tengo un servidor en el cual voy a instalar Zimbra 8.5. En este servidor no tenemos un dominio configurado. Utilizaremos el paquete dnsmasq para configurar un dominio local y engañar así al instalador de Zimbra el cual realiza la verificación de que el registro MX del dominio corresponda a la dirección IP del servidor.

Requisitos:

- Tener instalado Ubuntu 14.04
- Tener conección a Internet

Descargar Zimbra 8.6:

cd /usr/src/
wget https://files.zimbra.com/downloads/8.6.0_GA/zcs-8.6.0_GA_1153.UBUNTU14_64.20141215151116.tgz

Instalar dependencias:
aptitude install libgmp10 libperl5.18 libaio1 pax sysstat sqlite3 unzip libmail-spf-perl spf-tools-perl razor pyzor dnsmasq

Configurar dnsmasq:
Agregar al final del archivo /etc/dnsmasq.conf , reemplazar XXX.XXX.XXX.XXX con la direccion IP del servidor:

server=8.8.8.8
server=8.8.4.4
listen-address=127.0.0.1
address=/correo.midominio.com.ec/XXX.XXX.XXX.XXX
domain=midominio.com.ec
mx-host=midominio.com.ec,correo.midominio.com.ec,0

Modificar el archivo /etc/hosts para que contenga:

127.0.0.1 localhost.localdomain localhost
XXX.XXX.XXX.XXX correo.midominio.com.ec correo

Iniciar el servicio dnsmasq:

service dnsmasq restart

Instalar Zimbra:

cd /usr/src
tar zvxf zcs-8.5.0_GA_3042.UBUNTU14_64.20140828191919.tgz
cd zcs-8.5.0_GA_3042.UBUNTU14_64.20140828191919
./install.sh


Operations logged to /tmp/install.log.32288
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-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 <---- RESPONDEMOS SI

Checking for prerequisites...
FOUND: NPTL
FOUND: netcat-openbsd-1.105-7ubuntu1
FOUND: sudo-1.8.9p5-1ubuntu1
FOUND: libidn11-1.28-1ubuntu2
FOUND: libpcre3-1:8.31-2ubuntu2
FOUND: libgmp10-2:5.1.3+dfsg-1ubuntu1
FOUND: libexpat1-2.1.0-4ubuntu1
FOUND: libstdc++6-4.8.2-19ubuntu1
FOUND: libperl5.18-5.18.2-2ubuntu1
FOUND: libaio1-0.3.109-4
FOUND: resolvconf-1.69ubuntu1.1
FOUND: unzip-6.0-9ubuntu1

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

Select the packages to install

Install zimbra-ldap [Y] Y <---- RESPONDEMOS SI

Install zimbra-logger [Y] Y <---- RESPONDEMOS SI

Install zimbra-mta [Y] Y <---- RESPONDEMOS SI

Install zimbra-dnscache [Y] Y <---- RESPONDEMOS SI

Install zimbra-snmp [Y] Y <---- RESPONDEMOS SI

Install zimbra-store [Y] Y <---- RESPONDEMOS SI

Install zimbra-apache [Y] Y <---- RESPONDEMOS SI

Install zimbra-spell [Y] Y <---- RESPONDEMOS SI

Install zimbra-memcached [Y] N <---- RESPONDEMOS NO

Install zimbra-proxy [Y] N <---- RESPONDEMOS NO

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-dnscache
zimbra-snmp
zimbra-store
zimbra-apache
zimbra-spell

The system will be modified. Continue? [N] Y <---- RESPONDEMOS SI

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.5.0.GA.3042.UBUNTU14.64_amd64.deb...done
zimbra-ldap......zimbra-ldap_8.5.0.GA.3042.UBUNTU14.64_amd64.deb...done
zimbra-logger......zimbra-logger_8.5.0.GA.3042.UBUNTU14.64_amd64.deb...done
zimbra-mta......zimbra-mta_8.5.0.GA.3042.UBUNTU14.64_amd64.deb...done
zimbra-dnscache......zimbra-dnscache_8.5.0.GA.3042.UBUNTU14.64_amd64.deb...done
zimbra-snmp......zimbra-snmp_8.5.0.GA.3042.UBUNTU14.64_amd64.deb...done
zimbra-store......zimbra-store_8.5.0.GA.3042.UBUNTU14.64_amd64.deb...done
zimbra-apache......zimbra-apache_8.5.0.GA.3042.UBUNTU14.64_amd64.deb...done
zimbra-spell......zimbra-spell_8.5.0.GA.3042.UBUNTU14.64_amd64.deb...done
Operations logged to /tmp/zmsetup10302014-102025.log
Installing LDAP configuration database...done.
Setting defaults...

DNS ERROR resolving MX for mail.midominio.com.ec
It is suggested that the domain name have an MX record configured in DNS
Change domain name? [Yes] YES <---- RESPONDEMOS SI
Create domain: [mail.midominio.com.ec] midominio.com.ec <---- INGRESAMOS EL DOMINIO CONFIGURADO EN /etc/dnsmasq.conf
MX: mail.midominio.com.ec (XXX.XXX.XXX.XXX)

Interface: 127.0.0.1
Interface: ::1
Interface: XXX.XXX.XXX.XXX
done.
Checking for port conflicts

Main menu

1) Common Configuration:
2) zimbra-ldap: Enabled
3) zimbra-logger: Enabled
4) zimbra-mta: Enabled
5) zimbra-dnscache: Enabled
******* +Master DNS IP address(es): UNSET
+Enable DNS lookups over TCP: yes
+Enable DNS lookups over UDP: yes
+Only allow TCP to communicate with Master DNS: no

6) zimbra-snmp: Enabled
7) zimbra-store: Enabled
+Create Admin User: yes
+Admin user to create: admin@midominio.com.ec
******* +Admin Password UNSET <--- DEBEMOS SUMINISTRAR UNA CONTRASEÑA
+Anti-virus quarantine user: virus-quarantine.sxjhdzt6@midominio.com.ec
+Enable automated spam training: yes
+Spam training user: spam.dhh2wsg5m@midominio.com.ec
+Non-spam(Ham) training user: ham.6lddbn4n@midominio.com.ec
+SMTP host: mail.midominio.com.ec
+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.midominio.com.ec: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@midominio.com.ec
+Version update source email: admin@midominio.com.ec
+Install mailstore (service webapp): yes
+Install UI (zimbra,zimbraAdmin webapps): yes

8) zimbra-spell: Enabled
9) Default Class of Service Configuration:
s) Save config to file
x) Expand menu
q) Quit

Address unconfigured (**) items (? - help)

Procedemos a configurar la contraseña de administración:


Address unconfigured (**) items (? - help) 7

Store configuration

1) Status: Enabled
2) Create Admin User: yes
3) Admin user to create: admin@midominio.com.ec
** 4) Admin Password UNSET
5) Anti-virus quarantine user: virus-quarantine.sxjhdzt6@midominio.com.ec
6) Enable automated spam training: yes
7) Spam training user: spam.dhh2wsg5m@midominio.com.ec
8) Non-spam(Ham) training user: ham.6lddbn4n@midominio.com.ec
9) SMTP host: mail.midominio.com.ec
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.midominio.com.ec: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@midominio.com.ec
24) Version update source email: admin@midominio.com.ec
25) Install mailstore (service webapp): yes
26) Install UI (zimbra,zimbraAdmin webapps): yes

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

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

Password for admin@midominio.com.ec (min 6 characters): [kJ2vNUAy] superpassword

Store configuration

1) Status: Enabled
2) Create Admin User: yes
3) Admin user to create: admin@midominio.com.ec
4) Admin Password set
5) Anti-virus quarantine user: virus-quarantine.sxjhdzt6@midominio.com.ec
6) Enable automated spam training: yes
7) Spam training user: spam.dhh2wsg5m@midominio.com.ec
8) Non-spam(Ham) training user: ham.6lddbn4n@midominio.com.ec
9) SMTP host: mail.midominio.com.ec
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.midominio.com.ec: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@midominio.com.ec
24) Version update source email: admin@midominio.com.ec
25) Install mailstore (service webapp): yes
26) Install UI (zimbra,zimbraAdmin webapps): yes

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

Regresamos al menú principal:

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-dnscache: Enabled
******* +Master DNS IP address(es): UNSET <---- DEBEMOS ESPECIFICAR LOS DNS
+Enable DNS lookups over TCP: yes
+Enable DNS lookups over UDP: yes
+Only allow TCP to communicate with Master DNS: no

6) zimbra-snmp: Enabled
7) zimbra-store: Enabled
8) zimbra-spell: Enabled
9) Default Class of Service Configuration:
s) Save config to file
x) Expand menu
q) Quit

Address unconfigured (**) items (? - help) 5

DNS Cache configuration

1) Status: Enabled
** 2) Master DNS IP address(es): UNSET
3) Enable DNS lookups over TCP: yes
4) Enable DNS lookups over UDP: yes
5) Only allow TCP to communicate with Master DNS: no

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

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

IP Address(es) of Master DNS Server(s), space separated: 8.8.8.8 8.8.4.4

DNS Cache configuration

1) Status: Enabled
2) Master DNS IP address(es): 8.8.8.8 8.8.4.4
3) Enable DNS lookups over TCP: yes
4) Enable DNS lookups over UDP: yes
5) Only allow TCP to communicate with Master DNS: no

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

Regresamos al menún principal para aplicar e iniciar la configuración de Zimbra:

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-dnscache: Enabled
6) zimbra-snmp: Enabled
7) zimbra-store: Enabled
8) zimbra-spell: Enabled
9) Default Class of Service Configuration:
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)

Select from menu, or press 'a' to apply config (? - help) a <---- PRESIONAMOS a
Save configuration data to a file? [Yes] <---- RESPONDEMOS SI
Save config in file: [/opt/zimbra/config.8233]
Saving config in /opt/zimbra/config.8233...done.
The system will be modified - continue? [No] YES <---- RESPONDEMOS SI

De inmediato la configuración iniciará:

Operations logged to /tmp/zmsetup10302014-102025.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.midominio.com.ec...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.midominio.com.ec...done.
Setting zimbraFeatureTasksEnabled=TRUE...done.
Setting zimbraFeatureBriefcasesEnabled=TRUE...done.
Setting Master DNS IP address(es)...done.
Setting DNS cache tcp lookup preference...done.
Setting DNS cache udp lookup preference...done.
Setting DNS tcp upstream preference...done.
Setting MTA auth host...done.
Setting TimeZone Preference...done.
Initializing mta config...done.
Setting services on mail.midominio.com.ec...done.
Adding mail.midominio.com.ec to zimbraMailHostPool in default COS...done.
Creating domain midominio.com.ec...done.
Setting default domain name...done.
Creating domain midominio.com.ec...already exists.
Creating admin account admin@midominio.com.ec...done.
Creating root alias...done.
Creating postmaster alias...done.
Creating user spam.dhh2wsg5m@midominio.com.ec...done.
Creating user ham.6lddbn4n@midominio.com.ec...done.
Creating user virus-quarantine.sxjhdzt6@midominio.com.ec...done.
Setting spam training and Anti-virus quarantine accounts...done.
Initializing store sql database...done.
Setting zimbraSmtpHostname for mail.midominio.com.ec...done.
Configuring SNMP...done.
Setting up syslog.conf...done.
Starting servers...done.
Installing common zimlets...
com_zimbra_bulkprovision...done.
com_zimbra_linkedinimage...done.
com_zimbra_ymemoticons...done.
com_zimbra_email...done.
com_zimbra_date...done.
com_zimbra_viewmail...done.
com_zimbra_adminversioncheck...done.
com_zimbra_clientuploader...done.
com_zimbra_tooltip...done.
com_zimbra_cert_manager...done.
com_zimbra_mailarchive...done.
com_zimbra_attachcontacts...done.
com_zimbra_srchhighlighter...done.
com_zimbra_url...done.
com_zimbra_attachmail...done.
com_zimbra_proxy_config...done.
com_zimbra_webex...done.
com_zimbra_phone...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.5.0_GA_3042_UBUNTU14_64)
The ADMIN EMAIL ADDRESS created (admin@midominio.com.ec)

Notify Zimbra of your installation? [Yes] YES <---- RESPONDEMOS SI (si asi lo quieren)

Finalizamos la instalación:

Setting up zimbra crontab...done.

Moving /tmp/zmsetup10302014-102025.log to /opt/zimbra/log

Configuration complete - press return to exit

La interfaz de administración es accesible desde https:///XXX.XXX.XXX.XXX:7071