[email protected]:
> Hi,
>
> we heavily use the alias feature and want to know who was the original
> recipient for filtering. Our old postfix instance (version 2.11.3) set
> this from the beginning - as far as I remember we never changed the
> configuration to archive this.
>
> Our new instance (version 3.5.13, not yet live) does *not* set the
> "X-Original-To" message header, even both instances have the
> "enable_original_recipient" configuration setting set to "yes".
>
> From what I've read the "enable_original_recipient" is the only setting
> that affects the "X-Original-To" message header.
This is documented the Postfix 3.5 RELEASE_NOTES:
Major changes - dovecot usability
---------------------------------
[Feature 20190615] The SMTP+LMTP delivery agent can now prepend
Delivered-To, X-Original-To and Return-Path headers, just like the
pipe(8) and local(8) delivery agents.
This uses the "flags=DORX" command-line flags in master.cf. See the
smtp(8) manpage for details.
This obsoletes the "lmtp_assume_final = yes" setting, and replaces
it with "flags=...X...", for consistency with the pipe(8) delivery
agent.
Edit master.cf and add flags=DORX to the lmtp service:
/etc/postfix/master.cf:
lmtp unix - - n - - lmtp
flags=DORX
Thrn do "postfix reload".
Wietse