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.
--
Bill Cole
b...@scconsult.com or billc...@apache.org
(AKA @grumpybozo and many *@billmail.scconsult.com addresses)
Not For Hire (currently)