mail delivery interrupts force-resync

Felipe Gasper felipe at felipegasper.com
Mon Jan 8 19:44:56 EET 2018


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(kenp at cpanel.net): Logged out in=1657, out=9420, bytes=1657/9420
Jan  2 13:15:13 mx1.cpanel.net dovecot: lmtp(aaron.stone at cpanel.net): 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(aaron.stone at cpanel.net): 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(aaron.stone at cpanel.net): 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(aaron.stone at cpanel.net): Warning: mdbox /home/cpmailuser/mail/cpanel.net/aaron.stone/storage: rebuilding indexes
--
Jan  2 13:15:18 mx1.cpanel.net dovecot: imap(a.lateef at cpanel.net): 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(aaron.stone at cpanel.net): 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(aaron.stone at cpanel.net): Warning: mdbox /home/cpmailuser/mail/cpanel.net/aaron.stone/storage: rebuilding indexes
--
Jan  2 13:15:23 mx1.cpanel.net dovecot: imap(w.little at cpanel.net): 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(aaron.stone at cpanel.net): 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(aaron.stone at cpanel.net): msgid=<20180102142708.383C9C2042D at hou-1.auth.dns.prod.cpanel.net>: saved mail to INBOX
Jan  2 13:15:24 mx1.cpanel.net dovecot: lmtp(aaron.stone at cpanel.net): 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(aaron.stone at cpanel.net): Warning: mdbox /home/cpmailuser/mail/cpanel.net/aaron.stone/storage: rebuilding indexes
--
Jan  2 13:15:26 mx1.cpanel.net dovecot: imap(rochelemagne at cpanel.net): Logged out in=38, out=535, bytes=38/535
Jan  2 13:15:28 mx1.cpanel.net dovecot: lmtp(aaron.stone at cpanel.net): 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(aaron.stone at cpanel.net): 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=<l.patterson at cpanel.net>, 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(aaron.stone at cpanel.net): 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(aaron.stone at cpanel.net): 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(aaron.stone at cpanel.net): 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(aaron.stone at cpanel.net): 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(aaron.stone at cpanel.net): Warning: mdbox /home/cpmailuser/mail/cpanel.net/aaron.stone/storage: rebuilding indexes
--
Jan  2 13:15:40 mx1.cpanel.net dovecot: imap(michael.karr at cpanel.net): Logged out in=38, out=535, bytes=38/535
Jan  2 13:15:40 mx1.cpanel.net dovecot: lmtp(aaron.stone at cpanel.net): 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(aaron.stone at cpanel.net): 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=<test at cpanel.net>, 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(aaron.stone at cpanel.net): 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(aaron.stone at cpanel.net): 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(aaron.stone at cpanel.net): 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(aaron.stone at cpanel.net): Warning: mdbox /home/cpmailuser/mail/cpanel.net/aaron.stone/storage: rebuilding indexes
========================


More information about the dovecot mailing list