Skip to content

How to Fix Wrong Email Disk Usage in cPanel (Dovecot Recalculation Guide)

There are various cases, due to bugs or other operations, where the email account disk usage being reported may be incorrect. You can force Dovecot to recalculate disk usage on the affected account.

Replace CPUSER with the cPanel username of the affected account.

Terminal window
/scripts/remove_dovecot_index_files --user CPUSER

Replace CPUSER with the cPanel username of the affected account.

Terminal window
/scripts/generate_maildirsize --verbose --confirm CPUSER