/etc/postfix/main.cf
smtpd_tls_security_level = encrypt
vim /etc/dovecot/dovecot.conf
disable_plaintext_auth = yes ssl = required