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!

How do you clean the ".Trash" folders?

Discussion in 'E-mail Discussion' started by sehh, Mar 28, 2011.

  1. sehh

    sehh Well-Known Member

    Joined:
    Feb 11, 2006
    Messages:
    579
    Likes Received:
    5
    Trophy Points:
    168
    Location:
    Europe
    My users complain that every no and then, their hosting space is filled and upon further investigation the problem is always the ".Trash" folders in Roundcube. They keep deleting their emails, which means their emails are moved to those folders, but they are never really deleted.

    Is there some cPanel command that I can execute, which cleans all the .Trash folders in the server?

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,608
    Likes Received:
    32
    Trophy Points:
    238
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    If your machine is using Courier for webmail, you can set it to auto delete items in the .Trash folder that are 7 days old in /usr/lib/courier-imap/etc/imapd location with this setting:

    Code:
    IMAP_EMPTYTRASH=Trash:7
    This should auto delete emails in .Trash that are 7 days old. If you are using Dovecot, such an option does not exist currently. You can see a prior discussion on how to resolve the issue via this forum thread:

    http://forums.cpanel.net/f145/case-11678-dovecot-trash-mail-97661.html
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. sehh

    sehh Well-Known Member

    Joined:
    Feb 11, 2006
    Messages:
    579
    Likes Received:
    5
    Trophy Points:
    168
    Location:
    Europe
    Unfortunately, I'm using Dovecot. Thank you for the reply, I'll check the thread you mention above.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice