I have found the problem that is causing this situation.
While playing with several mail clients, I discovered that mail sent with my desktop client (Thunderbird) encountered the ‘400 Bad Request’, but when I used the web client, the reply came through.
Upon further investigation, I found that Thunderbird somehow switched to Western (Windows-1252) encoding upon replying, while the web client stuck to UTF-8. After forcing Thunderbird to use UTF-8, the mail came through as well.
Thunderbird, mail did not pass
Content-Type: text/plain; charset=windows-1252; format=flowed
Content-Transfer-Encoding: 7bit
Web mail
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 7bit
Thunderbird, mail passed
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
I’d say that mail-receiver needs to do some encoding checking and sanitizing, but I’m no ruby developer, so I’ll hand it over to the devs for that piece of code ![]()