[exim] Re: headers_add :at_start: in routers

Startseite
Nachricht löschen
Nachricht beantworten
Autor: Jeremy Harris
Datum:  
To: exim-users
Betreff: [exim] Re: headers_add :at_start: in routers
On 13/05/2024 17:02, Anton via Exim-users wrote:
> Accordingly to the Googles' recent changes
> https://support.google.com/a/answer/81126?visit_id=638483404863497961-2571982079
> https://support.google.com/a/answer/175365?hl=en&ref_topic=1354753
>
> messages forwarded to Gmail should contain X-Forwarded-For: or X-Forwarded-To: headers.
>
> What is the best way to add them?
>
> My problem is that I'm aware a message is forwarded only at the routers level
> (the final destination e-address is taken from /etc/aliases or ~/.forward)
> and :at_start: option does not seems to work in transports:
> the directive
> headers_add = :at_start:X-Forwarded-For: $acl_m_For
> adds the header in the main block and not in the beginning, which makes it useless.


The second page you refer to does not specify a position a position in
the headers where an X-Forwarded-For: header should be added.

Your term "in the main block" is not common usage, so I am uncertain as to your
thinking.

Do you have specific reason to think that the position that Exim's transports
place a header when specified by a transport or router option (not "directive")
is not useful?


Also, "X-" things are deprecated these days. By the IETF.

--
Cheers,
Jeremy


--
## subscription configuration (requires account):
## https://lists.exim.org/mailman3/postorius/lists/exim-users.lists.exim.org/
## unsubscribe (doesn't require an account):
## exim-users-unsubscribe@???
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/