Mis manuales actualizados de Zimbra (2017)
https://cloudperu.pe/manuales/listado
Si Ud. desea llevar un curso de Zimbra; puede ver mi Curso en Aula Útil https://aulautil.com/curso/online/zimbra. Clases con Videoconferencia y asistencia en tiempo real con Anydesk. Incluye Gratis 2 Servidores VPS Cloud (Firewall UTM+Zimbra) + 1 IP pública y dominio real por alumno.
Una de las funcionalidades de zimbra es que puede instalarse en modo multiservidor con lo cual nos permite el balanceo de carga y despliegue de la solución para una gran cantidad de usuarios.
En el presente capítulo configuraremos Zimbra en un entorno multiservidor
bajo el siguiente esquema:
---------------
| MTA,LDAP,DNS | smtp.dominio.com
---------------
| |
| |
| |
-------- -------
|Mailbox | |Mailbox|
|Store | |Store |
|Webmail | |Webmail|
|Logger | | |
-------- -------
mailbox1.dominio.com mailbox2.dominio.com
1.- Configuración del DNS Server
-------------------------------------------------------------------
Configuramos en el DNS Server , los registros de DNS para el dominio
-------------------------------------------------------------------
smtp IN A 192.168.10.2
mailbox1 IN A 192.168.10.3
mailbox2 IN A 192.168.10.4
dominio.com. IN MX smtp.dominio.com.
$> service httpd stop
$> chkconfig httpd off
$> service iptables stop
$> service iptables save
$> service named restart
$> vim /etc/resolv.conf
nameserver 192.168.10.2
Comprobación de los registros DNS
$> dig MX dominio.com
$> dig smtp.dominio.com
$> dig mailbox1.dominio.com
$> dig mailbox2.dominio.com
2.- Instalación del primer servidor Zimbra (SMTP,LDAP y Proxy)
##########################################################################################
Configuración del hostname para smtp
---------------------------------------------
$> vim /etc/sysconfig/network
HOSTNAME=smtp.dominio.com
$> hostname smtp.dominio.com
$> su -
Luego, comprobar el nombre del hostname
$> hostname
Configurar la IPs de los hosts de correo
$> vim /etc/hosts
127.0.0.1 localhost.localdomain localhost
192.168.10.2 smtp.dominio.com smtp
192.168.10.3 mailbox1.dominio.com mailbox1
192.168.10.4 mailbox2.dominio.com mailbox2
instalar dependencias
$> yum install libstdc++.i686 nc sysstat file
Deshabilitar postfix
$> service postfix stop
$> chkconfig postfix off
Deshabilitar apache
$> service httpd stop
$> chkconfig httpd off
Descargar Zimbra Open Source Edition
$> wget http://files2.zimbra.com/downloads/8.0.6_GA/zcs-8.0.6_GA_5922.RHEL6_64.20131203103705.tgz
$> tar -zxvf zcs-8.0.6_GA_5922.RHEL6_64.20131203103705.tgz
$> cd zcs-8.0.6_GA_5922.RHEL6_64.20131203103705
Instalación de smtp.dominio.com
$> ./install.sh --platform-override
Do you agree with the terms of the software license agreement? [N] Y
Select the packages to install
Install zimbra-ldap [Y] Y
Install zimbra-logger [N] N
Install zimbra-mta [Y] Y
Install zimbra-snmp [Y] Y
Install zimbra-store [Y] N
Install zimbra-apache [Y] N
Install zimbra-spell [Y] N
Install zimbra-memcached [N] Y
Install zimbra-proxy [N] Y
Install anyway? [N] Y
The system will be modified. Continue? [N] Y
Change domain name? [Yes] Yes
Create domain: [smtp.dominio.com] dominio.com
Address unconfigured (**) items (? - help) 1
Select, or 'r' for previous menu [r] 4
Password for ldap admin user (min 6 characters): [dqrGZV27] alumno
Select, or 'r' for previous menu [r] 6
Enter the number for the local timezone: [23] 11
Select, or 'r' for previous menu [r] r
Address unconfigured (**) items (? - help) 2
Select, or 'r' for previous menu [r] 4
Password for ldap root user (min 6 characters): [dqrGZV27] alumno
Select, or 'r' for previous menu [r] 5
Password for ldap replication user (min 6 characters): [dqrGZV27] alumno
Select, or 'r' for previous menu [r] 6
Password for ldap Postfix user (min 6 characters): [dqrGZV27] alumno
Select, or 'r' for previous menu [r] 7
Password for ldap Amavis user (min 6 characters): [dqrGZV27] alumno
Select, or 'r' for previous menu [r] 8
Password for ldap Nginx user (min 6 characters): [dqrGZV27] alumno
Select, or 'r' for previous menu [r] 9
Password for ldap BES user (min 6 characters): [dqrGZV27] alumno
Select, or 'r' for previous menu [r] r
Address unconfigured (**) items (? - help) 3
Select, or 'r' for previous menu [r] 2
Please enter the mta authentication server hostname: smtp.dominio.com
Select, or 'r' for previous menu [r] r
*** 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.7238]
The system will be modified - continue? [No] Yes
Nos sale estos mensajes, por el proxy que no encuentra mailstore,
lo solucionaremos después
WARNING
You are configuring this host as an MTA server, but the specified mailstore
used for authentication has not been configured to run the mailbox service yet.
This will cause smtp authentication to fail.
To correct this - after installing a mailstore server,
reset the zimbraMtaAuthHost attribute for this server:
/opt/zimbra/bin/zmprov -m -l ms smtp.dominio.com zimbraMtaAuthHost smtp.dominio.com
Once done, start the MTA:
zmmtactl start
Press return to continue
Setting MTA auth host...failed.
Setting TimeZone Preference...done.
WARNING
You are configuring this host as a proxy server, but there is currently no
mailstore to proxy. This will cause proxy startup to fail.
Once you have installed a store server, start the proxy service:
zmproxyctl start
Press return to continue
3.- Instalación del segundo servidor: mailbox1.dominio.com
##########################################################################################
Editamos el host y el ip del host
$> vim /etc/sysconfig/network
HOSTNAME=mailbox1.dominio.com
$> hostname mailbox1.dominio.com
$> su -
Luego, comprobar el nombre del hostname
$> hostname
Configurar la IPs de los hosts de correo
$> vim /etc/hosts
127.0.0.1 localhost.localdomain localhost
192.168.10.2 smtp.dominio.com smtp
192.168.10.3 mailbox1.dominio.com mailbox1
192.168.10.4 mailbox2.dominio.com mailbox2
Usar como DNS server el smtp
$> vim /etc/resolv.conf
nameserver 192.168.10.2
$> service httpd stop
$> chkconfig httpd off
$> service iptables stop
$> service iptables save
instalar dependencias
$> yum install libstdc++.i686 nc sysstat file
Deshabilitar postfix
$> service postfix stop
$> chkconfig postfix off
Deshabilitar apache
$> service httpd stop
$> chkconfig httpd off
Descargar Zimbra Open Source Edition
$> wget http://files2.zimbra.com/downloads/8.0.6_GA/zcs-8.0.6_GA_5922.RHEL6_64.20131203103705.tgz
$> tar -zxvf zcs-8.0.6_GA_5922.RHEL6_64.20131203103705.tgz
$> cd zcs-8.0.6_GA_5922.RHEL6_64.20131203103705
Instalación de mailbox1.dominio.com
$> ./install.sh --platform-override
Do you agree with the terms of the software license agreement? [N] Y
Select the packages to install
Install zimbra-ldap [Y] N
Install zimbra-logger [Y] Y
Install zimbra-mta [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 [N] N
Install zimbra-proxy [N] N
This platform is CentOS5_64
Packages found: RHEL5_64
This may or may not work.
Using packages for a platform in which they were not designed for
may result in an installation that is NOT usable. Your support
options may be limited if you choose to continue.
Install anyway? [N] Y
The system will be modified. Continue? [N] Y
Address unconfigured (**) items (? - help) 1
Select, or 'r' for previous menu [r] 2
Please enter the ldap server hostname: smtp.dominio.com
Select, or 'r' for previous menu [r] 4
Password for ldap admin user (min 6 characters): alumno
Select, or 'r' for previous menu [r] r
Address unconfigured (**) items (? - help) 2
Select, or 'r' for previous menu [r] 4
Password for admin@dominio.com (min 6 characters): [W0oVBhou] alumno
Select, or 'r' for previous menu [r] 9
Please enter the SMTP server hostname: smtp.dominio.com
Select, or 'r' for previous menu [r] r
*** 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.32536]
Saving config in /opt/zimbra/config.32536...done.
The system will be modified - continue? [No] Yes
Registramos en el SMTP Server el mailbox1 (smtp.dominio.com)
Ejecutar esto en el servidor smtp (192.168.10.2)
$> /opt/zimbra/bin/zmprov -m -l ms mailbox1.dominio.com zimbraMtaAuthHost mailbox1.dominio.com
$> su - zimbra
$> zmmtactl restart
$> zmproxyctl restart
$> zmcontrol status
Actualizamos los keys del ssh en el mailbox1 para obtener los logs del smtp (mailbox1.dominio.com)
Ejecutar esto en el servidor mailbox1 (192.168.10.3)
$> su - zimbra
$> zmupdateauthkeys
ahora como root editar
$> vim /etc/sysconfig/rsyslog
SYSLOGD_options="-r -m 0"
$> /etc/init.d/rsyslog restart
Hacemos que el SMTP loguee al mailbox1 (smtp.dominio.com)
Ejecutar esto en el servidor smtp (192.168.10.2)
$> su - zimbra
$> zmupdateauthkeys
ahora como root ejecutar
$> /opt/zimbra/libexec/zmsyslogsetup
$> /etc/init.d/rsyslog restart
4.- Instalación del tercer servidor: Mailbox2
#################################################################################
Editamos el host y el ip del host
$> vim /etc/sysconfig/network
HOSTNAME=mailbox2.dominio.com
$> hostname mailbox2.dominio.com
$> su -
Luego, comprobar el nombre del hostname
$> hostname
Configurar la IPs de los hosts de correo
$> vim /etc/hosts
127.0.0.1 localhost.localdomain localhost
192.168.10.2 smtp.dominio.com smtp
192.168.10.3 mailbox1.dominio.com mailbox1
192.168.10.4 mailbox2.dominio.com mailbox2
Usar como DNS server el smtp
$> vim /etc/resolv
nameserver 192.168.10.2
$> service postfix stop
$> chkconfig postfix off
$> service httpd stop
$> chkconfig httpd off
$> service iptables stop
$> service iptables save
instalar dependencias
$> yum install libstdc++.i686 nc sysstat file
Deshabilitar postfix
$> service postfix stop
$> chkconfig postfix off
Deshabilitar apache
$> service httpd stop
$> chkconfig httpd off
Descargar Zimbra Open Source Edition
$> wget http://files2.zimbra.com/downloads/8.0.6_GA/zcs-8.0.6_GA_5922.RHEL6_64.20131203103705.tgz
$> tar -zxvf zcs-8.0.6_GA_5922.RHEL6_64.20131203103705.tgz
$> cd zcs-8.0.6_GA_5922.RHEL6_64.20131203103705
Instalación de mailbox2.dominio.com
$> ./install.sh --platform-override
Do you agree with the terms of the software license agreement? [N] Y
Select the packages to install
Install zimbra-ldap [Y] N
Install zimbra-logger [Y] N
Install zimbra-mta [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 [N] N
Install zimbra-proxy [N] N
This platform is CentOS5_64
Packages found: RHEL5_64
This may or may not work.
Using packages for a platform in which they were not designed for
may result in an installation that is NOT usable. Your support
options may be limited if you choose to continue.
Install anyway? [N] Y
The system will be modified. Continue? [N] Y
Address unconfigured (**) items (? - help) 1
Select, or 'r' for previous menu [r] 2
Please enter the ldap server hostname: smtp.dominio.com
Select, or 'r' for previous menu [r] 4
Password for ldap admin user (min 6 characters): alumno
Select, or 'r' for previous menu [r] r
Address unconfigured (**) items (? - help) 2
Select, or 'r' for previous menu [r] 4
Password for admin@dominio.com (min 6 characters): [W0oVBhou] alumno
Select, or 'r' for previous menu [r] 6
Please enter the SMTP server hostname: smtp.dominio.com
Select, or 'r' for previous menu [r] r
*** 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.32536]
Saving config in /opt/zimbra/config.32536...done.
The system will be modified - continue? [No] Yes
Actualizamos los keys
$> su - zimbra
$> zmupdateauthkeys
como root ejecutar
$> /opt/zimbra/libexec/zmsyslogsetup
$> /etc/init.d/rsyslog restart
Registramos en el SMTP Server el mailbox2 (smtp.dominio.com)
---------------------------------------------------------------------------------
Ejecutar esto en el servidor smtp (192.168.10.2)
$> /opt/zimbra/bin/zmprov -m -l ms mailbox2.dominio.com zimbraMtaAuthHost mailbox2.dominio.com
$> su - zimbra
$> zmmtactl restart
$> zmproxyctl restart
$> zmupdateauthkeys
Actualizamos los keys de mailbox1
---------------------------------------------------------------------------------
Ejecutar esto en el servidor mailbox1 (192.168.10.3)
$> su - zimbra
$> zmupdateauthkeys
Listo ahora solo pobramos el envío y recepción de correo de los nodos
No hay comentarios.:
Publicar un comentario