I use openLDAP as dovecot pass/user db. here is main part of dovecot-ldap.conf:
pass_attrs = mail=user, uid=userdb_home=/home/xadmin/%d/%$,userPassword=password pass_filter = (&(objectClass=posixAccount)(uid=%u)) default_pass_scheme = SSHA
user_attrs = mail=user, uid=home=/home/xadmin/%d/%$ user_filter = (&(objectClass=posixAccount)(|(mail=%u)(mailAlias=%u)))
It works fine, but some account failed to get their domain in pass_attrs. I check the log. when it success, the result order is "mail, uid, userPassword" when it failed, the order is "userPassword, uid, mail"
we just use a username to login. I think dovecot cant get the domain before username changed to "username@domain". So can dovecot sort the result order and How?
-- 多情卻似總無情, 唯覺尊前笑不成。 蠟燭有心還惜別, 替人垂淚到天明。