amavis-user June 2010 archive
Main Archive Page > Month Archives  > amavis-user archives
amavis-user: Re: [AMaViS-user] AMaViS as before-queue content fi

Re: [AMaViS-user] AMaViS as before-queue content filter to Postfix?

From: Noel Jones <njones_at_nospam>
Date: Wed Jun 30 2010 - 14:28:55 GMT
To: amavis-user@lists.sourceforge.net

On 6/29/2010 10:38 PM, Michael Orlitzky wrote:
> On 06/29/2010 02:50 AM, Patrick Ben Koetter wrote:
>> * Rich Wales<richw@richw.org>:
>>> I'm using Postfix 2.6.5, with AMaViSd-new 2.6.4 as an after-queue
>>> content filter. Messages scoring above 5 are being quarantined for
>>> later examination using MailZu.
>>>
>>> I would like to reconfigure my setup to use AMaViS as a before-queue
>>> content filter -- rejecting messages scoring above 25 (or maybe 30),
>>> accepting (and quarantining) messages scoring between 5 and 25 (or
>>> 30), and delivering mail scoring below 5.
>>>
>>> How do I do this?
>>>
>>> I understand the "cons" about increased load on my mail server if I
>>> adopt before-queue filter mode, and I'm prepared to deal with this.
>>
>> Change $final_spam_destiny in amavisd confguration to:
>>
>> $final_spam_destiny = D_REJECT;
>
>
> # D_REJECT mail will not be delivered to its recipients, sender should
> # preferably get a reject, e.g. SMTP permanent reject response
> # (e.g. with milter), or non-delivery notification from MTA
> # (e.g. Postfix). If this is not possible (e.g. different recipients
> # have different tolerances to bad mail contents and not using LMTP)
> # amavisd-new sends a bounce by itself (same as D_BOUNCE).
> # Not to be used with Postfix or dual-MTA setups!
>
> Is that last line just outdated, or intended to be frightening to
> potential pre-queuers?

Not to be used with postfix after queue content_filter, which
is the config amavisd-new docs assume.

OK to use (and actually preferred) with postfix before queue
smtpd_proxy_filter.

   -- Noel Jones

------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
AMaViS-user mailing list
AMaViS-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amavis-user
 Please visit http://www.ijs.si/software/amavisd/ regularly
 For administrativa requests please send email to rainer at openantivirus dot org