[Dovecot] pop3 creates bad index file
Hi,
When I use pop3 to log on to a (Maildir) mailbox that doesn't yet exist in the filesystem, the pop3 server autocreates it for me. This works.
Jun 21 10:50:45 mail-04 dovecot: pop3-login: Login: user=hwx7s@gqh7x.test, method=PLAIN, rip=::ffff:192.168.42.105, lip=::ffff:192.168.42.97 Jun 21 10:50:48 mail-04 dovecot: POP3(hwx7s@gqh7x.test): Disconnected: Logged out top=0/0, retr=0/0, del=0/0, size=0
When I log on a second time, it will complain about UIDVALIDITY that has changed, and will disconnect me:
Jun 21 10:50:52 mail-04 dovecot: pop3-login: Login: user=hwx7s@gqh7x.test, method=PLAIN, rip=::ffff:192.168.42.105, lip=::ffff:192.168.42.97 Jun 21 10:50:52 mail-04 dovecot: POP3(hwx7s@gqh7x.test): Maildir /data/mail/898/gqh7x.test/hwx7s/Maildir sync: UIDVALIDITY changed (1182415845 -> 1182415852) Jun 21 10:50:52 mail-04 dovecot: POP3(hwx7s@gqh7x.test): Disconnected: Mailbox is in inconsistent state. top=0/0, retr=0/0, del=0/0, size=0 Jun 21 10:50:52 mail-04 dovecot: POP3(hwx7s@gqh7x.test): Couldn't init INBOX: Internal error occurred. Refer to server log for more information. [2007-06-21 10:50:52]
When I log on a third time, everything seems to work from the client side, but the server still complains:
Jun 21 10:51:01 mail-04 dovecot: pop3-login: Login: user=hwx7s@gqh7x.test, method=PLAIN, rip=::ffff:192.168.42.105, lip=::ffff:192.168.42.97 Jun 21 10:51:01 mail-04 dovecot: POP3(hwx7s@gqh7x.test): Corrupted index cache file /data/mail/898/gqh7x.test/hwx7s/Maildir/dovecot.index.cache: indexid changed Jun 21 10:51:02 mail-04 dovecot: POP3(hwx7s@gqh7x.test): Disconnected: Logged out top=0/0, retr=0/0, del=0/0, size=0
Fourth (and further) logons work without errors.
When the Maildir is created by imap or deliver, pop3 works fine from the start.
The only real difference I see with idxview between the dovecot.index created by pop3 and one created by imap is that with pop3 sync stamp is 0, and with imap it contains a timestamp.
Onno
On Thu, 21 Jun 2007 11:20:26 +0200 Onno Molenkamp onno@flox.org wrote:
Hi,
When I use pop3 to log on to a (Maildir) mailbox that doesn't yet exist in the filesystem, the pop3 server autocreates it for me. This works.
[...]
I think you're seeing another variant of this bug in action:
http://www.dovecot.org/list/dovecot/2007-May/022677.html
(hurry up Debian package maintainers and bring me 1.0.1 :-p )
Regards,
Christian
Christian Balzer Network/Systems Engineer NOC chibi@gol.com Global OnLine Japan/Fusion Network Services http://www.gol.com/
participants (2)
-
Christian Balzer
-
Onno Molenkamp