Configuring Amazon SES to publish notifications to SQS via SNS.

Intro:

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.

Prerequisites:

Active AWS account and make sure SES, SQS SNS services are enabled.

Step 1:

Add a domain to SES and get it verified. Follow steps in below link to add domain and get it verified.

Setting up SES and verifying Domain in SES.

Ensure all the steps are followed correctly and make sure that the domain status as Verified in green.

Step 2:

Go to SQS service and Create three queues as ses-bounces-queue, ses-complaints-queue, ses-delivery-queue.

Create Queues

Create Queues

Creating Queues SQS

Creating Queues SQS

Step 3:

Next Enable SNS service and create three topics in SNS as ses-bounces-topic, ses-complaints-topic, ses-delivery-topic.

SNS Home

SNS Home

Create SNS Topic

Create SNS Topic

Step 4:

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.

Step 5:

Now return to SES service home page and edit the domain which you have added.

SES Domain Edit

SES Domain Edit

Next click on edit Notifications and select the respective SNS topics as show below.

SES SNS topic Config

SES SNS topic Config

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.

Good day