I'm using spam assassin with kmail. Basically, start the daemon with spamd -d 
(you could add such a command to rc.local so that it will start after a 
reboot). Then add 2 kmail filters (not POP filters). The first filter 
criteria is used to prevent exceeding spam assassin's file size limit of 
250K, then for filter actions select "pipe through", then enter spamc in the 
associated text box. Once you create that filter, be sure to uncheck the box 
that stops file processing because you need to run the results of that filter 
action through the second filter. The second filter can check for a flag in 
the header that is set by spam assassin. I use X-Spam-Status. You won't find 
this in the filter criteria drop down box but you can manually enter it. I 
have 2 entries for this in the filter criteria because the word BAYES is 
included in the line for X-Spam-Status which will give a match for "yes". So, 
I have one criteria looking for a match to "yes" with a second criteria 
looking for "no,". If both are a match, you can either send the message to 
the trash folder or to another folder designated for spam. Or, if you set up 
spam assassin's config file to insert the word SPAM into the subject line, 
you could filter on that. BTW, the first and second filters for this process 
must be the first and second filters that the incoming mail should encounter.

I hope that I did a good job of explaining this. :-)

On Thursday 29 May 2003 09:49 am, Praedor Atrebates wrote:
>I've gotten spamassassin working in client mode with kmail OK but it slows
>down my email since spamassassin has to be started every time an email comes
>in.  Is there a way to use spamd with kmail if one is not using
>postfix/sendmail/fetchmail locally?  I am acquiring my email directly from
>yahoo via pop.  The instructions on from one of the sites below calls for
> the use of procmail and $HOME/mail.  This doesn't work with kmail which
> uses $HOME/Mail with a bunch of subfolders, etc.  How does one get
> spamassassin in daemon mode to work with kmail client as I describe?  Is it
> doable?
>
>praedor
>
>On Thursday 29 May 2003 10:28 am, eric huff wrote:
>> > Could you send it to me as well - I have been looking to do this for
>> > ages - thanks
>>
>> Ok, here's my text file, but i is messy and unorganized.  You'll just have
>> to plow through it.
>>
>> Realistically, the below links and excerpts are where you should start, as
>> i believe Derek and Sridhar have it down.  I haven't actually set any of
>> this up myself, yet.
>>
>> eric
>>
>> > The highlights are probably ( sorry if i misplace credit! ):
>> >
>> > From Derek:
>> > http://www.jennings.homelinux.net/modules.php?name=Sections&op=viewartic
>> >le&a rtid=15
>> >
>> > From [EMAIL PROTECTED] Tue May 13 05:33:44 2003
>> > http://www.pclinuxonline.com/modules.php?name=News&file=article&sid=6669
>> >
>> >
>> > On Kmail specifically:
>> >
>> > From Dennis:
>> >
>> > Open  >settings> configure filters   in kmail.  Click on "new" in
>> > the lower left corner don't rename>select "match all of the
>> > following" select "any header" on the first box and "matches
>> > regular exp" in the next box and then put a "." in the text box,
>> > without the quotes just the . by itself. Then in filter actions
>> > choose "pipe through" and in the text box put "spamassassin -a"
>> > without quotes uncheck the box for "if this filter matches stop
>> > processing here".
>> >
>> > From Derek:
>> > The most recent versions no longer alter the subject line (by
>> > default) instead they insert a new header line. So  you will
>> > have to set the second kmail filter to be, filter on 'Any
>> > Header' to be "X-Spam-Status: Yes" (without the quotes)


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

Reply via email to