September 15, 2020 11:52 PM, "Bill Cole" 
<postfixlists-070...@billmail.scconsult.com> wrote:

> On 15 Sep 2020, at 16:55, Patrick Proniewski wrote:
> 
>> Hello,
>> 
>> What would be the best way to hold an incoming email that match both > 
>> criteria From=foo and
>> To=bar?
>> First I thought about header_checks with something like:
>> 
>> if /^From:.*foo.*/
>> /^To:.*bar.*/ HOLD
>> endif
>> 
>> but obviously it can't work as headers are processed 1 by 1.
> 
> Right: header_checks CANNOT do this.
> 
> This requires a comprehensive filtering tool. Because milters can return a 
> "quarantine" reply, a
> milter would be the obvious choice. MIMEDefang is one which could do this 
> rather easily.


Thanks Bill, I'll take a look at MIMEDefang.

regards,
patpro

Reply via email to