Quick 'bayes' question

Jason Williams jwilliams at COURTESYMORTGAGE.COM
Wed Jun 29 00:20:56 IST 2005


    [ The following text is in the "ISO-8859-1" character set. ]
    [ Your display is set for the "US-ASCII" character set.  ]
    [ Some characters may be displayed incorrectly. ]

Matt Kettler wrote:

>Jason Williams wrote:
>  
>
>>Well im back. This time, a question on bayes.
>>
>>I've been working to get bayes setup and running properly (and I don't
>>think bayes has evern been setup to work properly to be honest).
>>
>>First, in my spam.assassin.prefs.conf file, I have
>>
>>use_bayes 1
>>bayes_patch       /usr/local/etc/MailScanner/bayes/
>>bayes_file_mode 0660
>>
>># Bump up SpamAssassin scores on the high and low end
>># score BAYES_00 -15.0
>># score BAYES_05 -5.0
>># score BAYES_95 5.0
>># score BAYES_99 15.0
>>
>># To disable bayes autolearn
>># bayes_auto_learn 0
>>
>>Just trying to make sure I have the basics setup.
>>
>>I ran --lint, it found the bayes DB no problem. However, when I look in
>>the bayes directory, I see a bunch of files that look like this:
>>
>>_toks.expire98xxx  different numbers at the end.
>>    
>>
>
>That's mailscanner killing SA.
>
>MailScanner has a bit of pre-bayes assumptions about SA. One of which is any
>long run of SA must be due to a hangup in the SA code. So it kills it.
>
>Unfortunately, modern SA does it's bayes database management while scanning
>messages.
>
>disable bayes_auto_expire in your /etc/mail/spamassassin/local.cf.
>
>DO NOT try to use spam.assassin.prefs.conf for this setting. It's technically
>invalid because it's a privileged setting, and doesn't seem to work reliably as
>a result.
>
>
>Once you disable bayes_auto_expire do one or more of the following (or your
>bayes DB will grow endlessly)
>
>1) tell MailScanner to give SA a chance to rebuild the bayes DB:
>In MailScanner.conf:	
>	Rebuild Bayes Every = 43200
>
>2) have a cronjob run sa-learn --force-expire (and use command line options to
>set the right bayes path, since it won't point to the right place)
>
>  
>
Got it.
Before I follow up with a few questions, I was reading MS wiki and 
specifically in regards to using the bayes filter with SQL. Has anyone 
tried that? Pretty good? It looks fairly simple to setup. If its worth 
it, I may look at that and implement it.

Alright. Disabled 'bayes_auto_expire' in local.cf.

Setup Mailscanner.conf as suggested.

Rebuild Bayes Every = 43200


On the second part, just so im clear, something like this would suffice?

sa-larn --force expire /path/to/bayes
or
sa-learn --force expire /path/to/spam.assassin.prefs.conf

Could I run the force expire right now? Network traffic is fairly light 
right now. I'd like to give it a go.

Thanks,

Jason

------------------------ MailScanner list ------------------------
To unsubscribe, email jiscmail at jiscmail.ac.uk with the words:
'leave mailscanner' in the body of the email.
Before posting, read the Wiki (http://wiki.mailscanner.info/) and
the archives (http://www.jiscmail.ac.uk/lists/mailscanner.html).

Support MailScanner development - buy the book off the website!




More information about the MailScanner mailing list