Re: [Exim] Exim4+LDAP help please (Long )

トップ ページ
このメッセージを削除
このメッセージに返信
著者: Barry Pederson
日付:  
To: Detelin Batchovski
CC: exim-users
題目: Re: [Exim] Exim4+LDAP help please (Long )
Detelin Batchovski wrote:
> Hello Exim-users,
> I need some help with LDAP and Exim4 mail delivery.And I realy can't
> understand what missing.
> Also I try google, and can't find many Exim4+LDAP docs.I found 2 pages
> that help:
> http://www.akbkhome.com/news/LDAP_IMAP.html and
> http://www.exim.org/mailman/htdig/exim-users/Week-of-Mon-20030407/052188
> .html
>
> When I try to test delivery for some user (from LDAP) I get this error:
>
> exim4 -bt test@???
> test@??? is undeliverable: Unrouteable address
>
> I test to query LDAP via PhpLDAPadmin with base="dc=test,dc=com"
> filter="(&(uid=test))" and it return data.
> It seems like Exim can't understand resulsts from LDAP.


I'll take a stab at at this...

Not sure exactly what the recipients are in your sample message, but I'd
guess something like root@??? and test@??? (or maybe @debian.test.com)

Looking your logs, it does seem like the LDAP lookup is working for the
test@??? entry:

> ldap_parse_result yielded 0: Success
> LDAP search: returning: test
> lookup yielded: test


although all your redirect router does is translate "test@???" to just
"test".

Doesn't look like you have a 'root' entry in the LDAP so that's failing, but
it seems to find something for 'root' in '/etc/aliases' to translate it to
just 'test'

My guess is that your Exim doesn't know what to do with the addresses after
the lookups are done. Do you have another router with "driver = accept" and
"transport = local_delivery" to get it to the right place?

    Barry