The most important features required for any type of email sending is handling notifications and tracking them. Focusing on email services provided by AWS, Amazon Simple Email Services(SES) supports three types of notifications: Bounces, Complaints, Deliveries. Refer Here for more details on Notifications with SES. This article illustrates how to configure SNS and SQS to handle notifications received from SES using Amazon Management Console. Let see the prerequisites for Configuring Amazon SES to publish notifications to SQS via SNS.
Active AWS account and make sure SES, SQS SNS services are enabled.
Add a domain to SES and get it verified. Follow steps in below link to add domain and get it verified.
Ensure all the steps are followed correctly and make sure that the domain status as Verified in green.
Go to SQS service and Create three queues as ses-bounces-queue, ses-complaints-queue, ses-delivery-queue.
Next Enable SNS service and create three topics in SNS as ses-bounces-topic, ses-complaints-topic, ses-delivery-topic.
Make necessary configurations to enable an Amazon SNS topic to send messages to an Amazon SQS queue.
Follow Instructions given in this link to perform this step. SNS to SQS
Test the configurations done so far by publishing a test message from any topic and check whether the message is received in the queue.
If this step is executed correctly then we are almost done.
Now return to SES service home page and edit the domain which you have added.
Next click on edit Notifications and select the respective SNS topics as show below.
Now, save the configuration.
We are done. Now when ever an email is triggered by SES, any notification regarding that email will be pushed to queues in SQS by SNS.
Processing the Notifications generated will be covered in the next article.