Timo wrote:
Have you set default_mail_env, so that Dovecot actually know where the INBOX is supposed to be in? If Dovecot has to do guessing it doesn't guess you want to use /var/mail/user if it doesn't exist.
Yes, the snippet for the test machine looks like this:
default_mail_env = mbox:%h/mail:INBOX=%h/mail/INBOX
This is the result of a test where /home/chibi/mail (and consequently /home/chibi/mail/INBOX did not exist:
Jun 11 10:27:25 nexgen02 pop3-login: Login: chibi [127.0.0.1] Jun 11 10:27:25 nexgen02 pop3(chibi): stat() failed with mbox file /home/chibi/ mail/INBOX: No such file or directory Jun 11 10:27:25 nexgen02 pop3(chibi): stat() failed with mbox file /home/chibi/ mail/INBOX: No such file or directory Jun 11 10:27:25 nexgen02 pop3: I/O leak: 0x8050ce0 (0) Jun 11 10:27:25 nexgen02 pop3: I/O leak: 0x8084aa0 (1) Jun 11 10:27:25 nexgen02 pop3: Timeout leak: 0x8065d30
However it _did_ create the directory and .imap sub-dir:
ls -la /home/chibi/mail/ total 12 drwx--S--- 3 chibi chibi 4096 Jun 11 10:27 . drwxr-sr-x 6 chibi chibi 4096 Jun 11 10:27 .. drwx--S--- 3 chibi chibi 4096 Jun 11 10:27 .imap
Maybe a wrong sequence of check/creation or just not attempting to create the INBOX at all...
But with maildir, it will not even do that, from a test with pop3 and imap login attempts to a freshly created account that had not=20 received any mails yet:
That was quick and painless, thanks a lot. Looking forward to see that in the main code of an upcoming stable version, maybe as a config option for people who prefer crash and burn. ^_^
Regards,
Christian Balzer
Christian Balzer Network/Systems Engineer NOC chibi@gol.com Global OnLine Japan/Fusion Network Services http://www.gol.com/