Sometimes you may face the issue with cPanel Disk space calculation between the total disk space used and the total email folder size. For Example, the entire cPanel account shows you 100 MB while one of the Email accounts is showing a 350MB size, which is surprising.

Method 1: Please run the command below using SSH.

# /scripts/generate_maildirsize --confirm --allaccounts --verbose $USER

Note: Replace the $USER with your actual cPanel user.

Method 2: Regenerate the maildirsize file for a specific email account:

  • Access the server via SSH.
  • Navigate to the mail directory: cd /home/username/mail
  • Remove the existing maildirsize file: rm -f maildirsize
  • Regenerate the file: /usr/local/cpanel/scripts/generate_maildirsize --confirm --email [email protected]
  • Replace [email protected] with the actual email address for which you want to regenerate the maildirsize file.

If the issue persists, log out of the cPanel account and delete the email_accounts.yaml and email_accounts.cache files from the cPanel account's .cpanel directory. These files will be created automatically while you log in to the cPanel again.

Was this answer helpful? 1 Users Found This Useful (1 Votes)