D&C Lug - Home Page
Devon & Cornwall Linux Users' Group

[ Date Index ][ Thread Index ]
[ <= Previous by date / thread ] [ Next by date / thread => ]

[LUG] Spam filtering



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.

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.



Thanks, David.

--
Running Windows on a Pentium is like having a brand new Porsche but only being able to drive backwards with the handbrake on.



--
The Mailing List for the Devon & Cornwall LUG
Mail majordomo@xxxxxxxxxxxx with "unsubscribe list" in the
message body to unsubscribe.


Lynx friendly