ZIMBRA Comandos Diversos e Problemas com o opendkim

sudo apt-get update
sudo apt-get upgrade
sudo apt-get dist-upgrade
sudo apt-get install bind9 bind9utils bind9-doc

#LOG de ERRO
Jul 4 14:31:05 srvmail zmconfigd[17683]: Executed: /opt/zimbra/bin/zmopendkimctl status norewrite returned 1 (30 – 72) (0.01 sec)
Jul 4 14:31:05 srvmail zmconfigd[17683]: Tracking service opendkim

/opt/zimbra/libexec/zmdkimkeyutil -r -d

/opt/zimbra/libexec/zmdkimkeyutil -r -d pinhais.pr.gov.br

# OpenDkim
https://wiki.zimbra.com/wiki/Configuring_for_DKIM_Signing

# master cf
/opt/zimbra/postfix/conf/master.cf

# Corige permissões
/opt/zimbra/libexec/zmfixperms –verbose –extended

como zimbra:

zmcontrol status
/opt/zimbra/bin/zmopendkimctl start

/opt/zimbra/opendkim/sbin/opendkim -x /opt/zimbra/conf/opendkim.conf -u zimbra
/opt/zimbra/Opendkim/sbin/Opendkim -x /opt/zimbra/conf/Opendkim.conf -u zimbra

chown zimbra:zimbra /opt/zimbra/zmstat/*
su zimbra
zmstatctl start
zmstatctl status

##Referencias

Ubuntu 18.04 configurando DNS 127.0.0.53 – Como resolver

https://computingforgeeks.com/how-to-install-zimbra-collaboration-on-ubuntu-18-04-lts/
https://blog.zimbra.com/2018/01/install-zimbra-collaboration-8-8-ubuntu-16-04-lts/

https://github.com/BktechBrazil/Z2Z

Atualizando o Zimbra 8.6.0 para a 8.8.12

#sudo
sudo ALL=(ALL:ALL) NOPASSWD:ALL

iface ens160 inet static
address 172.17.0.20
netmask 255.255.255.0
network 172.17.0.0
broadcast 172.17.0.255
gateway 172.17.0.254
# dns-* options are implemented by the resolvconf package, if installed
dns-nameservers 8.8.8.8,127.0.0.1
dns-search azul.pr.gov.br

.ssh/authorized_keys

##Disable dns cache
# zmcontrol status
# zmprov ms `zmhostname` -zimbraServiceEnabled dnscache
# zmprov ms `zmhostname` -zimbraServiceInstalled dnscache
# zmcontrol status

 

 

https://forums.zimbra.org/viewtopic.php?t=60021
#verificar
zmprov gs `zmhostname` zimbraServiceEnabled
zmprov gs `zmhostname` zimbraServiceInstalled
zmprov ms `zmhostname` +zimbraServiceEnabled memcached
zmprov ms `zmhostname` +zimbraServiceEnabled proxy

#Habilida servicos
zmprov ms $(zmhostname) +zimbraServiceInstalled memcached
zmprov ms $(zmhostname) +zimbraServiceInstalled proxy

#desabilida serviçoes
zmprov ms `zmhostname` -zimbraServiceEnabled memcached
zmprov ms `zmhostname` -zimbraServiceEnabled proxy
zmprov ms `zmhostname` -zimbraServiceEnabled opendkim

https://wiki.zimbra.com/wiki/Unable_to_create_a_successful_TLS_connection_to_the_ldap_masters
zmlocalconfig -e ssl_allow_untrusted_certs=true
zmlocalconfig -e ldap_starttls_supported=0
zmlocalconfig -e ldap_starttls_required=false
zmlocalconfig -e ldap_common_require_tls=0
zmcontrol restart