[Dovecot] FETCH got too little data (+ wrong W value) with 1 byte offset
Hi there,
I juste set up dovecot as local imap server last week, with maildir format. Things went fine with two "low volume" accounts, until I added another one. Then I see two different things with connected clients:
1/ Quite oftent well formed messages that appear... and disappear quite immediately.
On the server, the messages concerned by 2/ seem to be there, I can open the files and it looks ok (header, content).
The only error log I get is this:
2011-03-18 14:43:14 IMAP(info): Info: Disconnected: FETCH failed bytes=109363/174063195 2011-03-18 14:43:14 imap-login: Info: Login: user=<info>, method=PLAIN, rip=192.168.0.191, lip=192.168.0.10, TLS 2011-03-18 14:43:15 IMAP(info): Error: FETCH [] for mailbox Envois UID 11572 got too little data: 63454 vs 63455 2011-03-18 14:43:15 IMAP(info): Error: Maildir filename has wrong W value: /home/info/Maildir/.Envois/cur/1300450349.M120256P3108.Serveurlinux,S=460764,W=460768:2,S 2011-03-18 14:43:15 IMAP(info): Error: Corrupted index cache file /home/info/Maildir/.Envois/dovecot.index.cache: Broken virtual size for mail UID 11572
Please note the size: 63454 vs 63455: it's always like that: one byte difference.
Here is the dovecot -n result:
# 1.2.9: /etc/dovecot/dovecot.conf # OS: Linux 2.6.32-24-generic-pae i686 Ubuntu 10.04.2 LTS ext4 log_path: /home/dovecot.log log_timestamp: %Y-%m-%d %H:%M:%S listen: *:144 ssl_listen: *:10943 login_dir: /var/run/dovecot/login login_executable: /usr/lib/dovecot/imap-login login_process_per_connection: no mail_max_userip_connections: 20 mail_privileged_group: mail mail_location: maildir:/home/%u/Maildir:INBOX=/home/%u/Maildir/ mbox_write_locks: fcntl dotlock auth default: passdb: driver: pam userdb: driver: passwd
The imap client used is thunderbird under windows XP/7. I also reproduced it with opera mail client. I tried to rename/delete dovecot.index.cache files as I have read about it, but doesn't changed anything. The incoming mails are provided to dovecot by procmail, so I think dovecot is responsible for settings the S, W params in the filenames. No other process should alter the messages (i still have to fully check this).
I am a bit lost (not a system administrator at all) and would be grateful for any advice.
Vincent
On 2011-03-18 11:14 AM, Vincent Artzner wrote:
Here is the dovecot -n result:
# 1.2.9: /etc/dovecot/dovecot.conf
Before reporting problems and possibly wasting other people's time, it is generally considered a good idea to upgrade to the current stable release...
In this case, either 1.2.16, or better, 2.0.11...
--
Best regards,
Charles
Well, that make sense... looks like my apt repositories were not up-to-date.
On Fri, Mar 18, 2011 at 4:31 PM, Charles Marcus <CMarcus@media-brokers.com>wrote:
On 2011-03-18 11:14 AM, Vincent Artzner wrote:
Here is the dovecot -n result:
# 1.2.9: /etc/dovecot/dovecot.conf
Before reporting problems and possibly wasting other people's time, it is generally considered a good idea to upgrade to the current stable release...
In this case, either 1.2.16, or better, 2.0.11...
--
Best regards,
Charles
On Fri, 2011-03-18 at 16:14 +0100, Vincent Artzner wrote:
2011-03-18 14:43:15 IMAP(info): Error: Maildir filename has wrong W value: /home/info/Maildir/.Envois/cur/1300450349.M120256P3108.Serveurlinux,S=460764,W=460768:2,S .. The incoming mails are provided to dovecot by procmail, so I think dovecot is responsible for settings the S, W params in the filenames.
Dovecot never changes the base filename (anything before ':'). So if a wrong W value is added by procmail, you either need to fix procmail to set it correctly or to not set it at all.
I haven't found out what caused the change in the base filename. Procmail version is 3.22 which seems to be the last recommanded stable release. However, upgrading to dovecot 2.06 seemed to let the issue disappear. "Wrong w value" files were still there and firing the error, but after deleting them (and reloading the emails from pop and/or client side copy), the error isn't fired anymore (at all).
So i works fine right now.
Maybe this should be asked in another topic, but what is the reason for dovecot version of ubuntu repositories to not be uptodate (1.2.9 as stated in a previous message and confirmed at http://wiki2.dovecot.org/PrebuiltBinaries?highlight=%28ubuntu%29#Ubuntu) ?
Thanks for your responses.
On Mon, Mar 21, 2011 at 6:19 PM, Timo Sirainen <tss@iki.fi> wrote:
On Fri, 2011-03-18 at 16:14 +0100, Vincent Artzner wrote:
2011-03-18 14:43:15 IMAP(info): Error: Maildir filename has wrong W value:
/home/info/Maildir/.Envois/cur/1300450349.M120256P3108.Serveurlinux,S=460764,W=460768:2,S ..
The incoming mails are provided to dovecot by procmail, so I think dovecot is responsible for settings the S, W params in the filenames.
Dovecot never changes the base filename (anything before ':'). So if a wrong W value is added by procmail, you either need to fix procmail to set it correctly or to not set it at all.
On 2011-03-23 5:06 AM, Vincent Artzner wrote:
However, upgrading to dovecot 2.06 seemed to let the issue disappear.
2.0.11 is the current stable release...
Maybe this should be asked in another topic, but what is the reason for dovecot version of ubuntu repositories to not be uptodate
Actually, why distro-x's repo is behind is a question for the distro repo package maintainer, not for the upstream support list.
Ie - go ask the ubuntu dovecot maintainer...
--
Best regards,
Charles
2.0.11 is the current stable release...
Well according to the dovecot wiki link previously posted ( http://wiki2.dovecot.org/PrebuiltBinaries), the "latest Dovecot for latest Ubuntu LTS " can be found at http://codex.xiaoka.com/apt/. That was 2.0.6 when i got it from there a few days ago. Of course one could still get the source to last stable release 2.0.11, no problem, just a little less straightforward... If I get in another trouble I will check last sources first.
participants (3)
-
Charles Marcus
-
Timo Sirainen
-
Vincent Artzner