[Dovecot] 2.1: Error: Maildir filename has wrong S value, renamed the file from

Timo Sirainen tss at iki.fi
Fri Mar 2 12:37:06 EET 2012


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.

> 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.

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.



More information about the dovecot mailing list