SES SMTP rejects bounce messages from Exim

0

I'm using SES as a smarthost for an Exim mail server. SES SMTP is rejecting bounce messages generated by Exim with this error in the log:

2023-02-26 23:12:34 1pWQC2-004ohJ-24 ** jarle+ln11@jarle.com root@ln11.jarle.com R=send_via_ses T=ses_smtp H=email-smtp.eu-west-1.amazonaws.com [54.155.93.136] X=TLS1.2:ECDHE_SECP256R1__RSA_SHA256__AES_256_GCM:256 CV=yes DN="CN=email-smtp.eu-west-1.amazonaws.com": SMTP error from remote mail server after MAIL FROM:<>: 501 Invalid MAIL FROM address provided

The problems seems to be that the MAIL FROM address is empty ("<>"). But this is correct according to the standard, RFC 1123 section 5.2.9.

Any suggestions on how to handle this?

asked 2 years ago385 views
1 Answer
0

[RFC5321] allows the reverse-path to be null (see Section 4.5.5 in [RFC5321]). In this case, there is no explicit sender mailbox, and such a message can be assumed to be a notification message from the mail system itself. When the reverse-path is null, this document defines the "MAIL FROM" identity to be the mailbox composed of the local-part "postmaster" and the "HELO" identity (which might or might not have been checked separately before). https://www.rfc-editor.org/rfc/rfc7208#section-2.4

So, a null return path is effectively the same as postmaster@HELO, but specifically null to prevent backscatter loops.

SES will rewrite the return path to UUID@MAILFROMdomain for all egressing outbound mail. If you have feedback forwarding configured, any NDRs that flow back to that return path address will be sent to the MAIL FROM address that you specified in the original request. https://docs.aws.amazon.com/ses/latest/dg/monitor-sending-activity-using-notifications-email.html

So, you will want to be sure that feedback does not result in another outbound NDR and cause a loop.

AWS
Jesse_T
answered 2 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions