domingo, 11 de marzo de 2012

Configuración de Zimbra sobre debian Lenny.

Antes que nada quiero comentarles que actualmente estoy desarrollando un proyecto de telefonia IP, asi mismo les ofrezco una disculpa si es que en las publicaciones anteriores la redaccion del texto esta enfocada al mismo. Lo importante de estos posts son realmente los pasos que les expongo para la configuracion de los servicios ; asi mismo les comento que los textos que presento en este espacio los pego directamente del documento de mi  proyecto.
Sin mas comentarios los comandos para configurar la suite de Zimbra  son los siguientes:
1. Primeramente se debe eliminar el paquete exim4 de nuestro sistema.

apt-get remove –-purge exim4 exim4-base exim4-config exim4-daemon-light

2. Anadir las siguientes lineas al archivo /etc/hosts con los siguientes comandos:

echo 127.0.0.1 www.ejemplo.lan debian >>/etc/hosts    // Segunda       // línea del archivo
echo 192.168.1.100 www.ejemplo.lan debian >>/etc/hosts // Ultima   // línea del archivo

            NOTA: después del nombre de dominio la palabra “debian” se refiere al nombre de la maquina en la cual se está configurando el servicio.
3 . Instalar las siguientes dependencias y de paso editar el archivo resolv.conf indicando el nombre de dominio y el servidor DNS correspondiente. El archivo queda de la siguiente manera:
 search ejemplo.lan
nameserver 127.0.0.1
apt-get install libc6-i686 sudo libidn11 curl fetchmail libgmp3c2 libexpat1 libgtopt-mixed-perl libxml2 listdc++6 libpcre3 libltdl3 ssh
4. Descargar el paquete zcs-6.0.7_GA_2473.DEBIAN5.20100616212143.tgz de la página http://www.zimbra.com/downloads/os-downloads.html y colocarlo en el directorio /usr/src del sistema.
 5. Descomprimir el mismo con el comando:
tar –zxvf  zcs-6.0.7_GA_2473.DEBIAN5.20100616212143.tgz 
6. Ahora es necesario ejecutar el script install.sh que se encuentra dentro del directorio del programa que crea por default el comando antes citado; dicha instrucción despliega lo siguiente:
./install.sh
Operations logged to /tmp/install.log.5437
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.1.html
Press Return to continue
Checking for prerequisites…
FOUND: NPTL
FOUND: sudo-1.6.9p17-2
FOUND: libidn11-1.8+20080606-1
FOUND: libpcre3-7.6-2.1
FOUND: libgmp3c2-2:4.2.2+dfsg-3
FOUND: libexpat1-2.0.1-4+lenny1
FOUND: libstdc++6-4.3.2-1.1
FOUND: libstdc++5-1:3.3.6-18
FOUND: libperl5.10-5.10.0-19lenny2
Checking for suggested prerequisites…
FOUND: perl-5.10.0
FOUND: sysstat
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
7. Hasta este punto el paquete Zimbra presenta la opción de seleccionar  los componentes a instalar; así mismo para efectos de este trabajo, únicamente se deben marcar los siguientes:
Install zimbra-ldap [Y] 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
8. Después seleccionar la lista de lo antes citado el programa advierte que nuestro sistema va a ser modificado; así mismo para comenzar la instalación le indicamos que sí. La información desplegada es la de abajo:
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 Suite.
Installing packages
zimbra-core……zimbra-core_6.0.3_GA_1915.DEBIAN5_64_amd64.deb…done
zimbra-ldap……zimbra-ldap_6.0.3_GA_1915.DEBIAN5_64_amd64.deb…done
zimbra-logger……zimbra-logger_6.0.3_GA_1915.DEBIAN5_64_amd64.deb…done
zimbra-mta……zimbra-mta_6.0.3_GA_1915.DEBIAN5_64_amd64.deb…done
zimbra-snmp……zimbra-snmp_6.0.3_GA_1915.DEBIAN5_64_amd64.deb…done
zimbra-store……zimbra-store_6.0.3_GA_1915.DEBIAN5_64_amd64.deb…done
zimbra-apache……zimbra-apache_6.0.3_GA_1915.DEBIAN5_64_amd64.deb…done
zimbra-spell……zimbra-spell_6.0.3_GA_1915.DEBIAN5_64_amd64.deb…done
Operations logged to /tmp/zmsetup.11242009-193550.log
Installing LDAP configuration database…done.
Setting defaults…
DNS ERROR resolving MX for zimbra6.mi.dominio
It is suggested that the domain name have an MX record configured in DNS
Change domain name? [Yes] Yes
9. En este apartado se debe poner el nombre de dominio de nuestra red local; en este caso y para efectos de este ejemplo escribimos www.ejemplo.lan. El ejemplo queda como sigue:
                        Create domain: [zimbra6.mi.dominio] www.ejemplo.lan
