[Dovecot] virtual domains/users and LDAP

Timo Sirainen tss at iki.fi
Fri Jan 11 06:37:39 EET 2008


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 at 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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://dovecot.org/pipermail/dovecot/attachments/20080111/287ee89a/attachment.bin 


More information about the dovecot mailing list