• The APS Catalog has been deprecated and removed from all Plesk Obsidian versions.
    Applications already installed from the APS Catalog will continue working. However, Plesk will no longer provide support for APS applications.
  • Please be aware: with the Plesk Obsidian 18.0.78 release, the support for the ngx_pagespeed.so module will be deprecated and removed from the sw-nginx package.

Mailbox size calculated wrong

Webbenny

Basic Pleskian
Username:

TITLE


Mailbox size calculated wrong

PRODUCT, VERSION, OPERATING SYSTEM, ARCHITECTURE

Plesk: Plesk Obsidian 18.0.76 Update 4 - Web Host Edition
OS (lsb_release -d): Description: Ubuntu 20.04.6 LTS

PROBLEM DESCRIPTION

The calculation of the mailboxes size is calculated wrong. Plesk shows me 5.93 GB (value in table psa.disk_usage, column mailboxes is 6370893824). But size on disk (du -sh --apparent-size /var/qmail/mailnames/<domain>/) is
2.6G /var/qmail/mailnames/<domain>/. I have no mailinglists active (is also 0 in column maillists).

STEPS TO REPRODUCE

# plesk repair mail
# /usr/local/psa/admin/sbin/statistics --calculate-one --domain-name=<domain>

Value in table psa.disk_usage, column mailboxes is wrong (also at Plesk panel).

# plesk repair installation -y
# /usr/local/psa/admin/sbin/statistics --calculate-one --domain-name=<domain>

Value in table psa.disk_usage, column mailboxes is wrong (also at Plesk panel).

# plesk repair mail <mail@domain> (for all the mailboxes of the domain)
# /usr/local/psa/admin/sbin/statistics --calculate-one --domain-name=<domain>

Value in table psa.disk_usage, column mailboxes is wrong (also at Plesk panel).

# rm ./*/Maildir/maildirsize
# doveadm quota recalc -u <mail@domain> (for all the mailboxes of the domain)
# doveadm quota get -u mail@domain (these values are correct!)
# /usr/local/psa/admin/sbin/statistics --calculate-one --domain-name=<domain>

Value in table psa.disk_usage, column mailboxes is wrong (also at Plesk panel).

ACTUAL RESULT

The value is calculated wrong. Since ~3 weeks(?)

EXPECTED RESULT

Value in table psa.disk_usage for the table musst be the same (or nearly the same) like du -sh --apparent-size /var/qmail/mailnames/<domain>/

ANY ADDITIONAL INFORMATION

I'm a skilled it nerd, so don't hesitate to ask me any further questions if you need more information

YOUR EXPECTATIONS FROM PLESK SERVICE TEAM

Confirm bug
 
Last edited by a moderator:
Thank you for your reply. I guess your refer to the mixed-INBOX-folder article (https://support.plesk.com/hc/en-us/...Plesk-UI-differs-from-the-actual-size-on-disk). But an indication for that issue would be that the doveadm quota get -u differs from du -sch * or Plesk Mailbox details Site which is not the case. I have six mailboxes, all structures of the mailboxes look normal:

Code:
root@server:~# doveadm mailbox list -u [email protected]
INBOX
INBOX.Trash
INBOX.Spam
INBOX.Sent
INBOX.Drafts
root@server:~# doveadm mailbox list -u [email protected]
INBOX
INBOX.Trash
INBOX.Spam
INBOX.Sent
INBOX.Drafts
root@server:~# doveadm mailbox list -u [email protected]
INBOX
INBOX.Trash
INBOX.Spam
INBOX.Sent
INBOX.Drafts
root@server:~# doveadm mailbox list -u [email protected]
INBOX
INBOX.Trash
INBOX.Spam
INBOX.Sent
INBOX.Drafts
root@server:~# doveadm mailbox list -u [email protected]
INBOX
INBOX.Customer
INBOX.Customer.Closed
INBOX.Customer.Closed.Cafe
INBOX.Customer.Closed.Bar
INBOX.Customer.Bookstore
INBOX.Customer.Nutri
INBOX.Customer.KK
INBOX.Newsletter
INBOX.Trash
INBOX.Spam
INBOX.Sent
INBOX.Drafts
root@server:~# doveadm mailbox list -u [email protected]
INBOX
INBOX.Archive
INBOX.Letter
INBOX.Misc
INBOX.Team
INBOX.Network
INBOX.Customer
INBOX.Trash
INBOX.Spam
INBOX.Sent
INBOX.Drafts

The output of doveadm quota get -u is also correct and is the same like in the details for every single mailbox in the Plesk Panel. But the total value in Plesk is wrong.
 
Back
Top