mail delivery interrupts force-resync

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

mail delivery interrupts force-resync

Felipe Gasper
Hi all,

        We have recently had some power failures have led to corrupt mdbox instances.

        Dovecot’s fsck appears to get caught in a loop when the recipient has a large amount of mail. In the example log output below, each “rebuilding indexes” seems to be interrupted by a new IMAP connection.

        Later, when our folks realized the issue and blocked access to the mailbox, the index rebuild finished in about 90 seconds.

        Is it possible for the fsck to “lock” the mailbox or otherwise protect against this?

        Thank you!

-Felipe Gasper

====================

-
Jan  2 13:15:13 mx1.cpanel.net dovecot: imap([hidden email]): Logged out in=1657, out=9420, bytes=1657/9420
Jan  2 13:15:13 mx1.cpanel.net dovecot: lmtp([hidden email]): Warning: fscking index file /home/cpmailuser/mail/cpanel.net/aaron.stone/storage/dovecot.map.index
Jan  2 13:15:13 mx1.cpanel.net dovecot: lmtp([hidden email]): Warning: fscking index file /home/cpmailuser/mail/cpanel.net/aaron.stone/storage/dovecot.map.index
Jan  2 13:15:13 mx1.cpanel.net dovecot: lmtp([hidden email]): Warning: fscking index file /home/cpmailuser/mail/cpanel.net/aaron.stone/storage/dovecot.map.index
Jan  2 13:15:13 mx1.cpanel.net dovecot: lmtp([hidden email]): Warning: mdbox /home/cpmailuser/mail/cpanel.net/aaron.stone/storage: rebuilding indexes
--
Jan  2 13:15:18 mx1.cpanel.net dovecot: imap([hidden email]): Connection closed (LIST finished 0.121 secs ago) in=56, out=1805, bytes=56/1805
Jan  2 13:15:18 mx1.cpanel.net dovecot: lmtp([hidden email]): Warning: fscking index file /home/cpmailuser/mail/cpanel.net/aaron.stone/storage/dovecot.map.index
Jan  2 13:15:18 mx1.cpanel.net dovecot: lmtp([hidden email]): Warning: mdbox /home/cpmailuser/mail/cpanel.net/aaron.stone/storage: rebuilding indexes
--
Jan  2 13:15:23 mx1.cpanel.net dovecot: imap([hidden email]): Connection closed (UID FETCH finished 0.098 secs ago) in=151, out=1903, bytes=151/1903
Jan  2 13:15:24 mx1.cpanel.net dovecot: lmtp([hidden email]): Warning: fscking index file /home/cpmailuser/mail/cpanel.net/aaron.stone/storage/dovecot.map.index
Jan  2 13:15:24 mx1.cpanel.net dovecot: lmtp([hidden email]): msgid=<[hidden email]>: saved mail to INBOX
Jan  2 13:15:24 mx1.cpanel.net dovecot: lmtp([hidden email]): Warning: fscking index file /home/cpmailuser/mail/cpanel.net/aaron.stone/storage/dovecot.map.index
Jan  2 13:15:24 mx1.cpanel.net dovecot: lmtp([hidden email]): Warning: mdbox /home/cpmailuser/mail/cpanel.net/aaron.stone/storage: rebuilding indexes
--
Jan  2 13:15:26 mx1.cpanel.net dovecot: imap([hidden email]): Logged out in=38, out=535, bytes=38/535
Jan  2 13:15:28 mx1.cpanel.net dovecot: lmtp([hidden email]): Warning: fscking index file /home/cpmailuser/mail/cpanel.net/aaron.stone/storage/dovecot.map.index
Jan  2 13:15:28 mx1.cpanel.net dovecot: lmtp([hidden email]): Warning: mdbox /home/cpmailuser/mail/cpanel.net/aaron.stone/storage: rebuilding indexes
--
Jan  2 13:15:32 mx1.cpanel.net dovecot: imap-login: Login: user=<[hidden email]>, method=PLAIN, rip=208.74.121.106, lip=208.74.121.68, mpid=30642, TLS, session=<g+Ex7M9hSSnQSnlq>
Jan  2 13:15:33 mx1.cpanel.net dovecot: lmtp([hidden email]): Warning: fscking index file /home/cpmailuser/mail/cpanel.net/aaron.stone/storage/dovecot.map.index
Jan  2 13:15:33 mx1.cpanel.net dovecot: lmtp([hidden email]): Warning: fscking index file /home/cpmailuser/mail/cpanel.net/aaron.stone/storage/dovecot.map.index
Jan  2 13:15:33 mx1.cpanel.net dovecot: lmtp([hidden email]): Warning: fscking index file /home/cpmailuser/mail/cpanel.net/aaron.stone/storage/dovecot.map.index
Jan  2 13:15:33 mx1.cpanel.net dovecot: lmtp([hidden email]): Warning: fscking index file /home/cpmailuser/mail/cpanel.net/aaron.stone/storage/dovecot.map.index
Jan  2 13:15:33 mx1.cpanel.net dovecot: lmtp([hidden email]): Warning: mdbox /home/cpmailuser/mail/cpanel.net/aaron.stone/storage: rebuilding indexes
--
Jan  2 13:15:40 mx1.cpanel.net dovecot: imap([hidden email]): Logged out in=38, out=535, bytes=38/535
Jan  2 13:15:40 mx1.cpanel.net dovecot: lmtp([hidden email]): Warning: fscking index file /home/cpmailuser/mail/cpanel.net/aaron.stone/storage/dovecot.map.index
Jan  2 13:15:40 mx1.cpanel.net dovecot: lmtp([hidden email]): Warning: mdbox /home/cpmailuser/mail/cpanel.net/aaron.stone/storage: rebuilding indexes
--
Jan  2 13:15:44 mx1.cpanel.net dovecot: imap-login: Disconnected (auth failed, 2 attempts in 44 secs): user=<[hidden email]>, method=PLAIN, rip=189.4.115.5, lip=208.74.121.68, TLS, session=<OkJJ6s9hM+C9BHMF>
Jan  2 13:15:44 mx1.cpanel.net dovecot: lmtp([hidden email]): Warning: fscking index file /home/cpmailuser/mail/cpanel.net/aaron.stone/storage/dovecot.map.index
Jan  2 13:15:44 mx1.cpanel.net dovecot: lmtp([hidden email]): Warning: fscking index file /home/cpmailuser/mail/cpanel.net/aaron.stone/storage/dovecot.map.index
Jan  2 13:15:44 mx1.cpanel.net dovecot: lmtp([hidden email]): Warning: fscking index file /home/cpmailuser/mail/cpanel.net/aaron.stone/storage/dovecot.map.index
Jan  2 13:15:44 mx1.cpanel.net dovecot: lmtp([hidden email]): Warning: mdbox /home/cpmailuser/mail/cpanel.net/aaron.stone/storage: rebuilding indexes
========================