SIUA TAREAS ZIMBRA CORREO / Actualizar zimbra 8.8 a 9

  • Sistema operativos
apt update
apt upgrade
  • Usuario sde sistema operativo
usuarios sistema operativo
root / $_Arturo_COR_0_$.
orion / orion $_Vega_1_$.
  • Reiniciar sistema
su root
su zimbra
zmcontrol restart

Actualizar zimbra 8.8 a 9

  • https://sada.services/?p=3743
//DETENER
su root
su zimbra
zmcontrol -v
zmproxyctl stop
zmmailboxdctl stop
  • Guia:
  • https://zextras.com/zextras-build-based-on-zimbra-official-repository
su root
cd /tmp

// Descargar version 9
wget download.zextras.com/zcs-9.0.0_OSE_UBUNTU18_latest-zextras.tgz


// Extraer
tar zxvf zcs-9.0.0_OSE_UBUNTU18_latest-zextras.tgz 
cd zcs-9.0.0_ZEXTRAS*
  • Instalación
//instalar con el parametro -s para que sea una actualización
sudo ./install.sh -s
  • RESULTADO
Operations logged to /tmp/install.log.HNlxHmvj
Checking for existing installation...
    zimbra-drive...FOUND zimbra-drive-1.0.14.1588924560-1.u18
    zimbra-imapd...NOT FOUND
    zimbra-license-tools...NOT FOUND
    zimbra-license-extension...NOT FOUND
    zimbra-network-store...NOT FOUND
    zimbra-network-modules-ng...NOT FOUND
    zimbra-chat...FOUND zimbra-chat-4.0.3.1654677981-1.u18
    zimbra-connect...NOT FOUND
    zimbra-talk...NOT FOUND
    zimbra-ldap...FOUND zimbra-ldap-8.8.15.GA.3869.UBUNTU18.64
    zimbra-logger...FOUND zimbra-logger-8.8.15.GA.3869.UBUNTU18.64
    zimbra-mta...FOUND zimbra-mta-8.8.15.GA.3869.UBUNTU18.64
    zimbra-dnscache...NOT FOUND
    zimbra-snmp...FOUND zimbra-snmp-8.8.15.GA.3869.UBUNTU18.64
    zimbra-store...FOUND zimbra-store-8.8.15.GA.3869.UBUNTU18.64
    zimbra-apache...FOUND zimbra-apache-8.8.15.GA.3869.UBUNTU18.64
    zimbra-spell...FOUND zimbra-spell-8.8.15.GA.3869.UBUNTU18.64
    zimbra-convertd...NOT FOUND
    zimbra-memcached...FOUND zimbra-memcached-1:1.4.37-2.u18
    zimbra-proxy...FOUND zimbra-proxy-8.8.15.GA.3869.UBUNTU18.64
    zimbra-archiving...NOT FOUND
    zimbra-core...FOUND zimbra-core-8.8.15.GA.3869.UBUNTU18.64
ZCS upgrade from 8.8.15 to 9.0.0 will be performed.


----------------------------------------------------------------------
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 current number of databases...

Do you want to verify message store database integrity? [Y] Y

Verifying integrity of message store databases.  This may take a while.
Starting mysqld...done.
mysqld is alive
No errors found
mysqld is alive
Stopping mysqld... done.


Use Zimbra's package repository [Y] Y

Warning: apt-key output should not be parsed (stdout is not a terminal)
Importing Zimbra GPG key

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-drive (repo)
Found zimbra-imapd (local)


The Zimbra Collaboration Server appears to already be installed.
It can be upgraded with no effect on existing accounts,
or the current installation can be completely removed prior
to installation for a clean install.

Do you wish to upgrade? [Y]

Scanning for any new or additional packages available for installation
Existing packages will be upgraded
    Upgrading zimbra-core
    Upgrading zimbra-ldap
    Upgrading zimbra-logger
    Upgrading zimbra-mta

Install zimbra-dnscache [N] N //No porque instalamos DNSMASQ

 Upgrading zimbra-snmp
    Upgrading zimbra-store
    Upgrading zimbra-apache
    Upgrading zimbra-spell
    Upgrading zimbra-memcached
    Upgrading zimbra-proxy
    Upgrading zimbra-drive

