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

Αρχική Σελίδα
Delete this message
Reply to this message
Συντάκτης: David Woodhouse
Ημερομηνία:  
Προς: Drav Sloan
Υ/ο: exim-users
Αντικείμενο: 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