Re: [exim] ldap "OR" filter woes

トップ ページ
このメッセージを削除
このメッセージに返信
著者: Jan-Piet Mens
日付:  
To: Tom Kinghorn
CC: exim-users
題目: 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