Install zimbra-imapd (BETA - for evaluation only) [N] 
 Upgrading zimbra-chat
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
    zimbra-memcached
    zimbra-proxy
    zimbra-drive
    zimbra-chat

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

Beginning Installation - see /tmp/install.log.HNlxHmvj for details...

                          zimbra-core-components will be downloaded and installed.
                            zimbra-timezone-data will be installed.
                         zimbra-common-core-libs will be installed.
                  zimbra-common-mbox-conf-rights will be installed.
                    zimbra-common-mbox-conf-msgs will be installed.
                           zimbra-common-mbox-db will be installed.
                          zimbra-common-core-jar will be installed.
                         zimbra-common-mbox-conf will be installed.
                         zimbra-common-mbox-docs will be installed.
                   zimbra-common-mbox-conf-attrs will be installed.
                   zimbra-common-mbox-native-lib will be installed.
                                     zimbra-core will be installed.
                          zimbra-ldap-components will be downloaded and installed.
                                     zimbra-ldap will be installed.
                                   zimbra-logger will be installed.
                           zimbra-mta-components will be downloaded and installed.
                                      zimbra-mta will be installed.
                          zimbra-snmp-components will be downloaded and installed.
                                     zimbra-snmp will be installed.
                         zimbra-store-components will be downloaded and installed.
                       zimbra-jetty-distribution will be downloaded and installed.
                                 zimbra-mbox-war will be installed.
                                zimbra-mbox-conf will be installed.
                             zimbra-mbox-service will be installed.
                   zimbra-mbox-admin-console-war will be installed.
                       zimbra-mbox-webclient-war will be installed.
                          zimbra-mbox-store-libs will be installed.
                                    zimbra-store will be installed.
                        zimbra-apache-components will be downloaded and installed.
                                   zimbra-apache will be installed.
                         zimbra-spell-components will be downloaded and installed.
                                    zimbra-spell will be installed.
                                zimbra-memcached will be downloaded and installed.
                         zimbra-proxy-components will be downloaded and installed.
                                    zimbra-proxy will be installed.
                                    zimbra-drive will be downloaded and installed (later).
                                     zimbra-chat will be downloaded and installed (later).

Downloading packages (10):
   zimbra-core-components
   zimbra-ldap-components
   zimbra-mta-components
   zimbra-snmp-components
   zimbra-store-components
   zimbra-jetty-distribution
   zimbra-apache-components
   zimbra-spell-components
   zimbra-memcached
   zimbra-proxy-components
zimbra-jetty-distribution
   zimbra-apache-components
   zimbra-spell-components
   zimbra-memcached
   zimbra-proxy-components
      ...done

Saving existing configuration file to /opt/zimbra/.saveconfig

Shutting down zimbra mail

Backing up the ldap database...done.
Upgrading the remote packages

Remove zimbra-talk if it is installed ...

Removing deployed webapp directories

Installing repo packages (10):
   zimbra-core-components
   zimbra-ldap-components
   zimbra-mta-components
   zimbra-snmp-components
   zimbra-store-components
   zimbra-jetty-distribution
   zimbra-apache-components
   zimbra-spell-components
   zimbra-memcached
   zimbra-proxy-components
      ...done

Installing local packages (25):
   zimbra-timezone-data
   zimbra-common-core-libs
   zimbra-common-mbox-conf-rights
   zimbra-common-mbox-conf-msgs
   zimbra-common-mbox-db
   zimbra-common-core-jar
   zimbra-common-mbox-conf
   zimbra-common-mbox-docs
   zimbra-common-mbox-conf-attrs
   zimbra-common-mbox-native-lib
   zimbra-core
   zimbra-ldap
   zimbra-logger
   zimbra-mta
   zimbra-snmp
   zimbra-mbox-war
   zimbra-mbox-conf
   zimbra-mbox-service
   zimbra-mbox-admin-console-war
   zimbra-mbox-webclient-war
   zimbra-mbox-store-libs
   zimbra-store
   zimbra-apache
   zimbra-spell
   zimbra-proxy
      ...done

Installing extra packages (2):
   zimbra-drive
   zimbra-chat
      ...done

Running Post Installation Configuration:

