Sie sind auf Seite 1von 9

Instalar actualizacion de paquetes

yum –y update

yum install unzip net-tools sysstat openssh-clients perl-core libaio nmap-ncat libstdc++.so.6 wget -
y

yum –y update

Cambiar el hostname del servidor

nano /etc/hostname

mail.febrescorderolasalle.edu.ec

nano /etc/hosts

127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4

192.168.1.115 mail.febrescorderolasalle.edu.ec

ping mail.febrescorderolasalle.edu.ec

systemctl restart network

cat /etc/resolv.conf

Instalacion de DNS Server Interno DNSMASQ

Instalar un DNS local

yum –y install dnsmasq

Editar el MX (Servidores de correo (Mail Exchange)) del dominio

nano /etc/dnsmasq.d/mail.febrescordero.edu.ec.conf

mx-host=febrescorderolasalle.edu.ec,mail.febrescorderolasalle.edu.ec,10

Editar el localhost para que dnsmasq solo escuche en 127.0.0.1 y reenvie las consultas a google

nano /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

nano /etc/sysconfig/network-scripts/ifcfg-enp0s3

DNS1=127.0.0.1

systemctl restart network

Comprobacion de Registro Interno

sudo yum install bind -y

sudo yum install bind-utils -y

Configuración de DNS

nano /etc/named.conf

zone "febrescorderolasalle.edu.ec.zone."{

type master;

file "/etc/named/febrescorderolasalle.edu.ec.zone";

allow-update {none;};

};

nano /etc/named/febrescorderolasalle.edu.ec.zone

$TTL 86400

@ IN SOA mail.febrescorderolasalle.edu.ec. admin.febrescorderolasalle.edu.ec.(

201703171 ;Serial formato:yyyymmdd donde n es un numero cualquiera

10800 ;refresh despues de tres horas

3600 ;reintentar despues de una hora

604800 ;Expirar despues de una semana

86400 ) ;TTL(Time To Live) minimo de un dia

@ IN NS mail

febrescorderolasalle.edu.ec. IN MX 10 mail

mail IN A 181.198.81.245

febrescorderolasalle.edu.ec. IN TXT "v=spf1 ip4:181.188.81.245 a mx ~all"

mail IN TXT "v=spf1 a -all"


nano /etc/named/81.198.181.in-addr.arpa.zone

$TTL 86400

@ IN SOA mail.febrescorderolasalle.edu.ec admin.febrescorderolasalle.edu.ec (

201703171 ;serial

28800 ;refresh

7200 ;Retry

604800 ;Expire

86400);Minimum

TTL IN NS mail.febrescorderolasalle.edu.ec.

245 IN PTR mail.febrescorderolasalle.edu.ec.

dig MX febrescorderolasalle.edu.ec

dig mail.febrescorderolasalle.edu.ec

Instalación de Zimbra 8.7.11 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

ir a la carpeta /opt

cd /opt

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

tar –zxvf zcs-8.7.11_GA_1854.RHEL7_64.20170531151956.tgz

cd / zcs-8.7.11_GA_1854.RHEL7_64.20170531151956

./install.sh

Do you agree with the terms of the software license agreement? [N] y

Checking current number of databases...


Use Zimbra's package repository [Y] y

Configuring package repository

Checking for installable packages

Found zimbra-core (local)

Found zimbra-ldap (local)

Found zimbra-logger (local)

Found zimbra-mta (local)

Found zimbra-dnscache (local)

Found zimbra-snmp (local)

Found zimbra-store (local)

Found zimbra-apache (local)

Found zimbra-spell (local)

Found zimbra-memcached (repo)

Found zimbra-proxy (local)

Found zimbra-chat (repo)

Found zimbra-drive (repo)

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

Install zimbra-chat [Y] y

Install zimbra-drive [Y] n

The system will be modified. Continue? [N] y

DNS ERROR resolving mail.febrescorderolasalle.edu.ec

It is suggested that the hostname be resolvable via DNS

Change hostname [Yes] no

DNS ERROR resolving MX for mail.febrescorderolasalle.edu.ec

It is suggested that the domain name have an MX record configured in DNS

Change domain name? [Yes] yes

-----------------------Opciones Menu 1-----------------------------------

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

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

