Certificado
sudo openssl req -new -x509 -nodes -days 365 \
-out /etc/postfix/victorsmx.local.crt -keyout /etc/postfix/victorsmx.local.key
Postfix (STARTTLS en el 25)
sudo postconf -e "smtpd_tls_cert_file=/etc/postfix/victorsmx.local.crt"
sudo postconf -e "smtpd_tls_key_file=/etc/postfix/victorsmx.local.key"
sudo postconf -e "smtpd_use_tls=yes"
sudo postconf -e "smtpd_tls_security_level=may"
sudo postconf -e "smtp_tls_security_level=may"
sudo systemctl reload postfix
openssl s_client -connect 172.16.26.224:25 -starttls smtp
Dovecot
/etc/dovecot/conf.d/10-ssl.conf:
ssl = required
ssl_cert = </etc/postfix/victorsmx.local.crt
ssl_key = </etc/postfix/victorsmx.local.key
10-auth.conf: disable_plaintext_auth = yes.
sudo systemctl restart dovecot
openssl s_client -connect 172.16.26.224:995 # POP3S
openssl s_client -connect 172.16.26.224:993 # IMAPS
En Thunderbird, cambiar la seguridad a STARTTLS (SMTP) y SSL/TLS (POP3/IMAP) y aceptar la excepción del certificado.