Re: [Exim] a condition is doing my head in

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: David Woodhouse
Dátum:  
Címzett: Drav Sloan
CC: exim-users
Tárgy: Re: [Exim] a condition is doing my head in
On Tue, 2004-02-24 at 17:41 +0000, Drav Sloan wrote:
> condition name expected, but found "${lookup {$inter"


${lookup...} returns a string, not a boolean. You actually need a
condition which Exim understands (I think even a lookup or other
expansion which eventually expands to 'false' doesn't work).

> So what craziness do I need to make it work? :)


Maybe something along the lines of (completely untested)...

condition = ${lookup {$interface_address} lsearch{Exim_Tables/aaa_file} \
        {${lookup {$interface_address} lsearch{Exim_Tables/bbb_file} \
            {1} \
            {0} \
        }} \
        {0}}



--
dwmw2