martes, 11 de julio de 2017

INSTALACION ZIMBRA | CENTOS 7

- Registrar un dominio
- Cambiar el hostname del servidor
$> hostnamectl set-hostname mail.dominio.tk
$> exit

Editar el /etc/hosts para agregar la ip interna del zimbra con el hostname
$> vim /etc/hosts
127.0.0.1 localhost.localdomain localhost
192.168.3.20 mail.dominio.tk mail

Instalación de DNS Server Interno DNSMASQ
$> yum -y install dnsmasq

Editar el MX del dominio
$> vim /etc/dnsmasq.d/mail.dominio.tk.conf
mx-host=dominio.tk,mail.dominio.tk,10

Editar el localhost para que dnsmasq solo escuche 127.0.0.1:
$> vim /etc/dnsmasq.d/localhost.conf
listen-address=127.0.0.1
port=53
server=8.8.8.8
bind-interfaces

Reiniciar dnsmasq y habilitar arranque automático
$> systemctl restart dnsmasq
$> systemctl enable dnsmasq

Configurar como dns Cliente, 127.0.0.1
$> vim /etc/sysconfig/network-scripts/ifcfg-ens01
DNS1=127.0.0.1

$> systemctl restart network

Instalar para la comprobación de Registro Interno
$> yum -y install bind-utils

Comprobar resolucion interna
dig MX dominio.tk
dig mail.dominio.tk

Instalación de Zimbra 8.7.6 en CentOS 7
Instalar dependencias de paquetes
$> yum install -y perl perl-core ntpl nmap sudo libidn gmp libaio libstdc++ unzip sysstat sqlite

Deshabilitar postfix
$> systemctl stop postfix
$> systemctl disable postfix

Descarga de Zimbra Collaboration Open Source

$> yum -y install wget

Ir a la página http:///www.zimbra.org/download/zimbra-collaboration
Y descargar la versión 8.7.11:

$> wget -c https://files.zimbra.com/downloads/8.7.11_GA/zcs-8.7.11_GA_1854.RHEL7_64.20170531151956.tgz

Descomprimir los instaladores
$> tar -zxvf zcs-8.7.11_GA_1854.RHEL7_64.20170531151956.tgz
$> cd zcs-8.7.11_GA_1854.RHEL7_64.20170531151956

Instalar Zimbra
$> ./install.sh
********************************************
Do you agree with the terms of the software license agreement? [N] Y
Use Zimbra Packages repositories [Y] Y  
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-convertd [N] Y
Install zimbra-memcached [N]Y
Install zimbra-proxy [N]    Y 
Install zimbra-archiving [N]N
Install zimbra-qatest [N]   N
Install zimbra-chat [Y]     Y --> ¡Volvió el Chat !
Install zimbra-drive[Y]     N --> ¡No es estable!  
The system will be modified.  Continue? [N] Y
Change domain name? [Yes]        Yes
Create domain: [mail.dominio.tk] dominio.tk
Ingresar a la opcion 1:
Select, or 'r' for previous menu [r] 4
Password for ldap admin user (min 6 characters): [TVwckVm4Y] clave123
Select, or 'r' for previous menu [r] 7
Enter the number for the local timezone: [23] 13          (America/Bogota)
Select, or 'r' for previous menu [r] r
Ingresar a la opcion 2:
select, or 'r' for previous menu [r] 4
Password for ldap root user (min 6 characters): [TVwckVm4Y] clave123
Select, or 'r' for previous menu [r] 5
Password for ldap replication user (min 6 characters): [TVwckVm4Y] clave123
Select, or 'r' for previous menu [r] 6
Password for ldap Postfix user (min 6 characters): [TVwckVm4Y] clave123
Select, or 'r' for previous menu [r] 7
Password for ldap Amavis user (min 6 characters): [TVwckVm4Y] clave123
Select, or 'r' for previous menu [r] 8
Password for ldap Nginx user (min 6 characters): [TVwckVm4Y] clave123
Select, or 'r' for previous menu [r] 9
Password for ldap BES user (min 6 characters): [TVwckVm4Y] clave123
Select, or 'r' for previous menu [r]
Ingresar a la opcion 6:
Select, or 'r' for previous menu [r] 4
Password for admin@dominio.tk (min 6 characters): [gpLZfFUr] clave123
Select, or 'r' for previous menu [r] r
Finaliza la instalacion:
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.14717]    Enter
Saving config in /opt/zimbra/config.14717...done.
The system will be modified - continue? [No]       Yes
Notify Zimbra of your installation? [Yes]          No
Configuration complete - press return to exit      Enter
*********************************************
Permitir el acceso a los puertos del zimbra
$> yum -y install firewalld
$> systemctl start firewalld
$> systemctl enable firewalld

$> firewall-cmd --add-service https --permanent
$> firewall-cmd --add-service smtp --permanent
$> firewall-cmd --add-service imaps --permanent
$> firewall-cmd --add-service pop3s --permanent
$> firewall-cmd --add-port 110/tcp --permanent
$> firewall-cmd --add-port 143/tcp --permanent
$> firewall-cmd --add-port 465/tcp --permanent
$> firewall-cmd --add-port 7071/tcp --permanent
$> firewall-cmd --add-service dns --permanent 
$> firewall-cmd --reload

Verificar los puertos abiertos
$> iptables -S

Natear los puertos 25, 143, 443, 7071, 8443, 110, 993, 995, 465 desde el Firewall hacia el Zimbra

Acceder al zimbra instalado con el navegador

PANEL DE ADMINISTRACION
https://149.56.218.201:7071
usuario: admin
clave: clave123

WEBMAIL
https://149.56.218.201
usuario: admin
clave: clave123

Instalacion y Configuracion de un servidor DNS PUBLICO

WEBMAIL
https://mail.dominio.tk

2 comentarios:

Instalación y Configuración de un DNS Público en Debian 12

Configuración de un DNS Público en Debian 12 ===================================== Registrar un dominio público en Goddady, Namecheap  ó pun...