[Dovecot] zlib delivery in 2.0beta6
Hi,
I just wanted to test the zlib plugin in Dovecot 2.0 and have a problem. Delivery via LMTP works fine and the mail is saved compressed.
-rw------- 1 vmail vmail 1012 13. Jun 12:51 1276426292.M93539P15363.mail.svr02.mucip.net,S=2799,W=2850:2, # file 1276426292.M93539P15363.mail.svr02.mucip.net,S=2799,W=2850:2, 1276426292.M93539P15363.mail.svr02.mucip.net,S=2799,W=2850:2,: gzip compressed data, from Unix # zcat 1276426292.M93539P15363.mail.svr02.mucip.net,S=2799,W=2850:2, | wc 51 277 2799
But a client (both Thunderbird and Mutt) cannot access the mail.
Jun 13 12:53:55 mail dovecot: imap-login: Login: user=<bernilrz>, method=PLAIN, rip=2001:a60:f001:1:219:66ff:fe8b:a6e, lip=2001:1b10:1000::110:1:1, mpid=15416, TLS Jun 13 12:53:55 mail dovecot: imap(bernilrz): Error: FETCH [] for mailbox unsorted UID 33930 got too little data: 1018 vs 2850 Jun 13 12:53:55 mail dovecot: imap(bernilrz): Error: Maildir filename has wrong W value: /var/mail/vmail/b/bernilrz/.unsorted/cur/1276426292.M93539P15363.mail.svr02.mucip.net,S=2799,W=2850 Jun 13 12:53:55 mail dovecot: imap(bernilrz): Error: Corrupted index cache file /var/cache/dovecot/b/bernilrz/.unsorted/dovecot.index.cache: Broken virtual size for mail UID 33930 Jun 13 12:53:55 mail dovecot: imap(bernilrz): Disconnected: FETCH failed bytes=124/1952
I figured the cache might just be corrupt and I deleted all cachefiles, but the issue keeps reappearing.
Has anyone done this before?
Config: # 2.0.beta6 (7a02b84ad7f5): /etc/dovecot/dovecot.conf # OS: Linux 2.6.33.4 x86_64 Debian squeeze/sid default_login_user = dovecot disable_plaintext_auth = no listen = 83.170.6.69, 2001:1b10:1000::110:1:1 mail_gid = vmail mail_location = maildir:%h/:INDEX=/var/cache/dovecot/%1n/%n mail_uid = vmail maildir_stat_dirs = yes maildir_very_dirty_syncs = yes passdb { args = /etc/dovecot/dovecot-ldap.conf driver = ldap } plugin { quota = dict:user::file:%h/dovecot-quota quota_rule = *:storage=500M sieve = ~/.dovecot.sieve sieve_dir = ~/sieve zlib_save = gz zlib_save_level = 6 } postmaster_address = postmaster@birkenwald.de protocols = imap pop3 lmtp managesieve quota_full_tempfail = yes service auth { unix_listener /var/spool/postfix-mailout/private/auth { group = postfix mode = 0660 user = postfix } unix_listener /var/spool/postfix/private/auth { group = postfix mode = 0660 user = postfix } unix_listener auth-userdb { group = vmail mode = 0660 } } service lmtp { inet_listener { port = 24 } } service managesieve-login { inet_listener sieve_deprecated { port = 2000 } process_min_avail = 1 } ssl_cert = </etc/ssl/private/pop3.mucip.net.crt ssl_key = </etc/ssl/private/pop3.mucip.net.key userdb { args = /etc/dovecot/dovecot-ldap.conf driver = ldap } verbose_proctitle = yes protocol lda { mail_plugins = sieve quota zlib } protocol imap { imap_idle_notify_interval = 600 s mail_plugins = quota imap_quota zlib } protocol lmtp { mail_plugins = sieve quota zlib } protocol pop3 { mail_plugins = $mail_plugins zlib pop3_uidl_format = %08Xu%08Xv }
Thanks, Bernhard
On Sun, 2010-06-13 at 10:59 +0000, Bernhard Schmidt wrote:
Jun 13 12:53:55 mail dovecot: imap(bernilrz): Error: FETCH [] for mailbox unsorted UID 33930 got too little data: 1018 vs 2850 Jun 13 12:53:55 mail dovecot: imap(bernilrz): Error: Maildir filename has wrong W value: /var/mail/vmail/b/bernilrz/.unsorted/cur/1276426292.M93539P15363.mail.svr02.mucip.net,S=2799,W=2850
Looks like the plugin API change still had a bug in it: http://hg.dovecot.org/dovecot-2.0/rev/07a7d352af66
participants (2)
-
Bernhard Schmidt
-
Timo Sirainen