LOGINDISABLED Email / SMTP Origin: Network OSI layer 7 · Application Last updated 18 Nov 2026

IMAP: LOGINDISABLED — Plaintext authentication disallowed on non-secure connections (need STARTTLS)

The IMAP server refuses LOGIN until the connection is encrypted.

Exact message you may see 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
Seen on: IMAP Dovecot Email

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

  1. Use port 993 with SSL/TLS
  2. Or enable STARTTLS on 143 in the client
  3. Don't disable plaintext protection

Detailed fix by platform

Shell

  1. bash
    openssl s_client -connect imap.example.com:993 -quiet
    openssl s_client -starttls imap -connect imap.example.com:143

How to diagnose

  1. Encryption — On?
  2. Port — 993/143+STARTTLS?
  3. 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:

Where this error sits

Origin: Network. Errors that are often confused with or caused by this one (click to open):

0x800704EC — 0x800704EC: This program is blocked by group policy (Windows Defender) (Windows)0x800704EC403 Forbidden wp-admin — WordPress: 403 Forbidden on wp-admin, wp-login.php or admin-ajax.php (WordPress)403 Forbidden wp-admin530 — 530 5.7.0 Must issue a STARTTLS command first (TLS required before AUTH or sending) (Email / SMTP)530AADSTS50053 — AADSTS50053: Your account is locked (Smart Lockout) / sign-in blocked due to suspicious activity (Azure)AADSTS50053ActiveModel::ForbiddenAttributesError (strong parameters) — Rails: ActiveModel::ForbiddenAttributesError (Ruby / Rails)ActiveModel::Forbidde…antiforgery token could not be decrypted — ASP.NET Core: The antiforgery token could not be decrypted / The required antiforgery cookie is not present (400 Bad Request) (.NET)antiforgery token cou…Are you sure you want to do this? — WordPress: Are you sure you want to do this? Please try again. (nonce check failed) (WordPress)Are you sure you want…avc: denied — SELinux is preventing ... / avc: denied { read } for pid=... (permission denied despite correct permissions) (Linux)avc: deniedLOGINDISA…

Explore the map of this error Full error map →

🧠 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.