A mail client cannot connect with its security settings
A mail client fails to connect or sign in when its port and encryption settings differ from what the server offers. Dovecot and Postfix accept mail logins only over TLS, so use one of the port and encryption pairs below.
Symptoms
The mail client fails to connect, times out, or reports that the server lacks support for the selected connection security. Sending mail fails with an authentication error, or the client reports that the server lacks support for authentication.
Cause
The server accepts mail logins only over an encrypted connection. Use these port and encryption pairs.
- For IMAP, use port
993with SSL/TLS or port143with STARTTLS. - For POP3, use port
995with SSL/TLS or port110with STARTTLS. - For sending mail, use port
465with SSL/TLS or port587with STARTTLS. Port587offers authentication only after STARTTLS.
Port 25 is reserved for mail between servers. The username is always the full email address.
Resolution
Set the mail client to one of the port and encryption pairs above for each protocol it uses. Enter the full email address as the username and enable authentication for sending mail.
Check that IMAP answers over TLS.
openssl s_client -connect mail.example.com:993 -quietOutput * OK [CAPABILITY IMAP4rev1 SASL-IR LOGIN-REFERRALS ID ENABLE IDLE LITERAL+ AUTH=PLAIN AUTH=LOGIN] Dovecot ready.Check that SMTP answers with STARTTLS on port
587.openssl s_client -starttls smtp -connect mail.example.com:587 -quietType
EHLO test. The server answers with lines that start with250. The first line includes the server's name. Then typeQUIT.If a port answers when you check it from the server and times out when you check it from outside, a firewall between the two blocks the connection.