Bayes Rebuild not happening

Julian Field mailscanner at ecs.soton.ac.uk
Sat Mar 27 11:50:21 GMT 2004


The Bayes rebuild only happens when a new child process is spawned. So you
will see strange things like this if
Rebuild Bayes Every < Restart Every
I would set the bayes rebuild to once every day at most.

At 17:24 26/03/2004, you wrote:
>Ok. I made the change to SA.pm (and kept a copy of the original as
>SA.pm.old, of course) and set:
>Rebuild Bayes Every = 900
>In MailScanner.conf hoping to test it sooner rather than waiting for it
>to run overnight. But it's been over half an hour with no Bayes
>messages in the logs. Is there some minimum time constraint for that
>setting?
>
>Thanks Julian,
>Eric Rz.
>
>On Fri, Mar 26, 2004 at 05:07:40PM +0000, Julian Field wrote:
> > Correct. That looks okay.
> >
> > At 16:17 26/03/2004, you wrote:
> > >Nevermind. I found it in the latest beta release. So ... lines 127-145
> > >should look like this?:
> > >
> > >        # Do the actual expiry run
> > >        MailScanner::Log::InfoLog('SpamAssassin Bayes database rebuild
> > >starting');
> > >        eval {
> > >          $MailScanner::SA::SAspamtest->init(1);
> > >          $MailScanner::SA::SAspamtest->init_learner({
> > >                          force_expire => 1,
> > >                          learn_to_journal => 0,
> > >                          wait_for_lock => 1,
> > >                          caller_will_untie => 1});
> > >          $MailScanner::SA::SAspamtest->rebuild_learner_caches({
> > >                          verbose => 0,
> > >                          showdots => 0});
> > >          $MailScanner::SA::SAspamtest->finish_learner();
> > >        };
> > >        MailScanner::Log::WarnLog("SpamAssassin Bayes database rebuild " .
> > >                                  "failed with error: %s", $@)
> > >          if $@;

--
Julian Field
www.MailScanner.info
Professional Support Services at www.MailScanner.biz
MailScanner thanks transtec Computers for their support
PGP footprint: EE81 D763 3DB0 0BFD E1DC 7222 11F6 5947 1415 B654



More information about the MailScanner mailing list