[Dovecot] dovecot 2.2.0 corrupts mailboxes?

Emmanuel Dreyfus manu at netbsd.org
Wed May 15 20:33:53 EEST 2013


On Wed, May 15, 2013 at 02:50:55PM +0300, Timo Sirainen wrote:
> There are some locking code changes between v2.1 and v2.2, which
> I guess might be buggy. But I can't reproduce any corruption with
> stress testing. What's your doveconf -n output? Are you delivering
> mails via dovecot-lda or something external?

dovecot -n is below. dovecot takes care of delivery, through LMTP.

Additionnal thoughts on possible problems:
- one of the users was using mutt locally and  accessed its mailbox directly
without going through dovecot.
- I experimented dsync replication from another machine that was not
accessible through POP/IMAP/SMTP, perhaps this is what caused chaos?


auth_mechanisms = plain login
disable_plaintext_auth = no
first_valid_uid = 400
mail_location = mbox:~/mail:INBOX=/var/mail/%u:INDEX=/mail/indexes/%u:SUBSCRIPTI
ONS=../.mailboxlist
mbox_very_dirty_syncs = yes
passdb {
  args = max_requests=1 cache_key=%u dovecot
  driver = pam
}
passdb {
  args = /etc/dovecot-ldap.conf
  driver = ldap
}
plugin {
  autosubscribe = INBOX
  quota = fs:User quota
  quota_warning = storage=95%% quota-warning %u
}
quota_full_tempfail = yes
service anvil {
  client_limit = 1639
}
service auth {
  client_limit = 1736
  user = root
}
service imap-login {
  chroot = login
  process_limit = 1024
}
service imap {
  process_limit = 680
}
service lmtp {
  process_min_avail = 5
  unix_listener lmtp {
    group = smmsp
    mode = 0660
  }
}
service pop3-login {
  chroot = login
  process_limit = 512
}
service pop3 {
  process_limit = 680
}
service quota-warning {
  executable = script /usr/local/sbin/morts
  unix_listener quota-warning {
    mode = 0666
  }
  user = root
}
ssl_ca = </etc/openssl/certs/caespci2006.crt
ssl_cert = </etc/openssl/certs/volanges2012tcs-bundle.crt
ssl_key = </etc/openssl/private/volanges2012.key
userdb {
  driver = passwd
}
userdb {
  args = /etc/dovecot-ldap.conf
  driver = ldap
}
protocol imap {
  imap_client_workarounds = delay-newmail tb-extra-mailbox-sep
  mail_max_userip_connections = 8
  mail_plugin_dir = /usr/pkg/lib/dovecot
  mail_plugins = quota imap_quota
}
protocol pop3 {
  mail_max_userip_connections = 2
  mail_plugin_dir = /usr/pkg/lib/dovecot
  mail_plugins = quota
  mbox_dirty_syncs = yes
  pop3_no_flag_updates = no
  pop3_uidl_format = %08Xu%08Xv
}
protocol lmtp {
  mail_plugins = quota
  postmaster_address = postmaster at example.net
}


-- 
Emmanuel Dreyfus
manu at netbsd.org


More information about the dovecot mailing list