Symptoms
After removing emails from the email accounts, the disk usage for the email accounts in the Email Accounts section in cPanel is not updated or accurate.
Cause
The email address shows incorrect disk space usage due to the maildirsize file for the email accounts not being updated. The maildirsize file does not always update live, depending on the action(s) taken.
Solution
Note: "CPUSER" in the following examples must be replaced with the cPanel username of the account in question.
- Access the server's command line as the 'root' user via SSH or Terminal in WHM.
-
Move the maildirsize files out of the way with the following command:
find /home/CPUSER/mail/ -type f -name maildirsize | while read line; do mv -v $line{,.$(date +%s)}; done -
Regenerate the cPanel user's maildirsize files:
/usr/local/cpanel/scripts/generate_maildirsize --confirm CPUSER
-
Move the cPanel user's email_accounts.json file aside:
mv -v /home/CPUSER/.cpanel/email_accounts.json{,.$(date +%s)}
Comments
0 comments
Article is closed for comments.