Hi Lance,

try adding bayes_sql_override_username root

service MailScanner reload

and try again, let me know

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

>  Hi JC,
>
> I ran the first sa-learn command after setting up the db config as per
> your doc and then rebooting the server.
>
> [root@mx1 C70F31A3C2.AC7F7]# sa-learn --ham
> /usr/share/doc/spamassassin-3.3.1/sample-nonspam.txt
> Learned tokens from 1 message(s) (1 message(s) examined)
> [root@mx1 C70F31A3C2.AC7F7]# sa-learn --ham
> /usr/share/doc/spamassassin-3.3.1/sample-nonspam.txt
> Learned tokens from 0 message(s) (1 message(s) examined)
>
> Still no joy seeing anything in the bayes info page.
>
> I am not sure where to set the user that the webui runs the spamassassin
> --lint as since when you run it it tries as use apache and fails
>
> Dec 4 18:07:52.327 [10726] dbg: bayes: unable to initialize database for
> apache user, aborting!
>
>
> Lance
>
>
> On 04/12/2012 18:03, JC Putter wrote:
>
> 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
>>
>> to make sure it is functioning correctly
>>
>>
>> Thanks
>>
>> Lance
>>
>>
>> _______________________________________________
>> Keep Baruwa FREE - http://pledgie.com/campaigns/12056
>>
>
>
>
> _______________________________________________
> Keep Baruwa FREE - http://pledgie.com/campaigns/12056
>
>
>
> _______________________________________________
> Keep Baruwa FREE - http://pledgie.com/campaigns/12056
>
>
_______________________________________________
Keep Baruwa FREE - http://pledgie.com/campaigns/12056

Reply via email to