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

Questions and answers about how to do stuff
Post Reply
cyberwired
Posts: 33
Joined: 03 Jan 2014 21:57

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

Post 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?
User avatar
shawniverson
Posts: 3573
Joined: 13 Jan 2014 23:30
Location: Indianapolis, Indiana USA
Contact:

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

Post 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
cyberwired
Posts: 33
Joined: 03 Jan 2014 21:57

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

Post by cyberwired »

Perfect thanks :)

I've dropped to 15 days for space reasons until I can extend /var :)
mikemachin
Posts: 33
Joined: 29 Aug 2014 11:27

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

Post 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?
User avatar
shawniverson
Posts: 3573
Joined: 13 Jan 2014 23:30
Location: Indianapolis, Indiana USA
Contact:

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

Post by shawniverson »

It should be, but if not, you can add it...
atassumer
Posts: 1
Joined: 24 Jan 2022 10:51

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

Post by atassumer »

Also you must change in file /etc/MailScanner/defaults to q_days= value.
Post Reply