0% found this document useful (0 votes)
101 views18 pages

1.-Asegurarnos de Tener Una Configuración de Red Estática:: Cat /etc/sysconfig/network-Scripts/ifcfg-Enp0s3

This document provides instructions for installing Zimbra Open Source 8.7.1 on a Linux server. The key steps include: 1. Configuring the server with a static IP address and disabling SELinux, the firewall, Sendmail and Postfix. 2. Installing prerequisite packages and downloading and extracting the Zimbra software. 3. Configuring the server as a DNS server for the domain and installing and configuring the Zimbra packages. 4. Verifying the installation by checking service status and performing DNS lookups. The installation process concludes by selecting common configuration options and creating an admin user.

Uploaded by

Andres Bustos
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
101 views18 pages

1.-Asegurarnos de Tener Una Configuración de Red Estática:: Cat /etc/sysconfig/network-Scripts/ifcfg-Enp0s3

This document provides instructions for installing Zimbra Open Source 8.7.1 on a Linux server. The key steps include: 1. Configuring the server with a static IP address and disabling SELinux, the firewall, Sendmail and Postfix. 2. Installing prerequisite packages and downloading and extracting the Zimbra software. 3. Configuring the server as a DNS server for the domain and installing and configuring the Zimbra packages. 4. Verifying the installation by checking service status and performing DNS lookups. The installation process concludes by selecting common configuration options and creating an admin user.

Uploaded by

Andres Bustos
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 18

Zimbra Open Source 8.7.

1.- Asegurarnos de tener una configuración de red estática:

[root@correo ~]# cat /etc/sysconfig/network-scripts/ifcfg-enp0s3

TYPE=Ethernet

BOOTPROTO="static"

IPADDR=192.168.0.19

NETMASK=255.255.255.0

GATEWAY=192.168.0.1

DNS1=192.168.0.19

DNS2=192.168.0.1

DEFROUTE=yes

IPV4_FAILURE_FATAL=yes

NAME=enp0s3

UUID=ff5a5399-4aa4-4fb2-be8a-f21fbde23163

DEVICE=enp0s3

ONBOOT=yes

[root@correo ~]#

2.- Desactivar SELinux

[root@correo ~]# vim /etc/sysconfig/selinux

SELINUX=disabled

[root@correo ~]# setenforce 0

3.- Desactivar el Firewall

[root@correo ~]# systemctl stop iptables

Failed to stop iptables.service: Unit iptables.service not loaded.


[root@correo ~]# systemctl stop ip6tables

Failed to stop ip6tables.service: Unit ip6tables.service not loaded.

[root@correo ~]# systemctl stop firewalld

[root@correo ~]# systemctl disable iptables

[root@correo ~]# systemctl disable ip6tables

[root@correo ~]# systemctl disable firewalld

Removed symlink /etc/systemd/system/dbus-org.fedoraproject.FirewallD1.service.

Removed symlink /etc/systemd/system/basic.target.wants/firewalld.service.

4.- Ajustar de ser necesario el nombre del servidor:

hostnamectl set-hostname mail.pruebas.com –static

5.- Configurar el archivo de hosts:

[root@correo ~]# vim /etc/hosts

192.168.0.19 mail.pruebas.com mail

6.- Verificar esta línea en el archivo /etc/resolv.conf

[root@correo ~]# cat /etc/resolv.conf

search pruebas.com

7.- Desactivar Sendmail y Postfix

[root@correo ~]# systemctl stop sendmail

Failed to stop sendmail.service: Unit sendmail.service not loaded.

[root@correo ~]# systemctl stop postfix

[root@correo ~]# systemctl disable sendmail

[root@correo ~]# systemctl disable postfix

Removed symlink /etc/systemd/system/multi-user.target.wants/postfix.service.

8.- Actualizamos el sistema

[root@correo ~]# yum -y update


9.- Instalamos algunos pre-requisitos:

[root@correo ~]# yum -y install perl perl-core wget screen w3m elinks openssh-clients
openssh-server bind bind-utils unzip nmap sed nc sysstat libaio rsync telnet aspell

10.- Configuramos nuestro servidor DNS

[root@correo ~]# vim /etc/named.conf

