[Dovecot] cache files corruption

Dmitry Pryadko
Mon, 24 Dec 2007 14:08:22 -0000

Here what one of my users sometimes gets in logs when using IMAP:

dovecot: IMAP(skribtsov at pawlin.mass.hc.ru): Disconnected in IDLE
dovecot: IMAP(skribtsov at pawlin.mass.hc.ru): Maildir
/usr/local/mail/pawlin.mass.hc.ru/skribtsov/Maildir sync: UID inserted
in the middle of mailbox (59 > 16, file =
1198267793.H747026P68033.mail5.hc.ru:2,RS)
dovecot: IMAP(skribtsov at pawlin.mass.hc.ru): Disconnected: Mailbox is in
inconsistent state, please relogin.
dovecot: IMAP(skribtsov at pawlin.mass.hc.ru): Maildir
/usr/local/mail/pawlin.mass.hc.ru/skribtsov/Maildir sync: UID inserted
in the middle of mailbox (59 > 16, file =
1198267793.H747026P68033.mail5.hc.ru:2,RS)
dovecot: IMAP(skribtsov at pawlin.mass.hc.ru): Disconnected: Mailbox is in
inconsistent state, please relogin.
dovecot: IMAP(skribtsov at pawlin.mass.hc.ru): Corrupted transaction log
file
/usr/local/mail/pawlin.mass.hc.ru/skribtsov/Maildir/dovecot.index.log.2:
invalid indexid (1198254020 != 1198498301)
dovecot: IMAP(skribtsov at pawlin.mass.hc.ru): Corrupted index cache file
/usr/local/mail/pawlin.mass.hc.ru/skribtsov/Maildir/dovecot.index.cache:
indexid changed

After that, some messages could "disappear" from messages list. And
then
maybe "appear" again. When I delete dovecot.* files, all goes ok.
I use NFS storage.

BTW, it seems like this problem exists only when working with M$ Outlook :)

# 1.0.5: /usr/local/etc/dovecot.conf
syslog_facility: local7
protocols: imap pop3 imaps pop3s
ssl_cert_file: /etc/ssl/mail5.hc.ru.pem
ssl_key_file: /etc/ssl/mail5.hc.ru.pem
disable_plaintext_auth: no
login_dir: /var/run/dovecot/login
login_executable(default): /usr/local/libexec/dovecot/imap-login
login_executable(imap): /usr/local/libexec/dovecot/imap-login
login_executable(pop3): /usr/local/libexec/dovecot/pop3-login
login_greeting: Mail server ready.
login_greeting_capability(default): yes
login_greeting_capability(imap): yes
login_greeting_capability(pop3): no
login_max_processes_count: 256
max_mail_processes: 2048
verbose_proctitle: yes
first_valid_uid: 90
last_valid_uid: 65000
first_valid_gid: 90
last_valid_gid: 90
mail_extra_groups: mail
mail_location: maildir:~/Maildir
mmap_disable: yes
lock_method: dotlock
mail_executable(default): /usr/local/libexec/dovecot/imap
mail_executable(imap): /usr/local/libexec/dovecot/imap
mail_executable(pop3): /usr/local/libexec/dovecot/pop3
mail_plugins(default): quota imap_quota
mail_plugins(imap): quota imap_quota
mail_plugins(pop3): quota
mail_plugin_dir(default): /usr/local/lib/dovecot/imap
mail_plugin_dir(imap): /usr/local/lib/dovecot/imap
mail_plugin_dir(pop3): /usr/local/lib/dovecot/pop3
imap_client_workarounds(default): delay-newmail outlook-idle
netscape-eoh tb-extra-mailbox-sep
imap_client_workarounds(imap): delay-newmail outlook-idle netscape-eoh
tb-extra-mailbox-sep
imap_client_workarounds(pop3): outlook-idle
pop3_uidl_format(default):
pop3_uidl_format(imap):
pop3_uidl_format(pop3): %08Xu%08Xv
pop3_client_workarounds(default):
pop3_client_workarounds(imap):
pop3_client_workarounds(pop3): outlook-no-nuls oe-ns-eoh
auth default:
  mechanisms: plain login cram-md5
  verbose: yes
  debug: yes
  debug_passwords: yes
  worker_max_count: 150
  passdb:
    driver: sql
    args: /usr/local/etc/dovecot-sql.conf
  userdb:
    driver: prefetch
  userdb:
    driver: sql
    args: /usr/local/etc/dovecot-sql.conf
  socket:
    type: listen
    master:
      path: /var/run/dovecot/auth-master
      mode: 384
      user: vexim
plugin:
  quota: maildir


--
Dmitry Pryadko
http://www.hc.ru

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3225 bytes
Desc: S/MIME Cryptographic Signature
URL:
<http://dovecot.org/pipermail/dovecot/attachments/20071224/a07accbf/attachment-0002.bin>