Peter Nitschke email at
Wed Feb 18 17:01:20 GMT 2015

Hi Dennis,

Thanks for your prompt reply.

I don't get this bit, which seems to be stopping me from understanding what
you are doing.

The file contains:
To:  *           /quarantaine/usherbrooke
To:  default                    /quarantaine/autres

Then below that you use "quarantaine" a couple more times, is that just a



*********** REPLY SEPARATOR  ***********

On 18/02/2015 at 3:59 PM Denis Beauchemin wrote:

>This encoded message has been converted to an attachment.
>The /etc/cron.daily/clean.quarantine script uses these variables:
>$quarantine_dir = '/var/spool/MailScanner/quarantine';
>$days_to_keep   = 30;
>You could create a new copy of the script such as
>/etc/cron.daily/clean.quarantine.spam and modify the variables to your
>The script is not really intelligent and it does not know if you change
>the quarantine dir like I do:
>Quarantine Dir = %rules-dir%/quarantine.rules
>The file contains:
>To:  *           /quarantaine/usherbrooke
>To:  default                    /quarantaine/autres
>I use these crontab entries to clean my quarantine:
># clean nonspam
>5 0 * * * /bin/rm -rf /quarantaine/*/$(date +\%Y\%m\%d --date "2 days
># clean rest of quarantine
>5 0 * * * /bin/rm -rf /quarantaine/*/$(date +\%Y\%m\%d --date "40 days
>-----Message d'origine-----
>De : mailscanner-bounces at
>[mailto:mailscanner-bounces at] De la part de Peter
>Envoyé : 18 février 2015 10:15
>À : mailscanner at
>Objet : Clean.quarantine
>The current clean quarantine is great, but I would like to be able to have
>different days_to_keep for spam and for nonspam.
>There is more chance that someone will want to recover a mail that has
>been caught as spam, and as mails are having much more content, keeping
>non-spam for long doesn't make sense.
>Any help appreciated.
>MailScanner mailing list
>mailscanner at
>Before posting, read
>Support MailScanner development - buy the book off the website! 
MailScanner mailing
mailscanner at

Before posting, read

Support MailScanner development - buy the book off the website!

More information about the MailScanner mailing list