Re: [exim] ldap "OR" filter woes

Top Page
Delete this message
Reply to this message
Author: Jan-Piet Mens
Date:  
To: Tom Kinghorn
CC: exim-users
Subject: Re: [exim] ldap "OR" filter woes
> I cannot however get it to work using the ldap "OR" filter.
>
> ldap_mail_deliver:
>         driver  = manualroute
>         transport = remote_smtp
>         route_data = ${lookup ldap \
>                                  {user=LDAPU pass=LDAPP
> LDAPS/BASEDN?mailHost?sub?\
> (|(mail=$local_part@$domain)(mailAlternateAddress=$local_part@$domain))}}

>


That looks ok at first glance. Have you checked your LDAP directory
server logs to see what is being searched for?

Be that as it may, I suggest you quote the values you're passing to the
LDAP search. Here's an example taken from a running configuration.

        (|(mail=${quote_ldap:$local_part@$domain})(alias=${quote_ldap:$local_part}))


Hope that helps,

        -JP