For AI agents: the complete documentation index is available at /llms.txt, the full documentation bundle is available at /llms-full.txt, and this page is available as Markdown at /directadmin/email_account/how_to_check_email_account_disk_usage_in_directadmin.md.

How to Check Email Account Disk Usage in DirectAdmin

Every mailbox on a DirectAdmin server consumes disk space from the hosting package. Checking usage regularly shows which mailboxes are close to their quota, which ones are consuming space they do not need, and where the account disk space is actually going.

A mailbox that reaches its quota stops accepting new mail, so monitoring usage is the simplest way to avoid unexpected bounces.

This guide covers checking the disk usage of email accounts from the User level of DirectAdmin.

Info

DirectAdmin offers two interface themes: the Standard theme (the traditional interface) and the Refreshed theme (a newer, more modern interface). Steps for both are below. To switch themes, see How to Change Theme or Layout in DirectAdmin.

Requirements

  • A DirectAdmin User account, or a Reseller or Admin account switched into the User level.
  • At least one email account created on the domain.
  • SSH access to the server, only if you want to verify usage on disk. This is optional and not required for the panel steps.

In the Refreshed Theme

Log in to DirectAdmin

Log in to the DirectAdmin panel.

Open E-Mail Accounts

Click on E-Mail Accounts under E-Mail Manager. You can also type E-Mail Accounts in the navigation filter box to jump straight to the page.

E-Mail Accounts under E-Mail Manager

Select the domain

If your account holds more than one domain, check the domain shown at the top of the page and switch it if needed. The list only shows mailboxes belonging to the selected domain.

Domain selector at the top of the page

Read the Usage column

Look at the Usage column against each mailbox. It shows the space used and the quota assigned, along with a percentage or progress indicator.

Click the column heading to sort the list by usage. This puts the largest mailboxes at the top and is the quickest way to find what is consuming the account disk space.

Usage column in the mailbox list

Check the whole account usage

For the disk usage of the whole hosting account, including mail, go to the main dashboard and check the Disk Usage figure in the account statistics.

Disk Usage in the account statistics

In the Standard Theme

Click here to show the steps

Log in to DirectAdmin

Log in to the DirectAdmin panel.

Open E-Mail Accounts

On the dashboard, go to E-Mail Manager and click E-Mail Accounts.

E-Mail Accounts under E-Mail Manager

Select the domain

The account list shows the current usage and the assigned quota for every mailbox on the domain.

If you have multiple domains hosted under the same user account, the page opens with the main domain selected by default. Change the domain from the selector at the top of the page to see mailboxes on another domain.

Domain selector at the top of the page

Read the Usage column

Read the Usage column. It shows the space consumed against the limit, for example 412 / 2048 MB. Accounts close to their quota should be cleared or given a larger limit.

Usage column in the mailbox list

Check the whole account usage

For the disk usage of the whole hosting account, including mail, go to the main dashboard and check the Disk Usage figure in the account statistics.

Disk Usage in the account statistics

Checking Usage Over SSH

If you have shell access to the server, these commands confirm exactly what is stored on disk. Replace USERNAME with the DirectAdmin username, YOUR_DOMAIN with the domain, and MAILBOX with the mailbox name.

Show the size of a single mailbox:

du -sh /home/USERNAME/imap/YOUR_DOMAIN/MAILBOX/Maildir

Show the size of every mailbox on a domain, smallest first:

du -sh /home/USERNAME/imap/YOUR_DOMAIN/*/Maildir | sort -h

Show total mail storage for the whole account across all domains:

du -sh /home/USERNAME/imap

Show the quota Dovecot is enforcing and the current value it has recorded:

doveadm quota get -u MAILBOX@YOUR_DOMAIN

List the largest folders inside a single mailbox, which usually identifies the Trash or Junk folder as the cause:

du -sh /home/USERNAME/imap/YOUR_DOMAIN/MAILBOX/Maildir/.* | sort -h | tail -10

Count the messages in a mailbox, useful when the mailbox is near an inode limit rather than a size limit:

find /home/USERNAME/imap/YOUR_DOMAIN/MAILBOX/Maildir -type f | wc -l

Understanding the Figures

  • Usage is the mail currently stored on the server for that address, including every IMAP folder, not just the Inbox.
  • Quota is the limit set on the mailbox. Unlimited means no per-mailbox ceiling, but the hosting package disk limit still applies.
  • Mail left on the server by an IMAP client counts towards usage. Mail downloaded and removed by a POP3 client does not.
  • Trash, Junk, Sent, and Archive folders all count. A mailbox reporting high usage with an empty-looking Inbox usually has a large Sent or Trash folder.
  • The panel figure may lag slightly behind the real size on disk, because it is cached and refreshed periodically.

Reducing Mailbox Usage

If a mailbox is close to its quota, work through these in order:

  1. Empty the Trash and Junk folders in webmail. Emptying Trash in most clients only marks messages for deletion, so use Empty or Purge to remove them fully.
  2. Delete or archive old messages with large attachments. Sorting by size in webmail finds these quickly.
  3. Clear the Sent folder if outgoing mail with attachments has accumulated there.
  4. Move mail that must be kept into a local archive on the workstation using the mail client.
  5. Raise the quota if the mailbox genuinely needs more space and the package has room.

Troubleshooting

ProblemCauseSolution
Panel usage does not match the size on diskThe cached figure has not refreshed yetReload the page, or confirm the real size with the du command above
Usage stays high after deleting mailMessages are still sitting in Trash or JunkEmpty those folders fully in webmail, then recheck
Account disk usage is high but no mailbox looks largeThe space is used by files, backups, or logs rather than mailCheck the total under Statistics & Logs, then compare against du -sh /home/USERNAME/imap
Mailbox is full but reports low usageThe account has hit an inode or file count limit instead of a size limitCount the files with the find command above and delete old messages in bulk
Usage column is blankThe mailbox has not received any mail yet, or the usage cache has not been builtSend a test message and recheck after a few minutes

Important Notes

  • Mailbox storage counts towards the total disk quota of the hosting package, alongside website files, databases, and logs.
  • Usage figures shown in the panel are cached and may be a few minutes behind actual disk usage.
  • A mailbox at its quota rejects new mail and the sender receives a bounce. Mail is not lost silently, but it is not delivered either.
  • Checking usage does not change anything on the server, so it is safe to do at any time.
  • Setting all mailboxes to unlimited does not add disk space. It only removes the per-mailbox limit and makes it easier for one mailbox to fill the whole account.

Conclusion

You can now check disk usage for individual mailboxes and for the hosting account as a whole, both from the DirectAdmin interface and over SSH. Reviewing the Usage column regularly lets you clear or resize mailboxes before they reach their quota and start rejecting mail.