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 <gentoo-user+bounces-123060-garchives=archives.gentoo.org@lists.gentoo.org>)
	id 1QNm1i-0006o3-Da
	for garchives@archives.gentoo.org; Sat, 21 May 2011 13:15:30 +0000
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id 31FE31C061;
	Sat, 21 May 2011 13:13:59 +0000 (UTC)
Received: from svr-us4.tirtonadi.com (unknown [69.65.43.212])
	by pigeon.gentoo.org (Postfix) with ESMTP id 05B171C061
	for <gentoo-user@lists.gentoo.org>; Sat, 21 May 2011 13:13:58 +0000 (UTC)
Received: from mail-iw0-f181.google.com ([209.85.214.181])
	by svr-us4.tirtonadi.com with esmtpsa (TLSv1:RC4-MD5:128)
	(Exim 4.69)
	(envelope-from <pandu@poluan.info>)
	id 1QNm0G-001pj8-Lj
	for gentoo-user@lists.gentoo.org; Sat, 21 May 2011 20:14:00 +0700
Received: by iwn38 with SMTP id 38so4966618iwn.40
        for <gentoo-user@lists.gentoo.org>; Sat, 21 May 2011 06:13:56 -0700 (PDT)
Precedence: bulk
List-Post: <mailto:gentoo-user@lists.gentoo.org>
List-Help: <mailto:gentoo-user+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-user+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-user+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-user.gentoo.org>
X-BeenThere: gentoo-user@lists.gentoo.org
Reply-to: gentoo-user@lists.gentoo.org
MIME-Version: 1.0
Received: by 10.42.59.144 with SMTP id m16mr6399542ich.440.1305983636294; Sat,
 21 May 2011 06:13:56 -0700 (PDT)
Received: by 10.42.221.202 with HTTP; Sat, 21 May 2011 06:13:56 -0700 (PDT)
In-Reply-To: <4DD77739.8080209@alyf.net>
References: <BANLkTikpoO0nPBB_7ZQCgTG1fYE6jWBhtw@mail.gmail.com>
	<4DD77739.8080209@alyf.net>
Date: Sat, 21 May 2011 20:13:56 +0700
Message-ID: <BANLkTikbD5wPtodH3Sh74AzHVhsCLxOfNQ@mail.gmail.com>
Subject: Re: [gentoo-user] RFC: Implementing a spamfiltering frontend
From: Pandu Poluan <pandu@poluan.info>
To: gentoo-user@lists.gentoo.org
Content-Type: text/plain; charset=UTF-8
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: 
X-Archives-Hash: 383e51fef36e3e2343a00cac0b60f1c8

On 2011-05-21, Andrea Conti <alyf@alyf.net> wrote:
> On 21/05/11 06.13, Pandu Poluan wrote:
>> Hello list!
>>
>> Due to the increase of spam/phishing emails received by my office, I
>> decided to explore the idea of implementing a spamfiltering 'frontend'
>> in front of my email server.
>>
>> Here's how I plan to do it:
>>
>> fetchmail (G) --> postfix (G) --> amavisd+spamassassin+database (G)
>> --> postfix (G) --> current email back-end (WS) --> clients (W)
>
> Having a second postfix instance between amavisd and the email server is
> going to make things way more complicated. Amavisd is perfectly capable
> of speaking smtp/lmtp by itself, so unless you need to perform complex
> mail routing you could directly send the filtered mail to the windows
> server.
>
> Other than that, I have very similar setup
> (fetchmail->postfix->amavis->cyrus-imap, where all hops but the first
> are done with lmtp) that has been working quite well for the past few years.
>
> HTH,
> andrea

Hmm... interesting points. But can it still do the 2nd part of the
equation, that is, perform outgoing routing?

I had thought that I'll need amavisd to re-inject the email to postfix
so that postfix can do mail routing, i.e., mails to my domain get
routed to the Windows server, while outgoing emails get routed to my
ISP's mail relay.

Of course I can have postfix to skip amavisd for outgoing emails, but
then I guess I'll lose amavisd's automated whitelisting (the so-called
'pen pal' feature).

Rgds,
--
Pandu E Poluan - IT Optimizer
My website: http://pandu.poluan.info/