options {

listen-on port 53 { 127.0.0.1; any; };

listen-on-v6 port 53 { ::1; };

directory "/var/named";

dump-file "/var/named/data/cache_dump.db";

statistics-file "/var/named/data/named_stats.txt";

memstatistics-file "/var/named/data/named_mem_stats.txt";

allow-query { localhost; any; };

…. Hasta el final del archivo …

#Definimos nuestra zona

zone "pruebas.com" IN {

type master;

file "db.pruebas.com";

allow-update { none; };

};

Creamos el archivo de Zona:

[root@correo ~]# vim /var/named/db.pruebas.com

$TTL 1D

@ IN SOA ns1.pruebas.com. root.pruebas.com. (

0 ;serial

1D ;refresh

1H ;retry

1W ;expire

3H ;minimum
)

@ IN NS ns1.pruebas.com.

@ IN MX 0 mail.pruebas.com.

ns1 IN A 192.168.0.19

mail IN A 192.168.0.19

Asignamos permisos necesarios:

[root@correo ~]# chgrp -R named /var/named

Iniciamos el servicio y lo habilitamos:

[root@mail ~]# systemctl start named

[root@mail ~]# systemctl enable named

Created symlink from /etc/systemd/system/multi-user.target.wants/named.service to


/usr/lib/systemd/system/named.service.

Verificamos la funcionalidad del servicio:

[root@mail ~]# nslookup mail.pruebas.com

Server: 192.168.0.19
Address: 192.168.0.19#53

Name: mail.pruebas.com
Address: 192.168.0.19

[root@mail ~]# dig pruebas.com mx

; <<>> DiG 9.9.4-RedHat-9.9.4-38.el7_3 <<>> pruebas.com mx


;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 23620
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 3

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
;; QUESTION SECTION:
;pruebas.com. IN MX

;; ANSWER SECTION:
pruebas.com. 86400 IN MX 0 mail.pruebas.com.
;; AUTHORITY SECTION:
pruebas.com. 86400 IN NS ns1.pruebas.com.

;; ADDITIONAL SECTION:
mail.pruebas.com. 86400 IN A 192.168.0.19
ns1.pruebas.com. 86400 IN A 192.168.0.19

;; Query time: 0 msec


;; SERVER: 192.168.0.19#53(192.168.0.19)
;; WHEN: jue dic 15 11:13:38 COT 2016
;; MSG SIZE rcvd: 111

[root@mail ~]#

11.- Descargamos el software de Zimbra

[root@mail opt]# wget https://files.zimbra.com/downloads/8.7.1_GA/zcs-


8.7.1_GA_1670.RHEL7_64.20161025045328.tgz

12.- Desempaquetamos e Instalamos

[root@mail opt]# tar -xzvf zcs-8.7.1_GA_1670.RHEL7_64.20161025045328.tgz

[root@mail opt]# cd zcs-8.7.1_GA_1670.RHEL7_64.20161025045328/

[root@mail zcs-8.7.1_GA_1670.RHEL7_64.20161025045328]# sh install.sh

--- ver apéndice de detalle de instalación ---

13.- Comprobaciones post instalación

A) Comprobamos que los servicios asociados a Zimbra estén ejecutándose:

[root@mail zcs-8.7.1_GA_1670.RHEL7_64.20161025045328]# su - zimbra

[zimbra@mail ~]$ zmcontrol status

Host mail.pruebas.com

amavis Running
antispam Running
antivirus Running
ldap Running
logger Running
mailbox Running
mta Running
opendkim Running
service webapp Running
snmp Running
spell Running
stats Running
zimbra webapp Running
zimbraAdmin webapp Running
zimlet webapp Running
zmconfigd Running
[zimbra@mail ~]$

Apendice A

Detalles de Instalación:

[root@mail ~]# cd /opt/zcs-8.7.1_GA_1670.RHEL7_64.20161025045328/

[root@mail zcs-8.7.1_GA_1670.RHEL7_64.20161025045328]# sh install.sh

Operations logged to /tmp/install.log.JN7BMDzL

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-core...NOT FOUND

----------------------------------------------------------------------

PLEASE READ THIS AGREEMENT CAREFULLY BEFORE USING THE SOFTWARE.

SYNACOR, INC. ("SYNACOR") 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 this Zimbra Collaboration Suite Software:

https://www.zimbra.com/license/zimbra-public-eula-2-6.html

----------------------------------------------------------------------

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

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

Use Zimbra's package repository [Y] Y

Importing Zimbra GPG key

Configuring package repository

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] N

Install zimbra-proxy [Y] N

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-snmp

zimbra-store

zimbra-apache

zimbra-spell

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

Installing packages

zimbra-core will be downloaded.

zimbra-ldap will be downloaded.

zimbra-logger will be downloaded.

zimbra-mta will be downloaded.

zimbra-snmp will be downloaded.

zimbra-store will be downloaded.

zimbra-apache will be downloaded.

zimbra-spell will be downloaded.

Downloading packages. This will not modify the system. This may take some time.

Removing /opt/zimbra

Removing zimbra crontab entry...done.

Cleaning up zimbra init scripts...done.

Cleaning up /etc/security/limits.conf...done.
Finished removing Zimbra Collaboration Server.

Local packages zimbra-core zimbra-ldap zimbra-logger zimbra-mta zimbra-snmp zimbra-store


zimbra-apache zimbra-spell selected for installation

Monitor /tmp/install.log.JN7BMDzL for package installation progress

Remote package installation started

Installing zimbra-core-components zimbra-ldap-components zimbra-mta-components zimbra-


snmp-components zimbra-store-components zimbra-apache-components zimbra-spell-
components....done

Local package installation started

Installing zimbra-core zimbra-ldap zimbra-logger zimbra-mta zimbra-snmp zimbra-store


zimbra-apache zimbra-spell...done

done

Operations logged to /tmp/zmsetup.20161216-081756.log

Installing LDAP configuration database...done.

Setting defaults...

DNS ERROR resolving MX for mail.pruebas.com

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

Change domain name? [Yes] Yes

Create domain: [mail.pruebas.com] pruebas.com

MX: mail.pruebas.com (192.168.0.19)

Interface: 127.0.0.1

Interface: ::1

Interface: 192.168.0.19

Interface: 192.168.122.1

done.

Checking for port conflicts

Main menu
1) Common Configuration:

2) zimbra-ldap: Enabled

3) zimbra-logger: Enabled

4) zimbra-mta: Enabled

5) zimbra-snmp: Enabled

6) zimbra-store: Enabled

+Create Admin User: yes

+Admin user to create: [email protected]

******* +Admin Password UNSET

+Anti-virus quarantine user: [email protected]

+Enable automated spam training: yes

+Spam training user: [email protected]

+Non-spam(Ham) training user: [email protected]

+SMTP host: mail.pruebas.com

+Web server HTTP port: 8080

+Web server HTTPS port: 8443

+HTTP proxy port: 80

+HTTPS proxy port: 443

+Web server mode: https

+IMAP server port: 7143

+IMAP server SSL port: 7993

+IMAP proxy port: 143

+IMAP SSL proxy port: 993

+POP server port: 7110

+POP server SSL port: 7995

+POP proxy port: 110

+POP SSL proxy port: 995

+Use spell check server: yes

+Spell server URL: http://mail.pruebas.com:7780/aspell.php

+Configure for use with mail proxy: TRUE


+Configure for use with web proxy: TRUE

+Enable version update checks: TRUE

+Enable version update notifications: TRUE

+Version update notification email: [email protected]

+Version update source email: [email protected]

+Install mailstore (service webapp): yes

+Install UI (zimbra,zimbraAdmin webapps): yes

7) zimbra-spell: Enabled

8) Default Class of Service Configuration:

s) Save config to file

x) Expand menu

q) Quit

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

Store configuration

1) Status: Enabled

2) Create Admin User: yes

3) Admin user to create: [email protected]

** 4) Admin Password UNSET

5) Anti-virus quarantine user: [email protected]

6) Enable automated spam training: yes

7) Spam training user: [email protected]

8) Non-spam(Ham) training user: [email protected]

9) SMTP host: mail.pruebas.com

10) Web server HTTP port: 8080

11) Web server HTTPS port: 8443

12) HTTP proxy port: 80


13) HTTPS proxy port: 443

14) Web server mode: https

15) IMAP server port: 7143

16) IMAP server SSL port: 7993

17) IMAP proxy port: 143

18) IMAP SSL proxy port: 993

19) POP server port: 7110

20) POP server SSL port: 7995

21) POP proxy port: 110

22) POP SSL proxy port: 995

23) Use spell check server: yes

24) Spell server URL: http://mail.pruebas.com:7780/aspell.php

