> On Jan 20, 2018, at 11:08 AM, Joris (ideeel) <[email protected]> wrote:
>
> I know gmail rewrites the envelope sender and the header sender based on
> the login name, but I have not been able to find how to do this in Postfix
To make it clearer, we should first understand what "rewriting" means in
Postfix.
- Rewriting in Postfix takes an input value (say the sender address)
and produces a new value as a function of (via a lookup table)
of the input value. The *only* input into the construction of the
new value is the original value. Thus you can transform a sender
address to another sender address, but this cannot take into account
any other message properties.
Since "canonical_maps" is an address rewriting mechanism, it cannot do
what you're asking for. The transformation you're asking for presently
requires a content filter or milter.
--
Viktor.