[dovecot] Failed to create storage with data: ::
# dovecot.conf: protocols = imaps login = imap login_user = mail default_mail_env = maildir:%h/ auth = default auth_mechanisms = plain auth_userdb = passwd-file /tmp/imap.passwd auth_passdb = passwd-file /tmp/imap.passwd auth_user = mail auth_verbose = yes
In the log files I get: Mar 15 23:36:30 pos dovecot: Dovecot starting up Mar 15 23:36:37 pos imap-login: Login: testuser [10.0.66.1] Mar 15 23:36:37 pos imap(testuser): Failed to create storage with data: :: Mar 15 23:36:37 pos dovecot: child 23150 (imap) returned error 89
A typical entry in the imap.passwd: testuser:<md5>[34]:12345:12345::/some/home/directory/testuser:0::
-- Jesse Peterson / jesse@pixeltechs.com
On Sun, 2003-03-16 at 09:43, Jesse Peterson wrote:
Mar 15 23:36:37 pos imap(testuser): Failed to create storage with data: :: Mar 15 23:36:37 pos dovecot: child 23150 (imap) returned error 89
A typical entry in the imap.passwd: testuser:<md5>[34]:12345:12345::/some/home/directory/testuser:0::
Bug, fixed. You could also just remove the last two ':' characters.
On Sun, 2003-03-16 at 09:43, Jesse Peterson wrote:
Mar 15 23:36:37 pos imap(testuser): Failed to create storage with data: :: Mar 15 23:36:37 pos dovecot: child 23150 (imap) returned error 89
A typical entry in the imap.passwd: testuser:<md5>[34]:12345:12345::/some/home/directory/testuser:0::
passwd-file parser was buggy, fixed. You could also remove the last two ':' chars to fix it.
I may have, but I constructed the file to the spec @:
http://dovecot.procontrol.fi/doc/auth.txt
=)
Timo Sirainen wrote:
passwd-file parser was buggy, fixed. You could also remove the last two ':' chars to fix it.
Hrm, I got the new files from CVS, but still: Mar 16 16:19:08 pos imap(testuser): Failed to create storage with data: : Mar 16 16:19:08 pos dovecot: child 24513 (imap) returned error 89
(note: one colon instead of two) So I have to ask, is this still the correct usage:
user:password:uid:gid:(gecos):home:(shell):flags:mail (from http://dovecot.procontrol.fi/doc/auth.txt)
Or are flags and mail not used? How exactly is mail supposed to function and related to home?
Timo Sirainen wrote:
On Sun, 2003-03-16 at 09:43, Jesse Peterson wrote:
Mar 15 23:36:37 pos imap(testuser): Failed to create storage with data: :: Mar 15 23:36:37 pos dovecot: child 23150 (imap) returned error 89
A typical entry in the imap.passwd: testuser:<md5>[34]:12345:12345::/some/home/directory/testuser:0::
passwd-file parser was buggy, fixed. You could also remove the last two ':' chars to fix it.
-- Jesse Peterson / jesse@pixeltechs.com
On Mon, 2003-03-17 at 02:24, Jesse Peterson wrote:
Hrm, I got the new files from CVS, but still: Mar 16 16:19:08 pos imap(testuser): Failed to create storage with data: : Mar 16 16:19:08 pos dovecot: child 24513 (imap) returned error 89
(note: one colon instead of two) So I have to ask, is this still the correct usage:
user:password:uid:gid:(gecos):home:(shell):flags:mail (from http://dovecot.procontrol.fi/doc/auth.txt)
Hmm. Strange. It is correct, and this works with me:
cras:{md5}$1$foo$A63FZiSi5N4yna6JuqND//:1000:1000::/home/cras:::
mail field is a bit special because it needs ':' characters itself, that's why I don't just stop parsing if there's extra ':' characters at end.
Or are flags and mail not used? How exactly is mail supposed to function and related to home?
Either you give home or mail. mail can specify exactly where the mail is, home is used just for autodetection. So you could give each user different location for their mails, eg.:
user1:....:mbox:~/mail:INBOX=/var/mail/user1 user2:....:mbox:~/Mail user3:....:Maildir:~/Maildir
Autodetection seems to work pretty well so it's not usually needed.
I found the problem. It seems as though my older dovecot installation had passwd-file entries that looked like this:
testuser:<snip>:12345:12345::/mailhome/testuser:0:::
Note extra 0. Snipping the 0 and a colon makes everything happy.
Timo Sirainen wrote:
On Mon, 2003-03-17 at 02:24, Jesse Peterson wrote:
Hrm, I got the new files from CVS, but still: Mar 16 16:19:08 pos imap(testuser): Failed to create storage with data: : Mar 16 16:19:08 pos dovecot: child 24513 (imap) returned error 89
(note: one colon instead of two) So I have to ask, is this still the correct usage:
user:password:uid:gid:(gecos):home:(shell):flags:mail (from http://dovecot.procontrol.fi/doc/auth.txt)
Hmm. Strange. It is correct, and this works with me:
cras:{md5}$1$foo$A63FZiSi5N4yna6JuqND//:1000:1000::/home/cras:::
mail field is a bit special because it needs ':' characters itself, that's why I don't just stop parsing if there's extra ':' characters at end.
Or are flags and mail not used? How exactly is mail supposed to function and related to home?
Either you give home or mail. mail can specify exactly where the mail is, home is used just for autodetection. So you could give each user different location for their mails, eg.:
user1:....:mbox:~/mail:INBOX=/var/mail/user1 user2:....:mbox:~/Mail user3:....:Maildir:~/Maildir
Autodetection seems to work pretty well so it's not usually needed.
-- Jesse Peterson / jesse@pixeltechs.com
participants (2)
-
Jesse Peterson
-
Timo Sirainen