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

mox tampering with rfc822 — 0.0.9 #122

Open haraldrudell opened 5 months ago

haraldrudell commented 5 months ago

as of 0.0.9, mox patches up line endings in the rfc822 opaque email byte-sequence — mox CANNOT do this. if a corrupt rfc822 comes in, a corrupt rfc822 should go out — it is value if mox can detect and scrub for stored rfc822 that has been corrupted, using sha256 hashes — mox could return error and output filename and expected hash to the log — mox should also return error if say the ENVELOPE cannot be parsed but should best effort return the rfc 822 bytes