How to reset the Spam Assassin plugin and Bayes database

Learn how to re-install the Spam Assassin plugin if the plugin is failing to initialize and how to reset the Bayes database if it has become corrupt or no longer effective.

Resetting Spam Assassin Plugin

Resetting the Spam Assassin plugin should only be done if you are getting error messages in the error log that shows the plugin is having trouble to start or initialize.You should have an error message like this in your error log:

IMPORTANT

SpamClient.cpp: Unable to initialize plugin.

To reset the Spam Assassin plug you will need to do the following:

  1. Stop Kerio Connect
  2. Navigate to the installation folder:
  • Windows: C:\Program Files\Kerio\MailServer
  • Linux: /opt/kerio/mailserver
  • Mac: /usr/local/kerio/mailserver
  1. Once you are in the installation folder go to the ‘/plugins/spamserver’ folder
  2. Remove the folder ‘spamassassin’ and the file ‘spamserver’
  3. Run a repair install of Kerio Connect (You will need to download a copy of the Kerio Connect installer) - state exceptions
  4. Then start Kerio Connect

By doing the above you are removing the old Spam Assassin plugin and installing a fresh copy of the plugin.Once you restart Kerio Connect the plugin will then update to the newest virus definitions from the Sophos servers.

Resetting Bayes database

Resetting the Bayes database only needs to be done if the database has become corrupted or is outdated. If the database is corrupted you should see error messages in the error log to indicate that. You should see an error message in the error log that says: 'RUNNING EXPIRE'.

To reset the Bayes database you will need to do the following:

  1. Stop Kerio Connect
  2. Navigate to the ‘spamassassin’ folder inside your store directory
  3. You can verify the location of your store directory in the web administration in Configuration > Advanced Options [store directory tab]
  4. Go inside the ‘spamassassin’ folder and delete the folder called ‘Bayes’
  5. Run a repair install of Kerio Connect (You will need to download a copy of the Kerio Connect installer)
  6. Then start Kerio Connect

Resetting the Bayes database will allow your Kerio Connect to learn what is and is not spam all over again. The downside to resetting the Bayes database is that you will be prone to receiving more spam than usual until spamassassin has learned enough emails as spam/not spam. Once the database has been rebuilt then you should start to see less and less spam getting through Connect.

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

Configuring spam control in Kerio Connect

Antispam methods and tests in Kerio Connect To detect and eliminate spam, Kerio Connect uses...

Kerio Anti-spam filter

NOTE Changed in Kerio Connect 9.2.0! The Kerio Anti-spam extension uses the Bitdefender...

Configuring greylisting

To fight spam more efficiently, Kerio Connect supports greylisting. Greylisting is an...

Blocking messages from certain servers

Automatically blocking or allowing messages from certain servers In Kerio Connect you can...

Creating custom rules for spam control in Kerio Connect

In Kerio Connect, you can create your own antispam rules. The rules filter email headers or email...