mjl- / mox

modern full-featured open source secure mail server for low-maintenance self-hosted email
https://www.xmox.nl
MIT License
3.38k stars 89 forks source link

Feature: detect file-system email corruption #124

Open haraldrudell opened 5 months ago

haraldrudell commented 5 months ago

— it is value if mox can detect and scrub for stored rfc822 that has been corrupted, using sha256 hashes scrub would be in the admin interface, just listing what has been corrupted on reading an email for say FETCH and hash is not matching, — mox could return error and — output filename and expected hash to the log

mjl- commented 5 months ago

i want to encrypt all data stored on disk at some point. the scheme would use AEAD, so all reads would detect corruption of stored data.

i also want to compress data. i'll be looking for a scheme that:

it's been a long time since data i read back from the file system was corrupted. in that case, it was a hard drive returning modified bytes at a specific sector. at least that case would be detected, but not repairable.

but perhaps you're thinking about other kinds of corruption you want to detect?