Re: [exim] $header_* not defined in router?

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Graeme Fowler
Dátum:  
Címzett: exim-users
Tárgy: Re: [exim] $header_* not defined in router?
On Mon, 2007-04-02 at 18:33 +0200, Carlo Wood wrote:
> Ok, let me try again.
>
> The following router:
>
> spamtest:
>   debug_print = "R: spamtest for $domain"
>   domains = "${if exists{CONFDIR/hubbed_hosts}\
>                    {partial-lsearch;CONFDIR/hubbed_hosts}\
>               fail}"
>   condition = ${if def:header_To: {yes}{no}}
>   driver = manualroute
>   same_domain_copy_routing = yes
>   transport = remote_smtp
>   route_data = ${lookup{$domain}partial-lsearch{CONFDIR/hubbed_hosts}}


You missed the $ off header:

condition = ${if def:header_To: {yes}{no}}
should be
condition = ${if def:$header_To: {yes}{no}}

See http://www.exim.org/exim-html-4.66/doc/html/spec_html/ch11.html

Graeme