550 No Such User Here is Exim telling the sender “I am responsible for this domain, but I have no such recipient.” When the mailbox plainly exists in cPanel, that contradiction has a specific cause: Exim’s view of the domain’s accounts does not match what you see in the interface. The recipient may live under a different cPanel account that also claims the domain, the alias file may be stale, the domain may be flagged remote, or the address has a typo in its routing entry. The fix is to reconcile Exim’s routing data with the mailbox you can see.
What’s happening
For a local domain, Exim verifies recipients against the account’s virtual user and alias data — primarily /etc/valiases/<domain> (forwarders and the catch-all) and the account’s mailbox list. When a message arrives, Exim checks whether the recipient is a real mailbox or has a valid alias; if neither resolves, it returns 550 No Such User Here (sometimes Recipient verify failed). Crucially, Exim trusts these files, not the cPanel UI — if they have drifted out of sync, the UI can show a healthy mailbox while Exim rejects mail for it.
The drift comes from a few places. The most damaging is two cPanel accounts owning the same domain: if example.com is a primary domain on one account and was also added as an addon/alias on another, Exim may route mail to the account that has no such mailbox. A stale or hand-edited /etc/valiases/<domain> can point the address at a deleted forwarder. A domain set to Remote Mail Exchanger will not be delivered locally at all. And a :fail: default address combined with a misspelled mailbox means anything not matching exactly is rejected with this exact error. Each of these is a mismatch between intent and routing, not a missing mailbox.
How to verify
Start by confirming, from Exim’s own perspective, whether the address routes — this is the single most useful test.
# Ask Exim to test-route the recipient, no message sent
exim -bt user@example.com
# Verbose routing decision
exim -bv user@example.com
exim -bt either shows router = ... and a delivery target (good) or is undeliverable: Unrouteable address / unknown user (the problem). Next, check whether more than one account claims the domain:
# Which cPanel user owns this domain?
grep -w example.com /etc/userdomains
# Is it possibly an addon/alias on a second account too?
grep -rw example.com /etc/userdatadomains 2>/dev/null
grep -rl example.com /var/cpanel/users/ 2>/dev/null
Inspect the alias/forwarder file Exim actually reads:
# The address and the catch-all live here
cat /etc/valiases/example.com
# A *: :fail: line means anything unmatched is rejected with 550
grep -n ':fail:\|:blackhole:' /etc/valiases/example.com
Confirm local-vs-remote routing and that the mailbox exists on disk:
grep -w example.com /etc/localdomains /etc/remotedomains
ls -la /home/<cpaneluser>/mail/example.com/user/ # Maildir for the address
And watch a live rejection to capture the exact wording:
grep 'user@example.com' /var/log/exim_mainlog /var/log/exim_rejectlog | tail -30
The fix
-
Resolve a duplicate domain across accounts — the most common real cause. If
example.comappears under two cPanel users, mail routes to whichever Exim resolves first, which may be the account without the mailbox. Remove the domain from the account that should not host mail (delete the addon/alias domain there), then run/scripts/updateuserdomains. Going forward, a domain should live on exactly one account. -
Repair the alias/forwarder file — if
/etc/valiases/example.compoints the address at a deleted destination or has a malformed line, fix it through cPanel » Email » Forwarders (delete and recreate the forwarder) rather than hand-editing, then confirmexim -btnow routes. If you must edit by hand, keep the*:default line intact and run/scripts/updateuserdomains. -
Set the domain to Local Mail Exchanger — if
grepshows the domain in/etc/remotedomains, Exim will not deliver locally. In cPanel » Email » Email Routing (or WHM » Edit MX Entry) set Local Mail Exchanger, confirm the domain now appears only in/etc/localdomains, and re-test. -
Fix a
:fail:default address hiding a typo — if the default address is:fail:(the recommended setting) but the intended mailbox is misspelled, every near-miss bounces with550 No Such User Here. Verify the mailbox spelling in cPanel » Email Accounts matches exactly what senders use; recreate the address if it was created with a typo. -
Recreate a mailbox that exists in the UI but not on disk — rare, but if
lsshows no Maildir for the address while the UI lists it, the account is inconsistent. Delete and recreate the email account in cPanel » Email Accounts, which rewrites both the UI record and the on-disk Maildir. -
Rebuild the domain mapping after migrations — if this started right after a transfer or rename, the user data can be stale. Run
/scripts/updateuserdomainsand/scripts/rebuildmailrouting(or restart Exim) so Exim re-reads/etc/localdomains,/etc/userdomains, and the valiases.
After the fix, run exim -bt user@example.com and confirm it shows a delivery router instead of “unknown user,” then send a real test from outside and watch for the => local delivery in exim_mainlog. A 550 No Such User Here for a visible mailbox is always a routing-vs-reality gap, and closing it is what makes the address reachable. Stack Harbor reconciles cPanel mail routing under cPanel/WHM management — start a conversation.