Enabling Bayesian filter with amavisd-new + Spamassassin
dwrudy at gmail.com
Tue Oct 7 14:43:05 CEST 2014
Thank you for this.
When I asked "How I can get the Bayes filter's headers into my emails (even
Bayes filter isn't used)", what I meant was how can I get X-Spam-Status to
reflect how it came up with the score.
In my research for learning how to configure Bayes, I've seen headers
floating around on the internet that indicate whether or not the Bayes
filter was used to determine the X-Spam-Level score.
Perhaps I'm mistaken, though.
I've got almost 200 spam messages now, so I'll wait until I have 200 and
retrain the system, and see where that takes me.
On Wed, Oct 1, 2014 at 8:31 AM, Mark Martinec <Mark.Martinec+amavis at ijs.si>
> I posted the following message on ServerFault several days ago, but since
>> it has gotten very little attention, I thought I would ask on this mailing
>> I'm trying to figure out a few things:
>> 1) If SpamAssassin is configured properly and I'm editing the proper
> 2) How I can get the Bayes filter's headers into my emails (even if the
>> Bayes filter isn't used)
> You can't.
> However, you can enable bayes debugging from SpamAssassin
> to be logged in the amavis log:
> $sa_debug = 'bayes';
> these will be logged at amavis log level 3 (syslog level 'debug'),
> so make sure $log_level is 3 or higher.
> 3) How many messages (100 vs. 200) that Bayes has to be trained on (with
>> sa-learn) and if that's ultimately the issue I'm experiencing right now.
> It's 200 each by default:
> $ man Mail::SpamAssassin::Conf
> bayes_min_ham_num (Default: 200)
> bayes_min_spam_num (Default: 200)
> To be accurate, the Bayes system does not activate until a certain
> number of ham (non-spam) and spam have been learned. The default
> is 200 of each ham and spam, but you can tune these up or down with
> these two settings.
Founder & CEO
*Develop CENTS *
Computing, Equipping, Networking, Training & Supporting
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the amavis-users