> > } 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/ ***