Page 1 of 1

How do you change the number of days to keep in quarantine?

Posted: 23 Sep 2014 22:55
by cyberwired
I note the cron.daily clean.quarantine script has now gone after the latest updated.
How do I reduce the days to keep in quarantine rather than increasing disk space?

Re: How do you change the number of days to keep in quaranti

Posted: 26 Sep 2014 21:56
by shawniverson
In /var/www/html/mailscanner/conf.php

Code: Select all

define('QUARANTINE_DAYS_TO_KEEP', 30);
clean.quarantine is superceded with quarantine_maint.php

/usr/local/bin/mailwatch/tools/Cron_jobs/quarantine_maint.php

This script is referenced in

/etc/cron.daily/mailwatch

Re: How do you change the number of days to keep in quaranti

Posted: 26 Sep 2014 22:58
by cyberwired
Perfect thanks :)

I've dropped to 15 days for space reasons until I can extend /var :)

Re: How do you change the number of days to keep in quaranti

Posted: 12 Nov 2014 11:51
by mikemachin
I am trying to find this same section so that I can cut down the number of days to keep but cannot find it in the php file listed above - has this been moved in an update?

Re: How do you change the number of days to keep in quaranti

Posted: 15 Nov 2014 15:31
by shawniverson
It should be, but if not, you can add it...

Re: How do you change the number of days to keep in quarantine?

Posted: 24 Jan 2022 10:53
by atassumer
Also you must change in file /etc/MailScanner/defaults to q_days= value.