Symptoms
The disk usage for the email accounts in the "Email Accounts" section is not updated or not accurate after removing emails from the accounts.
Description
The Email address shows incorrect disk space usage due to the maildirsize file for the email accounts not being updated.
Workaround
Please note that "CPUSER" in the following examples must be replaced with the cPanel username of the account in question.
- Move the maildirsize files out of the way with the following script.
find /home/CPUSER/mail/ -type f -name maildirsize | while read line; do mv -v $line{,.bak}; done
- Run the following script as root with the cPanel user in question to have them regenerate all of the maildirsize files.
/usr/local/cpanel/scripts/generate_maildirsize --confirm CPUSER
- Move the cPanel user's email_accounts.json aside.
mv -v /home/CPUSER/.cpanel/email_accounts.json{,-bak}
Comments
0 comments
Article is closed for comments.