On Sun, September 4, 2005 11:13 am, Ralph Stoker said: > Just trying out Spamassassin for the first time on SuSE 9.2 with Kmail. > > Loaded Spamassassin via YaST and ran the Anti-spam wizard in Kmail. > > From what I can fathom from first readings I can only configure the > anti-spam > settings within the /etc/mail/spamassassin/local.cf file > > I noted several.cf files in usr/share/spamassassin relating to templates > to > handle certain types of spam eg. '20 drugs.cf' > > I opened a couple of these templates and copied their contents to > the /etc/mail/spamassassin/local.cf file > > This morning my mail still had spam appearing without being flagged by > spamassassin. > > Should I have simply copied the entire .cf files from > usr/share/spamassassin > and dropped them into the /local.cf file rather than pick out the relevant > lines of code? > > have I missed something obvious??
I'll try and actually answer your questions. I don't use SA with kmail, but I use it with procmail to filter spam (pretty successfully too IMHO, given that my false postives/negatives seems very very low now). usr/share/spamassassin/*.cf is a collection of rules that are used by SA, you do not need to add them anywhere else (unless SuSE is doing somethinf weird). /etc/mail/spamassassin/local.cf contains your customisations - anything you want to do to over-ride or add to the system supplied settings. there is also provision for per user settings, can't recall the filename. Now spamassassin has for a while had a "learning" component (called bayseian filtering). You need to run a program to teach the good from the bad. The program is sa-learn and is invoked on a folder of mail with the --spam or --ham options. kmail may have an option to "learn" from your mail, if so it probably invokes sa-learn. If it doesn't have such an option you can run sa-learn manually. The man pages help, use your usual tools to find what documentation was installed with SA. > > Many thanks > > Ralph >