It is suggested that the domain name have an MX record configured in DNS
Re-Enter domain name? [Yes] n
done.
10. A continuación se presentan los menús de configuración del paquete ya instalado; así mismo, es recomendable asignar la contraseña de root  para la administración del  mismo. En los siguientes pasos se muestra como se lleva a cabo dicho propósito:
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@www.ejemplo.lan
******* +Admin Password                        UNSET
+Enable automated spam training:       yes
+Spam training user:                   spam.fig77lxqx@www.ejemplo.lan
+Non-spam(Ham) training user:          ham.sb8zipfq@www.ejemplo.lan
+Global Documents Account:             wiki@ www.ejemplo.lan
+SMTP host:                            zimbra6. www.ejemplo
+Web server HTTP port:                 80
+Web server HTTPS port:                443
+Web server mode:                      http
+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://zimbra6.www.ejemplo: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@www.ejemplo.lan
+Version update source email:          admin@www.ejemplo.lan
4) zimbra-mta:                              Enabled
5) zimbra-snmp:                             Enabled
6) zimbra-logger:                           Enabled
7) zimbra-spell:                            Enabled
8 ) 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
11. Elegimos la opción 3 y pulsamos la tecla entrar. Aparece lo siguiente:
Store configuration
1) Status:                                  Enabled
2) Create Admin User:                       yes
3) Admin user to create:                    admin@www.ejemplo.lan
** 4) Admin Password                           UNSET
5) Enable automated spam training:          yes
6) Spam training user:                      spam.fig77lxqx@www.ejemplo.lan
7) Non-spam(Ham) training user:             ham.sb8zipfq@www.ejemplo.lan
8) Global Documents Account:                wiki@www.ejemplo.lan
9) SMTP host:                               zimbra6.www.ejemplo
10) Web server HTTP port:                    80
11) Web server HTTPS port:                   443
12) Web server mode:                         http
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://zimbra6.www.ejemplo: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@www.ejemplo.lan
24) Version update source email:             admin@www.ejemplo.lan
Select, or ‘r’ for previous menu [r] 4
12. Ahora es necesario seleccionar la opción 4, es decir, es este paso se debe asignar la contraseña para el administrador del servidor Zimbra. Así mismo es necesario regresar al menú principal para finalizar la configuración del paquete.
Password for admin@www.ejemplo.lan (min 6 characters): [123456]
Store configuration
1) Status:                                  Enabled
2) Create Admin User:                       yes
3) Admin user to create:                    admin@www.wjwmplo.lan
4) Admin Password                           set
5) Enable automated spam training:          yes
6) Spam training user:                      spam.fig77lxqx@www.ejemplo.lan
7) Non-spam(Ham) training user:             ham.sb8zipfq@www.ejemplo.lan
8 ) Global Documents Account:                wiki@www.ejemplo.lan
9) SMTP host:                               zimbra6.ejemplo.lan
10) Web server HTTP port:                    80
11) Web server HTTPS port:                   443
12) Web server mode:                         http
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://zimbra6.www.ejemplo: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@www.ejemplo.lan
24) Version update source email:             admin@www.ejemplo.lan
Select, or ‘r’ for previous menu [r] r
13. Como se expuso en el paso número 10 de esta sección, una parte de las opciones del menú principal son las siguientes:
   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) Default Class of Service Configuration:
