On Thu, 2008-01-03 at 14:28 -0800, Anil wrote:
Here's an (excerpt) of the dovecot.conf file I am using:
auth_bind = yes base = ou=People,o=%d scope = onelevel
pass_attrs = mail=user pass_filter = (uid=%n)
userdb static { args = uid=vmail gid=vmail home=/var/mail/apps/%d/%n }
The problem I am seeing when the user logs in, the home dir is getting created incorrectly:
Jan 3 14:08:12 vds5 dovecot: [ID 107833 mail.info] imap-login: Login: user=test@gmail.com, method=PLAIN, rip=, lip=
Apparently the bind succeeds with the ou=People,o=gmail.com. auth_debug=yes might show something useful.
Or have you enabled auth cache? v1.0.10 fixed a bug related to this.
I was expecting it to create the home dir under: /var/mail/apps/example.com/test1, since that is what they are logging in with.
They're logging in with gmail.com domain, so it creates gmail.com.