Re: [Exim] dynamically selecting transport

Pàgina inicial
Delete this message
Reply to this message
Autor: Hans-Peter Zahno
Data:  
A: Philip Hazel
CC: Hans-Peter Zahno, exim-users
Assumpte: Re: [Exim] dynamically selecting transport
> On Wed, 11 Apr 2001, Hans-Peter Zahno wrote:
>
> > I did some tests using the following domainlist router, but I still have
> > problems with correctly using route_query and setting the option 'byname':
> >
> > exchange_route:
> > driver = domainlist
> > domains = unifr.ch
> > transport = remote_smtp
> > search_type = ldap
> > route_query = ldap:///ou=persons,ou=ufdir,dc=unifr,dc=ch?mailhost?sub?(mail=$local_part@???)
>
> > I would like to set the 'byname' option.
> > If you could point me in the right direction, Thanks
>
> Instead of route_query and search_type, set
>
> route_list = * ldap;xxxx byname
>
> where xxxx is the LDAP query (including the leading "ldap:").
>


It seems, that the expnasion of the hostlist-string doesn't do the lookup:
I set

 route_list = * ldap;;ldap:///ou=persons,ou=ufdir,dc=unifr,dc=ch?mailhost?sub?(mail=$local_part@???) byname
                    ^
                    note the doubled semicolon!


but the debug output showed the following:

...
exchange_route router called for hans-peter.zahno@???
route_domain = unifr.ch
routelist_item = * ldap;ldap:///ou=persons,ou=ufdir,dc=unifr,dc=ch?mailhost?sub?(mail=$local_part@???) byname
after handling route_lists items, matched = 1
original hostlist=ldap;ldap:///ou=persons,ou=ufdir,dc=unifr,dc=ch?mailhost?sub?(mail=$local_part@???) options=byname
expanded hostlist="ldap;ldap:///ou=persons,ou=ufdir,dc=unifr,dc=ch?mailhost?sub?(mail=hans-peter.zahno@???)" options=byname
exchange_route router: error for unifr.ch
message: lookup of host "ldap;ldap" failed in exchange_route router
search_tidyup called
hans-peter.zahno@??? cannot be resolved at this time:
lookup of host "ldap;ldap" failed in exchange_route router
...

Regards
Hans-Peter Zahno