coursevector

Well-Known Member
Feb 23, 2015
125
10
68
cPanel Access Level
Root Administrator
I ran into this issue today on a server of ours. We have a cPanel account with a disk quota of 5.5GB. That was adjusted up from 4GB in Apr 2017. I log in today and WHM reports that the account is at 5520/5500 and thus it's at max capacity. I go into the cPanel to investigate what the user did and I find that cPanel is reporting they have 11GB worth of email. Now... in Apr 2017 they were below the 4GB limit. We increased it to give them time to clean up their email which apparently they never did. But how did they exceed the limit by almost double? Shouldn't WHM be stopping mail delivery once its full? Additionally, in the breakdown screenshot, all the accounts summed is about 7.1GB. I can't find where the other 3.8GB is coming from that cPanel is reporting to make the full 11GB.

I had to manually suspend the account today since the website was still up and functional and they were still receiving email without an issue at all. Any input on what happened is appreciated.

Capture2.PNG Capture.PNG
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,913
2,202
363
Hello,

Can you verify if "Compress Messages" is enabled under "WHM Home » Service Configuration » Mailserver Configuration" on this system?

Thank you.
 

coursevector

Well-Known Member
Feb 23, 2015
125
10
68
cPanel Access Level
Root Administrator
I also opened a support ticket with our host LiquidWeb, and they reported this:
"I am running a fix quotas script. From what I can tell cpanel just sees the email folder are being much larger than it actually is for no reason.

It looks like the default account is the issue. Cpanel thinks it is 6.6G, and I am not seeing it as using any real space, so what I will need to do is use this ticket so that we can investigate this to see what can be done to fix it."
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,913
2,202
363
Hello,

Feel free to update this thread with the outcome once they respond with further information.

Thank you.
 

coursevector

Well-Known Member
Feb 23, 2015
125
10
68
cPanel Access Level
Root Administrator
The outcome regarding that was inconclusive. I believe cPanel ran the /scripts/fixquotas and rebooted the server. But at the same time the client deleted a ton of email. LW concluded that the script resolved the issue but I wasn't convinced but had no means to prove otherwise so I dropped it.

Today I have another account with a similar issue. I have already run the /scripts/fixquotas script and rebooted the server and the issue is still there. While they have not yet exceeded their quota, the mail is still reporting erroneous numbers. See the images attached. The sum of all the email in the various accounts is 2.5gb, but cPanel reports 3.3GB being using. Which means ~800mb is separate from the email accounts listed, but it shows 800mb in the global account. Logging into the global account shows only 2 emails at all. Where is cPanel coming up with 800mb from? default-account.PNG

default-account-usage.PNG

accounts-usage.PNG

Here is a screenshot of the two emails, just so you know they are not 800mb worth of emails.
default-mail.PNG
 

Attachments

Last edited by a moderator:

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,913
2,202
363
Hello @coursevector,

Do you have email compression enabled? If so, note that internal case CPANEL-17326 was implemented in cPanel & WHM version 70 to help reduce the confusion when customers check their disk usage in cPanel:

Fixed case CPANEL-17326: Clarify meaning of “Email Accounts” in cPanel Disk Usage.

The "Disk Usage" in cPanel will display the following note explaining the difference in the amount of disk space reported:

†Email account storage may occupy less space on the disk if you use compression or hard-link optimizations designed to save space. Email account storage does not include the metadata that the system uses to store email.

‡The files outside of your home directory, the metadata that the system uses to store email in the mail directory, or the files that you do not have permission to access.
Thank you.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,913
2,202
363
Hello,

We'll need you to open a support ticket or reply to the previous ticket so we can take a closer look to see why the disk space reported isn't accurate.

Thank you.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,913
2,202
363
Hello,

To update, our Technical Analysts were unable to find a discrepancy between what was reported in the cPanel UI versus the actual usage on the server.

Thank you.
 

coursevector

Well-Known Member
Feb 23, 2015
125
10
68
cPanel Access Level
Root Administrator
This was resolved by running this script:

/scripts/generate_maildirsize --confirm --verbose USERNAME

"appeared to be an issue with what is called the "maildirsize" file which carries the data. In the case of the main user for the cPanel account, it hadn't been regenerated with the current data. I forced the account to update, and after that the size showed up properly as shown in the screenshot."

"The maildirsize files I brought up will sometimes become corrupted which can prevent them from being regenerated with up-to-date information, like was happening here. On the cPanel side of things, to the UI, it just looks "stuck" like this where the currently incorrect size gets displayed because of it.

The fix is to repopulate the file with current data, and from there it should continue automatically maintaining new updated information.

Some public documentation/information about the maildirsize data can be found here: http://www.courier-mta.org/imap/README.maildirquota.html "
 
  • Like
Reactions: Neal_C

adamreece.webbox

Active Member
Nov 3, 2016
38
12
8
Penarth, United Kingdom
cPanel Access Level
Root Administrator
Neither the "fixquotas" or "generate_maildirsize" scripts resolved this issue for a mailbox on one of our servers. Compression is not enabled.

cPanel is adamant that the size of the mailbox in question is 9153 MB, but when inspecting the disk usage there is only 5187 MB of data really on the file system.

This is preventing the mailbox from receiving new emails because cPanel wrongly thinks it is exceeding its 6 GB quota.
 

cPanelLauren

Product Owner
Staff member
Nov 14, 2017
13,304
1,250
313
Houston
Hi @adamreece.webbox

I took a look at your ticket for you, It looks like your issue was specifically related to an internal case CPANEL-17326 which was opened due to mail disk usage discrepancies this has been resolved in v70 of cPanel. While you may not want to update to v70 until it's in RELEASE, if you do choose to do so, please let us know if the issue persists once running v70

Thank you!
 

adamreece.webbox

Active Member
Nov 3, 2016
38
12
8
Penarth, United Kingdom
cPanel Access Level
Root Administrator
I've just updated all our servers to version 70 today, I like the feature to clamp mailbox quotas. :)

I noticed that this issue doesn't fix itself, so I ran both "fixquotas" and "generate_maildirsize" again for the 2 accounts impacted. Unfortunately they still have mailboxes cPanel thinks are way bigger than they are though. (Issue not resolved.)