On Sat, 10 Jan 2004 07:51:33 -0500
JoeHill <[EMAIL PROTECTED]> wrote:

> On Sat, 10 Jan 2004 12:48:06 +0000
> Richard Urwin <[EMAIL PROTECTED]> wrote:
> 
> > I need a spam-blocker. Can anyone point me to a How-To on the subject? I've 
> > seen plenty of traffic on this list about doing it with a POP3 feed, but they 
> > fit the blocker between Fetchmail and Postfix, which isn't going to help in 
> > my case. The Postfix and SpamAssassin websites are not helpful.
> > 
> > Ideally I want one that just adds a header field, so Kmail can filter it to a 
> > spam folder. That way I don't lose any false positives.
> 
> What you want to do is put Procmail into play, which would call Spamassassin.
> 
> Details on how to do that here:
> 
> http://www.jennings.homelinux.net/mailserver_config.html
> 
> Derek's site :-)
> 
> Obviously, you would skip the part about Fetchmail, but there are details about
> how to get Postfix to invoke Procmail, and then Procmail to invoke Spamassassin.
> 
> -- 
> JoeHill ++ ICQ # 280779813
> Registered Linux user #282046
> Homepage: www.orderinchaos.org
> +++++++++++++++++++++++++++
> "When the going gets weird, the weird turn pro."
> -- Hunter S. Thompson
> 
> 
Flattered as I am that Joe has referenced my mailserver HOWTO there is a simpler way 
of invoking Spamassassin if all you want to do is use Kmail to fetch your POP3 mail 
and then test it for spam.

All you need do is in Kmail>Settings>Filters
Add filter - 
'Size' - Greater than 1  
Action  -'Pipe through' spamassassin
untick the box 'stop processing if filter matches'

Obviously all mails will match this filter so they all go through Spamassassin


Now add a second filter
Any Header - Contains  X-Spam-Status: Yes
Action -Move to folder - Spam

Make sure the second filter comes below the first filter in the filter sequence.

The second filter will place all mails marked by spamassassin in a spam folder.

That is it!

HTH

derek




Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com

Reply via email to