> 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

-- 
## List details at https://lists.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/

Reply via email to