Byteplant Forum

Home » CleanMail Support » CleanMail SpamAssassin Filter » No BAYES_xx rule?
No BAYES_xx rule? [message #587] Thu, 27 January 2005 11:35
Hervé Salvat
Messages: 8
Registered: December 2004
Junior Member
Since I have installed NST 2, I never see BAYES_XX in the header of the messages. Does it mean that the bayesian filtering is not active ? How can I be sure that bayesian filtering is ok ?
Re: No BAYES_xx rule? [message #588 is a reply to message #587] Fri, 28 January 2005 15:28 Go to previous message
support
Messages: 919
Registered: April 2004
Senior Member
Hervé Salvat wrote:

> Since I have installed NST 2, I never see BAYES_XX in the
> header of the messages. Does it mean that the bayesian
> filtering is not active ? How can I be sure that bayesian
> filtering is ok ?

Please check the noSPAMtoday_Statistics.csv file in the NST installation directory.
Among other statistical data it also gathers information on the usage of the
SpamAssassin ruleset.



Customer Support
Byteplant GmbH
Re: No BAYES_xx rule? [message #589 is a reply to message #587] Fri, 28 January 2005 19:05 Go to previous message
Hervé Salvat
Messages: 8
Registered: December 2004
Junior Member
I cannot see any reference to a BAYES_xx rule in the header of the noSPAMtoday_Statistics.csv file. Here is the header :

Date;SMTP Proxy_Attachment Filter_reject/delete;SMTP Proxy_Attachment Filter_reject/deliver;SMTP Proxy_AttachmentBlockedTotal;SMTP Proxy_BlockedTotal;SMTP Proxy_FilteredTotal;SMTP Proxy_MIMEViolationTotal;SMTP Proxy_MailTotal;SMTP Proxy_PassedTotal;SMTP Proxy_ReceiveIncoming;SMTP Proxy_ReceiveOutgoing;SMTP Proxy_SendIncoming;SMTP Proxy_SendOutgoing;SMTP Proxy_Spam Trap_accept/delete;SMTP Proxy_Spam Trap_reject/delete (mail too large);SMTP Proxy_SpamAssassin_accept/deliver (unknown result);SMTP Proxy_SpamAssassin_reject/delete;SMTP Proxy_SpamAssassin_reject/delete (mail too large);SMTP Proxy_SpamAssassin_reject/delete (non-recoverable error);SMTP Proxy_Traffic Limiting_host/helo connection count exceeded;SMTP Proxy_Traffic Limiting_recipient reject count exceeded;SMTP Proxy__accept/deliver;SMTP Proxy__accept/deliver (check disabled);SMTP Proxy__accept/deliver (skip size exceeded);SMTP Proxy__delete (unexpected client disconnect);SMTP Proxy__recipient address reject;Spam Trap_SpamMails;SpamAssassin_ADDRESS_IN_SUBJECT;SpamAssassin_ADDR_FREE;SpamAssassin_ALL_NATURAL;SpamAssassin_ALL_TRUSTED;SpamAssassin_AWL;SpamAssassin_BAD_CREDIT;SpamAssassin_BIZ_TLD;SpamAssassin_BLANK_LINES_70_80;SpamAssassin_BLANK_LINES_90_100;SpamAssassin_BODY_ENHANCEMENT;SpamAssassin_CHINA_HEADER;SpamAssassin_CN_SUBJECT_807;SpamAssassin_CUM_SHOT;SpamAssassin_DATE_IN_FUTURE_03_06;SpamAssassin_DATE_IN_FUTURE_06_12;SpamAssassin_DATE_IN_FUTURE_12_24;SpamAssassin_DATE_IN_FUTURE_96_XX;SpamAssassin_DATE_IN_PAST_06_12;SpamAssassin_DATE_IN_PAST_24_48;SpamAssassin_DATE_IN_PAST_48_96;SpamAssassin_DATE_IN_PAST_96_XX;SpamAssassin_DEAR_FRIEND;SpamAssassin_DEAR_SOMETHING;SpamAssassin_DIET_1;SpamAssassin_DNS_FROM_AHBL_RHSBL;SpamAssassin_DOMAIN_RATIO;SpamAssassin_DO_IT_TODAY;SpamAssassin_DRUGS_ANXIETY;SpamAssassin_DRUGS_DIET;SpamAssassin_DRUGS_ERECTILE;SpamAssassin_DRUGS_PAIN;SpamAssassin_DRUG_ED_CAPS;SpamAssassin_EARN_PER_WEEK;SpamAssassin_EMAIL_ROT13;SpamAssassin_EXCUSE_10;SpamAssassin_EXCUSE_19;SpamAssassin_EXCUSE_23;SpamAssassin_EXCUSE_24;SpamAssassin_EXCUSE_3;SpamAssassin_EXCUSE_4;SpamAssassin_EXCUSE_6;SpamAssassin_EXCUSE_7;SpamAssassin_EXTRA_MPART_TYPE;SpamAssassin_FAKED_UNDISC_RECIPS;SpamAssassin_FORGED_HOTMAIL_RCVD2;SpamAssassin_FORGED_MUA_EUDORA;SpamAssassin_FORGED_MUA_IMS;SpamAssassin_FORGED_MUA_OIMO;SpamAssassin_FORGED_MUA_OUTLOOK;SpamAssassin_FORGED_OUTLOOK_HTML;SpamAssassin_FORGED_OUTLOOK_TAGS;SpamAssassin_FORGED_RCVD_HELO;SpamAssassin_FORGED_YAHOO_RCVD;SpamAssassin_FREE_SAMPLE;SpamAssassin_FROM_ALL_NUMS;SpamAssassin_FROM_ENDS_IN_NUMS;SpamAssassin_FROM_HAS_MIXED_NUMS;SpamAssassin_FROM_HAS_ULINE_NUMS;SpamAssassin_FROM_NO_LOWER;SpamAssassin_FROM_NO_USER;SpamAssassin_FROM_NUM_AT_WEBMAIL;SpamAssassin_FRONTPAGE;SpamAssassin_GAPPY_SUBJECT;SpamAssassin_HEAD_LONG;SpamAssassin_HELO_DYNAMIC_DHCP;SpamAssassin_HELO_DYNAMIC_DIALIN;SpamAssassin_HELO_DYNAMIC_HCC;SpamAssassin_HELO_DYNAMIC_HEXIP;SpamAssassin_HELO_DYNAMIC_IPADDR;SpamAssassin_HELO_DYNAMIC_IPADDR2;SpamAssassin_HELO_DYNAMIC_SPLIT_IP;SpamAssassin_HELO_DYNAMIC_YAHOOBB;SpamAssassin_HOT_NASTY;SpamAssassin_HTML_00_10;SpamAssassin_HTML_10_20;SpamAssassin_HTML_20_30;SpamAssassin_HTML_30_40;SpamAssassin_HTML_40_50;SpamAssassin_HTML_50_60;SpamAssassin_HTML_60_70;SpamAssassin_HTML_90_100;SpamAssassin_HTML_ATTR_UNIQUE;SpamAssassin_HTML_BACKHAIR_8;SpamAssassin_HTML_BADTAG_20_30;SpamAssassin_HTML_COMMENT_SAVED_URL;SpamAssassin_HTML_EMBEDS;SpamAssassin_HTML_FONT_BIG;SpamAssassin_HTML_FONT_INVISIBLE;SpamAssassin_HTML_FONT_SIZE_NONE;SpamAssassin_HTML_FONT_SIZE_TINY;SpamAssassin_HTML_FONT_TINY;SpamAssassin_HTML_IMAGE_ONLY_04;SpamAssassin_HTML_IMAGE_ONLY_08;SpamAssassin_HTML_IMAGE_ONLY_12;SpamAssassin_HTML_IMAGE_ONLY_16;SpamAssassin_HTML_IMAGE_ONLY_20;SpamAssassin_HTML_IMAGE_ONLY_24;SpamAssassin_HTML_IMAGE_RATIO_04;SpamAssassin_HTML_MESSAGE;SpamAssassin_HTML_MIME_NO_HTML_TAG;SpamAssassin_HTML_SHOUTING6;SpamAssassin_HTML_TITLE_EMPTY;SpamAssassin_HTML_WEB_BUGS;SpamAssassin_INFO_TLD;SpamAssassin_INVALID_DATE;SpamAssassin_INVALID_MSGID;SpamAssassin_INVALID_TZ_CST;SpamAssassin_INVALID_TZ_GMT;SpamAssassin_IP_LINK_PLUS;SpamAssassin_J_CHICKENPOX_102;SpamAssassin_J_CHICKENPOX_110;SpamAssassin_J_CHICKENPOX_12;SpamAssassin_J_CHICKENPOX_13;SpamAssassin_J_CHICKENPOX_14;SpamAssassin_J_CHICKENPOX_15;SpamAssassin_J_CHICKENPOX_16;SpamAssassin_J_CHICKENPOX_17;SpamAssassin_J_CHICKENPOX_18;SpamAssassin_J_CHICKENPOX_19;SpamAssassin_J_CHICKENPOX_21;SpamAssassin_J_CHICKENPOX_22;SpamAssassin_J_CHICKENPOX_23;SpamAssassin_J_CHICKENPOX_26;SpamAssassin_J_CHICKENPOX_27;SpamAssassin_J_CHICKENPOX_29;SpamAssassin_J_CHICKENPOX_32;SpamAssassin_J_CHICKENPOX_33;SpamAssassin_J_CHICKENPOX_35;SpamAssassin_J_CHICKENPOX_36;SpamAssassin_J_CHICKENPOX_37;SpamAssassin_J_CHICKENPOX_41;SpamAssassin_J_CHICKENPOX_43;SpamAssassin_J_CHICKENPOX_44;SpamAssassin_J_CHICKENPOX_45;SpamAssassin_J_CHICKENPOX_47;SpamAssassin_J_CHICKENPOX_48;SpamAssassin_J_CHICKENPOX_51;SpamAssassin_J_CHICKENPOX_52;SpamAssassin_J_CHICKENPOX_53;SpamAssassin_J_CHICKENPOX_54;SpamAssassin_J_CHICKENPOX_56;SpamAssassin_J_CHICKENPOX_57;SpamAssassin_J_CHICKENPOX_62;SpamAssassin_J_CHICKENPOX_63;SpamAssassin_J_CHICKENPOX_64;SpamAssassin_J_CHICKENPOX_65;SpamAssassin_J_CHICKENPOX_66;SpamAssassin_J_CHICKENPOX_71;SpamAssassin_J_CHICKENPOX_72;SpamAssassin_J_CHICKENPOX_73;SpamAssassin_J_CHICKENPOX_75;SpamAssassin_J_CHICKENPOX_82;SpamAssassin_J_CHICKENPOX_83;SpamAssassin_J_CHICKENPOX_84;SpamAssassin_LOTS_OF_STUFF;SpamAssassin_MANY_EXCLAMATIONS;SpamAssassin_MIME_8BIT_HEADER;SpamAssassin_MIME_BASE64_TEXT;SpamAssassin_MIME_BOUND_DD_DIGITS;SpamAssassin_MIME_BOUND_NEXTPART;SpamAssassin_MIME_HTML_MOSTLY;SpamAssassin_MIME_HTML_ONLY;SpamAssassin_MISSING_DATE;SpamAssassin_MISSING_HEADERS;SpamAssassin_MISSING_MIMEOLE;SpamAssassin_MISSING_SUBJECT;SpamAssassin_MPART_ALT_DIFF;SpamAssassin_MSGID_DOLLARS;SpamAssassin_MSGID_FROM_MTA_HEADER;SpamAssassin_MSGID_FROM_MTA_ID;SpamAssassin_NO_REAL_NAME;SpamAssassin_PERCENT_RANDOM;SpamAssassin_PLING_PLING;SpamAssassin_PLING_QUERY;SpamAssassin_PORN_URL_MISC;SpamAssassin_PORN_URL_SEX;SpamAssassin_PRIORITY_NO_NAME;SpamAssassin_RCVD_BY_IP;SpamAssassin_RCVD_HELO_IP_MISMATCH;SpamAssassin_RCVD_ILLEGAL_IP;SpamAssassin_RCVD_IN_BL_SPAMCOP_NET;SpamAssassin_RCVD_IN_DSBL;SpamAssassin_RCVD_IN_NJABL_DUL;SpamAssassin_RCVD_IN_NJABL_PROXY;SpamAssassin_RCVD_IN_SBL;SpamAssassin_RCVD_IN_SORBS_DUL;SpamAssassin_RCVD_IN_XBL;SpamAssassin_ROUND_THE_WORLD;SpamAssassin_ROUND_THE_WORLD_LOCAL;SpamAssassin_SUBJ_ALL_CAPS;SpamAssassin_SUBJ_HAS_SPACES;SpamAssassin_SUBJ_HAS_UNIQ_ID;SpamAssassin_SUB_HELLO;SpamAssassin_TO_ADDRESS_EQ_REAL;SpamAssassin_TW_AV;SpamAssassin_TW_CV;SpamAssassin_TW_DG;SpamAssassin_TW_HK;SpamAssassin_TW_HN;SpamAssassin_TW_IJ;SpamAssassin_TW_IV;SpamAssassin_TW_KU;SpamAssassin_TW_NL;SpamAssassin_TW_PC;SpamAssassin_TW_QQ;SpamAssassin_TW_TJ;SpamAssassin_TW_TL;SpamAssassin_TW_UV;SpamAssassin_TW_UX;SpamAssassin_TW_VR;SpamAssassin_UNDISC_RECIPS;SpamAssassin_UPPERCASE_25_50;SpamAssassin_URIBL_OB_SURBL;SpamAssassin_URIBL_SBL;SpamAssassin_URIBL_WS_SURBL;SpamAssassin_USER_IN_WHITELIST;SpamAssassin_X_MSMAIL_PRIORITY_HIGH;SpamAssassin_X_PRIORITY_HIGH;SpamAssassin_non
Re: No BAYES_xx rule? [message #590 is a reply to message #589] Tue, 01 February 2005 10:44 Go to previous message
support
Messages: 919
Registered: April 2004
Senior Member
There are a few other things you can check. See if Bayes is enabled at all (run spamassasssin from a command line window and check the error output:

spamassassin -x -c sa\ruleset -D < sample-spam2.txt >out 2>err

Also, the latest version (2.0.4.2) of the admin app has a tab that shows you some statistics about your Bayes Database.



Customer Support
Byteplant GmbH
Re: No BAYES_xx rule? [message #591 is a reply to message #590] Wed, 02 February 2005 11:01 Go to previous message
Hervé Salvat
Messages: 8
Registered: December 2004
Junior Member
The test message is not rejected.

Here is the beginning of the err file :

debug: SpamAssassin version 3.0.1
debug: Score set 0 chosen.
debug: running in taint mode? no
debug: defining getpwuid() wrapper using 'unknown' as username
debug: using "sa\ruleset" for default rules dir
debug: using "/etc/spamassassin" for site rules dir
debug: using "C:\Documents and Settings\Administrateur.LORD/.spamassassin/user_prefs" for user prefs file
No configuration text or files found! Please check your setup.
debug: bayes: no dbs present, cannot tie DB R/O: C:\Documents and Settings\Administrateur.LORD/.spamassassin/bayes_toks
debug: Score set 1 chosen.
debug: bayes: no dbs present, cannot tie DB R/O: C:\Documents and Settings\Administrateur.LORD/.spamassassin/bayes_tok

I guess there is a mismatch with the directory : the bayes database is searched in C:\Documents and Settings\Administrateur.LORD/.spamassassin/. This directory exists with two small files : bayes_seen and bayes_tok.

I can't see how to modify this wrong path.
Re: No BAYES_xx rule? [message #592 is a reply to message #591] Wed, 02 February 2005 13:49 Go to previous message
support
Messages: 919
Registered: April 2004
Senior Member
Did you run from the installation directory? I did not point this out in my earlier post. Here is the complete example:

cd [InstallationDirectory]
sa\spamassassin -x -c sa\ruleset -D < sample-spam2.txt >out 2>err

The Bayes DB is in the db subdirectory of your installation by default.



Customer Support
Byteplant GmbH
Re: No BAYES_xx rule? [message #593 is a reply to message #592] Wed, 02 February 2005 15:42 Go to previous message
Hervé Salvat
Messages: 8
Registered: December 2004
Junior Member
I tried in the good directory and I found out that there were too few ham tokens (<200) in the database to activate the bayes test.

After learning approx. 200 ham messages, the BAYES_XX reappeared in the messages header. The latest admin version will be useful to diag this issue.

Thank you for your help.
Previous Topic: Major Increase in Spam Emails
Next Topic: 5.4 BAYES_99 appearing very frequently
Goto Forum:
  


Current Time: Mon Dec 05 15:34:26 CET 2016