Password for ldap admin user (min 6 characters): [YTr0Acyz] febrescordero

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

Enter the number for the local timezone: [28] 13

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


-----------------------Opciones Menu 2-----------------------------------

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

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

Password for ldap root user (min 6 characters): [YTr0Acyz] febrescordero

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

Password for ldap replication user (min 6 characters): [xUumb8nuz] febrescordero

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

Password for ldap Postfix user (min 6 characters): [xUumb8nuz] febrescordero

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

Password for ldap Amavis user (min 6 characters): [xUumb8nuz] febrescordero

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

Password for ldap Nginx user (min 6 characters): [xUumb8nuz] febrescordero

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

Password for ldap BES user (min 6 characters): [xUumb8nuz] febrescordero

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

-----------------------Opciones Menu 6-----------------------------------

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

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

Password for admin@mail.febrescorderolasalle.edu.ec (min 6 characters): [_F37pzqb]


febrescordero

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

-----------------------Finalizamos 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.17120] Enter

Saving config in /opt/zimbra/config.17120...done.

The system will be modified - continue? [No] yes

Notify Zimbra of your installation? [Yes] no

Configuration complete - press return to exit


Permitir el acceso a los puerto del Zimbra

yum –y install firewalld

systemctl start firewalld

systemctl enable firewalld

Habilitar los puertos TCP 22 443 25 110 143 993 995 465 8443 7071

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 8443/tcp --permanent

firewall-cmd --add-port 7071/tcp --permanent

firewall-cmd --reload

UDP 53

firewall-cmd --add-service dns --permanent

firewall-cmd --reload

Verificar los puertos abiertos

iptables –s

iptables --list

Acceder al zimbra instalado con el navegador

PANEL DE ADMINISTRACION https://181.198.81.245:7071

Usuario: admin clave: febrescordero

WEBMAIL https://181.198.81.245

Usuario: admin clave: febrescordero


--------------------------En Caso de Error Zimlets-----------------------------

/opt/zimbra/bin/zmzimletctl -l deploy /opt/zimbra/zimlets/com_zimbra_url.zip

-----------------------Salio mal la Instalacion-----------------------------------

As root:
1) Run the commands:
su – zimbra
zmcontrol stop
exit
(you should be root after you run exit)

2a) Run the command: ps -ef | grep -i zimbra


If you see running processes
2b) Kill any lingering processes: kill -9 <pid>

3a) Run the command: df


If you see "amavisd"
3b) run command: umount /opt/zimbra/amavisd<-new-blah>/tmp

4) cd /<tmp_tar_install_dir>/zcs/

5) Run the command: ./install.sh -u

6) Run the following commands to complete the unistall:


rm -rf /opt/zimbra
rm -rf /var/log/*zimbra*
rm -rf /tmp/*zimbra*
rm -rf /tmp/hsperfdata*
rm -rf /tmp/install.*
rm -rf /tmp/*swatch*
rm -rf /tmp/log*
Ensure that you removed ALL the files owned by the user zimbra AND that contain the
name "zimbra" in:
/var/log/
/tmp/

7) Run the following commands to delete the users and groups:


userdel zimbra
userdel postfix
groupdel zimbra
groupdel postfix

8) Remove the line "/dev/shm /opt/zimbra/amavisd-new-2.4.1/tmp tmpfs


defaults,users,size=150m,mode=777 0 0" from /etc/fstab.
9) Remove the Zimbra logging lines below from /etc/syslog.conf:
local0.* -/var/log/zimbra.log
auth.* -/var/log/zimbra.log
mail.* -/var/log/zimbra.log

10) Remove logrotate config file for Zimbra (CentOS, RHEL)


rm -f /etc/logrotate.d/zimbra

11) Remove the Zimbra lines below from /etc/prelink.conf (CentOS, RHEL)
# added for Zimbra
-l /opt/zimbra/lib
-l /opt/zimbra/sleepycat/lib
-l /opt/zimbra/openldap/lib
-l /opt/zimbra/cyrus-sasl/lib
-l /opt/zimbra/mysql/lib

12) Remove Zimbra entries in /etc/rc* (CentOS, RHEL)


chkconfig --del zimbra

Das könnte Ihnen auch gefallen