Open arunmr1980 opened 2 years ago
Test the bounce notifications using the Amazon SES mailbox simulator (https://docs.aws.amazon.com/ses/latest/DeveloperGuide/send-email-simulator.html)
[INFO] 2022-04-19T05:45:41.527Z c7e36171-bb15-42ac-8b2f-ccb27b0f801a {'ResponseMetadata': {'RequestId': '5d16a70e-8711-4c88-af64-2ca267f08c65', 'HTTPStatusCode': 200, 'HTTPHeaders': {'date': 'Tue, 19 Apr 2022 05:45:41 GMT', 'content-type': 'application/json', 'content-length': '2', 'connection': 'keep-alive', 'x-amzn-requestid': '5d16a70e-8711-4c88-af64-2ca267f08c65'}, 'RetryAttempts': 0}} | [INFO] 2022-04-19T05:45:41.527Z c7e36171-bb15-42ac-8b2f-ccb27b0f801a {'ResponseMetadata': {'RequestId': '5d16a70e-8711-4c88-af64-2ca267f08c65', 'HTTPStatusCode': 200, 'HTTPHeaders': {'date': 'Tue, 19 Apr 2022 05:45:41 GMT', 'content-type': 'application/json', 'content-length': '2', 'connection': 'keep-alive', 'x-amzn-requestid': '5d16a70e-8711-4c88-af64-2ca267f08c65'}, 'RetryAttempts': 0}}
Yes, This seem to result in a bounce though it does not count against accounts bounce rate.
According to this knowledge center article, the following error message is supposed to show
"Amazon SES did not send the message to this address because it is on the suppression list for your account. For more information about removing addresses from the suppression list, see the Amazon SES Developer Guide at https://docs.aws.amazon.com/ses/latest/DeveloperGuide/sending-email-suppression-list.html"
However this does not happen on testing. Documentation in other places seem to suggest that email to suppressed email ids is a successful send event. So an error is not expected.
Documentation regarding account level suppression list mention the following.
If you attempt to send a message to an address that's on your account-level suppression list, SES accepts the message, but doesn't send it.
Documentation regarding monitoring emails define send event as follows.
Send – The send request was successful and Amazon SES will attempt to deliver the message to the recipient’s mail server. (If account-level or global suppression is being used, SES will still count it as a send, but delivery is suppressed.)
boto3 documentation does not have a message field in its response.
Resources
Using the Amazon SES account-level suppression list : https://docs.aws.amazon.com/ses/latest/dg/sending-email-suppression-list.html
Handling high bounce rates. https://aws.amazon.com/premiumsupport/knowledge-center/ses-high-bounce-rate/
Simulators for various email conditions https://docs.aws.amazon.com/ses/latest/dg/send-an-email-from-console.html
SAM template for SNS lambda subscription https://medium.com/build-succeeded/subscribe-an-aws-lambda-function-to-an-sns-topic-in-cloudformation-and-work-6997a0f0b59b