[Dovecot] Mailbox is in inconsistent state
Running on Fedora 7, error happening on both Dovecot 1.05, and now that I upgraded to 1.07, same thing occurs.
dovecot -n
# 1.0.7: /etc/dovecot.conf login_dir: /var/run/dovecot/login login_executable(default): /usr/libexec/dovecot/imap-login login_executable(imap): /usr/libexec/dovecot/imap-login login_executable(pop3): /usr/libexec/dovecot/pop3-login mail_executable(default): /usr/libexec/dovecot/imap mail_executable(imap): /usr/libexec/dovecot/imap mail_executable(pop3): /usr/libexec/dovecot/pop3 mail_plugin_dir(default): /usr/lib/dovecot/imap mail_plugin_dir(imap): /usr/lib/dovecot/imap mail_plugin_dir(pop3): /usr/lib/dovecot/pop3 auth default: passdb: driver: pam userdb: driver: passwd
Email client(s): Eudora 7.0.1 on XP and 6.2.x on NT both do the same thing.
Protocol: POP3
Symptom:
1 - On Linux, fetchmail is bringing mail down from ISP and running it through SpamAssasin to remove spam.
2 - Still on Linux, I use Pine 4.64 to manually remove any spam or viruses not caught by SA. Exit Pine.
3 - On windoze, with Eurora, check for new mail, "ERR Mailbox is in inconsistent state, please relogin"
4 - Check for new mail second time, works perfectly.
5 - Use Pine again with new mail having arrived, same error occurs.
6 - Do not use Pine in between and error does not occur.
I have tried searching the mailing list archives for this error, but it only is mentioned in conjunction with IMAP. Noticed that UIDs of some value can cause the problem. My actual user IDs start with 500, which according to dovecot.conf is the default allowable. I have made no changes to dovecot.conf at all.
I also tried looking at the log, but it appears to be a binary (located in /home/<username>/mail/.imap/INBOX/dovecot.index.log) not a readable text file.
thanks, dion
-- Dion Hollenbeck Email: hollen@woodsprite.com Home Page: http://www.woodsprite.com Brewing Page: http://hbd.org/hollen Toys: 98 4Runner, 86 4x4 PU
On Tue, 2007-11-20 at 17:30 -0700, Dion Hollenbeck wrote:
3 - On windoze, with Eurora, check for new mail, "ERR Mailbox is in inconsistent state, please relogin"
There should be something in log files.
I also tried looking at the log, but it appears to be a binary (located in /home/<username>/mail/.imap/INBOX/dovecot.index.log) not a readable text file.
You're looking into wrong place. :) See http://wiki.dovecot.org/Logging
At 06:28 AM 11/26/2007, Timo Sirainen wrote:
On Tue, 2007-11-20 at 17:30 -0700, Dion Hollenbeck wrote:
3 - On windoze, with Eurora, check for new mail, "ERR Mailbox is in inconsistent state, please relogin"
There should be something in log files.
I also tried looking at the log, but it appears to be a binary (located in /home/<username>/mail/.imap/INBOX/dovecot.index.log) not a readable text file.
You're looking into wrong place. :) See http://wiki.dovecot.org/Logging
Here is the actual log entries when the failure happens:
Nov 26 10:26:47 parrot dovecot: pop3-login: Login: user=<hollen>, method=PLAIN, rip=::ffff:192.168.1.104, lip=::ffff:192.168.1.101 Nov 26 10:26:47 parrot dovecot: POP3(hollen): UIDVALIDITY changed (1196019076 -> 1196097977) in mbox file /var/mail/hollen Nov 26 10:26:47 parrot dovecot: POP3(hollen): Disconnected: Mailbox is in inconsistent state. top=0/0, retr=0/0, del=0/0, size=0 Nov 26 10:26:47 parrot dovecot: POP3(hollen): Couldn't init INBOX: Can't sync mailbox: Messages keep getting expunged Nov 26 10:26:49 parrot dovecot: pop3-login: Login: user=<hollen>, method=PLAIN, rip=::ffff:192.168.1.104, lip=::ffff:192.168.1.101 Nov 26 10:26:53 parrot dovecot: POP3(hollen): Disconnected: Logged out top=0/0, retr=7/28936, del=7/7, size=28817
Previous info for context:
Running on Fedora 7, error happening on both Dovecot 1.05, and now that I upgraded to 1.07, same thing occurs.
dovecot -n
# 1.0.7: /etc/dovecot.conf login_dir: /var/run/dovecot/login login_executable(default): /usr/libexec/dovecot/imap-login login_executable(imap): /usr/libexec/dovecot/imap-login login_executable(pop3): /usr/libexec/dovecot/pop3-login mail_executable(default): /usr/libexec/dovecot/imap mail_executable(imap): /usr/libexec/dovecot/imap mail_executable(pop3): /usr/libexec/dovecot/pop3 mail_plugin_dir(default): /usr/lib/dovecot/imap mail_plugin_dir(imap): /usr/lib/dovecot/imap mail_plugin_dir(pop3): /usr/lib/dovecot/pop3 auth default: passdb: driver: pam userdb: driver: passwd
thanks, dion
-- Dion Hollenbeck Email: hollen@woodsprite.com Home Page: http://www.woodsprite.com Brewing Page: http://hbd.org/hollen Toys: 98 4Runner, 86 4x4 PU
On 26.11.2007, at 18.50, Dion Hollenbeck wrote:
lip=::ffff:192.168.1.101 Nov 26 10:26:47 parrot dovecot: POP3(hollen): UIDVALIDITY changed
(1196019076 -> 1196097977) in mbox file /var/mail/hollen
I think there's a problem with mailbox autodetection. If /var/mail/ hollen file ever gets deleted, Dovecot fallbacks to using ~/mail/ inbox. Set explicitly:
mail_location = mbox:~/mail:INBOX=/var/mail/%u
That hopefully fixes this.
At 11:50 AM 11/26/2007, Timo Sirainen wrote:
On 26.11.2007, at 18.50, Dion Hollenbeck wrote:
lip=::ffff:192.168.1.101 Nov 26 10:26:47 parrot dovecot: POP3(hollen): UIDVALIDITY changed (1196019076 -> 1196097977) in mbox file /var/mail/hollen
I think there's a problem with mailbox autodetection. If /var/mail/ hollen file ever gets deleted, Dovecot fallbacks to using ~/mail/ inbox. Set explicitly:
mail_location = mbox:~/mail:INBOX=/var/mail/%u
That hopefully fixes this.
That did not fix it. Thanks anyway.
dion
-- Dion Hollenbeck Email: hollen@woodsprite.com Home Page: http://www.woodsprite.com Brewing Page: http://hbd.org/hollen Toys: 98 4Runner, 86 4x4 PU
On Mon, 2007-11-26 at 15:54 -0700, Dion Hollenbeck wrote:
At 11:50 AM 11/26/2007, Timo Sirainen wrote:
On 26.11.2007, at 18.50, Dion Hollenbeck wrote:
lip=::ffff:192.168.1.101 Nov 26 10:26:47 parrot dovecot: POP3(hollen): UIDVALIDITY changed (1196019076 -> 1196097977) in mbox file /var/mail/hollen
I think there's a problem with mailbox autodetection. If /var/mail/ hollen file ever gets deleted, Dovecot fallbacks to using ~/mail/ inbox. Set explicitly:
mail_location = mbox:~/mail:INBOX=/var/mail/%u
That hopefully fixes this.
That did not fix it. Thanks anyway.
Oh, now I notice you mentioned you use Pine to access the mailbox directly. That explains the error, since it uses the same headers as Dovecot. But I don't know why Pine would change the UIDVALIDITY, since it should be compatible with how Dovecot uses it..
One solution at least would be to make Pine access the mailbox via IMAP instead of doing it directly.
participants (2)
-
Dion Hollenbeck
-
Timo Sirainen