Delivering spam into a folder
Julian Field
mailscanner at ecs.soton.ac.uk
Thu Oct 3 14:33:51 IST 2002
One way of achieving this would be to use procmail as the delivery agent,
and use the "Spam Score" header in MailScanner V4. Then you could have a
per-user rule that filed the mail into a different folder if the score was
above a certain value that each user could choose if they wanted to.
Yes, the envelope could be messed around with, to alter the recipient's
address. But don't forget that a message can/will have multiple recipients,
so you've got to cope with all of them, some of which will be on your site,
some of them not.
At 10:23 03/10/2002, you wrote:
>We have been running MailScanner (MS) for about a year with great success
>in virus-blocking (and elementary spam-marking using ORDB).
>
>We now wish to make bigger efforts in spam detection, and it would seem
>natural to introduce SpamAssassin (SA) into our sendmail/MS system, as
>this combination seems well-known and well-liked on this mailscanner list.
>
>One feature which management is requesting (and it seems reasonable) is
>the ability to divert spam (probably above a certain SA 'score') into a
>user's folder (of fixed name). For a user 'userid' whose mail would
>normally be delivered via Mlocal to 'userid':
> Mlocal P=/usr/sbin/tmail ... A=tmail $u
>
>instead deliver it to 'userid+spamfolder':
> Mlocal P=/usr/sbin/tmail ... A=tmail $u+$h
>
>It is sendmail's ruleset 5 which handles the "+" syntax glue here.
>
>
>But I'm stuck. Given a message, which SA (aided by MS) determines to be
>spam of high enough score, how can the envelope "userid" be persauded,
>under these circumstances, to become "userid+spamfolder" by the time it
>reaches sendmail's ruleset 5?
>
>Can SA/MS adjust the envelope before the delivery sendmail is invoked? Or
>can the delivery sendmail somehow detect the SA/MS headers and use that to
>adjust the envelope being processed?
>
>--
>
>: David Lee I.T. Service :
>: Systems Programmer Computer Centre :
>: University of Durham :
>: http://www.dur.ac.uk/t.d.lee/ South Road :
>: Durham :
>: Phone: +44 191 374 2882 U.K. :
--
Julian Field Teaching Systems Manager
jkf at ecs.soton.ac.uk Dept. of Electronics & Computer Science
Tel. 023 8059 2817 University of Southampton
Southampton SO17 1BJ
More information about the MailScanner
mailing list