From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.user/17555 Path: news.gmane.org!not-for-mail From: Enrico Schumann Newsgroups: gmane.emacs.gnus.user Subject: Re: newbie spam filtering with gnus Date: Sat, 04 Apr 2015 22:20:59 +0200 Message-ID: <87iodb1w7o.fsf@enricoschumann.net> References: <87ego44m0v.fsf@stevenarntson.com> <87oan8c6js.fsf@enricoschumann.net> <87pp7msc3b.fsf@stevenarntson.com> <878ueapdrx.fsf@enricoschumann.net> <87619eqjq5.fsf@stevenarntson.com> <87zj6ph6cr.fsf@enricoschumann.net> <87a8ypc7nv.fsf@stevenarntson.com> <87384g302u.fsf@enricoschumann.net> <87lhi7hlys.fsf@stevenarntson.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1428178887 10340 80.91.229.3 (4 Apr 2015 20:21:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 4 Apr 2015 20:21:27 +0000 (UTC) Cc: info-gnus-english@gnu.org To: Steven Arntson Original-X-From: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Sat Apr 04 22:21:17 2015 Return-path: Envelope-to: gegu-info-gnus-english@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YeUZA-0003Ty-DS for gegu-info-gnus-english@m.gmane.org; Sat, 04 Apr 2015 22:21:16 +0200 Original-Received: from localhost ([::1]:34273 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YeUZ9-00037h-Nr for gegu-info-gnus-english@m.gmane.org; Sat, 04 Apr 2015 16:21:15 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51821) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YeUZ6-00030g-Ha for info-gnus-english@gnu.org; Sat, 04 Apr 2015 16:21:13 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YeUZ2-0007Wh-EP for info-gnus-english@gnu.org; Sat, 04 Apr 2015 16:21:12 -0400 Original-Received: from www231.your-server.de ([188.40.28.11]:37728) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YeUZ2-0007WW-8A for info-gnus-english@gnu.org; Sat, 04 Apr 2015 16:21:08 -0400 Original-Received: from [88.198.220.131] (helo=sslproxy02.your-server.de) by www231.your-server.de with esmtpsa (TLSv1.2:DHE-RSA-AES256-GCM-SHA384:256) (Exim 4.80.1) (envelope-from ) id 1YeUZ0-0000Ao-AC; Sat, 04 Apr 2015 22:21:06 +0200 Original-Received: from [188.61.221.110] (helo=radiance.enricoschumann.net) by sslproxy02.your-server.de with esmtpsa (TLSv1.2:DHE-RSA-AES256-GCM-SHA384:256) (Exim 4.80) (envelope-from ) id 1YeUYw-000726-UH; Sat, 04 Apr 2015 22:21:03 +0200 In-Reply-To: <87lhi7hlys.fsf@stevenarntson.com> (Steven Arntson's message of "Sat, 04 Apr 2015 09:55:39 -0700") X-Authenticated-Sender: es@enricoschumann.net X-Virus-Scanned: Clear (ClamAV 0.98.5/20283/Sat Apr 4 18:35:38 2015) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 188.40.28.11 X-BeenThere: info-gnus-english@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Announcements and discussions for GNUS, the GNU Emacs Usenet newsreader \(in English\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Original-Sender: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.gnus.user:17555 Archived-At: On Sat, 04 Apr 2015, Steven Arntson writes: > Enrico Schumann writes: > >> On Fri, 03 Apr 2015, Steven Arntson writes: >> >>> Enrico Schumann writes: >>> >>>> On Thu, 02 Apr 2015, Steven Arntson writes: >>>> >>>> [...] >>>> >>>>> Spamc -V does give me a version number, so that seems to be working. I >>>>> added the code you recommended, so the full splitting/spam-oriented >>>>> lines of my .gnus are: >>>>> >>>>> | (setq nnmail-split-methods 'nnmail-split-fancy >>>>> | nnmail-split-fancy '(| (: kevin-spamassassin) >>>>> | "mail.misc")) >>>>> | >>>>> | (defun kevin-spamassassin () >>>>> | (save-excursion >>>>> | (save-restriction >>>>> | (widen) >>>>> | (if (eq 1 (call-process-region (point-min) (point-max) >>>>> | "spamc" nil nil nil "-c")) >>>>> | "spam")))) >>>>> >>>>> I can receive mail still---all seems to be working, but no spams have >>>>> yet been filtered. Are there steps I need to take directly with >>>>> Spamassassin to get it working? >>>> >>>> spamc requires that spamd is running (see 'man spamassassin'). In a >>>> terminal, try >>>> >>>> echo something | spamc -r >>>> >>>> If SpamAssassin works, it should tell you that the message ('something') >>>> is spam because it is missing headers etc. >>> >>> I entered `sudo spamd' on terminal, and that seemed to start spamd. I >>> followed with the input you recommended: >>> >>> echo something | spamc -r >>> >>> And the system told me it looked like spam---so it's all working! >>> >>> However, nothing's getting filtered yet. >> >> The function 'kevin-spamassassin' sends the message to spamc. There is >> no need for teaching; it should work 'out of the box'. Well, ... :-) >> >> Random thoughts: >> >> 1. Just to be sure: you did evaluate the code above, for instance by >> reloading your .gnus.el or restarting Gnus? >> > I'm embarrassed, but this was indeed part of the issue. Having > restarted, I received 3 spam mails. One was correctly filtered to "spam" > (victory!) but the other two still went to "inbox." > > Checking the message headers, I see that the correctly filed spam > message had an "X-Spam Level" of "****". The unidentified spams were > logged as level "***". Yet, to my eye, they are all obvious spams. > > I feel I'm on the road now, but is there a way to improve > performance? > > Thank you again. > > steven arntson I am glad that it worked. Now it all depends on how you configure SpamAssassin (nothing to do with Emacs/Gnus). I cannot give you any advice here, since SpamAssassin's default settings have been good enough for me. Kind regards, Enrico -- Enrico Schumann Lucerne, Switzerland http://enricoschumann.net