Re: [exim] condition statement within a router not working a…

Startseite
Nachricht löschen
Nachricht beantworten
Autor: Philip Hazel
Datum:  
To: lists
CC: exim-users
Betreff: Re: [exim] condition statement within a router not working as expected
On Fri, 21 Jan 2005 lists@??? wrote:

> Can someone please explain why the following condition statement does
> not appear to evaluate as expected (this condition is located within a
> router):
>
> condition  = "${if and \
>                         { {!eq {$interface_port} {10026} } } \
>                         { { eq {lookup{$local_part@$domain}}
> lsearch{/etc/exim/exim-relay-domains-aliases} } } \
>                         {yes} {no} \
>               }"

>
> where as a condition evaluating the interface_port <> 10026 on its owns
> works perfectly (as does the lookup on its own).


There are too many curly brackets. The syntax for "and" is

and { {condition}{condition} }

You seem to have

  and {  {condition} }  { {condition} } 
                     ^  ^
         Try removing those two.             


-- 
Philip Hazel            University of Cambridge Computing Service,
ph10@???      Cambridge, England. Phone: +44 1223 334714.
Get the Exim 4 book:    http://www.uit.co.uk/exim-book