From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1Rze8m-0007sA-QX for garchives@archives.gentoo.org; Tue, 21 Feb 2012 01:03:37 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id B167EE0EAF; Tue, 21 Feb 2012 01:03:22 +0000 (UTC) Received: from svr-us4.tirtonadi.com (svr-us4.tirtonadi.com [69.65.43.212]) by pigeon.gentoo.org (Postfix) with ESMTP id 93199E0E22 for ; Tue, 21 Feb 2012 01:02:13 +0000 (UTC) Received: from mail-lpp01m010-f53.google.com ([209.85.215.53]) by svr-us4.tirtonadi.com with esmtpsa (TLSv1:RC4-SHA:128) (Exim 4.69) (envelope-from ) id 1Rze7R-0019aL-I0 for gentoo-user@lists.gentoo.org; Tue, 21 Feb 2012 08:02:13 +0700 Received: by lahd3 with SMTP id d3so7841577lah.40 for ; Mon, 20 Feb 2012 17:02:09 -0800 (PST) Received-SPF: pass (google.com: domain of pandu@poluan.info designates 10.112.54.38 as permitted sender) client-ip=10.112.54.38; Authentication-Results: mr.google.com; spf=pass (google.com: domain of pandu@poluan.info designates 10.112.54.38 as permitted sender) smtp.mail=pandu@poluan.info Received: from mr.google.com ([10.112.54.38]) by 10.112.54.38 with SMTP id g6mr8589101lbp.43.1329786129296 (num_hops = 1); Mon, 20 Feb 2012 17:02:09 -0800 (PST) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Received: by 10.112.54.38 with SMTP id g6mr7175027lbp.43.1329786129273; Mon, 20 Feb 2012 17:02:09 -0800 (PST) Received: by 10.112.38.194 with HTTP; Mon, 20 Feb 2012 17:02:09 -0800 (PST) Received: by 10.112.38.194 with HTTP; Mon, 20 Feb 2012 17:02:09 -0800 (PST) In-Reply-To: References: Date: Tue, 21 Feb 2012 08:02:09 +0700 Message-ID: Subject: Re: [gentoo-user] Re: Looking for IMAP->IMAP spam filtering From: Pandu Poluan To: gentoo-user@lists.gentoo.org Content-Type: multipart/alternative; boundary=bcaec5524396dcd45004b96ef57b X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - svr-us4.tirtonadi.com X-AntiAbuse: Original Domain - lists.gentoo.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - poluan.info X-Archives-Salt: d786ffdd-5c91-4745-8507-9ef81a68c611 X-Archives-Hash: 8834fbe90b71c99e7ce97cf780d24287 --bcaec5524396dcd45004b96ef57b Content-Type: text/plain; charset=UTF-8 On Feb 21, 2012 7:03 AM, "Grant Edwards" wrote: > > On 2012-02-20, Grant Edwards wrote: > > I'm looking to set up something that reads messages from one IMAP > > server/mailbox, filters out the spam, and then writes the filtered > > messages into another IMAP server/mailbox. The source and destination > > servers may or may not be the same, and neither is the machine where > > the filter is running. I'd like the solution to use the IMAP IDLE > > command to avoid the latency and load of constantly setting up SSL > > connections and polling the source server. > > > > It looks like fetchmail -> procmail+spamassassin -> dovecot/deliver > > ought to do what I want. > > Or not. It looks dovecot can't deliver to a mailbox on an IMAP server > after all. > > > Is there something simpler and easier that I've overlooked? > Seems to me "getmail" is more suitable for your needs: http://pyropus.ca/software/getmail/documentation.html#features the feature list says that it can run a filtering software, and delivers emails directly into maildirs. Not sure about IDLE support though. Rgds, --bcaec5524396dcd45004b96ef57b Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable


On Feb 21, 2012 7:03 AM, "Grant Edwards" <grant.b.edwards@gmail.com> wrote:
>
> On 2012-02-20, Grant Edwards <grant.b.edwards@gmail.com> wrote:
> > I'm looking to set up something that reads messages from one = IMAP
> > server/mailbox, filters out the spam, and then writes the filtere= d
> > messages into another IMAP server/mailbox. The source and destina= tion
> > servers may or may not be the same, and neither is the machine wh= ere
> > the filter is running. I'd like the solution to use the IMAP = IDLE
> > command to avoid the latency and load of constantly setting up SS= L
> > connections and polling the source server.
> >
> > It looks like fetchmail -> procmail+spamassassin -> dovecot= /deliver
> > ought to do what I want.
>
> Or not. =C2=A0It looks dovecot can't deliver to a mailbox on an IM= AP server
> after all.
>
> > Is there something simpler and easier that I've overlooked? >

Seems to me "getmail" is more suitable for your needs:

http://pyropus.ca/software/getmail/documentation.html#features

the feature list says that it can run a filtering software, and delivers= emails directly into maildirs.

Not sure about IDLE support though.

Rgds,

--bcaec5524396dcd45004b96ef57b--