How to disable automatic "empty trash" function?

mariokrupik

Member
Apr 25, 2008
5
0
51
Hi,

it is really anoying as all my emails which are in trash, will get erased automatically after 7 Days.
It`s very often that I had some Mails, where I thought I won`t need them anymore, throw them in Trash, and then find out that you would still need it.
But it`s gone.

Is there anyway I can change this?
I even contacted the Administrator, but he didn`t know a solution.

thanks,
Mario
 

mariokrupik

Member
Apr 25, 2008
5
0
51
Hi Infopro,

It`s definetly not a Problem of an Email client Program, as I disabled all of my Email Programs and only used Webmail for a short period of time.
But then it still happened that all mails in trash, which are older then 7 Days (of the Date when they got erased) are erased completely.

So I contacted my Host, and he told me that this is a cpanel behavior, and he doesn`t have any influence on it.
He told me that he send a ticket to cpanel, and they told him that there is no way to change this.

Now I wanted to know if this is really a cpanel Problem, or if the Host maybe installed a Script which does this, to not run out of Space?

Any help again is appreciated.

Mario
 

mariokrupik

Member
Apr 25, 2008
5
0
51
This is the Info I get in my WHM:

cPanel 11.24.4-C33868 - WHM 11.24.2 - X 3.9
CENTOS 5.2 x86_64 on standard

------

So is this not a usual Cpanel behavior, right?
So if you use IMAP and delete any Mails, they shouldn`t get automatically erased within 7 Days.

I will sign up with a different cpanel host, and see if this is a cpanel behavior or not.

Mario
 

mariokrupik

Member
Apr 25, 2008
5
0
51
So,

to finally check if this is a cpanel behavior or not, I bought another webhosting Account at a total different hoster "resellerzoom.com", but Mails are disappearing the Same way after 7 Days in Trash.

So is there any Cpanel Developer Active in these Forums, who may know if this can be changed by the Administrator of the Host or not?

thanks,
Mario
 

cPanelKenneth

cPanel Development
Staff member
Apr 7, 2006
4,607
79
458
cPanel Access Level
Root Administrator
This is possible by modifying the courier configuration. We don't expose the option for doing this in the Courier Configuration interface in WHM but your system admin can still do this by modifying the appropriate configuration file directly.
 

grindlay

Well-Known Member
Dec 8, 2004
57
5
158
Edinburgh, Scotland
cPanel Access Level
Root Administrator
Aware that this is default behaviour for Courier but where is the configuration file to change it ?
Answer:

/usr/lib/courier-imap/etc/imapd

line ~320

IMAP_EMPTYTRASH=Trash:7

Set this to your preferred value in days, or disable.
This affects mail server-wide.
 
Last edited: