spamassassin-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Reio Remma <r...@mrstuudio.ee>
Subject Re: training bayes database
Date Wed, 09 May 2018 13:48:12 GMT
On 09.05.18 16:33, Matthew Broadhead wrote:
> On 08/05/18 21:53, Reio Remma wrote:
>> On 08.05.2018 22:08, John Hardin wrote:
>>> On Tue, 8 May 2018, Matthew Broadhead wrote:
>>>
>>>> system setup centos-release-7-4.1708.el7.centos.x86_64, 
>>>> spamassassin-3.4.0-2.el7.x86_64, amavisd-new-2.11.0-3.el7.noarch
>>>>
>>>> /etc/mail/spamassassin/local.cf:
>>>> required_hits 5
>>>> report_safe 0
>>>> rewrite_header Subject [SPAM]
>>>>
>>>> use_bayes          1
>>>> bayes_auto_learn   1
>>>> bayes_auto_expire  1
>>>>
>>>> # Store bayesian data in MySQL
>>>> bayes_store_module Mail::SpamAssassin::BayesStore::MySQL
>>>> bayes_sql_dsn       DBI:mysql:sa_bayes:localhost:3306
>>>>
>>>> it is storing the info to the database ok.  but it doesn't seem to 
>>>> be filtering any mail.
>>>
>>> (1) What is the output of:     /usr/bin/sa-learn --dump magic
>>>
>>> (2) What user are you running sa-learn as for training, and what 
>>> user is spamd running as?
>>>
>>> (3) Are you seeing any BAYES_nn rule hits on messages at all, on 
>>> either ham or spam?
>>
>> You'll probably need to look at your amavisd-new config.
>>
>> To debug SpamAssassin via amavisd, you need to set the following in 
>> amavisd.conf and then look at what's happening in /var/log/maillog
>>
>> $log_level = 5;
>> $sa_debug = '1,bayes';
>>
>> By not filtering do you mean bayes specifically isn't working, 
>> SpamAssassin in general isn't working via amavisd-new or ...?
>>
>> Good luck,
>> Reio
>
> setting log_level and sa_debug in /etc/amavisd/amavisd.conf didn't 
> seem to make any difference.  should i be doing it in 
> /etc/mail/spamassassin/local.cf?

See if $sa_debug=1 works (for full debug)? (and restart amavisd).

Reio

Mime
View raw message