Return-Path: X-Original-To: apmail-spamassassin-users-archive@www.apache.org Delivered-To: apmail-spamassassin-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E3B16E8FF for ; Thu, 31 Jan 2013 22:51:33 +0000 (UTC) Received: (qmail 63172 invoked by uid 500); 31 Jan 2013 22:51:31 -0000 Delivered-To: apmail-spamassassin-users-archive@spamassassin.apache.org Received: (qmail 63152 invoked by uid 500); 31 Jan 2013 22:51:31 -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 Received: (qmail 63142 invoked by uid 99); 31 Jan 2013 22:51:31 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 31 Jan 2013 22:51:31 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=10.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of rwmaillists@googlemail.com designates 74.125.82.47 as permitted sender) Received: from [74.125.82.47] (HELO mail-wg0-f47.google.com) (74.125.82.47) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 31 Jan 2013 22:51:23 +0000 Received: by mail-wg0-f47.google.com with SMTP id dr13so2387819wgb.2 for ; Thu, 31 Jan 2013 14:51:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=x-received:date:from:to:subject:message-id:in-reply-to:references :x-mailer:mime-version:content-type:content-transfer-encoding; bh=4RPvqNDjHHSCOS5phxPo8Q2koAScbQZHw3H+ryzfRJg=; b=o4S2/zDq1tkwCtkaIdcJlceXi45IddiM91qyOFusl1AlG0AYhb4oilYzOi+s8qWpxe wJ72UXOnnue0TzNAcireG0qZcP61e/JTm4y3fAJdOr/n9USlpsH1uKrhTKRVT7CsISQz 9DlJdJBO3bM11Z1tWYO4gCSdc/b2Tszf2XHmYv8IOpKSnjw7Sv7ONAxgim9EUGYMCWc/ QoqFA7Dc0iJCuSe0NzFi0C+zxxdZVdSS4uVjodYHsvwLKGINp1/1ZjouF6CFYd+Ab2kz /m7GCUtjaKu4aFN6s2zDaW3yoi6Mf8KciklfXshqc4U5kAS1eMF9GUpJvfxkyHBi2uIU U63Q== X-Received: by 10.180.78.66 with SMTP id z2mr17877829wiw.23.1359672663370; Thu, 31 Jan 2013 14:51:03 -0800 (PST) Received: from gumby.homeunix.com (87-194-105-247.bethere.co.uk. [87.194.105.247]) by mx.google.com with ESMTPS id cu7sm17858582wib.8.2013.01.31.14.51.00 (version=SSLv3 cipher=RC4-SHA bits=128/128); Thu, 31 Jan 2013 14:51:01 -0800 (PST) Date: Thu, 31 Jan 2013 22:50:58 +0000 From: RW To: users@spamassassin.apache.org Subject: Re: Calling spamassassin directly yields very different results than calling spamassassin via amavis-new Message-ID: <20130131225058.27ab954e@gumby.homeunix.com> In-Reply-To: References: <50EDEBAD.2030104@indietorrent.org> <50EE053B.7000107@indietorrent.org> <201301100136.27445.mewolf1@gmx.net> <50EE2030.6020604@indietorrent.org> <50EEEFC0.9050706@indietorrent.org> <20130110164944.26e84494@gumby.homeunix.com> <50EEF7D3.7080003@indietorrent.org> <50EEFED7.9090800@indietorrent.org> <20130110180604.5bce777e@gumby.homeunix.com> <50EF0EBE.9000401@indietorrent.org> <50EF2101.7000005@whyscream.net> <50F083DC.3040808@indietorrent.org> <50F44D77.6080209@indietorrent.org> <20130114194906.23094021@gumby.homeunix.com> <50F471C5.7090800@indietorrent.org> <50F58343.2000101@indietorrent.org> <50F5BE84.7080507@indietorrent.org> <510AB4FD.5070406@indietorrent.org> X-Mailer: Claws Mail 3.9.0 (GTK+ 2.24.6; amd64-portbld-freebsd8.3) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org On Thu, 31 Jan 2013 12:12:15 -0800 (PST) John Hardin wrote: > On Thu, 31 Jan 2013, Ben Johnson wrote: > > > So, I finally got around to tackling this change. > > > > With a couple of simple modifications, I was able to achieve the > > desired result with the Dovecot Antispam plug-in. > > > > Basically, I changed the last two directive values from the switches > > that are normally passed to the "sa-learn" binary (--spam and > > --ham) to destination email addresses that are passed to "sendmail" > > in my revised pipe script. > > Passing the messages through sendmail again isn't optimal as that > will make further changes to the headers. This may have effects on > the quality of the learning, unless the original message is attached > as an RFC-822 attachment to the message being sent to the corpus > mailbox, which of course means you then can't just run sa-learn > directly against that mailbox - the review process would involve > moving the attachment as a standalone message to the spam or ham > learning mailbox. > > Ideally you want to just move the messages between mailboxes without > involving another delivery processing. I don't know enough about > Dovecot or your topology to say whether that's going to be as easy as > using sendmail to mail the message to you. Actually that's the way that the dovecot plugin works. I think that the sendmail option is mainly a way to get training done on a remote machine - it's a standard feature of DSPAM for which the plugin was originally developed. When I looked at the plugin it seemed to have quite a serious flaw. IIRC it disables IMAP APPENDs on the Spam folder which makes it incompatible with synchronisation tools like OfflineImap and probably some IMAP clients that implement offline support in the same way.