Setting defaults from saved config in /opt/zimbra/.saveconfig/config.save
   HOSTNAME=correo.siua.ac.cr
   LDAPHOST=correo.siua.ac.cr
   LDAPPORT=389
   SNMPTRAPHOST=correo.siua.ac.cr
   SMTPSOURCE=admin@siua.ac.cr
   SMTPDEST=admin@siua.ac.cr
   SNMPNOTIFY=yes
   SMTPNOTIFY=yes
   LDAPROOTPW=*
   LDAPZIMBRAPW=*
   LDAPPOSTPW=*
   LDAPREPPW=*
   LDAPAMAVISPW=*
   LDAPNGINXPW=*
Restoring existing configuration file from /opt/zimbra/.saveconfig/localconfig.xml...done

Software Installation complete!

  • python 3
// remove 2.7
sudo apt purge -y python2.7-minimal &&
sudo ln -s /usr/bin/python3 /usr/bin/python &&
sudo apt install -y python3-pip &&
sudo ln -s /usr/bin/pip3 /usr/bin/pip





sudo apt install software-properties-common 
sudo add-apt-repository ppa:deadsnakes/ppa 
sudo apt update 

sudo apt install build-essential zlib1g-dev libncurses5-dev libgdbm-dev libnss3-dev libssl-dev libreadline-dev libffi-dev libsqlite3-dev wget libbz2-dev
cd /tmp
wget https://www.python.org/ftp/python/3.9.11/Python-3.9.11.tgz

tar -xf Python-*.tgz

cd Python-3.9*/

./configure --enable-optimizations

make

sudo make altinstall


sudo apt install python3.7 
sudo apt install python3.7-minimal

sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.7 1
python3 -m pip install --upgrade pip

  • Cerbot
su root
su zimbra

//verificacion de datos
source ~/bin/zmshutil; zmsetvars
zmhostname
hostname --fqdn

su root
sudo apt install -y net-tools dnsutils
dig +short type257 $(hostname --d)
netstat -tulpn | grep ":80 "


su root
su zimbra

zmprov ms 'correo.siua.ac.cr' zimbraReverseProxyMailMode https
zmprov ms 'correo.siua.ac.cr' zimbraMailMode https

apt install -y python3 python3-venv libaugeas0
python3 -m venv /opt/certbot/

/opt/certbot/bin/pip install --upgrade pip
/opt/certbot/bin/pip install certbot
ln -s /opt/certbot/bin/certbot /usr/local/sbin/certbot
/usr/local/sbin/certbot certonly -d $(hostname --fqdn) --standalone --preferred-chain  "ISRG Root X1" --agree-tos --register-unsafely-without-email --key-type rsa
sudo apt update
sudo apt install squashfuse fuse squashfs-tools
sudo apt install snap snapd
sudo snap install core
sudo snap install --classic certbot
ln -s /snap/bin/certbot /usr/bin/cerbot


certbot --version

sudo su - zimbra -c "zmproxyctl stop"
sudo su - zimbra -c "zmmailboxdctl stop"


Removing apparmor (2.12-4ubuntu5.3) ...
Removing bind9 (1:9.11.3+dfsg-1ubuntu1.18) ...
Removing bind9utils (1:9.11.3+dfsg-1ubuntu1.18) ...
Removing certbot (0.27.0-1~ubuntu18.04.2) ..

Error: Mensaje: system failure: exception executing command: zmqstat all with {RemoteManager: correo.siua.ac.cr->zimbra@correo.siua.ac.cr:22} Código de error: service.FAILURE Method: [unknown] Detalles:soap:Receiver

  • Solucion
su zimbra
zmprov ms correo.siua.ac.cr zimbraRemoteManagementPort 44
zmproxyctl restart

Borrar cuentas falsas

  • Admin->Configurar->Dominios->Siua.ac.cr->Espacio de almacenamiento
  • Y vemos cuentas falsas
  • Para borarrlas
su zimbra
zmgsautil deleteAccount -a ham.m11vb_q6g@Siua.ac.cr
zmgsautil deleteAccount -a spam.ypihi771@Siua.ac.cr
zmgsautil deleteAccount -a virus-quarantine.flqbpl6u@Siua.ac.cr