Cool SpamAss hold and deliver feature, can we implement that in MailScanner

Remco Barendse mailscanner at BARENDSE.TO
Wed Aug 25 20:17:47 IST 2004


<x-flowed>
A friend of mine found a very cool addon for SpamAssassin, could we
implement this in MailScanner too? Looks really neat :)

http://www.numbski.net/softs/quarantine.html


Installing a quarantine for Sendmail's SpamAssassin Milter
This document presumes that you have already followed the instructions for
installing SpamAssassin Milter. As of today, 8-25-2004, those instructions
are out of date. Despite my best intentions to update those docs, I have
not had time to do so. My best reccommendations are to turn of MAILSERVER
in /etc/hostconfig, build the latest sendmail as per the instructions, and
follow the rest as I've instructed. You will still need to move the
existing sendmail binary, as it's just a wrapper for Postfix, and if it's
there, it will cause you problems.

Note: MUCH of the scripts I've written below, and the process of doing
this was ripped directly from Olivier Nicole at
http://www.cs.ait.ac.th/laboratory/email/quarantine.shtml. Mucho Kudos
goes out to this guy for doing a large portion of the work. What you see
below is greatly modified to user more Perl, call fewer external system
binaries (although a few are left, still a work-in-progress!) It also rids
you of calling procmail on every single message, which should make your
CPU thank you!

As I said before, I'm presuming you have a functional spamass-milter
installation and all is working well. The quarantine will work by using
the following method:


spamass-milter processes the message
If it's tagged as spam, rather than deliver it to the intended user,
deliver it to a special 'quarantine' user.
At a regular interval (every 8 hours?) run through the quarantine and send
summaries and instructions to the end users.
Allow the end user to reply to this message, which is from another special
user (quarantine-delivery), process this message, and recover messages as
appropriate.
Expire messages that stay in the quarantine for too long.
Here's what an example notifcation looks like:

Date: Wed, 25 Aug 2004 06:53:41 -0500 (CDT)
From: quarantine-delivery at mydomain.com
To: tonys at mydomain.com
Subject: Quarantined Spam Messages

You have received 2 e-mail(s) that appeared to be unsolicited and were
quarantined.

Quarantined messages are kept for 30 days before they are automatically
removed.

If you wish to see any of the following message(s), reply to this e-mail,
including the lines with the File: information below.

The word File: MUST be in your reply message, along with the filename.

File:   tonys-spam.1093414634.94578
From: "Ollie Salazar"
Subject: [SPAM: 04.80/04.50] Buy cheap Viagra through us.
Date: Wed, 25 Aug 2004 12:22:38 +0600

File:   tonys-spam.1093420512.94819
Date: Wed, 25 Aug 2004 10:34:20 +0200
From: "leif freidman"
Subject: georgia 99% Presc"ription Approval. Any Pi/lls You Want. southpaw

Pretty cool huh? Replying to this would get your messages delivered to
you.

------------------------ 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).
</x-flowed>



More information about the MailScanner mailing list