Closed pcolmer closed 3 years ago
Closing this as it appears to be an issue with the SES SendRawEmail API. The problem is that, despite specifying the sender and the recipient as part of the API call, the API is still parsing the passed raw message for further headers and then rejecting the message because of the From and To fields found there.
Thanks for following up on this @pcolmer ! ☺️
I'm using aws-smtp-relay in conjunction with postfix on Ubuntu 20.04. I'm testing some new software on the server but I'm seeing a strange issue where SES is rejecting the recipient address for some reason.
Here is a log entry where SES has worked:
and here is one where it has failed:
It seems as if the mail system is trying to send the email to "Philip Colmer \u003cphilip.colmer@linaro.org\u003e" rather than just "philip.colmer@linaro.org", even though the SES log shows the latter, as does postfix:
\u003c is
<
and \u003e is>
, so something seems to be mis-parsing the text but I don't understand how or where.