Email disk Usage ignoring Trash folder
Hello.
The cpanel interface is showing the email disk usage wrong and seems to be ignoring the .Trash folder.
I have this account using 929M 100% in the .Trash folder:
Cpanel shows zero bytes usage for this account: 0 bytes / 1.000 MB I already removed the maildirsize file from this account and executed: /scripts/generate_maildirsize --confirm --verbose USER The maildirsize is recreated with the wrong usage (zero bytes) [root@server mail]# cat domain/user/maildirsize 1048576000S 0 0 I created a test account in the same domain and copied some mail files to this test account and executed the generate_maildirsize command again. In the test account, when the files are inside the .Trash folder, maildisize is generated as zero usage. Then I moved the mail files from from the ".Trash" folder to the "cur" folder, executed the generate_maildirsize command again and now the maildirsize file was generated correctly in this test account. I am not sure if this the normal behavior of ir it is a bug since the "Disk Usage" report show the .Trash folder usage separetedly as "Other Usage"
[root@server mail]# du -sh domain/user/
929M domain/user/
[root@server mail]# du -sh domain/user/.Trash/
929M domain/user/.Trash/
/Cpanel shows zero bytes usage for this account: 0 bytes / 1.000 MB I already removed the maildirsize file from this account and executed: /scripts/generate_maildirsize --confirm --verbose USER The maildirsize is recreated with the wrong usage (zero bytes) [root@server mail]# cat domain/user/maildirsize 1048576000S 0 0 I created a test account in the same domain and copied some mail files to this test account and executed the generate_maildirsize command again. In the test account, when the files are inside the .Trash folder, maildisize is generated as zero usage. Then I moved the mail files from from the ".Trash" folder to the "cur" folder, executed the generate_maildirsize command again and now the maildirsize file was generated correctly in this test account. I am not sure if this the normal behavior of ir it is a bug since the "Disk Usage" report show the .Trash folder usage separetedly as "Other Usage"
-
Hello, In WHM>>Service Configuration>>Mailserver Configuration -> What is set for Include Trash in Quota? 0 -
Hello @cPanelLauren It was the Mailserver Configuration indeed, I fogot to update this post. I did sed -i -e "s/include_trash_in_quota.*/include_trash_in_quota: 1/g" /var/cpanel/conf/dovecot/main /scripts/builddovecotconf /scripts/restartsrv_dovecot /scripts/generate_maildirsize --confirm --verbose USER
and it fixed the size.0 -
Glad to hear that resolved it! Thanks for letting us know :) 0
Please sign in to leave a comment.
Comments
3 comments