Connect. Communicate. Collaborate. Securely.

Home » Kerio User Forums » Kerio Connect » Read spam from eml to train filter (Read spam from eml to train filter)

Messages: 26
Karma: -1
Send a private message to this user

is it possible to train the kerio-internal-spamfilter with external stored E-Mails?

I have a collection of about 1000 spam and 1000 ham-mails on disc, each mail stored in a single eml-file. I want to read in them as a bulk in kerio to train the filter.

Is this possible?



Messages: 1524
Karma: 60
Send a private message to this user
No, there is no way to do this. You could theoretically send all the Spam Mails to yourself and then mark them manually as spam, but that would falsify the training as the mail headers change when you resend a message. Also, spam assassin checks the date in the headers and if you send old mails this might make things worse.

In our KMS environment by far most spam mails are caught by RBLs and Spam repellent. Much fewer are caught by Bayes. So why not wait until KMS has received 200 Spams and 200 Hams. Once this threshould is reached, Bayes will start working.

Dexion AG - The Blackberry Specialists in Switzerland

Messages: 769
Karma: 9
Send a private message to this user
Have KMS deliver blocked spam to a public folder and give yourself rights to it. Drag everything that appears in this public folder to your own Junk Email folder (unless they are false positives, of course). In order to minimize the chatter in the reported spams, change the file antispam-admin.rep to

<report name="antispam-admin" lang="en" encoding="utf-8">
<variable name="subject"><value name="message-subject"/></variable>

It's probably the closest you'll get to the traditional Bayes learning process.
The extra headers on the mails delivered to the public folder is of no consequence to later spam filtering (unless you expect to get mail from your own postmaster from an external system).

Messages: 169
Karma: 0
Send a private message to this user
Hi folks.

What about this idea...

1. Setup an IMAP account on a workstation (e.g. an iMac or PC)
2. Import those messages into that account, in a standard mailbox
3. Drag the messages from the standard mailbox to the 'Junk E-mail' mailbox.
4. Kerio then learns these items into it's Bayesian filter.

Of course, once you've got the messages into the account, you could also do step 3 via Webmail, or other combinations / methods.

This topic is discussed in the Kerio Admin Guide (6.7) on page 160 (chapter 13 Antispam control of the SMTP server -- Bayesian filter section).

Feel free to let us know if that helps!


Previous Topic: White Screen Outlook
Next Topic: nokia e72 and imap connect
Goto Forum:

Kerio discussion forums are intended for open communication between forum members and may contain information and material posted by members which may be useful in learning about Kerio products. The discussion forums are not intended to provide technical support for any specific product. Any information implied or expressed in the discussion forums is that of the posting member. Kerio is in no way responsible for the information posted in the forums, or its accuracy. Kerio employees may participate in the discussions, but their postings do not represent an offical position of the company on any issues raised or discussed. Kerio reserves the right to monitor and maintain the forums to promote free and accurate exchange of information.

Current Time: Tue Sep 19 21:03:23 CEST 2017

Total time taken to generate the page: 0.00428 seconds
.:: Contact :: Home ::.
Powered by: FUDforum 3.0.4.