mdbox attachment errors

Paolo Cravero paolo.cravero at csi.it
Mon Mar 2 08:13:24 UTC 2015


> Il 27 febbraio 2015 alle 18.18 Hardy Flor:

 
> copy file "f6f4f3b882bf3488af632389d4aaba8adc332b12" from backup to 
> "/var/mail/attachments/f6/f4/hashes/f6f4f3b882bf3488af632389d4aaba8adc332b12"
> 
> and create hardlink to 
> "/var/mail/attachments/f6/f4/f6f4f3b882bf3488af632389d4aaba8adc332b12-60ab750a1aa4b554da1600009db5accb"

Sure. That fix restores access to the mailbox/message/attachment. What if
the file disappeared before the backup process copied it? What if 1% of
20'000 users open a ticket a day for the same reason?

But ... why did it disappear at all?


I got the same error on a test environment, where I am learning Dovecot (see
my message sent 26/2/2015 at 14:48 CET). Nobody else has access to my
server. I have not manually deleted files in the SIS partition. With a
little script I ran through my mdbox m.* files, I extracted attachment
hash-filenames and searched for them on the disk: 10 were missing. In some
cases there is no hashes directory at all. Not even the 2nd level base path
( /attachments/a/b/hash .... stops at /attachments/a ). WHY???

Note that depending on how the IMAP client accesses the mailbox folder, you
may be unable to see the whole folder at all! That's the case with
Open-Xchange.

Again: which tests can be run in order to confirm the behaviour and possibly
a bug?
Paolo Cravero


More information about the dovecot mailing list