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?

已提問 1 年前檢視次數 285 次
1 個回答
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
已回答 1 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南