[exim] Re: headers_add :at_start: in routers

トップ ページ
このメッセージを削除
このメッセージに返信
著者: Lena--- via Exim-users
日付:  
To: exim-users
題目: [exim] Re: headers_add :at_start: in routers
> 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


I'm not sure, but you can try:

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


This assumes single recipient, but that's usually the case if forwarded.

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