[Dovecot] Haha wow, thats freakin cool... mdbox

Daniel Luttermann daniel at dlutt.de
Sun Jul 18 21:05:43 EEST 2010


Stan Hoeppner wrote on 18.07.2010:

> What happens when these indexes become corrupted, get accidentally deleted, or
> have the permissions accidentally changed in a way that they become unreadable
> by Dovecot?  Does Dovecot still report the messages as being in the correct
> folder?

during my tests I've copied and deleted some mails, copied whole
mdbox-files etc. and after some time the IMAP session was dropped by
Dovecot. In the logfile I've found this:

Jul 18 17:36:18 tux dovecot: imap(testuser at dlutt.de): Error: Corrupted transaction log file /home/vmail/dlutt.de/testuser/mdbox/mailboxes/Papierkorb/dbox-Mails/dovecot.index.log seq 2: file size shrank (sync_offset=14724)
Jul 18 17:36:18 tux dovecot: imap(testuser at dlutt.de): Error: Index /home/vmail/dlutt.de/testuser/mdbox/mailboxes/Papierkorb/dbox-Mails/dovecot.index: Lost log for seq=2 offset=14724
Jul 18 17:36:18 tux dovecot: imap(testuser at dlutt.de): Warning: fscking index file /home/vmail/dlutt.de/testuser/mdbox/mailboxes/Papierkorb/dbox-Mails/dovecot.index
Jul 18 17:36:18 tux dovecot: imap(testuser at dlutt.de): Warning: mdbox /home/vmail/dlutt.de/testuser/mdbox/storage: rebuilding indexes
Jul 18 17:36:18 tux dovecot: imap(testuser at dlutt.de): Error: /home/vmail/dlutt.de/testuser/mdbox/mailboxes/INBOX/dbox-Mails/dovecot.index reset, view is now inconsistent
Jul 18 17:36:18 tux dovecot: imap(testuser at dlutt.de): Disconnected: IMAP session state is inconsistent, please relogin. bytes=119/850

After a relogin all mails were available and readable without manually
fixing the index. Don't know if this always successful but it seems
that Dovecot can rebuild the index without problems.

--
Daniel



More information about the dovecot mailing list