Skip to content

Outlook or Thunderbird keeps asking for the email password on a cPanel mailbox

A mail client prompts for the cPanel mailbox password over and over even though it is correct. The cause is usually the wrong server, port, or auth setting — not the password.

A mail client that loops on the password prompt — you type the right password, it accepts it for a moment, then asks again — is rarely a password problem. The password is correct; the client is failing to complete the login for some other reason and the only feedback the user sees is the prompt reappearing. On a cPanel mailbox the usual culprits are the wrong incoming/outgoing server name, a port/SSL mismatch, an account that is over quota so the login half-succeeds, or cPHulk briefly blocking the IP after a few failed attempts. The job is to separate “wrong credentials” from “right credentials, broken connection.”

What’s happening

When a client connects to Dovecot (IMAP/POP3) or Exim (SMTP submission), it offers the username and password over an authenticated, usually TLS-protected channel. If the channel itself is wrong — the client is talking plain IMAP on a TLS-only port, or pointing at mail.example.com when that hostname has no valid certificate — the handshake fails before or during AUTH, and many clients report that ambiguously as “enter your password.” So the user re-enters a perfectly good password into a connection that was never going to succeed.

The other frequent cause is cPHulk Brute Force Protection. A few rapid failed logins (often from the client retrying automatically with a stale cached password) trip cPHulk, which then blocks the IP. Now even the correct password is refused at the source, and the client falls back to prompting. A full mailbox can also produce repeated prompts in some clients because the post-login session cannot be established. The signature that ties all of these together: the password is verifiably correct (it works in Webmail), yet the desktop or phone client keeps asking.

How to verify

First, prove the password is correct independent of the client by logging into Webmail.

# Webmail bypasses the client entirely:
# https://example.com/webmail  (or :2096)
# If this logs in, the password is fine and the client/transport is the problem.

Check what Dovecot logs when the client tries — this tells you auth-failed vs connection-dropped:

# Live auth attempts from the client's IP
tail -f /var/log/maillog | grep -i 'dovecot.*auth'

# Recent failures for this user
grep -i 'auth failed' /var/log/maillog | grep 'user@example.com' | tail -20

auth failed with (no auth attempts) or disconnected before AUTH points at a transport/TLS/port problem, not the password. Now check cPHulk for a block on the user’s public IP:

# Is the client's IP blocked by cPHulk?
whmapi1 read_cphulk_records list=brutes
grep -i 'cphulk' /var/log/maillog | tail -20

Confirm the correct connection settings the client should use:

# The server's mail hostname and the standard cPanel ports:
#   IMAP  993 (SSL/TLS)   POP3 995 (SSL/TLS)
#   SMTP  465 (SSL/TLS) or 587 (STARTTLS), auth required
hostname -f
openssl s_client -connect mail.example.com:993 -servername mail.example.com </dev/null 2>/dev/null | grep -i 'subject='

If the certificate subject does not match the hostname the client uses, that mismatch is a strong candidate for the loop. Finally, rule out quota:

quota -u <cpaneluser>
du -sh /home/<cpaneluser>/mail/example.com/user/

The fix

  1. Confirm the password in Webmail first — if Webmail logs in, stop trying the password and fix the client. If Webmail also fails, the password really is wrong (or the account is suspended) — reset it in cPanel » Email Accounts » Manage » Change Password and retry.

  2. Use the correct server and ports — set both incoming and outgoing servers to the server’s mail hostname (the one with a valid certificate, often the cPanel host’s FQDN or mail.example.com if it is covered by the cert). Use IMAP 993 SSL/TLS, SMTP 465 SSL/TLS or 587 STARTTLS, with authentication required on outgoing. cPanel’s Email Accounts » Connect Devices page shows the exact recommended settings for that mailbox — use them verbatim.

  3. Clear cPHulk if the IP is blocked — if read_cphulk_records shows the user’s IP, remove it and have the client stop hammering: WHM » cPHulk Brute Force Protection » History Reports, delete the block, or allowlist a known-good office IP under the cPHulk allowlist. Then fix whatever stale cached password caused the failed attempts.

  4. Fix a certificate-name mismatch — if the client connects to a hostname whose cert does not match, either point the client at the correct hostname (the one in the cert subject from the openssl check), or install/repair the mail certificate via WHM » Manage AutoSSL so the hostname the user prefers is covered. A self-signed or mismatched cert makes some clients silently fail and re-prompt.

  5. Resolve a full mailbox — if quota is at the limit, raise it in cPanel » Email Accounts » Manage » Storage Space or have the user empty Trash/Junk. A login that cannot open the mailbox can surface as a password prompt in certain clients.

  6. Remove and re-add the account — once the server-side cause is cleared, a client that has cached a broken connection state often keeps prompting. Delete the account from the client and re-add it with the verified settings; on phones, “remove account” then re-add is faster than editing.

  7. Check for an outbound-only loop — if incoming works but the client only prompts when sending, the SMTP settings are the problem: confirm SMTP authentication is enabled and the outgoing port/encryption match step 2. This is distinct from a 535 auth-failure, which means the SMTP password itself was rejected.

Once the client connects cleanly, the prompt stops for good — a recurring prompt always means the login is not actually completing, never that the password needs typing one more time. Stack Harbor resolves cPanel mail-client and Dovecot auth issues under cPanel server management — start a conversation.