Clean.quarantine

Denis Beauchemin Denis.Beauchemin at usherbrooke.ca
Wed Feb 18 18:53:16 GMT 2015


Peter,

My quarantine dir is named /quarantaine (which is French for quarantine). /quarantaine/usherbrooke gets all emails destined to our local email addresses, while /quarantaine/autres gets the others (autres means others).

BTW there was a typo in the crontab entries that got concatenated on a single line. The entries should look like this:
# delete nonspam older than 2 days
5 0 * * * /bin/rm -rf /quarantaine/*/$(date +\%Y\%m\%d --date "2 days ago")/nonspam

# delete spam older than 40 days
5 0 * * * /bin/rm -rf /quarantaine/*/$(date +\%Y\%m\%d --date "40 days ago")/

Denis

-----Message d'origine-----
De : mailscanner-bounces at lists.mailscanner.info [mailto:mailscanner-bounces at lists.mailscanner.info] De la part de Peter Nitschke
Envoyé : 18 février 2015 12:25
À : mailscanner at lists.mailscanner.info
Objet : RE: Clean.quarantine

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:  *@usherbrooke.ca           /quarantaine/usherbrooke
To:  default                    /quarantaine/autres

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

Cheers,

Peter



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

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

>This encoded message has been converted to an attachment.
>
>Peter,
>
>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 
>liking.
>
>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:  *@usherbrooke.ca           /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 
>ago")/nonspam # clean rest of quarantine
>5 0 * * * /bin/rm -rf /quarantaine/*/$(date +\%Y\%m\%d --date "40 days 
>ago")/
>
>Denis
>
>-----Message d'origine-----
>De : mailscanner-bounces at lists.mailscanner.info
>[mailto:mailscanner-bounces at lists.mailscanner.info] De la part de Peter 
>Nitschke Envoyé : 18 février 2015 10:15 À : 
>mailscanner at lists.mailscanner.info
>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 lists.mailscanner.info
>http://lists.mailscanner.info/mailman/listinfo/mailscanner
>
>Before posting, read http://wiki.mailscanner.info/posting
>
>Support MailScanner development - buy the book off the website! 
>--
MailScanner mailing
>list
mailscanner at lists.mailscanner.info
http://lists.mailscanner.info/mailman/listinfo/mailscanner

Before posting, read http://wiki.mailscanner.info/posting

Support MailScanner development - buy the book off the website!





More information about the MailScanner mailing list