25) Configure for use with mail proxy: TRUE

26) Configure for use with web proxy: TRUE

27) Enable version update checks: TRUE

28) Enable version update notifications: TRUE

29) Version update notification email: [email protected]

30) Version update source email: [email protected]

31) Install mailstore (service webapp): yes

32) Install UI (zimbra,zimbraAdmin webapps): yes

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

Password for [email protected] (min 6 characters): [VYhk6OoP0] Rdtndio0

Store configuration

1) Status: Enabled

2) Create Admin User: yes

3) Admin user to create: [email protected]

4) Admin Password set


5) Anti-virus quarantine user: [email protected]

6) Enable automated spam training: yes

7) Spam training user: [email protected]

8) Non-spam(Ham) training user: [email protected]

9) SMTP host: mail.pruebas.com

10) Web server HTTP port: 8080

11) Web server HTTPS port: 8443

12) HTTP proxy port: 80

13) HTTPS proxy port: 443

14) Web server mode: https

15) IMAP server port: 7143

16) IMAP server SSL port: 7993

17) IMAP proxy port: 143

18) IMAP SSL proxy port: 993

19) POP server port: 7110

20) POP server SSL port: 7995

21) POP proxy port: 110

22) POP SSL proxy port: 995

23) Use spell check server: yes

24) Spell server URL: http://mail.pruebas.com:7780/aspell.php

25) Configure for use with mail proxy: TRUE

26) Configure for use with web proxy: TRUE

27) Enable version update checks: TRUE

28) Enable version update notifications: TRUE

29) Version update notification email: [email protected]

30) Version update source email: [email protected]

31) Install mailstore (service webapp): yes

32) Install UI (zimbra,zimbraAdmin webapps): yes

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-snmp: Enabled

6) zimbra-store: Enabled

7) zimbra-spell: Enabled

8) 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) a

Save configuration data to a file? [Yes] Yes

Save config in file: [/opt/zimbra/config.6408]

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

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

Operations logged to /tmp/zmsetup.20161216-081756.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.pruebas.com...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.pruebas.com...done.

Setting zimbraFeatureTasksEnabled=TRUE...done.

Setting zimbraFeatureBriefcasesEnabled=TRUE...done.

Checking current setting of zimbraReverseProxyAvailableLookupTargets

Querying LDAP for other mailstores

Searching LDAP for reverseProxyLookupTargets...done.

Adding mail.pruebas.com to zimbraReverseProxyAvailableLookupTargets

Setting TimeZone Preference...done.

Initializing mta config...done.

Setting services on mail.pruebas.com...done.

Adding mail.pruebas.com to zimbraMailHostPool in default COS...done.

Creating domain pruebas.com...done.

Setting default domain name...done.

Creating domain pruebas.com...already exists.

Creating admin account [email protected].

Creating root alias...done.

Creating postmaster alias...done.

Creating user [email protected].

Creating user [email protected].

Creating user [email protected].

Setting spam training and Anti-virus quarantine accounts...done.


Initializing store sql database...done.

Setting zimbraSmtpHostname for mail.pruebas.com...done.

Configuring SNMP...done.

Setting up syslog.conf...done.

Starting servers...done.

Installing common zimlets...

com_zimbra_adminversioncheck...done.

com_zimbra_attachcontacts...done.

com_zimbra_attachmail...done.

com_zimbra_bulkprovision...done.

com_zimbra_cert_manager...done.

com_zimbra_clientuploader...done.

com_zimbra_date...done.

com_zimbra_email...done.

com_zimbra_mailarchive...done.

com_zimbra_phone...done.

com_zimbra_proxy_config...done.

com_zimbra_srchhighlighter...done.

com_zimbra_tooltip...done.

com_zimbra_url...done.

com_zimbra_viewmail...done.

com_zimbra_webex...done.

com_zimbra_ymemoticons...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.7.1_GA_1670_RHEL7_64)


The ADMIN EMAIL ADDRESS created ([email protected])

Notify Zimbra of your installation? [Yes] N

Notification skipped

Setting up zimbra crontab...done.

Moving /tmp/zmsetup.20161216-081756.log to /opt/zimbra/log

Configuration complete - press return to exit

[root@mail zcs-8.7.1_GA_1670.RHEL7_64.20161025045328]#

You might also like