I am using dovecot 2.2.13 on a VPS. One (only one!) of the users is experiencing IMAP disconnections. The maillog file is full of errors about corrupted transaction log and index files. The configurations follows: # 2.2.13: /etc/dovecot/dovecot.conf # OS: Linux 2.6.18-028stab107.1 x86_64 CentOS release 6.4 (Final) auth_cache_size = 1 k auth_mechanisms = plain login auth_username_chars "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!#$-=?^_{}~./@+%" disable_plaintext_auth = no namespace { inbox = yes location prefix = INBOX. type = private } passdb { args = /usr/local/cpanel/bin/dovecot-wrap driver = checkpassword } plugin { acl = vfile quota = maildir quota_rule = INBOX.Trash:ignore } protocols = imap service auth { unix_listener auth-client { mode = 0666 } } service imap-login { client_limit = 500 inet_listener imap { address = * } inet_listener imaps { address = * } process_limit = 50 process_min_avail = 5 service_count = 0 vsz_limit = 64 M } service imap { process_limit = 512 vsz_limit = 256 M } service managesieve-login { client_limit = 500 process_limit = 50 process_min_avail = 5 service_count = 0 vsz_limit = 64 M } service managesieve { process_limit = 512 vsz_limit = 256 M } service pop3-login { client_limit = 500 inet_listener pop3 { address = * } inet_listener pop3s { address = * } process_limit = 50 process_min_avail = 5 service_count = 0 vsz_limit = 64 M } service pop3 { process_limit = 512 vsz_limit = 256 M } ssl_cert = </etc/dovecot/ssl/dovecot.crt ssl_cipher_list = ALL:!ADH:RC4+RSA:+HIGH:+MEDIUM:-LOW:-SSLv2:-EXP ssl_key = </etc/dovecot/ssl/dovecot.key userdb { driver = prefetch } userdb { args = /usr/local/cpanel/bin/dovecot-wrap driver = checkpassword } protocol imap { imap_capability = +NAMESPACE imap_idle_notify_interval = 24 mins imap_logout_format = in=%i, out=%o, bytes=%i/%o mail_max_userip_connections = 30 mail_plugins = acl quota imap_quota } protocol pop3 { mail_max_userip_connections = 3 mail_plugins = quota pop3_logout_format = top=%t/%p, retr=%r/%b, del=%d/%m, size=%s, bytes=%i/%o pop3_uidl_format = UID%u-%v } protocol lda { postmaster_address = postmaster at example.com } Can anyone help me on this??? I am about to cry! thank you! Claudio
Philipp Faeustlin
2014-Aug-27 14:55 UTC
Help with transaction log and index file corruption.
Am 27.08.2014 um 16:31 schrieb CLMDRIVE:> I am using dovecot 2.2.13 on a VPS. > One (only one!) of the users is experiencing IMAP disconnections. The > maillog file is full of errors about corrupted transaction log and index > files. > > The configurations follows: > > # 2.2.13: /etc/dovecot/dovecot.conf > # OS: Linux 2.6.18-028stab107.1 x86_64 CentOS release 6.4 (Final) > auth_cache_size = 1 k > auth_mechanisms = plain login > auth_username_chars > "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!#$-=?^_{}~./@+%" > disable_plaintext_auth = no > namespace { > inbox = yes > location > prefix = INBOX. > type = private > } > passdb { > args = /usr/local/cpanel/bin/dovecot-wrap > driver = checkpassword > } > plugin { > acl = vfile > quota = maildir > quota_rule = INBOX.Trash:ignore > } > protocols = imap > service auth { > unix_listener auth-client { > mode = 0666 > } > } > service imap-login { > client_limit = 500 > inet_listener imap { > address = * > } > inet_listener imaps { > address = * > } > process_limit = 50 > process_min_avail = 5 > service_count = 0 > vsz_limit = 64 M > } > service imap { > process_limit = 512 > vsz_limit = 256 M > } > service managesieve-login { > client_limit = 500 > process_limit = 50 > process_min_avail = 5 > service_count = 0 > vsz_limit = 64 M > } > service managesieve { > process_limit = 512 > vsz_limit = 256 M > } > service pop3-login { > client_limit = 500 > inet_listener pop3 { > address = * > } > inet_listener pop3s { > address = * > } > process_limit = 50 > process_min_avail = 5 > service_count = 0 > vsz_limit = 64 M > } > service pop3 { > process_limit = 512 > vsz_limit = 256 M > } > ssl_cert = </etc/dovecot/ssl/dovecot.crt > ssl_cipher_list = ALL:!ADH:RC4+RSA:+HIGH:+MEDIUM:-LOW:-SSLv2:-EXP > ssl_key = </etc/dovecot/ssl/dovecot.key > userdb { > driver = prefetch > } > userdb { > args = /usr/local/cpanel/bin/dovecot-wrap > driver = checkpassword > } > protocol imap { > imap_capability = +NAMESPACE > imap_idle_notify_interval = 24 mins > imap_logout_format = in=%i, out=%o, bytes=%i/%o > mail_max_userip_connections = 30 > mail_plugins = acl quota imap_quota > } > protocol pop3 { > mail_max_userip_connections = 3 > mail_plugins = quota > pop3_logout_format = top=%t/%p, retr=%r/%b, del=%d/%m, size=%s, > bytes=%i/%o > pop3_uidl_format = UID%u-%v > } > protocol lda { > postmaster_address = postmaster at example.com > } > > Can anyone help me on this??? I am about to cry!Don't know, but I can try to give you some information on what I would check. 1. http://wiki2.dovecot.org/Debugging/Rawlog to debug the imap connection, there are probably some more information about the problem of this user. 2. Most of dovecots index files can easily be deleted and dovecot will create new ones of his own. So I would check which files are causing the problems and if it is save to delete them. If it is then delete them and see what happens. Philipp> > thank you! > > Claudio >
dovecot2-2.2.13_3 FreeBSD 9.3 CPU: Intel(R) Celeron(R) CPU E1400 @ 2.00GHz (1995.04-MHz 686-class CPU) Origin = "GenuineIntel" Id = 0x6fd Family = 6 Model = f Stepping = 13 Features=0xbfebfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE> Features2=0xe39d<SSE3,DTES64,MON,DS_CPL,EST,TM2,SSSE3,CX16,xTPR,PDCM> AMD Features=0x20100000<NX,LM> AMD Features2=0x1<LAHF> TSC: P-state invariant, performance statistics real memory = 4294967296 (4096 MB) avail memory = 3131523072 (2986 MB) *Errors like this one were filling my maillog:* Aug 18 14:20:54 darwin dovecot: imap(yvan): Error: posix_fadvise(/home/yvan/.Maildir/cur/1408371037.5419_0.darwin:2,a) failed: Function not implemented Aug 18 14:20:54 darwin dovecot: imap(yvan): Error: posix_fadvise(/home/yvan/.Maildir/cur/1408371653.M92611P3439.darwin,S=44011,W=44796:2,S) failed: Function not implemented Aug 18 14:20:54 darwin dovecot: imap(yvan): Error: posix_fadvise(/home/yvan/.Maildir/cur/1408371653.M92611P3439.darwin,S=44011,W=44796:2,S) failed: Function not implemented This has been happening for at least a year. Other than this error, dovecot appeared to run normally. I finally got it to go away by recompiling with *kqueue *disabled. dovecot -n follows. /(Note OS version is incorrectly reported due to host/jail version mismatch)./ darwin# dovecot -n # 2.2.13: /usr/local/etc/dovecot/dovecot.conf # OS: FreeBSD 9.0-RELEASE-p3 i386 ufs auth_mechanisms = plain login auth_verbose = yes auth_verbose_passwords = plain listen = 67.205.69.28 mail_location = maildir:/home/%n/.Maildir namespace inbox { inbox = yes location mailbox Drafts { special_use = \Drafts } mailbox Junk { special_use = \Junk } mailbox Sent { special_use = \Sent } mailbox "Sent Messages" { special_use = \Sent } mailbox Trash { special_use = \Trash } prefix } passdb { args = dovecot driver = pam } protocols = imap service auth { unix_listener /var/spool/postfix/private/auth { mode = 0666 } } ssl_ca = </usr/local/etc/ssl/chain.pem ssl_cert = </usr/local/etc/ssl/smtp.crt ssl_key = </usr/local/etc/ssl/darwin.key userdb { driver = passwd } verbose_ssl = yes