Re: [EXIM] How to do partial lookups with LDAP ? > > } But t…

Páxina inicial
Borrar esta mensaxe
Responder a esta mensaxe
Autor: Stuart Lynne
Data:  
Para: exim-users
Asunto: Re: [EXIM] How to do partial lookups with LDAP ? > > } But this will only look up the local part. Is it possible to get exim
> > } to try the query again, using '*' for the local part, or do I have to
> > } create another director which is called after the one above ? I can
> > } see the benefits to both approaches, but wanted to clarify the
> > } behaviour first.


Using the queries option for the aliasfile driver should do what you want.

Here is how I do it. First look up the mailforwardingaddress for the user
and if it doesn't exist lookup a generic failure address for the virtual
domain as *@domain.

virtual_fireplug_net_aliasfile_ldap:
  condition = "${if match{$self_hostname}{virtual..fireplug.net}{$domain}}"
  driver = aliasfile;
  search_type = ldap,
  expand,
  errors_to = sl@???
  queries = "ldap:://wilt.fireplug.net/l=yvr?mailforwardingaddress?sub?(&(mail=$local_part@$domain)):\
        ldap:://wilt.fireplug.net/l=yvr?mailforwardingaddress?sub?(&(mail=\\\\2a@$domain))"


-- 
Stuart Lynne <sl@???>      604-461-7532      <http://www.fireplug.net>
PGP Fingerprint: 28 E2 A0 15 99 62 9A 00  88 EC A3 EE 2D 1C 15 68


--
*** Exim information can be found at http://www.exim.org/ ***