On Tue, 2009-11-24 at 15:03 +0100, Thorsten Habich wrote:
Hi there, I'm trying to let dovecot generate the userhome directory dynamicly via user_attr. If "uid" is returned from LDAP before "mail" everything is fine, but if "mail" is delivered before "uid" the localpart of the mailaddress is used in home path.
e.g.: Mail: testuser@domain.de UID : test123
sometimes home is /mail/store/testuser and sometimes /mail/store/test123 depending on the order the ldap server replies.
I don't think there's a good way to solve this currently.
pass_attrs = uid=user,userPassword=password,mailMessageStore=home=%$/telefonica.de/%Ln,mailFilterStore=sieve_dir=%$/telefonica.de/%Ln
Do mailMessageStore and mailFilterStore return different directories? If not, maybe you could just put those settings into plugin {} section. Then the %Ln is guaranteed to be what you want.