Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

email disk space issue

Discussion in 'E-mail Discussions' started by coursevector, Mar 14, 2018.

  1. coursevector

    coursevector Well-Known Member

    Joined:
    Feb 23, 2015
    Messages:
    50
    Likes Received:
    1
    Trophy Points:
    8
    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
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    42,734
    Likes Received:
    1,706
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

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

    Thank you.
     
  3. coursevector

    coursevector Well-Known Member

    Joined:
    Feb 23, 2015
    Messages:
    50
    Likes Received:
    1
    Trophy Points:
    8
    cPanel Access Level:
    Root Administrator
    It is not enabled
     
  4. coursevector

    coursevector Well-Known Member

    Joined:
    Feb 23, 2015
    Messages:
    50
    Likes Received:
    1
    Trophy Points:
    8
    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."
     
  5. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    42,734
    Likes Received:
    1,706
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

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

    Thank you.
     
  6. coursevector

    coursevector Well-Known Member

    Joined:
    Feb 23, 2015
    Messages:
    50
    Likes Received:
    1
    Trophy Points:
    8
    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

    [ATTACHl]51467[/ATTACH]

    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
     

    Attached Files:

    #6 coursevector, Mar 27, 2018
    Last edited by a moderator: Apr 2, 2018
  7. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    42,734
    Likes Received:
    1,706
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    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:

    Thank you.
     
  8. coursevector

    coursevector Well-Known Member

    Joined:
    Feb 23, 2015
    Messages:
    50
    Likes Received:
    1
    Trophy Points:
    8
    cPanel Access Level:
    Root Administrator
    No, compression is not enabled.

    compress.PNG
     
    #8 coursevector, Mar 27, 2018
    Last edited by a moderator: Apr 2, 2018
  9. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    42,734
    Likes Received:
    1,706
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    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.
     
  10. coursevector

    coursevector Well-Known Member

    Joined:
    Feb 23, 2015
    Messages:
    50
    Likes Received:
    1
    Trophy Points:
    8
    cPanel Access Level:
    Root Administrator
    Your Support Request ID is: 9390147
     
  11. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    42,734
    Likes Received:
    1,706
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    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.
     
  12. coursevector

    coursevector Well-Known Member

    Joined:
    Feb 23, 2015
    Messages:
    50
    Likes Received:
    1
    Trophy Points:
    8
    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 "
     
  13. adamreece.webbox

    Joined:
    Nov 3, 2016
    Messages:
    9
    Likes Received:
    2
    Trophy Points:
    3
    Location:
    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.
     
  14. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    42,734
    Likes Received:
    1,706
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hi @adamreece.webbox,

    Can you let us know your ticket number so we can take a closer look?

    Thank you.
     
  15. adamreece.webbox

    Joined:
    Nov 3, 2016
    Messages:
    9
    Likes Received:
    2
    Trophy Points:
    3
    Location:
    Penarth, United Kingdom
    cPanel Access Level:
    Root Administrator
    Hi Michael,

    Ticket number is 9413305.
     
  16. cPanelLauren

    cPanelLauren Forums Analyst
    Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    372
    Likes Received:
    21
    Trophy Points:
    93
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    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!
     
  17. adamreece.webbox

    Joined:
    Nov 3, 2016
    Messages:
    9
    Likes Received:
    2
    Trophy Points:
    3
    Location:
    Penarth, United Kingdom
    cPanel Access Level:
    Root Administrator
    I'm very tempted, though the server in question hosts approximately 150 websites, so if V70 is planned for mid April I think we can wait until then.

    Thanks for looking into our ticket so promptly.
     
  18. cPanelLauren

    cPanelLauren Forums Analyst
    Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    372
    Likes Received:
    21
    Trophy Points:
    93
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    I understand and it is planned for mid-April.

    You're very welcome and I'm happy we were able to get you information on the issue.

    Thank you!
     
Loading...

Share This Page