Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 35E32200CDE for ; Tue, 8 Aug 2017 20:20:56 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 34726167A5D; Tue, 8 Aug 2017 18:20:56 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 7812C167A55 for ; Tue, 8 Aug 2017 20:20:55 +0200 (CEST) Received: (qmail 34473 invoked by uid 500); 8 Aug 2017 18:20:54 -0000 Mailing-List: contact users-help@spamassassin.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list users@spamassassin.apache.org Delivered-To: moderator for users@spamassassin.apache.org Received: (qmail 84914 invoked by uid 99); 8 Aug 2017 18:06:43 -0000 X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.001 X-Spam-Level: X-Spam-Status: No, score=-0.001 tagged_above=-999 required=6.31 tests=[RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001] autolearn=disabled From: "Scott Techlist" To: Subject: Bayes auto-learn - not happening Date: Tue, 8 Aug 2017 13:06:26 -0500 Message-ID: <0d5d01d31071$0d6be500$2843af00$@org> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft Office Outlook 12.0 Thread-Index: AdMQcQjiifYQj50aTua1hRsXBnQoQA== Content-Language: en-us archived-at: Tue, 08 Aug 2017 18:20:56 -0000 Centos7 Postfix 3.2.2 Amavisd-new 2.11.0 Spamassassin 3.4.0 Site-wide configuration This is a new box and I've configured some conservative values for = auto-learn. I've enabled it properly AFAIK, but I can't see any sign of = it working. =20 I have these set in local.cf use_bayes 1 bayes_auto_learn 1 bayes_auto_learn_threshold_nonspam -1.7 bayes_auto_learn_threshold_spam 10.0 # this is a filename prefix, not a directory per se bayes_path /etc/mail/bayes/bayes bayes_file_mode 0666 -------------bayes prep ---------------- Start fresh for troubleshooting: su amavis -c 'sa-learn --clear' Add one spam manually and check tokens: [root@tn2 mail]# su amavis -c 'sa-learn --dump magic' 0.000 0 3 0 non-token data: bayes db version 0.000 0 1 0 non-token data: nspam 0.000 0 0 0 non-token data: nham 0.000 0 2157 0 non-token data: ntokens ---------amavisd prep---------------- Restart amavisd/spamassassin just to be sure all configs read.. ------- ready to process ------------- The next high scoring spam arrives, it was sent to my spam mailbox. It = did NOT autolearn. Nor did several others. =20 To troubleshoot, I took one that did not autolearn, and learned it = manually by: su amavis -c 'sa-learn -D --spam --showdots --mbox /home/mail/onespam even though this message was slightly over the threshold, the log says = it learned anyway: -D log snippet: --------------------- Aug 8 12:37:27.216 [13198] info: archive-iterator: skipping large = message: 858 lines, 262203 bytes, limit 262144 bytes Learned tokens from 1 message(s) (1 message(s) examined) --------------------- Verified it learned: [root@tn2 mail]# su amavis -c 'sa-learn --dump magic' 0.000 0 3 0 non-token data: bayes db version 0.000 0 2 0 non-token data: nspam Partial header from that message: X-Spam-Flag: YES X-Spam-Score: 17.374 X-Spam-Level: ***************** X-Spam-Status: Yes, score=3D17.374 tag=3D-9999 tag2=3D5 kill=3D6.31 tests=3D[RCVD_IN_BRBL_LASTEXT=3D1.644, = RCVD_IN_DNSWL_NONE=3D-0.0001, RCVD_IN_RP_RNBL=3D1.284, RCVD_IN_SBL_CSS=3D3.558, = RCVD_IN_SORBS_WEB=3D1.5, RP_MATCHES_RCVD=3D-0.001, SUSPICIOUS_RECIPS=3D2.497, URIBL_ABUSE_SURBL=3D1.948, URIBL_BLACK=3D1.7, = URIBL_DBL_SPAM=3D2.5, URIBL_SBL=3D0.644, URIBL_SBL_A=3D0.1] autolearn=3Dno = autolearn_force=3Dno Why aren't my spams getting auto-learned? If sa-learn "ate" it, = shouldn't auto-learn too? I know there is a default 200 threshold before Bayes starts tagging = anything, but I understand it should learn without issue. Can't figure out what's wrong...