Michal Soltys
2007-Mar-14 13:36 UTC
[Dovecot] Variable %h not recognized in userdb_mail (passwd-file)
As in subject, if you for instance create a simple passwd-file with: test at domain.tld:{plain}pass:20000:10::/home/regular/.test::userdb_mail=maildir:%h/maildir Dovecot (rc23 & 27) will expand %h to empty string, and try to make a directory under / Mar 14 14:25:28 rasengan dovecot: IMAP(test at domain.tld): mkdir(/maildir/cur) failed: Permission denied Mar 14 14:25:28 rasengan dovecot: IMAP(test at domain.tld): mkdir(/maildir/.Trash/cur) failed: Permission denied ... If tilde is used instead of %h, the expansion works properly. While checking it, I tested other variables (putting aside craziness of using some of them), so summing it up - h,w,i,a,b don't work, all the other ones do. In case %h is not actually intended to work in passwd-files, some wiki examples would have to be adjusted.
Timo Sirainen
2007-Mar-14 14:01 UTC
[Dovecot] Variable %h not recognized in userdb_mail (passwd-file)
On Wed, 2007-03-14 at 14:36 +0100, Michal Soltys wrote:> As in subject, if you for instance create a simple passwd-file with: > > test at domain.tld:{plain}pass:20000:10::/home/regular/.test::userdb_mail=maildir:%h/maildir > > Dovecot (rc23 & 27) will expand %h to empty string, and try to make a > directory under /Looks like the expansion was done too early. Fixed: http://dovecot.org/list/dovecot-cvs/2007-March/008128.html -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part URL: <http://dovecot.org/pipermail/dovecot/attachments/20070314/85ba5a2d/attachment.bin>
Michal Soltys
2007-Mar-14 14:31 UTC
[Dovecot] Variable %h not recognized in userdb_mail (passwd-file)
Timo Sirainen wrote:> On Wed, 2007-03-14 at 14:36 +0100, Michal Soltys wrote: >> As in subject, if you for instance create a simple passwd-file with: >> >> test at domain.tld:{plain}pass:20000:10::/home/regular/.test::userdb_mail=maildir:%h/maildir >> >> Dovecot (rc23 & 27) will expand %h to empty string, and try to make a >> directory under / > > Looks like the expansion was done too early. Fixed: > http://dovecot.org/list/dovecot-cvs/2007-March/008128.htmlNow dovecot both expands %h and treats it literally, creating following directory: /home/regular/.test/%h/maildir Assuming passwd-file as previously.
Reasonably Related Threads
- flock problems with index files and passwd-file
- Could not override "mail_location" with "userdb_mail" statment in "/etc/passwd"
- Userdb userdb_mail=, error Mailbox list driver maildir++: maildir_name not supported by this driver
- Userdb userdb_mail=, error Mailbox list driver maildir++: maildir_name not supported by this driver
- Userdb userdb_mail=, error Mailbox list driver maildir++: maildir_name not supported by this driver