How to Fix 'Mailbox Disk Quota Exceeded' in cPanel & Webmail: Complete Guide (2026)

Resolve the 'Mailbox is full / Disk quota exceeded' bounce error in cPanel and Roundcube webmail. Learn how to use the Email Disk Usage tool, clean hidden IMAP trash folders via SSH, fix Dovecot quota cache desyncs, and scale business email storage in Pakistan.

How to Fix 'Mailbox Disk Quota Exceeded' in cPanel & Webmail: Complete Guide (2026)

Few things disrupt business operations in Pakistan faster than discovering your corporate email has stopped working.

Clients and vendors attempting to email you receive a frustrating automated bounce-back:
552 5.2.2 Mailbox is full / Disk quota exceeded or User has exhausted their storage quota.

Simultaneously, when logging into Roundcube Webmail, you are blocked from sending new messages or moving emails, greeted by an ominous red warning bar: “Storage Quota: 100% Full.”

Even worse, deleting emails from webmail often fails with an error because Roundcube needs disk headroom just to move items into the Trash folder!

In this practical, production-grade guide, we walk you through the exact steps to clear mailbox bloat, recalculate corrupted Dovecot quotas, and prevent business email downtime.


🔍 Why Does a cPanel Mailbox Fill Up?

In cPanel, each email account (e.g., info@yourcompany.pk) has a specific allocated storage limit configured by the administrator (e.g., 500MB, 1GB, or 5GB).

A mailbox exceeds its quota due to three primary culprits:

  1. The Hidden IMAP Trash & Sent Folder Trap: When users delete emails on smartphones (iPhone Mail / Android Outlook) or desktop clients (Outlook / Thunderbird), messages are moved to an IMAP Trash or Deleted Items folder on the server. The data never leaves the server until permanently purged!
  2. Gigantic Attachments (PDFs & Media): A few dozen 20MB scanned supplier invoices or CAD drawings quickly consume gigabytes of storage.
  3. Dovecot Quota Desynchronization: Occasionally, the underlying Linux mail server (Dovecot) loses sync between its cached .maildirsize index file and actual disk usage, falsely reporting 100% full even after you delete hundreds of emails.

🛠️ Method 1: Clean Up via cPanel “Email Disk Usage” (Fastest GUI Fix)

cPanel includes a built-in automated cleanup engine that bypasses Roundcube’s limitations.

Step-by-Step Instructions:

  1. Log into your cPanel Dashboard.
  2. Under the Email section, click on Email Disk Usage.
  3. Select your problematic email account from the Account dropdown.
  4. You will see a breakdown of storage by folder (INBOX, Sent, Trash, Junk, Archive).
  5. Next to the largest folder (usually Trash or Junk), click Manage.
  6. Under the Disposal dropdown, choose an automated purge rule:
    • Messages older than 1 year (Safe archive cleanup).
    • Messages larger than 30MB (Target large PDFs and video attachments).
    • Everything (Recommended for Trash and Junk).
  7. Click Delete Permanently.

The disk space is reclaimed instantly, and incoming emails will start arriving within seconds!


🛠️ Method 2: Recalculate Desynchronized Dovecot Quotas via SSH

If you deleted hundreds of emails but cPanel still reports the mailbox is 100% full, Dovecot’s index cache (maildirsize) is corrupted.

If you have root SSH access to your server or VPS:

1. Force Recalculate Quotas for a Specific User:

# Recalculate email quota for a specific cPanel user account
/scripts/generate_maildirsize --confirm --allaccounts cpanelusername

2. Manually Rebuild the maildirsize File:

Navigate to the user’s physical mail directory:

cd /home/cpanelusername/mail/yourcompany.pk/info/

# Remove the stale cached quota file
rm -f maildirsize

# Trigger Dovecot to recalculate upon next IMAP lookup
doveadm quota recalc -u info@yourcompany.pk

The server will scan the physical directory, count the exact byte count of actual emails, and write a fresh, accurate quota file.


🛠️ Method 3: Increase Mailbox Quota in cPanel

If the email account simply holds years of genuine business communications that cannot be deleted:

  1. In cPanel, go to Email Accounts.
  2. Locate the email address and click Manage.
  3. Under Storage, change the quota allocation (e.g., from 1024 MB to 5120 MB or select Unlimited).
  4. Click Update Email Settings.

[!NOTE] If your overall cPanel account itself has exhausted its total disk quota, you cannot increase individual mailbox quotas until you upgrade your hosting package or clean unneeded files from the cPanel File Manager.


🛠️ Step 4: Configure Local Outlook Archiving (PST AutoArchive)

To prevent mailboxes from repeatedly overflowing while preserving historical emails for compliance:

Configure Microsoft Outlook AutoArchive:

  1. In desktop Outlook, go to File > Options > Advanced.
  2. Click AutoArchive Settings.
  3. Set AutoArchive to run every 14 days.
  4. Set it to move messages older than 6 months to a local offline .pst file stored on your office computer’s drive.

This keeps your live cPanel server mailbox lightweight and fast, while your staff retains searchable access to years of historical correspondence on their local computers!


🏢 Why Business Email Demands Scalable Cloud Infrastructure

Running hundreds of corporate mailboxes on cheap shared hosting accounts with strict 5GB or 10GB total storage caps creates perpetual administration headaches.

Upgrading to Nextgen Cloud VPS in Pakistan or bare-metal Dedicated Servers delivers:

  • Massive NVMe Storage: Allocate 20GB, 50GB, or 100GB per employee mailbox without artificial shared hosting caps.
  • Dedicated Outbound Mail IP: Protect your corporate email deliverability from bad neighbors sharing the same IP address.
  • Tier-3 Islamabad Datacenter Peering: Lightning-fast IMAP and webmail synchronization speeds over local PTCL, Nayatel, and StormFiber networks.


📧 High-Capacity Business Email Cloud · 99.99% Uptime

Upgrade to Enterprise Business Email Hosting Today

Stop struggling with bounced emails and full mailbox errors. Nextgen provides enterprise Cloud VPS and Dedicated Servers with massive NVMe storage, dedicated mail IPs, and sub-10ms local peering across Pakistan.

Explore Pakistan Cloud VPS → View Dedicated Bare-Metal