Re: prerving envelope address via X-Original-to

Dominic Raferd <[email protected]>
Newsgroups gmane.mail.virus.amavis.user
Message-ID <CAF9Mo3K_KkFmE9g4_MLibbySy4c8ZZL2nx6djRvvQobmF9VSqg@mail.gmail.com>
On Wed, 14 Oct 2020 at 10:34, Andrey Lelikov <[email protected]> wrote:
>
> Good day.
>
> A newbie amavisd-new user here. I run a small mail server for myself &
> family. Recently I've changed from to a iredmail system and discovered
> postfix/amavisd setup. For a long time I have a set of filters that rely
> on the X-Envelope-to header, and suddenly all these filters stopped working.
>
> This question was apparently discussed here several times, yet I failed
> to find an up to date answer.
>
> So, firstly, BCC reveal is not the issue - this is a family setup and
> all users are in "trusted circle" - if the message is sent to two or
> more users via BCC it is explicitly OK for any user of this server to
> learn other BCC recipients.
>
> My perl knowledge is very limited, but as it was mentioned here, the
> X-Envelope-to could be added inside add_forwarding_header_edits_common sub .
>
> I'm using a debian system, and my understanding is that it is possible
> to add a hook to amavis/conf.d/something that would modify actions
> inside add_forwarding_header_edits_common without hacking original
> script in /usr/sbin ?
>
> Is this possible? The specific code would be very welcome.

The X-Original-To header is normally added by the postfix delivery
agent (local, smtp, virtual etc). Are you sure it isn't being stripped
by something bespoke in your system?
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.