Symptoms
- Mail users receive Mailbox usage exceeded mail notifications that indicate they have gone over the quota limits, even though the mailbox directory size indicates that they have not done so
- The size of a mailbox at Plesk > Domains > example.com > Mail > Mail Accounts > Usage section is higher or lower than the actual disk usage in the directory of this mailbox on the server:
# du -hs /var/qmail/mailnames/example.com/john_doe
3.1MB - The contents of special subdirectories of
/var/qmail/mailnames/example.com/john_doe/Maildir
such as.Trash
.Sent
and.Drafts
are not counted during the mailbox size calculation# du /var/qmail/mailnames/example.com/john_doe/Maildir/ -aSh | sort -rh | head -50
1.9G /var/qmail/mailnames/example.com/john_doe/Maildir/.Sent/cur
101M /var/qmail/mailnames/example.com/john_doe/Maildir/.Drafts/cur
43M /var/qmail/mailnames/example.com/john_doe/Maildir/.Trash/cur
Cause
The file /var/qmail/mailnames/example.com/john.doe/Maildir/maildirsize
is corrupted and the information within it is inaccurate. Since the Plesk GUI mail account size calculation depends on its accuracy, it causes the calculation within the Plesk GUI to be inaccurate.
Resolution
-
Connect to the Plesk server via SSH.
-
Force the recreation of the
maildirsize
files by executing the following command:# plesk repair mail john_doe@example.com
-
Log into Plesk
-
Go to Plesk > Domains > example.com > Mail > Mail Accounts
-
Press Refresh Usage Stats