Re: [exim] headers added by router seen by subsequent router…

Startseite
Nachricht löschen
Nachricht beantworten
Autor: Jeremy Harris
Datum:  
To: exim-users
Betreff: Re: [exim] headers added by router seen by subsequent routers?
On 2011-02-22 16:00, Raphael Bauduin wrote:
> Hi,
>
> I'm added a header in a redirect router:
>
>
> ldap_lists:
> driver = redirect
> allow_fail
> allow_defer
> condition = ${lookup ldap ...}
> data = ${lookup ldap ...}
> headers_add = X-DynList: Yes
> file_transport = address_file
> pipe_transport = address_pipe
> one_time = false
>
> and I want to test this header in a subsequent router:
>
> send_dynlist:
>    driver = dnslookup
>    condition = ${if match{$h_X-DynList:}{Yes}{1}{0}}
>    transport = remote_smtp

>
> Although I can see the header in the mail I'm receiving, it is not the
> send_dynlist router by the one after it in the config file that
> handled the mail.


You can't do that; the headers_add doesn't work that way.

http://exim.org/exim-html-4.72/doc/html/spec_html/ch15.html

Sorry, but you'll need to rework your flow through the routers.

-- 
Cheers,
     Jeremy