Articles in this section

Usage statistics of a mailbox are not accurate in the Mail Accounts section of a Plesk domain

Plesk for Linux kb: technical

Applicable to:

  • Plesk for Linux

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

    Screenshot_2020-12-09_Mail_of_example_com_-_Plesk_Obsidian_18_0_30.png
  • 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

  1. Connect to the Plesk server via SSH.

  2. Force the recreation of the maildirsize files by executing the following command:

    # plesk repair mail john_doe@example.com

  3. Log into Plesk

  4. Go to Plesk > Domains > example.com > Mail > Mail Accounts

  5. Press Refresh Usage Stats

Was this article helpful?

Comments

0 comments

Please sign in to leave a comment.