When a cPanel mailbox can send but receives nothing, the problem is almost never the mailbox itself — sending proves the password, Exim, and outbound delivery all work. The failure is in the path mail takes to reach this server: where the MX record points, whether cPanel thinks the domain is local or remote, whether the mailbox has room, or whether something rejected the message at the SMTP gate. The fix is to follow that inbound path one hop at a time until you find where messages stop.
What’s happening
Inbound delivery on a cPanel server is a chain, and a break anywhere upstream of the mailbox looks identical to the user: they send fine, nothing comes back. The chain is: a sender’s mail server looks up your domain’s MX record in public DNS, connects to whatever host that record names, and that host’s Exim accepts the message over SMTP. Exim then decides whether the domain is delivered locally (the domain is in /etc/localdomains) or relayed elsewhere (it is in /etc/remotedomains). For local delivery, Exim hands the message to Dovecot / the local delivery agent, which writes it into the user’s Maildir — unless the mailbox is over quota, in which case delivery is refused with a 552/452.
Sending exercises none of that. Outbound mail uses the same Exim and the same credentials but a completely separate path, which is why “send works, receive fails” so reliably points at the inbound chain. The common breaks, in rough order of frequency: the MX record points at the wrong host (a former provider, a Microsoft 365 / Google Workspace tenant that was set up and abandoned, or Cloudflare email routing); the domain is flagged local in cPanel while its MX lives offsite (or the reverse); the mailbox is full; an Exim ACL, greylist, or RBL rejects the sender at the gate; or a DNS change has not propagated and senders are still hitting an old MX.
How to verify
Start at the edge — what the rest of the internet sees — then work inward to the mailbox.
# 1. Where does the world send this domain's mail?
dig +short MX example.com
dig +short MX example.com @8.8.8.8
# Does the MX hostname even resolve, and to this server?
dig +short mail.example.com
curl -s https://api.ipify.org # this server's public IP — compare them
If the MX points anywhere other than this server (or a hostname that resolves to it), inbound mail is going somewhere else entirely. Next, check how cPanel routes the domain locally:
# Is the domain treated as local or remote on THIS box?
grep -w example.com /etc/localdomains /etc/remotedomains
# What does WHM's mail routing think? (per-domain)
grep -i example.com /etc/userdomains
Now watch what Exim actually does with an inbound test message. Send one from an external account (Gmail, a phone) and tail the logs:
# Live view while you send a test from outside
tail -f /var/log/exim_mainlog
# Did anything for this recipient arrive at all?
grep "user@example.com" /var/log/exim_mainlog | tail -30
# Refusals happen here, not in mainlog
grep "user@example.com" /var/log/exim_rejectlog | tail -30
# Group every line for matching messages
exigrep 'user@example.com' /var/log/exim_mainlog | tail -60
Key signatures: Recipient verify failed or Unrouteable address means Exim does not consider the address local; mailbox is full / quota means the Maildir is over its limit; greylisted or an RBL name (zen.spamhaus.org, Barracuda) means a gate rejection. If the message never appears in either log, it never reached this server — the MX is the suspect.
Check the mailbox quota directly:
# Per-account disk + mail usage
quota -u <cpaneluser>
# Maildir size for the specific address
du -sh /home/<cpaneluser>/mail/example.com/user/
# cPanel's record of the mailbox quota and usage
grep -ri 'user@example.com' /home/<cpaneluser>/etc/example.com/
cat /home/<cpaneluser>/etc/example.com/quota # bytes, if quota set
Confirm the local delivery side is healthy:
exim --version # Exim is the MTA
whmapi1 servicestatus | grep -iA2 'exim\|dovecot'
# or
/scripts/restartsrv_exim --status
/scripts/restartsrv_dovecot --status
The fix
- MX points at the wrong host — the single most common cause. If
dig MXreturns a former host, an abandoned Microsoft 365 / Google Workspace tenant, or*.mx.cloudflare.net, inbound mail is being delivered there, not to cPanel. Correct the MX in WHM » DNS Zone Manager (or the authoritative DNS provider if the zone is hosted elsewhere) to point at this server’s mail hostname, then wait for TTL to expire before re-testing. - Local-vs-remote routing mismatch — if the MX correctly points here but mail still does not land, the domain may be flagged as a Remote Mail Exchanger in cPanel, so Exim refuses to deliver it locally. In WHM » Edit MX Entry (or cPanel » Email » Email Routing) set it to Local Mail Exchanger when the mailbox lives on this box, Remote when it lives offsite. Confirm the domain then appears in exactly one of
/etc/localdomainsor/etc/remotedomains— never both. Run/scripts/updateuserdomainsafter manual edits. - Mailbox over quota —
quota/dushows the Maildir at or above its limit andexim_mainlogshowsmailbox is full. Raise the quota in cPanel » Email Accounts » Manage » Storage Space, or have the user empty large folders (Trash and Junk are the usual culprits). Account-level disk being full has the same effect even if the individual mailbox quota is generous — checkquota -u <cpaneluser>too. - Exim rejecting at the SMTP gate —
exim_rejectlogshows the sender being refused. If it isRecipient verify failed, the address or its forwarder does not exist locally — recreate it or fix the entry in/etc/valiases/example.com. If it is an RBL hit, the sender’s IP is listed and that is the sender’s problem, but an over-aggressive RBL in WHM » Exim Configuration Manager » RBLs can block legitimate mail — review which RBLs are enabled. - Greylisting deferring everything — cPanel’s Greylisting (WHM » Email » Greylisting) tells unknown senders to retry later. Normal senders retry and arrive within minutes; misconfigured or one-shot senders never do. If a specific sender is stuck, add their domain or IP to the Greylisting Trusted Hosts allowlist, or disable greylisting for the receiving domain to confirm it is the cause.
- DNS not propagated — a recently changed MX still resolves to the old host from the sender’s resolver. Confirm with
dig MX example.com @8.8.8.8versus your own resolver; if they disagree, the change is mid-propagation and you wait out the previous record’s TTL. Lower the TTL before future migrations, not during. - Exim or Dovecot not actually accepting — rare, but if
/scripts/restartsrv_exim --statusshows Exim down or not listening on 25, no inbound mail lands at all (sending from webmail can still queue locally, masking it). Restart with/scripts/restartsrv_eximand/scripts/restartsrv_dovecot, then confirm port 25 is open inbound at the firewall (csf -g 25on a CSF host). - Apache vs Mail confusion — if the website loads but mail does not, that confirms the box is up and the problem is mail-specific, not a dead server. The two are independent services; a working site tells you nothing about MX or Exim. Do not chase web/DNS A-record issues when only mail is broken — stay on the MX and Exim trail.
Once the break is found and fixed, send one more test from an external account and watch tail -f /var/log/exim_mainlog for the <= accept line followed by a local => delivery — that round trip, not the absence of a bounce, is what confirms inbound mail is flowing again. Stack Harbor handles cPanel mail-flow triage under managed cPanel operations — start a conversation when inbound mail breaks.