Re: [exim] Adding a header at router level

Startseite
Nachricht löschen
Nachricht beantworten
Autor: Jeremy Harris
Datum:  
To: exim-users
Betreff: Re: [exim] Adding a header at router level
On 27/04/16 01:58, soumya tr wrote:
> add_header_for_forwarders:
> driver = redirect
> require_files = "+/etc/valiases/$domain"
> data = ${lookup{$local_part@$domain}lsearch{/etc/valiases/$domain}}
> condition = ${lookup{$local_part@$domain}lsearch{/etc/valiases/$domain}
> {yes}{no}}
> headers_add = X-MyHeader: ${perl{getdomainowner}{$domain}}
> pipe_transport = ${if
> forall{/bin/cagefs_enter:/usr/sbin/cagefsctl}{exists{$item}}{cagefs_virtual_address_pipe}{${if
> match{${extract{6}{:}{${lookup
> passwd{${lookup{$domain}lsearch*{/etc/userdomains}{$value}}}{$value}}}}}{\N(jail|no)shell\N}{jailed_virtual_address_pipe}{virtual_address_pipe}}}}
> unseen
>
>
> But for some reason the header addition isn't happening.


How are you checking? Is the "unseen" behaviour tripping you up?

> Also, if the header already exist will header_add again add the header


Yes.
--
Jeremy