I have two suffixes in LDAP with users, e.g. ou=People, o=example.com ou=People, o=somethingelse.com
I have the following two users: dn: uid=test1, ou=People, o=example.com uid: test1 mail: [EMAIL PROTECTED] dn: uid=test2, ou=People, o=somethingelse.com mail: [EMAIL PROTECTED] uid: test2 The users login to IMAP as: [EMAIL PROTECTED] and [EMAIL PROTECTED] 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=<[EMAIL PROTECTED]>, method=PLAIN, rip=, lip= Jan 3 14:08:12 vds5 dovecot: [ID 107833 mail.info] IMAP([EMAIL PROTECTED]): Effective uid=500, gid=500, home=/var/mail/apps/gmail.com/test Jan 3 14:08:12 vds5 dovecot: [ID 107833 mail.info] IMAP([EMAIL PROTECTED]): maildir: data=/var/mail/apps/gmail.com/test/Maildir ... 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. Any ideas? I am actually surprised that it even let me login with this configuration, something looks odd in this setup. :) Thanks, Anil