[Dovecot] lda+ldap multiple users

matthias lay matthias.lay at securepoint.de
Fri Feb 14 09:49:09 UTC 2014


On 02/14/2014 08:27 AM, Steffen Kaiser wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On Fri, 7 Feb 2014, matthias lay wrote:
>
>> I experienced that if a Mailaddress matches several users the 
>> delivery is aborted.
>>
>> ----------------
>> dovecot: auth: Error: ldap(christian.test at securepoint.de): LDAP 
>> search returned multiple entries
>> dovecot: auth: ldap(christian.test at securepoint.de): unknown user
>> dovecot: lda: Error: user christian.test at securepoint.de: Auth USER 
>> lookup failed
>> -----------------
>>
>> now my question, is there a way to have a mail like that delivered to 
>> all users that matches the lookup?
>> havent found anything in the docs.
>
> This is a job of your MTA.


Hi Steffen,

MTA is qmail and doesnt know anything about users. dovecot uses 
usernames for mailboxes. lets say

/var/mail/userA/Maildir
/var/mail/userB/Maildir

both users have mailaddr XY at example.com mapped in Active Directory. Now 
when mails arrive lda is called like

dovecot-lda -d XY at example.com <mailto:dafan.zhai at securepoint.de> -m INBOX

and theres my problem.






More information about the dovecot mailing list