• Can't get bayesian to work on 1.4b

    By Mats Hasselquist 2 decades ago

    I upgraded to the new version yesterday but I can't get bayesian to work. I removed every configuration parameter from notes.ini and made the setup using the new configuration database.

    There is no item for KS_BL_PROB or KS_BL_TOKENS any longer in the mail, only KS_IID.

    I also have the problem with the KS_IID is the first six letters of the domain name, not what I have entered in the configuration document.

    I run Domino 6.5.3 on W2k using the latest SP and patches. English versions and regional settings for Sweden.



    When turning on KS_DEBUG I get the following message



    Getting function pointers

    loading rule list…

    ERROR 2.1.8: Empty buffer returned by NIFReadEntries.



    and when an inbound mail arrives it says

    2004-12-23 01:02:30 - Form: Memo

    *SUBJECT:lolitas*<br/>
    *FROM:&lt;*****&gt;*<br/>
    *MAIL_FROM:&lt;*****&gt;*<br/>
    *BODY LENGTH: 127* <br/>
    *Scanning message*<br/>
    *Bayesian filter not turned on*<br/>
    *P:0.0000*<br/>
    



    Here is my configuration

    Instance ID

    This is a string of six characters or less, should be the same for every server in your organisation (KS_IID). Blue

    Default action

    This is the default action to be taken when one of the hard coded rules is matched (KS_DEFAULTACTION). 3 - Copy & Deny

    Default probability increase

    The default probability increase, only used if increase probability is selected for the default action (KS_DEFAULT_PROB_INC). 0%

    Mark messages with a reason field?

    Add KS_REASON item to an email if a rule is matched (KS_MARK). Yes

    Reload configuration every hour?

    (KS_RELOAD). Yes

    Show statistics?

    Log statistics under smtp.kSpam.* (KS_STATS). Yes

    Minimum "From:" header length?

    Minimum length of the From: header (KS_MIN_FROM_LENGTH). 0

    Maximum numbers in sender's username?

    Maximum number of integers in the sender's username (KS_MAX_FROM_INTS). 0

    First character in "From:" header must not be a number?

    (KS_FILTER_FROM_INT). No

    Other forms to scan?

    Forms other than Memo and Reply delimited by commas (KS_INTERESTING_FORMS).

    Add recipients list to copied and denied messages?

    Add KS_RECIPIENTS readers field to denied messages, username in email address must me included in the recipients username field in their person document. ( KS_RECIPIENTS). No

    Copied mail database

    Database to copy copied messages to, default is mailspam.nsf (KS_COPIED_DB).

    Turn on debugging?

    Create log in ks_debug.txt (KS_DEBUG). No



    Bayesian filter enabled

    Enable the Bayesian filter (KS_BAYESIAN_FILTER). Yes

    Token reload period

    Period of time between recalculating probabilities (KS_BL_PERIOD). 180

    Probability boundary

    Boundary probability at which email is considered spam (KS_BAYESIAN_BOUNDARY). 90%

    Mark messages with token list and probability?

    Add KS_BL_PROB and KS_BL_TOKENS to incoming emails (KS_BAYESIAN_MARK). Yes

    Good message ratio

    Ratio of good emails passing through the server before an email is copied to the good mail database (KS_BAYESIAN_RATIO). 10

    Bayesian action

    Action to take when an emails are probably spam (KS_BAYESIAN_ACTION). 3 - Copy & Deny

    Mark with

    Text to mark emails with is the default Bayesian action is mark. (KS_BAYESIAN_ACTION_MARK_WITH).

    Tokens to ignore

    Tokens to ignore when calculating probabilities (KS_BL_IGNORE). multipart,font,nbsp,name,boundary,Content-Type,NextPart,bgColor,color,mixed,message,align,href,face,border,class,COLOR,cellSpacing,width,Content-Transfer-Encoding,base64,html,charset,div,text,

    Dump token lists to file

    Write token lists to files goodlist.txt and spamlist.txt (KS_BL_DUMPLISTS). Yes

    Preparation setting 1

    All emails that pass all rules without being matched are placed in the mailgood.nsf database (KS_BAYESIAN_PREP). No

    Preparation setting 2

    All emails with a probability greater than 90% are copied to mailspam.nsf, all emails with a probability of less than 10% are copied to mailgood.nsf (KS_BAYESIAN_PREP_2). No

    Turn on debugging?

    Create bload.txt log file (KS_BL_DEBUG). No

    • It looks like the same problem as...

      By Tom Lyne 2 decades ago

      … the person here: http://www.openntf.org/projects/pmt.nsf/0/94E7BC18CCC4031986256F7300607765



      Are your static rules working?



      Can you post your answers there.



      Thanks,

      tom

      • I don't use static rules

        By Mats Hasselquist 2 decades ago

        I use only the bayesian part of kSpam. Goodlist.txt, spamlist.txt and comblist.txt are all updating as expected. Nspam.dll and nbload.exe are loaded and running.

        • OK, looks like a bug...

          By Tom Lyne 2 decades ago

          … to work around add a single deny rule with something like 'dsfdsagrjagiohuih4rwesag" in the subject field, that way there will be at least one entry in the view.



          -tom

          • It's working again

            By Mats Hasselquist 2 decades ago

            Just wanted to confirm that the dummy rule fixed it. I get the KS_BL_PROB, KS_BL_TOKENS and KS_IID contains the correct value.



            Thanks a lot for your help.