mjl- / mox

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

Sending PDFs via Mox using a plaintext client gives invalid bare carriage return or newline #148

Closed jdlawrie closed 6 months ago

jdlawrie commented 6 months ago

67.txt Trying to send or forward a PDF from a plaintext client (tested examples: Mailmate, Edison) gives:

mox[4935]: l=error m="temporary failure delivering from queue" err="writing message as smtp data: invalid bare carriage return or newline, transient" pkg=queue backoff=14m56s nextattempt=2024-04-01T19:17:10Z cid=18e5dd407f8 from= recipient= attempts=1 msgid=66

It eventually bounces back.

PDF attached. This happens with any PDF, and even with just a subject and body of test.

Unredacted SMTP from the queue (data/queue/a/67) also attached. Foam Roller.pdf

jdlawrie commented 6 months ago

Sorry for the wasted report, I didn't realise I was on an outdated version of Mox. It looks like this happens in 0.9 but is fixed in 0.10.