SOLVED [FIXED] wrong mail size in cPanel than in Email

Operating System & Version
CentOS 7
cPanel & WHM Version
cPanel 98.0.9

MotazHakim

Member
Oct 12, 2021
20
3
3
Egypt
cPanel Access Level
Root Administrator
Hello
I've a new issue with cPanel
i'm using a block storage for /home directory
and mail dir should be =56GB with using this code to get the real size of the directory:
Bash:
du -shc mail/*
the output in screenshot attached

1.png

but in cPanel disk usage it shows 35.8GB
2.png

even in Email accounts list in cPanel, there's couple emails showing 0kb sizes while they have emails already

I'm using Roundcube for webmail

I've tried the workaround in this article
https://support.cpanel.net/hc/en-us...3-Email-Accounts-Showing-Incorrect-Disk-Usage

with no luck getting the real sizes in cPanel

any fix for this issue ?