Limit quarantine size

Eric Dantan Rzewnicki rzewnickie at RFA.ORG
Fri Sep 3 21:24:52 IST 2004


On Fri, Sep 03, 2004 at 01:12:21PM -0700, Jay Ehrhart wrote:
> How do I set the quarantine in MailScanner to flush folders older than 30
> days?

You can write a simple shell script:

#!/bin/bash

quarantine_dir=/var/spool/MailScanner/quarantine
quar_del_date=`date -d "30 days ago" +%Y%m%d`
rm -fr $quarantine_dir/$quar_del_date


and run it via cron daily.

With a little more work you can probably get it to check for anything
older than 30 days as well, just in case your crond doesn't happen to be
running one day for some reason or other.


-ERic Rz.

------------------------ MailScanner list ------------------------
To unsubscribe, email jiscmail at jiscmail.ac.uk with the words:
'leave mailscanner' in the body of the email.
Before posting, read the MAQ (http://www.mailscanner.biz/maq/) and
the archives (http://www.jiscmail.ac.uk/lists/mailscanner.html).



More information about the MailScanner mailing list