What should I do in order to see mail with the header autolearn=spam ? I've prepared script which makes my own spams and sends them to my mail server. This server is placed in local net, not in Internet because I'm only testing SpamAssassin. I've sent more than 500 spams, but I didn't see autolearn=spam. How can I do it ?
Here is my last local.cf : score MISSING_SUBJECT 15.0 score NIGERIAN_BODY1 15.0 bayes_min_ham_num 100 bayes_min_spam_num 100 required_hits 5.0 rewrite_subject 1 subject_tag *****SPAM***** report_safe 0 use_terse_report 0 use_bayes 1 auto_learn 1 bayes_file_mode 0770 bayes_auto_learn_threshold_nonspam 0.1 bayes_auto_learn_threshold_spam 7.0 skip_rbl_checks 0 use_razor2 1 use_dcc 1 use_pyzor 1 ok_languages en pl ok_locales en allow_user_rules 1 And the fragment of the spam's header : X-Spam-Flag: YES X-Spam-Checker-Version: SpamAssassin 3.0.2 (2004-11-16) on kronos X-Spam-Level: ************************************* X-Spam-Status: Yes, score=37.6 required=25.0 tests=ALL_TRUSTED,AMATEUR_PORN, AWL,BODY_ENHANCEMENT,DEAR_FRIEND,DRUGS_ERECTILE,INVALID_MSGID, MILLION_USD,MISSING_SUBJECT,NIGERIAN_BODY1,NIGERIAN_BODY2, NIGERIAN_BODY3,NIGERIAN_BODY4,NO_REAL_NAME,PORN_URL_MISC, SUBJ_2_CREDIT,UPPERCASE_75_100,US_DOLLARS_3 autolearn=no version=3.0.2 X-Spam-Report: * 0.2 NO_REAL_NAME From: does not include a real name * -2.8 ALL_TRUSTED Did not pass through any untrusted hosts * 0.8 AMATEUR_PORN BODY: Possible porn - Amateur Porn * 1.3 MILLION_USD BODY: Talks about millions of dollars * 0.5 SUBJ_2_CREDIT BODY: Contains 'subject to credit approval' * 0.8 DEAR_FRIEND BODY: Dear Friend? That's not very dear! * 0.4 US_DOLLARS_3 BODY: Mentions millions of $ ($NN,NNN,NNN.NN) * 0.5 BODY_ENHANCEMENT BODY: Information on growing body parts * 0.6 PORN_URL_MISC URI: URL uses words/phrases which indicate porn (misc) * 0.0 DRUGS_ERECTILE Refers to an erectile drug * 15 MISSING_SUBJECT Missing Subject: header * 0.5 UPPERCASE_75_100 message body is 75-100% uppercase * 0.5 NIGERIAN_BODY2 Message body looks like a Nigerian spam message 2+ * 15 NIGERIAN_BODY1 Message body looks like a Nigerian spam message 1+ * 1.4 INVALID_MSGID Message-Id is not valid, according to RFC 2822 * 1.4 NIGERIAN_BODY4 Message body looks like a Nigerian spam message 4+ * 1.9 NIGERIAN_BODY3 Message body looks like a Nigerian spam message 3+ * -0.3 AWL AWL: From: address is in the auto white-list As you can see above, the spam should gain min. 3 points from the header and min. 3 points from the body ( these are spamassassin needs to classify mail as spam ). Apart from this, in local.cf I've bayes_auto_learn_threshold_spam 7.0, however autolearning doesn't work properly. I must to hint that I haven't got any problem to autolearn bayes databases as ham. Pls help me. My ideas are finished. Perhaps I don't know or I don't understand anything. best regards Mirek Wasik