[exim] EXIM mail-aliase with ldap-lookup

Startseite
Nachricht löschen
Nachricht beantworten
Autor: Stan
Datum:  
To: exim-users @ exim. org
Betreff: [exim] EXIM mail-aliase with ldap-lookup
Hallo list.

Have a problem with mail delivery with exim on more as one users.
My configuration:

Exim asks LDAP for local-mails like this:
-----------------------------------------
*SNIP*
begin routers

localuser:
driver = accept
hide condition = ${lookup ldap{user="cn=servers,dc=mydc,dc=de"
pass=secret \
ldaps://ldap-m.bln.myserver.de/ou=bln,ou=People,dc=mydc,dc=de?mail?sub?(uid=${lc:$local_part})}{yes}{no}}
# driver = accept
transport = local_delivery_cyrus


system_aliases:
driver = redirect
allow_fail
allow_defer
hide data = ${lookup ldap{user="cn=servers,dc=mydc,dc=de" pass=secret \
ldaps://ldap-m.bln.myserver.de/ou=bln,ou=People,dc=mydc,dc=de?uid?sub?\
(mail=${lc:$local_part}@$domain)}}
user = mail
file_transport = address_file
pipe_transport = address_pipe

begin transports

local_delivery_cyrus:
driver = pipe
command = /usr/cyrus/bin/deliver -m ${substr_1:$local_part_suffix} --
$local_part
user = cyrus
group = mail
return_output
log_output
message_prefix =
message_suffix =
*SNIP*


I have some users with a same email-adresses but with different
mailboxes. If i send a mail on some of this "specific" adresses, exim says :

*snip*
2006-01-26 17:41:47 H=client235.bln.myserver.de [10.1.2.235] U=1000
F=<stan@???> temporarily rejected RCPT
<test@???>: LDAP search: more than one entry (2) was
returned (filter not specific enough?)
*snip*

What i will, ist to deliver incomming mails to any mailboxes, which have
this mail-adress in LDAP.
I understend, that this is possibly not a right list to post problems
like this, but if anybody can help me, I'll be realy happy.


Regards
Stan