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:
- Stop Kerio Connect
- Navigate to the installation folder:
- Windows: C:\Program Files\Kerio\MailServer
- Linux: /opt/kerio/mailserver
- Mac: /usr/local/kerio/mailserver
- Once you are in the installation folder go to the ‘/plugins/spamserver’ folder
- Remove the folder ‘spamassassin’ and the file ‘spamserver’
- Run a repair install of Kerio Connect (You will need to download a copy of the Kerio Connect installer) - state exceptions
- 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:
- Stop Kerio Connect
- Navigate to the ‘spamassassin’ folder inside your store directory
- You can verify the location of your store directory in the web administration in Configuration > Advanced Options [store directory tab]
- Go inside the ‘spamassassin’ folder and delete the folder called ‘Bayes’
- Run a repair install of Kerio Connect (You will need to download a copy of the Kerio Connect installer)
- 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.