E-mail disk usage information is normally updated automatically and no additional action should be necessary; however, it is possible to force e-mail disk usage to be recalculated using the following script via root SSH access:
To action upon e-mail accounts of a given cPanel user, specify the cPanel username as shown by the following example while ensuring to replace “$username” with the applicable cPanel login username:
# /scripts/generate_maildirsize --confirm --verbose $username
To action upon all e-mail accounts of all cPanel users, refer to the following example command; this may be entered via root SSH access:
# /scripts/generate_maildirsize --allaccounts --confirm --verbose
To see all available options run the following command
# /scripts/generate_maildirsize --help