On Fri, 2010-01-22 at 16:42 +0100, [email protected] wrote: > currently im using: > user_attrs = homeDirectory=home,uid=mail=maildir:/mail/%$ > user_filter = > (&(objectClass=gosaMailAccount)(|(mail=%u)(gosaMailAlternateAddress=%u))) > to match the mailaddress and deliver the mail to the users homdir > (/mail/uid_of_the_user) > > But i cant login to dovecot: > pass_attrs = uid=user,userPassword=password > pass_filter = (&(objectClass=gosaMailAccount)(uid=%u))
passdb lookup succeeds, because uid=%u matches. But then you're doing a userdb lookup from mail or gosaMailAlternateAddress, instead of from uid field like with passdb. Two possibilities I guess: a) add |(uid=%u) to user_filter b) Change username to gosaMailAccount's value in passdb lookup, by using: pass_attrs = gosaMailAccount=user,userPassword=password Dunno which one would be correct in your case.
signature.asc
Description: This is a digitally signed message part
