Re: [exim] ldapm lookup for 'senders =' in redirect router?

Pàgina inicial
Delete this message
Reply to this message
Autor: Martens, Jason
Data:  
A: exim-users
Assumpte: Re: [exim] ldapm lookup for 'senders =' in redirect router?
On Tue, 2005-07-05 at 17:24 +0100, Tony Finch wrote:
> On Tue, 5 Jul 2005, Jason Martens wrote:
>
> > I know that the lookup is working, because I am using the exact same
> > lookup for the data = part, and that works as expected. Here's my
> > router config: [...] If I change senders to "senders =
> > myemail@???", then it works just fine. Any thoughts?
>
> The difference between "senders" and "data" is that the former is a list
> and the latter is not. You need to either double the colons in the lookup,
> or prefix it with <| to change the separator from : to | or you can use
> any other character that doesn't appear in the string.


I thought that might have something to do with the problem, but changing
the separator character doesn't seem to help. Here's the output I'm
getting from exim4 -d -f myemail@??? -bt isdept@???

--------> ldap_test router <--------
local_part=isdept domain=some.domain
checking senders
search_open: ldapm "NULL"
search_find: file="NULL"
key=" user="CN=A user,DC=some,DC=domain" pass="password"
ldap://localhost:1234/DC=some,DC=domain?mail?subtree?(memberOf=CN=A
Group,OU=groups,DC=some,DC=domain)" partial=-1 affix=NULL starflags=0
LRU list:
:/etc/aliases
End
internal_search_find: file="NULL"
type=ldapm key=" user=CN=A user,DC=some,DC=domain" pass="password"
ldap://localhost:1234/DC=local,DC=cityofevanston,DC=org?mail?subtree?(memberOf=CN=A Group,OU=groups,DC=some,DC=domain)"
database lookup required for user="CN=A user,DC=some,DC=domain"
pass="password"
ldap://localhost:1234/DC=local,DC=cityofevanston,DC=org?mail?subtree?(memberOf=CN=Domain IS,OU=groups,DC=local,DC=cityofevanston,DC=org)
LDAP parameters: user=CN=A user,DC=some,DC=domain pass=password size=0
time=0 connect=0 dereference=0
perform_ldap_search: ldapm URL =
"ldap://localhost:1234/DC=local,DC=cityofevanston,DC=org?mail?subtree?(memberOf=CN=A Group,OU=groups,DC=some,DC=domain)" server=NULL port=0 sizelimit=0 timelimit=0 tcplimit=0
after ldap_url_parse: host=localhost port=1234
ldap_initialize with URL ldap://localhost:1234/
initialized for LDAP (v3) server localhost:1234
LDAP_OPT_X_TLS_TRY set
binding with user=CN=A user,DC=some,DC=domain password=password
Start search
ldap_result loop
LDAP entry loop
LDAP attr loop mail:myemail@???
ldap_result loop
LDAP entry loop
LDAP attr loop mail:user1@???
ldap_result loop
LDAP entry loop
LDAP attr loop mail:user2@???
search ended by ldap_result yielding 115
ldap_parse_result: 94
ldap_parse_result yielded 0: Success
LDAP search: returning: myemail@???
user1@???
user1@???


lookup yielded: myemail@???
user1@???
user2@???

address match: subject=myemail@??? pattern=myemail@???
user1@???
user2@???

myemail@??? in "<| myemail@???
user1@???
user2@???"? no (end of list)
ldap_test router skipped: senders mismatch
--------> next_router router <--------