Re: [Exim] Router condition

Startseite
Nachricht löschen
Nachricht beantworten
Autor: Philip Hazel
Datum:  
To: gARetH baBB
CC: exim-users
Betreff: Re: [Exim] Router condition
On Sat, 27 Mar 2004, gARetH baBB wrote:

> I'm intrigued why
>
>   condition = ${if exists {$home/.bounceptr} {${lookup {$sender_host_name} \
>    nwildlsearch{$home/.bounceptr}{yes}{no}}} }

>
> would cause a remote IP lookup ($sender_host_name) when the first part of
> the condition (if exists) fails - ie. there is no $home/.bounceptr.
>
> The condition doesn't fail or anything wrong, but a lookup is being
> forced.


The string expander is slightly clever in not doing things that don't
need to be done, but not clever enough to spot this one. I have made a
note to see if I can teach it to do better. However, is is now too late
for the next release.

Philip

--
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