Articles in this section

Why is the mailbox size different than the Mail statistics?

kb: how-to Plesk for Linux

Applicable to:

  • Plesk for Linux

Question

Why is the Domains > example.com > Mail > Mail Accounts mailbox size different than the Subscription > example.com > View more statistics > Mail statistics?

Answer

These are two different types of calculations that are happening:

  1. Mailbox size in Plesk > Domains > example.com > Mail > Mail Accounts corresponds to the size of the mailbox of the following directory:

    # du -sh --apparent-size /var/qmail/mailnames/example.com
    257G /var/qmail/mailnames/example.com

    Mailing lists are not included in /var/qmail/mailnames/example.com/<mailboxname>/Maildir/maildirsize:

    # du -sh --apparent-size /var/lib/mailman/archives/*
    907G /var/lib/mailman/archives/private

  2. The Mail statistics in Plesk > Subscription > example.com > View more statistics is a sum of the mailboxes + the mail lists. This value can be verified in bytes with the following query for subscription example.com:

    # plesk db
    MariaDB [psa]> SELECT SUM(mailboxes) + SUM(maillists) AS mail, 0 FROM disk_usage AS disk_usage INNER JOIN domains AS domains ON domains.id = disk_usage.dom_id WHERE (dom_id =(select id from domains where name="example.com"));
    +---------+---+
    | mail | 0 |
    +---------+---+
    | 12288 | 0 |
    +---------+---+
    1 row in set (0.00 sec)

This is why there is a different in the size that you see, depending on where you are looking within the Plesk GUI.

Was this article helpful?

Comments

0 comments

Please sign in to leave a comment.