[Dovecot] managesieve error with dovecot

Steffen Kaiser skdovecot at smail.inf.fh-brs.de
Thu Dec 12 14:05:52 EET 2013


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Thu, 12 Dec 2013, saurabh wrote:

> user_attrs =  homeDirectory=/mail/%d/%n/, uidNumber=uid, gidNumber=gid

That's it,

If you want to use a static home dir pattern, write:

user_attrs = =home=/mail/%d/%n/, uidNumber=uid, gidNumber=gid

Note the =home= syntax, one = in front of and one after "home". You said:
"The value of the LDAP attribute homeDirectory is stored in setting
/mail/%d/%n".

If that fails, too, because I do not know, if %d and %n variables
are accepted in that config file, use:

user_attrs = uidNumber=uid, gidNumber=gid

and update the userdb {} setting to:

userdb {
  args = /etc/dovecot/dovecot-ldap.conf.ext
  driver = ldap

   # Default fields can be used to specify defaults that LDAP may override
   default_fields = home=/mail/%d/%n/

}

Note: This time just home=, no = in front of "home".

- -- 
Steffen Kaiser
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)

iQEVAwUBUqmmoF3r2wJMiz2NAQKGbggAjUZMlSDgfeyLha856V+lZhCvS0b66IB7
7ZxP7Jxph3VzfbUUIJ61AjglHSPp4dud+9L5/NK0wJFylPUlqImctHjf3ucTwUmw
TUvLQ6W2Fdu/wiSPd/h48VLuS09vFz760pvuCTUlP9eD3SzokmRatvTwhikcFkSI
LCV2Mekzc/wxVtzcYejmBCnH0q0LMxNN2qN5P+AiSpVuYiTNQM5Dnjf+VfvmV5kl
G2oVVihJ5eZqh4jeQs5XuiR/2cqgAi5lnGQekEBRqr0YEevbHFIlkxlqqx5xk2aV
PqHrkE+f5AaXSCM3b4beScMnEEIhW0Egz//G3xlR3UGg1xF7zPDRDg==
=gdr9
-----END PGP SIGNATURE-----


More information about the dovecot mailing list