Skip to content

Outgoing mail stuck in the Outbox on a cPanel mailbox: server vs client causes

Messages sit in the Outbox and never send from a cPanel mailbox. The cause is usually SMTP submission settings, port blocking, or an outbound restriction — here is how to isolate it.

Mail that piles up in the Outbox and never leaves is failing at the submission step — the client cannot hand the message to the server in the first place, so nothing reaches Exim’s queue to be delivered. That makes this different from a message that was accepted and is now stuck in the Exim queue; here the message never got that far. The usual causes are SMTP settings the client cannot complete (wrong port, missing authentication), the network blocking the submission port, or a server-side restriction that refuses outbound for this account. The fastest way to isolate it is to ask whether the message ever appears in exim_mainlog at all.

What’s happening

Sending is a two-stage process. First the client submits the message to the server over SMTP — usually port 587 (STARTTLS) or 465 (implicit TLS) with authentication. Exim accepts it, writes a <= line to exim_mainlog, and places it in the queue. Second, Exim delivers it onward to the recipient’s server. A message stuck in the Outbox has not passed stage one: the client tried to submit and the submission failed or timed out, so it keeps the message locally and retries. Because nothing was accepted, there is no queue entry and no delivery attempt — the failure is entirely on the submission path.

The common reasons submission fails: the client is configured for port 25 (which most residential and cloud networks block outbound, and which cPanel often restricts to authenticated submission only), authentication is not enabled on the outgoing server so Exim refuses to relay, the wrong encryption mode prevents the handshake, or the network/firewall between the client and server drops the connection on the submission port. Less commonly, the server refuses the account’s outbound mail because it is over an hourly send limit, the domain is on the outbound hold list, or the account is suspended. Each leaves the message in the Outbox, but the fix depends on which side rejected it.

How to verify

The decisive question: does the message reach the server at all? Try to submit manually and watch the log.

# Does the submission port even accept a connection from where the client is?
openssl s_client -connect mail.example.com:587 -starttls smtp -servername mail.example.com </dev/null 2>/dev/null | head -5
# A clean banner = the port is reachable. Connection refused/timeout = network or firewall.

# Watch for the client's submission while it retries the Outbox
tail -f /var/log/exim_mainlog | grep 'user@example.com'

If a <= line appears when the client retries, submission is working and the problem is delivery (a different issue). If nothing appears, submission is failing — check what Exim/Dovecot say about the attempt:

# Auth or relay refusals on submission
grep 'user@example.com' /var/log/exim_mainlog | grep -i 'authenticat\|relay\|rejected' | tail -20
tail -f /var/log/maillog | grep -i 'dovecot.*auth'

Confirm the account is not blocked or throttled server-side:

# Is outbound for this account/domain held or the account suspended?
grep -i 'user@example.com\|example.com' /var/log/exim_mainlog | grep -i 'hold\|ratelimit\|defer' | tail
ls /var/cpanel/suspended/ 2>/dev/null | grep <cpaneluser>

# Hourly outbound limit (Max emails per hour)
grep -i 'max_emails_per_hour\|maxemails' /var/cpanel/users/<cpaneluser> 2>/dev/null

Rule out a port the local network blocks:

# From the client's network, can it reach 587 and 465?
# (run on the client machine)
nc -vz mail.example.com 587
nc -vz mail.example.com 465

The fix

  1. Set the outgoing server to 587 (STARTTLS) or 465 (SSL/TLS) with authentication — the most common fix. Many clients default to port 25, which networks block and cPanel restricts. Change the outgoing port to 587 STARTTLS or 465 SSL/TLS, turn on “My outgoing server requires authentication,” and use the full mailbox address as the username. cPanel » Email Accounts » Connect Devices lists the exact settings.

  2. Enable SMTP authentication if it is off — if the log shows a relay refusal (relay not permitted), the client is trying to send without authenticating. Enable outgoing authentication in the client; Exim only relays for authenticated submission.

  3. Work around a blocked port 25 on the network — if nc/openssl shows 587 and 465 reachable but 25 is not, the network blocks 25 and the client must use 587 or 465. There is nothing to fix on the server; switch the client port.

  4. Clear a server-side outbound hold or suspension — if the account is suspended or its domain is on the outbound hold list, no submission from it will relay. Unsuspend in WHM » Manage Accounts, or remove the domain from WHM » Email » Mail Queue Manager / outbound restrictions. If the account hit its Max emails per hour limit, raise it in WHM » Tweak Settings or the account’s email-limit setting, or wait for the window to reset.

  5. Lower an over-aggressive submission rate limit — if cPanel’s per-account submission throttle is rejecting bursts, the client retries and the Outbox backs up. Review the outbound throttle settings and raise the limit for legitimate high-volume senders.

  6. Fix the firewall on the server side — if nc cannot reach 587/465 at all and the ports should be open, confirm the host firewall allows them inbound: on a CSF host, check csf -g 587 and csf -g 465, and ensure TCP_IN includes them.

  7. Recreate the account in the client once the server side is correct — a client that cached a failed submission state may keep the message queued. After confirming a manual <= appears in the log, remove and re-add the account so it picks up the working settings.

Once submission succeeds, the Outbox drains as each message gets its <= accept line and moves into Exim’s queue for delivery. A stuck Outbox is always a submission failure, never a delivery one — and submission is fixed at the port, the authentication toggle, or the outbound policy. Stack Harbor resolves cPanel mail submission and outbound-policy issues under cPanel server administration — start a conversation.