Ben Rosengart:
> On Tue, Mar 06, 2012 at 04:26:09PM -0500, Ben Rosengart wrote:
> > 
> > Apologies.  I'm thinking parts of this over and if I reanimate the
> > thread, I will be sure to provide full context.
> 
> Let me try this again.
> 
> I want to rewrite *sender addresses* (preferably headers only) when
> these conditions are _all_ met:
> 
>   1. Client is not in an ACL,
>   2. Sender matches a particular LDAP filter, or isn't in LDAP, _AND_
>   3. Recipient is in $relay_domains.
> 
> After squinting at this from different angles, my current thinking is
> that this is outside what Postfix is intended for, and it should be
> implemented in a milter -- if at all.  What's annoying about doing it
> as a milter is that Postfix already knows how to determine all these
> things; only the glue language is missing.

Exactly. I decided long ago that complex conditionals would be
implemented outside of Postfix (the policy protocol); a similar
decision was made for content manipulation (SMTP-based filters and
Milters).  Milter bindings exist for many scripting languages, so
there is no need to re-invent those languages within of Postfix.

        Wietse

Reply via email to