Bayes Rebuild not happening

Eric Dantan Rzewnicki rzewnickie at RFA.ORG
Mon Mar 29 18:38:52 IST 2004


Ok. that makes sense. I've set it to run once/day now.

As far as I can tell the bayes rebuild/expiry is working correctly.

Mar 29 09:15:19 scotty MailScanner[5052]: Bayes database rebuild is due
Mar 29 09:15:19 scotty MailScanner[5052]: SpamAssassin Bayes database rebuild preparing
Mar 29 09:15:19 scotty MailScanner[5052]: SpamAssassin Bayes database rebuild starting
Mar 29 09:15:28 scotty MailScanner[5052]: SpamAssassin Bayes database rebuild completed
Mar 29 09:15:28 scotty MailScanner[5052]: Rebuilding SpamAssassin Bayes database

Thanks Julian,
Eric Rz.

On Sat, Mar 27, 2004 at 11:50:21AM +0000, Julian Field wrote:
> 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