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.

E-mail usage seems to show incorrectly in cPanel

Discussion in 'E-mail Discussions' started by thowa, Jan 13, 2012.

  1. thowa

    thowa Member

    Joined:
    Jan 12, 2012
    Messages:
    11
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Reseller Owner
    Hi;

    I have a problem with disk space usage in cPanel.
    cPanel shows conlicting information regarding total disk space used and total E-mail folder size.
    The user has several E-mail accounts.

    In this particular case under "Stats" the Disk space usage is ~ 50MB.
    In Mail -> E-mail accounts I see two accounts, 100MB and 350MB large!

    I did a du on the server in his Mail folder and got back ~ 5MB. A du in his home folder shows about the same as what is shown under Stats.

    Any ideas what might be wrong?

    Thanks!
     
  2. cPanelJared

    cPanelJared Technical Analyst
    Staff Member

    Joined:
    Feb 25, 2010
    Messages:
    1,842
    Likes Received:
    18
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    Try running /scripts/generate_maildirsize on the affected account. The syntax would be:

    Code:
    # /scripts/generate_maildirsize --confirm --allaccounts --verbose $USER
    Replace $USER with the actual cPanel account username (the cPanel user, not the domain).

    If this does not help, log out of cPanel and delete the email_accounts.yaml and email_accounts.cache files from the cPanel account's .cpanel directory. The files will automatically be created the next time you log into cPanel.

    If neither of these actions solves the problem, please submit a ticket so that we may look at your server directly.
     
  3. thowa

    thowa Member

    Joined:
    Jan 12, 2012
    Messages:
    11
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Reseller Owner
    Running the generate maildirsize script solved the problem.
    Thanks!
     
Loading...

Share This Page