↑ ↓ select, Enter open, Esc close

Mailbox disk usage per domain in Plesk

root@server
du -sh /var/qmail/mailnames/*/ 2>/dev/null | sort -rh | head -20

Sums up the mail directories per domain and lists the 20 largest. Plesk stores mailboxes under /var/qmail/mailnames/<domain>/<postfach> even with Postfix and Dovecot. Useful when disk space runs low and the webspaces are not the cause.

Note: For the mailboxes of a single domain, change the path to /var/qmail/mailnames/example.com/*/.

Also searched as

  • which domain has the largest mailboxes
  • disk full because of emails
  • plesk mail storage per domain

Related one-liners

All in Plesk

Read first, then run.

The commands on myline.de act directly on servers, files and databases. A wrong path or placeholder can delete data irreversibly or make a server unreachable.

  • All commands are provided without warranty and are not tested on every system.
  • Understand what a command does before running it, and check every placeholder.
  • Make a backup first and, if possible, try it on a test system.
  • You run commands at your own risk. Liability for damages is excluded to the extent permitted by law.