Query on cPanel Email Disk Usage Calculation

Vipin Haridas

Member
Aug 3, 2016
9
0
1
India
cPanel Access Level
Root Administrator
Hi,

The cpanel is showing incorrect disk usage for emails(Probably the extra usage refers to something else but I couldn't figure out what it is).

Please take a look at the attached image. It shows two disk usages for emails for an account:

81GB is the actual usage. However, it is showing the total usage as 139GB.

However, the backend calculation is just 81:

[~]# du -sch /home/username/
81G /home/username/

Can someone please help me understand this?
 

Attachments

cPanelLauren

Product Owner II
Staff member
Nov 14, 2017
13,266
1,309
363
Houston
Hello @Vipin Haridas

Did you at some point or do you currently have mail being compressed? We can see if this is currently enabled by going to WHM>>Service Configuration>>Mailserver Configuration ->Compress Messages

and we can see if there are compressed mails by running the following on the CLI :

Code:
cd /home/$USER/mail/domain.tld/accountname/
Code:
find . -type f -exec file {} \+ | awk -F ':[ ]+' '{ print $2; }' | sort | uniq -c | sort -n
Thanks!