Re: [Exim] LDAP query failures

Página Inicial
Delete this message
Reply to this message
Autor: Philip Hazel
Data:  
Para: Jeff
CC: exim-users
Assunto: Re: [Exim] LDAP query failures
On Wed, 4 Apr 2001, Jeff wrote:

> I'm seeing messages of the type -
>
>
> "ldap://localhost/?ispMailbox?sub?(mail=mary@???;bruno@anotherdomai
> n.com;tract@???)" gave DEFER: ldap search failed: ()
>
> in the exim panic log. These messages are obviously failing because they
> are invalid requests as the request should be a lookup for a single mailbox
> not a list. How is this sort of query appearing as exim will reject this
> sort of input to a RCPT TO command.


How is this query generated? I'm guessing that you've got something like

...(mail=$local_part@$domain)...

in the original text. Is this right? Where are you using this query?

I can see one way it might arise:

RCPT TO:<"mary@???>

I have only recently realized that the manual is not very clear in
describing what value you actually get in $local_domain. The value is
dequoted, so that, for example, "x@y"@z and x\@y@z give rise to the
same local part (namely x@y). It's a good idea to use

${quote:$local_part}@$domain

in places where special characters in the local part might cause
problems.

-- 
Philip Hazel            University of Cambridge Computing Service,
ph10@???      Cambridge, England. Phone: +44 1223 334714.