When does SpamAssassin begin to use the spam filter database for filtering mails?


Browse by products and services

  • Applies to: All DV
    • Difficulty: Medium
    • Time Needed: 10
    • Tools Required: SSH, root access, vi knowledge

Introduction

According to the Spamassassin documentation, the Bayes system is not activated until a certain number of ham (non-spam) and spam has been learned. The default is 200 of each ham and spam messages. It means that SpamAssassin begins to filter mails (according to your trainings) after 200 spam mails and 200 non-spam mails were learned. These statistics are needed to distinguish spam mails.

Requirements

Before you start, this article has the following dependencies:

READ ME FIRST

This article has been mirrored from the Parallels Knowledge Base as a courtesy to our DV server customers. As they are the authoritative source of the information covered in this article, we encourage you to check their original article. Keep in mind that this content is subject to change.

(mt) Media Temple makes a best effort to ensure the accuracy of all content contained herein. Please use our feedback form below if you would like to report any inaccuracies. Please note that our feedback form is not an official support channel.

The publishing of this information does not imply support of this article. This article is provided solely as a courtesy to our customers. Please consult our DV Scope of Support for further information.

Solution

This default value could be changed in /etc/mail/spamassassin/local.cf by using the following SpamAssassin options:

bayes_min_ham_num 100
bayes_min_spam_num 100 

SpamAssassin can be trained per mailbox basis in Plesk at: Mailname->Spam Filter->Training page.