[exim] Re: headers_add :at_start: in routers

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Jeremy Harris
Date:  
À: exim-users
Sujet: [exim] Re: headers_add :at_start: in routers
On 14/05/2024 09:25, Anton via Exim-users wrote:
> Since a mail can be forwarded several times before reaching its final destination, it looks logical to put X-Forwarded header(s) at each hop [where it was forwarded].


One might think so... but they don't actually say so. They do suggest ARC,
which supplies essentially the same information (but they don't say "one or the other",
which feels like half-baked guidance to me). I'd think they'd prefer ARC.

I've opened https://bugs.exim.org/show_bug.cgi?id=3094 for the request for the Exim facility.

In the meantime, you could use headers_add at ACL time, perhaps in combination
with a recipient verify and use of $address_data to tell that the message is
actually being forwarded rather than delivered locally. You should probably
not be adding the header for "locally-sourced" messages (for some definition
of that; perhaps ones where $sender_domain is not handled by you per DNS?)
--
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/