r) Start servers after configuration    
s) Save config to file
x) Expand menu
q) Quit
*** CONFIGURATION COMPLETE – press ‘a’ to apply
14. Por último , para terminar la configuración y por consiguiente inicializar el servidor de correo, es necesario llevar a cabo los pasos siguientes:
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.11347]
Saving config in /opt/zimbra/config.11347…done.
The system will be modified – continue? [No] yes
Operations logged to /tmp/zmsetup.11242009-193550.log
Setting local config values…done.
Setting up CA…done.
Deploying CA to /opt/zimbra/conf/ca …done.
Creating SSL certificate…done.
Installing mailboxd SSL certificates…done.
Initializing ldap…done.
Setting replication password…done.
Setting Postfix password…done.
Setting amavis password…done.
Setting nginx password…done.
Creating server entry for zimbra6.www.ejemplo…done.
Saving CA in ldap …done.
Saving SSL Certificate in ldap …done.
Setting spell check URL…done.
Setting service ports on zimbra6.www.ejemplo…done.
Adding zimbra6.www.ejemplo to zimbraMailHostPool in default COS…done.
Installing webclient skins…
yahoo…done.
sky…done.
bones…done.
lemongrass…done.
hotrod…done.
goldrush…done.
steel…done.
beach…done.
lavender…done.
zmail…done.
bare…done.
sand…done.
waves…done.
Finished installing webclient skins.
Setting zimbraFeatureIMEnabled=FALSE…done.
Setting zimbraFeatureTasksEnabled=TRUE…done.
Setting zimbraFeatureBriefcasesEnabled=TRUE…done.
Setting zimbraFeatureNotebookEnabled=TRUE…done.
Setting MTA auth host…done.
Setting TimeZone Preference…done.
Initializing mta config…done.
Setting services on zimbra6.www.ejemplo…done.
Creating domain www.ejemplo.lan…done.
Setting default domain name…done.
Creating domain www.ejemplo.lan…done.
Setting default domain name…done.
Creating domain www.ejemplo.lan…already exists.
Creating admin account admin@www.ejemplo.lan…done.
Creating root alias…done.
Creating postmaster alias…done.
Creating user wiki@www.ejemplo.lan…done.
Creating user spam.fig77lxqx@www.ejemplo.lan…done.
Creating user ham.sb8zipfq@www.ejemplo.lan…done.
Setting spam training accounts…done.
Initializing store sql database…done.
Setting zimbraSmtpHostname for zimbra6.mi.dominio…done.
Configuring SNMP…done.
Checking for default IM conference room…not present.
Initializing default IM conference room…done.
Setting up syslog.conf…updateSyslog: Updating /etc/rsyslog.conf….done.
done.
You have the option of notifying Zimbra of your installation.
This helps us to track the uptake of the Zimbra Collaboration Suite.
The only information that will be transmitted is:
The VERSION of zcs installed (6.0.7_GA_2473.DEBIAN5_32)
The ADMIN EMAIL ADDRESS created (admin@www.ejemplo.lan)
Notify Zimbra of your installation? [Yes]
Notifying Zimbra of installation via http://www.zimbra.com/cgi-bin/notify.cgi?VER= 6.0.7_GA_2473.DEBIAN5_32&MAIL=admin@www.ejemplo.lan
Notification complete
Starting servers…done.
Installing common zimlets…
com_zimbra_ymemoticons…done.
com_zimbra_url…done.
com_zimbra_local…done.
com_zimbra_email…

No hay comentarios:

Publicar un comentario