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 size problem

Discussion in 'General Discussion' started by Misiek, Apr 3, 2018.

  1. Misiek

    Misiek Well-Known Member

    Joined:
    Feb 23, 2004
    Messages:
    105
    Likes Received:
    0
    Trophy Points:
    166
    Version :
    • CLOUDLINUX 6.9 standard [dedyk]
    • v68.0.36
    One of my clients account have situation like on screens, mail site is saying he is using 2020 M but the email size subsite says he is using about 1400 MB how to solve this problem, tried to remove maildirsize and regenerate it but without a luck
    Zrzut ekranu 2018-04-03 o 14.08.36.png Zrzut ekranu 2018-04-03 o 14.08.52.png
     
    #1 Misiek, Apr 3, 2018
    Last edited by a moderator: Apr 3, 2018
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

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

    Do you have Compress Messages enabled in "WHM >> MailServer Configuration"? ? 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.
     
  3. Misiek

    Misiek Well-Known Member

    Joined:
    Feb 23, 2004
    Messages:
    105
    Likes Received:
    0
    Trophy Points:
    166
    No compression is disabled.
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

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

    It's possible this relates to internal case CPANEL-19556 where incorrect email disk usage is reported due to duplicated INBOX mailboxes. Can you run the following command and let us know the output?

    Code:
    ll /home/$username/mail/$domain/$email| grep INBOX
    Replace $username with the cPanel username, $domain with the domain name, and $email with the name of the email account.

    Thank you.
     
  5. Misiek

    Misiek Well-Known Member

    Joined:
    Feb 23, 2004
    Messages:
    105
    Likes Received:
    0
    Trophy Points:
    166
    Form the command You specified there is no output.
    In cpanel the size shows 2022MB
    The du command shows now
    1443760 /home/$user/mail/$domain/$email
    so 1,4GB
     
  6. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

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

    Could you open a support ticket using the link in my signature so we can take a closer look?

    Thank you.
     
  7. Misiek

    Misiek Well-Known Member

    Joined:
    Feb 23, 2004
    Messages:
    105
    Likes Received:
    0
    Trophy Points:
    166
    As requested :
    Your Support Request ID is: 9410159
     
  8. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

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

    To update, it was determined the issue reported in the support ticket does in-fact relate to internal case CPANEL-19556. The case is open to address an issue where Dovecot counts the INBOX mail folder more than once. For anyone else facing the same issue, you can verify if this case is the culprit by running the following command:

    Code:
    doveadm mailbox list -u user@domain.tld
    Normally, the output from this command will resemble this:

    Code:
    INBOX
    INBOX.Trash
    INBOX.Sent
    INBOX.Junk
    INBOX.Drafts
    INBOX.spam
    INBOX.Archive
    However, in certain scenarios where ".INBOX.$SOMETHING" directories are created in the email account's mail directory, the output may also show additional entries which lead to the incorrect disk space calculation. EX:

    Code:
    INBOX.INBOX
    INBOX.INBOX.Drafts 
    INBOX.INBOX.Trash 
    INBOX.INBOX.Sent
    
    I'll monitor this case and update this thread with more information as it becomes available. In the meantime, the current workaround is to rename the ".INBOX.$SOMETHING" email directories. For example, if you were to see "INBOX.INBOX.Drafts" in the output from the command above, the commands to address the issue would be:

    Code:
    cd /home/$username/mail/$domain/$email-account/
    mv .INBOX.Drafts/ .BadDrafts
    /usr/local/cpanel/scripts/generate_maildirsize $cpanelusername --confirm
    Thank you.
     
Loading...

Share This Page