> 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)
From [EMAIL PROTECTED] Tue May 13 02:33:11 2003 > On Monday 12 May 2003 09:24 pm, Roland Hughes wrote: > > How are you using spamassasin with Kmail. I need to do it too. > > Roly > > > > > Ya know, I have spamassassin on my kmail setup and I am really > > > disappointed in it. It has only caught one spam message in 4 weeks. > > > Course it's the only message of the spam sort I recieved in that time > > > so I spose it is batting 1000. Heh, I must lead a very sheltered life. > > > woe is me. : ) > > 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". > Create another filter with Match all of the following and then "subject" > and then "contains " in the second box and then ****SPAM**** in the text > box. Then for filter actions choose "move to folder" and pick a folder you > have created called "junkmail" or "Spam" or something like that. Uncheck > all but the "apply this filter to all incoming messages" > The first filter made above should be the first filter in your list of > filters and the second one "spam" should be the second filter in your list. > This should check all your mail for spam and place those caught in the > "junkmail" folder for you to check later. This was done using the latest > "Spamassassin" on the rpmfind.net showing it as Mandrake cooker rpm > (spamassassin-2.53-1mdk.rpm I believe) > Anyone that sees a mistake in the above just jump right in here and help me > with this. I don't know how well it works cause I get so little spam. HTH > -- > Dennis M. linux user #180842 I am not sure which version of spamassassin ships with 9.1, but 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) The latest version of spamassassin is 2.53, and it now has some very cool Baysian filters which analyse the incidence of words appearing in spam or non spam mails dynamically. It is not often I tell people to use Cooker RPMs, but my experience is that the spamassassin in Cooker works fine with 9.1. I would also recommend anyone using spamassassin to take the trouble to read the documentation. There are a number of online tests which are very good at detecting spam, but which are not used by default, because they are not free for commercial use. If you define a file in your home called ~/.spamassassin/user_prefs you can enable these tests, and also customise spamassassin scores. Mine looks like this # The default score is 5.0 required_hits 6 # Whitelist and blacklist addresses are now file-glob-style patterns, so # "[EMAIL PROTECTED]", "[EMAIL PROTECTED]", or "*.domain.net" will all work. whitelist_from *.mandrakeclub.com blacklist from [EMAIL PROTECTED] whitelist_from_rcvd smtp.mandrake.com # score SYMBOLIC_TEST_NAME n.nn #These enable extra online tests which test against #spam databases score RCVD_IN_RBL 10 score RCVD_IN_RSS 1 score RCVD_IN_DUL 1 score RCVD_IN_BL_SPAMCOP_NET 4 # This compensates for a spammers trick where #they send mails stuffed with features designed to get #negative scores from spamassassin score FROM_AND_TO_SAME_1 3 score MSGID_GOOD_EXCHANGE 0 score IN_REP_TO -1 score EMAIL_ATTRIBUTION -1 score ORIGINAL_MESSAGE -1 # This compensates for spamassassin being too lenient on spam # which is not listed in online spam databases, but is considered #spam by Baysian analysis score BAYES_00 0 0 -6.400 -6.400 score BAYES_01 0 0 -6.600 -6.600 score BAYES_10 0 0 -6.400 -5.801 score BAYES_20 0 0 -5.801 -3.101 score BAYES_30 0 0 -1.246 -1.604 score BAYES_60 0 0 2.002 2.002 score BAYES_70 0 0 2.637 2.637 score BAYES_80 0 0 4.1 4.1 score BAYES_90 0 0 4.2 4.2 score BAYES_99 0 0 4.300 4.3 HTH derek www.jennings.homelinux.net ************************************************ ************************************************ ************************************************ From [EMAIL PROTECTED] Tue May 13 05:03:18 2003 Further to my post this morning on customising spamassassin, I have put a more complete writeup of how (and why) on my website. http://www.jennings.homelinux.net/modules.php?name=Sections&op=viewarticle&artid=15 I was just about to post this mail when I noticed that Sridhar (Yama) has just posted an excellent and better writeup on SpamAssassin on http://www.pclinuxonline.com/index.php From [EMAIL PROTECTED] Tue May 13 05:33:44 2003 http://www.pclinuxonline.com/modules.php?name=News&file=article&sid=6669 There are still a couple on points on my page which are not mentioned in the Open Source Digest article deek ************************************************ ************************************************ ************************************************ I just discovered something while going through the spamassassin documentation...there's a way to make kmail use spamassassin directly when pop'ing mail by itself...so you don't need to fetchmail/procmail your mail. Check /usr/share/doc/spamassassin-2.53/USAGE (or whatever the version of spamassassin you have installed is) for instructions. ************************************************ ************************************************ ************************************************ it's not difficult at all. you should set two filtering rules in kmail: 1. pipe message through (your spamassassin executable) 2. kill (or move to [spam] folder) mail with 'X-Spam-Status: YES' you may also wish to run a spamassassin daemon, to make it work faster. ps. or it may read X-Spam-Flag, i don't remember. pipe any mail through spamassassin in console, and see it yourself.
Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
