[Dovecot] POP3 fails on non-existent inbox
Using the latest RPM (dovecot-0.99.10.5) on Fedora Core 2. I connected to the server by POP3 for a user who'd not yet received email (ever) so she didn't have a spool file in /var/spool/mail, and dovecot was failing on login.
I just tested it by removing my own mailbox and see this in maillog:
pop3-login: Login: ken [127.0.0.1] pop3(ken): stat() failed with mbox file /var/spool/mail/ken: No such file or directory pop3(ken): stat() failed with mbox file /var/spool/mail/ken: No such file or directory pop3: I/O leak: 0x8050c20 (0) pop3: I/O leak: 0x8084b90 (1) pop3: Timeout leak: 0x8065d00
From the client, I enter the USER and PASS command and get:
+OK Logged in. Connection closed by foreign host.
On 13.7.2004, at 04:27, Kenneth Porter wrote:
Using the latest RPM (dovecot-0.99.10.5) on Fedora Core 2. I connected to the server by POP3 for a user who'd not yet received email (ever) so she didn't have a spool file in /var/spool/mail, and dovecot was failing on login.
I just tested it by removing my own mailbox and see this in maillog:
pop3-login: Login: ken [127.0.0.1] pop3(ken): stat() failed with mbox file /var/spool/mail/ken: No such file or directory
Hmm. What do you have in default_mail_env setting? That file should be created automatically, and I couldn't get it to break myself.
Or actually, does the user have access to create new files in /var/spool/mail? Looks like Dovecot doesn't complain if it can't create it. I'll change that.
--On Tuesday, July 13, 2004 1:47 PM +0300 Timo Sirainen tss@iki.fi wrote:
Hmm. What do you have in default_mail_env setting? That file should be created automatically, and I couldn't get it to break myself.
default_mail_env = mbox:~/mail:INBOX=/var/spool/mail/%u
Or actually, does the user have access to create new files in /var/spool/mail? Looks like Dovecot doesn't complain if it can't create it. I'll change that.
No. On Fedora Core 2:
[ken@newred spool]$ ls -ld /var/spool/mail drwxrwxr-x 2 root mail 4096 Jul 13 07:29 /var/spool/mail
On 13.7.2004, at 17:36, Kenneth Porter wrote:
Or actually, does the user have access to create new files in /var/spool/mail? Looks like Dovecot doesn't complain if it can't create it. I'll change that.
No. On Fedora Core 2:
[ken@newred spool]$ ls -ld /var/spool/mail drwxrwxr-x 2 root mail 4096 Jul 13 07:29 /var/spool/mail
Right. Dovecot doesn't really like if INBOX doesn't exist. I don't know if I'll bother fixing it, as it tries to create it anyway and it's pretty much required to be able to do it with IMAP..
Setting "mail_extra_groups = mail" should help.
--On Tuesday, July 13, 2004 6:43 PM +0300 Timo Sirainen tss@iki.fi wrote:
Setting "mail_extra_groups = mail" should help.
I don't see that in dovecot.conf or in any of the files in /usr/share/doc/dovecot-0.99.10.5. Is that an undocumented setting?
On 13.7.2004, at 19:07, Kenneth Porter wrote:
--On Tuesday, July 13, 2004 6:43 PM +0300 Timo Sirainen tss@iki.fi wrote:
Setting "mail_extra_groups = mail" should help.
I don't see that in dovecot.conf or in any of the files in /usr/share/doc/dovecot-0.99.10.5. Is that an undocumented setting?
It was added in 0.99.10.6. Upgrading to 0.99.10.7 would be a good idea anyway.
--On Tuesday, July 13, 2004 7:05 PM +0300 Timo Sirainen tss@iki.fi wrote:
It was added in 0.99.10.6. Upgrading to 0.99.10.7 would be a good idea anyway.
Thanks. Since I'm using Fedora, I'm hoping that will make its way into Rawhide for a semi-official distro update.
participants (2)
-
Kenneth Porter
-
Timo Sirainen