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.

Mail Dir is just HUGE

Discussion in 'E-mail Discussions' started by encryption, Jul 16, 2012.

  1. encryption

    encryption Well-Known Member

    Joined:
    Jun 24, 2005
    Messages:
    72
    Likes Received:
    0
    Trophy Points:
    6
    Hello,

    I have a client who's mail dir size is enormous (53GB). This is what I get when examining the size in ssh

    du -hs /home/client/mail/
    53G /home/client/mail/

    I went into the subfolders one by one examining the size but I was unable to pinpoint which folder is so large. Any help in investigating this further will be much appreciated as I'm stumped right now.
     
  2. NixTree

    NixTree Well-Known Member

    Joined:
    Aug 19, 2010
    Messages:
    386
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Gods Own Country
    cPanel Access Level:
    Root Administrator
    How did you examine the sub-folders? Sometimes people miss to check the hidden folder size while checking the size of mailboxes. Did you check that too ( like .Trash )?
     
  3. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    Hello,

    Please try the following to count the sizes for hidden files as well:

    Code:
    du -sk .[!.]* *|sort -n
    Run this at /home/username/mail location. After you find out the largest folder, cd into that folder and run the command again until you pinpoint the exact folder with the largest number of files or size.

    Thanks!
     
Loading...

Share This Page