Skip to content

cPanel mailbox over quota — inbound mail rejected and how to clear it

Incoming mail to a cPanel mailbox bounces because the box is full. Here is how to tell mailbox quota from account disk, read the Exim over-quota bounce, and free space or raise the limit so delivery resumes.

When a cPanel mailbox fills up, inbound mail stops landing and senders get a bounce — the message never reaches the inbox, and the user, who can still send, often does not realize anything is wrong until people complain. The cause is one of two limits with the same symptom: the mailbox’s own quota is full, or the whole account’s disk is full so no mailbox can grow. Telling them apart is the diagnosis, because raising the wrong one does nothing. The fix is to read the Exim bounce, confirm which limit tripped, free space or lift the cap, then confirm delivery resumes.

What’s happening

A cPanel mailbox has an individual quota — a size cap you set when creating the address (or “unlimited”). Exim and Dovecot enforce it at delivery: when a new message would push the Maildir over that cap, delivery is refused and Exim returns an over-quota response to the sender — typically 452 4.2.2 (a temporary “mailbox full,” so the sender retries for a while) or 552 5.2.2 (a permanent over-quota bounce). Either way, the message does not land.

But a mailbox under its own quota can still fail to receive if the account’s total disk is full. cPanel accounts have a package-level disk limit (and the filesystem itself can fill). When the account is at its disk cap, every write fails — mail, logs, web uploads — regardless of how much headroom an individual mailbox quota shows. So “mail bouncing as full” has two distinct sources: the per-mailbox quota, visible in cPanel’s Email Accounts list, and the account disk, visible in quota -u. A third wrinkle: cPanel’s quota display can go stale, showing a mailbox as full when it is not (or vice versa) until the quota cache is rebuilt — so trust the bounce and the on-disk size over a possibly-cached number. Until space exists, retried mail eventually hard-bounces and is lost.

How to verify

Read the over-quota bounce in Exim to confirm it is a quota rejection and which address:

# The over-quota refusals (452/552, "mailbox is full", "quota exceeded")
grep -iE 'quota|mailbox is full|552|452 .*over' /var/log/exim_mainlog | tail -40

# Everything Exim did for the affected address
exigrep 'user@example.com' /var/log/exim_mainlog | tail -40

Distinguish the two limits — the mailbox’s own quota versus the account’s total disk:

# Account-level disk usage and limit (catches a full account)
quota -u <cpaneluser>
df -h /home

# The specific mailbox's Maildir size on disk
du -sh /home/<cpaneluser>/mail/example.com/user/

# cPanel's recorded quota for that mailbox (bytes; absent = unlimited)
cat /home/<cpaneluser>/etc/example.com/quota 2>/dev/null
cat /home/<cpaneluser>/etc/example.com/maildirsize 2>/dev/null | head -1

If the numbers look inconsistent, the quota cache may be stale — check before changing anything:

# Maildir's own running total (first line is the quota; rest are usage rows)
head -1 /home/<cpaneluser>/mail/example.com/user/maildirsize

# Account quota cache that cPanel reports from
cat /home/<cpaneluser>/.cpanel/datastore/* 2>/dev/null | head

The fix

  1. Confirm it is quota, not routing, from the bounce. The Exim line must say over-quota (mailbox is full, quota exceeded, 452/552 5.2.2) for the specific address. If instead you see Unrouteable address or Recipient verify failed, this is a routing problem, not a full box — stop here and follow the inbound-mail-failure runbook. Treat the bounce text as the source of truth.
  2. Determine which limit tripped: mailbox or account. Compare the mailbox’s Maildir size against its quota, and the account’s quota -u against its disk limit. If the account total is at its cap, that is the binding constraint and raising the individual mailbox quota will not help. If the account has room but this one mailbox is at its size, it is a per-mailbox quota issue. Fix the one that is actually full.
  3. Free space in the full mailbox first. Have the user empty Trash and Junk/Spam and delete large attachments — these are the usual bulk. In cPanel » Email Accounts » Manage you (or they via webmail) can clear folders. Freeing space below the cap lets Exim deliver the queued retries before they hard-bounce, so this is the fastest way to restore delivery without changing limits.
  4. Raise the mailbox quota when the size is genuinely needed. In cPanel » Email Accounts » Manage » Storage Space, increase the quota (or set Unlimited) for the address. Only do this if the account has the disk to back it — a mailbox quota larger than the account’s free disk is meaningless. Raising it is right for a mailbox that legitimately needs to hold more, not as a substitute for cleanup on a runaway box.
  5. Clear account-level disk when the whole account is full. If quota -u shows the account at its limit, the mailbox quota is a red herring. Recover account disk: clear old backups in the home directory, large logs, and stray uploads; then either reduce usage or raise the account’s package disk limit in WHM » Modify an Account. Until the account drops below its disk cap, no mailbox can receive.
  6. Rebuild the quota cache if the display is wrong. If cPanel shows a mailbox as full but du and maildirsize say it is not (or the reverse), the cached count is stale. Recalculate with /scripts/generate_maildirsize --confirm --verbose <cpaneluser> to rebuild the mailbox’s maildirsize, and run /scripts/fixquotas to refresh account disk accounting. A stale cache can both falsely block delivery and falsely hide a real over-quota.
  7. Address why it filled — POP leave-on-server, no retention, shared box. A mailbox that fills repeatedly usually has a cause: a POP client set to “leave mail on server” never clears it, no one prunes old mail, or a shared/role address collects everything. Fix the client setting, set a retention habit, or move a high-volume address to a larger quota. Clearing it once without addressing the cause just queues the next bounce.
  8. Confirm delivery resumes with a real test. After freeing space or raising the limit, send a test from an outside account and watch tail -f /var/log/exim_mainlog for the <= accept and a local => delivery with no quota line. Confirm the message appears in the inbox, not just that the bounce stopped — and check whether the queued retries during the full period actually delivered or were lost to hard-bounce.

An over-quota mailbox is fixed when the box (and the account) is below its limit, the right cap is raised if needed, and a test message lands without a quota bounce. Stack Harbor diagnoses cPanel mailbox and disk-quota delivery failures under cPanel server administration — start a conversation when full mailboxes keep bouncing mail.