Yes, you should be able to view the bayes info from the baruwa interface.
after you've added the bayes sql config do a service MailScanner reload

to test do:

sa-learn --ham /usr/share/doc/spamassassin-3.3.1/sample-nonspam.txt

you should see the bayes info from the status page

you can also debug it using sa-learn -dump -D

you should see something similar

Dec  3 19:10:33.205 [4644] dbg: bayes: learner_new: got
store=Mail::SpamAssassin::BayesStore::SQL=HASH(0x352aee8)
Dec  3 19:10:33.206 [4644] dbg: plugin:
Mail::SpamAssassin::Plugin::Bayes=HASH(0x2c01cd8) implements
'learner_is_scan_available', priority 0
Dec  3 19:10:33.219 [4644] dbg: bayes: database connection established
Dec  3 19:10:33.219 [4644] dbg: bayes: found bayes db version 3
Dec  3 19:10:33.220 [4644] dbg: bayes: Using userid: 1
Dec  3 19:10:33.220 [4644] dbg: bayes: not available for scanning, only 0
spam(s) in bayes DB < 200
Dec  3 19:10:33.221 [4644] dbg: config: score set 1 chosen.
Dec  3 19:10:33.221 [4644] dbg: sa-learn: spamtest initialized
Dec  3 19:10:33.221 [4644] dbg: plugin:
Mail::SpamAssassin::Plugin::Bayes=HASH(0x2c01cd8) implements
'learner_dump_database', priority 0
Dec  3 19:10:33.222 [4644] dbg: bayes: database connection established
Dec  3 19:10:33.222 [4644] dbg: bayes: found bayes db version 3


On Tue, Dec 4, 2012 at 5:45 PM, Lance.Haig <[email protected]> wrote:

> I am testing a new install of baruwa and I see there is a status option to
> check the bayes db.
>
> Does this work? and how do I make it work.
>
> I am following this https://github.com/akissa/**
> baruwa/wiki/CentOS-6--Postfix<https://github.com/akissa/baruwa/wiki/CentOS-6--Postfix>
>
> to make sure it is functioning correctly
>
>
> Thanks
>
> Lance
>
>
> ______________________________**_________________
> Keep Baruwa FREE - 
> http://pledgie.com/campaigns/**12056<http://pledgie.com/campaigns/12056>
>
_______________________________________________
Keep Baruwa FREE - http://pledgie.com/campaigns/12056

Reply via email to