[ Date Index ][
Thread Index ]
[ <= Previous by date / thread ] [ Next by date / thread => ]
> I've currently got a spam tagging system setup using Postfix with > SpamAssassin. After running it for a while I'm very impressed by the > 100% accuracy of the tagging and I want to start actually > removing the > spam to a file in a corner somewhere for manual checking later. 100%? Hmm have to disaggree slightly there, but I suspect our rules are out of date. It's been missing the Iraq War in subject line porn type spam lately. But 98% success definatly I would aggree with. > Since this isn't supported by SpamAssassin itself, I need to pipe the > mail through a shell script in a .forward file to determine > if it's spam > or not, by checking for the presence of the "X-Spam-Status: > Yes" header. > > Anyone know how I can do this? > I have a basic knowledge of shell scripting, but not enough > to have even > an idea of how to deal with a piped-in mail. You want to have a look at using procmail see http://spamassassin.org/dist/procmailrc.example Pete Hatton --------------------------------- E-mail: pete@xxxxxxxxxxxxx Webpage: http://www.monolight.org --------------------------------- -- The Mailing List for the Devon & Cornwall LUG Mail majordomo@xxxxxxxxxxxx with "unsubscribe list" in the message body to unsubscribe.