GICT knowledge base
Fix Dovecot Plaintext Authentication Errors Without Weakening TLS
Published
An IMAP or POP3 client reporting that plaintext authentication is disallowed usually needs a properly configured encrypted connection, not a server-wide exception that permits passwords over an unencrypted network. Check the client and server version before editing Dovecot settings.
Check the client first
Use the host’s documented mail hostname, port and encryption mode. Implicit TLS and STARTTLS are different connection modes; select the combination the service actually supports. Verify the certificate name and trust rather than bypassing a warning. Do not send a real password through telnet or another unencrypted diagnostic session.
The names LOGIN and PLAIN describe authentication mechanisms. They do not by themselves mean the network connection is unencrypted: these mechanisms can run inside a protected TLS connection. Base64 encoding alone is not encryption.
Dovecot settings differ by major version
- In Dovecot 2.3,
disable_plaintext_auth = yesrestricts cleartext authentication on connections Dovecot does not consider secure. The old article reversed the meaning of this setting. - In Dovecot 2.4, the replacement setting is
auth_allow_cleartext. A value ofnorestricts cleartext authentication on unsecured connections. Do not copy the 2.3 name into 2.4 or assume the old and new booleans have the same direction. - A line beginning with a comment marker is not an active setting. Effective behavior also depends on included configuration, TLS settings and trusted connection handling.
These explain configuration semantics, not a ready-to-paste production change. An authorized administrator should inspect the installed release and effective configuration privately, protect any sensitive diagnostic output, and validate a recoverable candidate before a controlled reload.
WHM-managed mail servers
Use Service Configuration > Mailserver Configuration rather than blindly editing a generated Dovecot file. The option about allowing plaintext authentication from remote clients has security consequences: allowing it is not the way to enforce encryption. Read the installed interface’s description and retain the encrypted-access requirement unless a separately assessed policy explicitly says otherwise.
If encrypted login still fails
Check server logs privately for TLS negotiation, authentication-backend or account errors. Distinguish a certificate or protocol problem from a wrong password. On managed hosting, provide support with the error, client version and connection settings, never the password. No global TLS or authentication protection needs to be disabled to collect those details.
References: Dovecot 2.4 setting; Dovecot TLS and authentication; WHM Mailserver Configuration.
Reviewed October 15, 2026. Documentation review; no mail-server settings or customer authentication were changed or tested.
Related guides
How to Install and Uninstall JetBackup for cPanel
How to Install JetBackup for cPanel. JetBackup is one of the leading backup solutions for cPanel & WHM that offers a user-friendly GUI. It provides
WHMSetup SendGrid on your cPanel VPS/Server
Setup SendGrid on your cPanel VPS/Server. SendGrid provides a cloud-based service for reliable transactional and marketing email.
WHMChange cPanel Nameserver Software to PowerDNS Carefully
Review WHM nameserver selection, resolver dependencies, cluster compatibility and DNSSEC requirements before a planned PowerDNS service change.
WHMTroubleshooting Jailed Shell on OpenVZ
cPanel/WHM providing Jailed shell environment for users, this feature giving high-level security for users when doing ssh access to their server.
