On Tue, May 14, 2024 at 01:41:28PM GMT, Lena--- via Exim-users wrote:

> > 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

> In routers place the content you need into address_data

> https://www.exim.org/exim-html-current/doc/html/spec_html/ch-generic_options_for_routers.html

> In the rcpt ACL you should have "require verify = recipient"
> (without callout).  After that insert:

>   warn condition = ${if def:address_data}
>        add_header = :at_start:X-Forwarded-For: $address_data

Clearly this solution is only valid if the add_header action is
"lazily evaluated" i.e. delayed until actual delivery. Is that the
case?

-- 
Ian

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

Reply via email to