IMAP: LOGINDISABLED — Plaintext authentication disallowed on non-secure connections (need STARTTLS)
The IMAP server refuses LOGIN until the connection is encrypted.
Plaintext authentication disallowed on non-secure (SSL/TLS) connections[PRIVACYREQUIRED] Plaintext authentication disallowed on non-secure connectionsNO [PRIVACYREQUIRED] Plaintext authentication not allowed without SSL/TLSimap LOGINDISABLED STARTTLS Meaning
Use IMAP over SSL/TLS on port 993, or connect on 143 and issue STARTTLS before LOGIN. Mail clients need "SSL/TLS" or "STARTTLS" selected, not "None". Don't enable disable_plaintext_auth = no except for testing on trusted networks.
Common causes
- Client set to no encryption
- Using port 143 without STARTTLS
- Library not calling STARTTLS
- Proxy stripping TLS
- Server requires secure auth
⚡ Quick fix
- Use port 993 with SSL/TLS
- Or enable STARTTLS on 143 in the client
- Don't disable plaintext protection
Detailed fix by platform
Shell
- bash
openssl s_client -connect imap.example.com:993 -quiet openssl s_client -starttls imap -connect imap.example.com:143
How to diagnose
- Encryption — On?
- Port — 993/143+STARTTLS?
- Client — Sets security?
🔧 Still not fixed?
Many errors look alike. If the steps above didn’t solve it, one of these is probably what you’re facing:
Similar errors
Most viewed in Email / SMTP
- 550 5.7.1 550 5.7.1 Relaying denied / Message rejected as spam / Unauthenticated email not accepted
- Laravel: Connection could not be established with host Laravel: Symfony\Component\Mailer\Exception\TransportException: Connection could not be established with host "smtp.mailtrap.io:2525": stream_socket_client(): Unable to connect
- SES: Maximum sending rate exceeded Amazon SES: Throttling — Maximum sending rate exceeded (454 Throttling failure)
Other ways to find it
Where this error sits
Origin: Network. Errors that are often confused with or caused by this one (click to open):
🧠 Still stuck? Analyze your error
Paste the full message, response headers or stack trace — we'll detect the platform and point to the most likely cause.
💬 What worked for others
No tips yet — did something else fix this for you?
Share what worked for you
Tips are checked by an editor before they appear. Links are removed.
Report a correction or suggest an improvement
Last updated 18 Nov 2026