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


-- 
## List details at http://www.exim.org/mailman/listinfo/exim-users 
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://www.exim.org/eximwiki/

Reply via email to