* Timo Sirainen <t...@iki.fi>:
> On 2.3.2012, at 12.25, Ralf Hildebrandt wrote:
> 
> > Starting with 2.1.1 we suddely encounter quite a lot of these messages:
> > 
> > Mar  2 11:09:28 postamt dovecot: imap(username): Error: Maildir filename 
> > has wrong S value, renamed the file from 
> > /home/a/i/username/Maildir/.A*Teens.Eink&AOQ-ufe, Spenden 
> > etc/cur/1323207735.M64829P19819.postamt.charite.de,S=5137:2,S to 
> > /home/a/i/username/Maildir/.A*Teens.Eink&AOQ-ufe, Spenden 
> > etc/cur/1323207735.M64829P19819.postamt.charite.de,S=5137:2,S
> ..
> > While this has (assumedly) been working with 2.0.18.
> 
> Dovecot v2.0 didn't detect these problems, and might have truncated some 
> mails in some situations.

COuld be!
 
> > Another issue
> > with this: This fixes ONE file, and throws an error. Repeatedly
> > accessing this folder fixes more files, until at some point all files
> > were fixed.
> 
> Right, because after it notices a problem it disconnects the client since it 
> can't really do anything else. Running doveadm fetch for all the mails should 
> fix all of them.

Ah yes, good idea

Mar  2 11:39:39 postamt dovecot: imap-login: Login: user=<user>, method=PLAIN, 
rip=141.42.206.38, lip=141.42.206.36, mpid=28959, secured
Mar  2 11:39:41 postamt dovecot: imap(user): Error: Cached message size smaller 
than expected (168202 < 170440)
Mar  2 11:39:41 postamt dovecot: imap(user): Error: Maildir filename has wrong 
S value, renamed the file from 
/home/g/z/user/Maildir/.Partys/cur/1289296464.M845813P3466.postamt.charite.de,S=168202:2,SZ
to 
/home/g/z/user/Maildir/.Partys/cur/1289296464.M845813P3466.postamt.charite.de,S=168202:2,SZ
Mar  2 11:39:41 postamt dovecot: imap(user): Error: Corrupted index cache file
/home/g/z/user/Maildir/.Partys/dovecot.index.cache: Broken physical size for 
mail UID 81
Mar  2 11:39:41 postamt dovecot: imap(user): Error: 
read(/home/g/z/user/Maildir/.Partys/cur/1289296464.M845813P3466.postamt.charite.de,S=168202:2,SZ)
 failed: Input/output error (uid=81)
Mar  2 11:39:41 postamt dovecot: imap(user): Disconnected: Internal error 
occurred. Refer to server log for more information. [2012-03-02 11:39:41] 
in=735 out=5258

Look at that renaming operation: It simply reused the same name:

from
/home/g/z/user/Maildir/.Partys/cur/1289296464.M845813P3466.postamt.charite.de,S=168202:2,SZ
to
/home/g/z/user/Maildir/.Partys/cur/1289296464.M845813P3466.postamt.charite.de,S=168202:2,SZ

> Alternatively you can just tell Dovecot not to care about it: 
> maildir_broken_filename_sizes=yes. Although you probably can't do that if you 
> have compressed mails.

In the case above that mail was gzipped twice :(

-- 
Ralf Hildebrandt
  Geschäftsbereich IT | Abteilung Netzwerk
  Charité - Universitätsmedizin Berlin
  Campus Benjamin Franklin
  Hindenburgdamm 30 | D-12203 Berlin
  Tel. +49 30 450 570 155 | Fax: +49 30 450 570 962
  ralf.hildebra...@charite.de | http://www.charite.de
            

Reply via email to