Dovecot enable SSL (by default it uses an old expired cert if you choose pop3s and imaps as protocols)
===================
Create Cert & Key:
openssl req -new -x509 -nodes -days 1530 -out server.crt -keyout server.key
mkdir /etc/mailssl
chmod 700 /etc/mailssl
cp server.* /etc/mailssl
Edit /etc/dovecot.conf
ssl_cert_file = /etc/mailssl/server.crt
ssl_key_file = /etc/mailssl/server.key
dovecot, enable, ssl, tls, certificatedovecot, default, expired, cert, imaps, protocols, openssl, req, nodes, server, crt, keyout, mkdir, etc, mailssl, chmod, cp, edit, conf, ssl_cert_file, ssl_key_file,