From: Pandu Poluan <pandu@poluan.info>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Looking for IMAP->IMAP spam filtering
Date: Tue, 21 Feb 2012 08:29:07 +0700 [thread overview]
Message-ID: <CAA2qdGVFHpb-S=zLApNQQ3dvDD7Myna8WPE-vKEM223s1CfcKg@mail.gmail.com> (raw)
In-Reply-To: <jhulkp$cfe$1@dough.gmane.org>
[-- Attachment #1: Type: text/plain, Size: 1585 bytes --]
On Feb 21, 2012 6:44 AM, "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 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.
>
> Is there something simpler and easier that I've overlooked?
>
Okay, I may have misunderstood your needs the first time around (blame it
to not having my first cuppa tea of the day).
So, you want to do these steps:
- Pull email from an IMAP account in box A
- Filter it in box B
- Push it to box C
So, the third step is not an LDA.
There are some alternatives, none of them are simple, though. The 'easiest'
I think would be:
- have fetchmail (on box B) pull email from box A, and deliver to local
maildir (on B) via procmail+SA
- have Dovecot watch the local maildir
- have *another* fetchmail instance pull email from the local Dovecot and
push it to an SMTP MTA on box C
You can have multiple fetchmail daemons running at the same time by
copying/symlinking the fetchmail initscript and creating a correspondent
conf file. I've submitted a patch (that has been accepted into the tree)
that allows multiple fetchmail daemons.
Rgds,
[-- Attachment #2: Type: text/html, Size: 1890 bytes --]
next prev parent reply other threads:[~2012-02-21 1:31 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-02-20 23:40 [gentoo-user] Looking for IMAP->IMAP spam filtering Grant Edwards
2012-02-21 0:00 ` [gentoo-user] " Grant Edwards
2012-02-21 1:02 ` Pandu Poluan
2012-02-21 1:26 ` Grant Edwards
2012-02-21 1:29 ` Pandu Poluan [this message]
2012-02-21 17:00 ` Grant Edwards
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAA2qdGVFHpb-S=zLApNQQ3dvDD7Myna8WPE-vKEM223s1CfcKg@mail.gmail.com' \
--to=pandu@poluan.info \
--cc=gentoo-user@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox