Re: [exim] LDAP, multiple results ?!

Top Pagina
Delete this message
Reply to this message
Auteur: Christiaan den Besten
Datum:  
Aan: Brian Candler
CC: exim-users
Onderwerp: Re: [exim] LDAP, multiple results ?!
You just so made my day!

Thanx!

bye,
Chris

----- Original Message -----
From: "Brian Candler" <B.Candler@???>
To: "Christiaan den Besten" <chris@???>
Cc: <exim-users@???>
Sent: Wednesday, April 06, 2005 2:01 PM
Subject: Re: [exim] LDAP, multiple results ?!


> On Wed, Apr 06, 2005 at 01:41:00PM +0200, Christiaan den Besten
> wrote:
>> >Personally, I'd just do two LDAP lookups: one looking for
>> >$local_part@$domain, and if that fails, a subsequent one for
>> >[catchall]@$domain. If you make the assumption that most
>> >incoming
>> >mail will
>> >hit a specific user entry rather than the catchall, then you are
>> >not
>> >suffering a big performance hit.
>>
>> How can one use a 'or' in a data line ?
>>
>> like
>>
>> data = ${ or {
>>                    ${ lookup recient }
>>                    ${ lookup catch-all }
>>           }

>>
>> That is what you mean don't you ?
>
> ${lookup {whatever} foosearch {$value} {failvalue}}
>
> Replace 'failvalue' with another ${lookup....} expression using
> the second
> key.
>
>
>