Identifying enveloper recipients (RCPT TO:) with SES Receiving Mail

0

My application receives data via email using SES to SNS to HTTPS sub pipeline. In the POSTed SNS JSON I get the complete message (the contents transacted after the SMTP DATA verb), but I do not see an attribute in the JSON that identifies the envelope recipient(s).

This is critical because some SMTP client implementations batch a message to multiple recipients at the same domain in a single transmittal (Gmail) and some perform an SMTP transaction for each recipient separately (Yahoo).

Identifying the envelope recipient provided with RCPT TO: verb(s) determines the intended recipients for that transaction, irrespective of the destination headers (To:, CC:, and other non-RFC variants).

Without the envelope recipient data in the POST, BCC: deliveries cannot be supported, a lot of fuzzy logic is required to identify duplicate deliveries, and a separate dictionary must be maintained on the callback server to match the "accepted domains" list associated with the SES receiver and prevent attempting to process messages for non-accepted recipient domains.

Has anyone found a solution to this shortcoming?

asked 2 years ago303 views
1 Answer
0

Answer provided by another forum:

The envelope recipients are sent in the POST JSON, receipt.recipients[] attribute.

See https://docs.aws.amazon.com/ses/latest/DeveloperGuide/receiving-email-notifications-contents.html#receiving-email-notifications-contents-receipt-object.

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