This article discusses configuring subdomains with Amazon Simple Email Service (Amazon SES), in order to avoid data inconsistencies.
Inconsistency observation:
Multiple email addresses can be configured in the SES active rule. Some mails/data may not reach SES.
Step 1: Verifying the Domain with SES
Login to AWS and navigate to the SES section of AWS. Select Verify a new domain
Note: As the AWS region, we have selected Northern Virginia (useast-1) Once you have clicked on the Verify a New Domain, you will get a dialog box for configuring your Domain.Configure Domain as mail-datasync.company.co
Enable the Generate DKIM settings
Click on Verify This Domain to complete the step
It will provide a list of all the record sets required to complete the verification process.
Step 2: Route 53 — Creating a record set to complete the domain verification
Go to Route 53 service at AWS. Select the domain co in Hosted Zones
Click on Create Record set and add all the recordsets we have received from SES in Step1 point 3
After all the record sets have been added to Route 53, Domain will be verified in SES.
Note: This may take some time to verify
Step 3: Step 3 – S3 – Create a bucket to store all mails received
Go to AWS’s S3 service. In the US-East-1 region, create a bucket with name misdata.ses
Add bucket policy in S3 to allow SES to put objects in the bucket “Version”: “2012-10-17”, “Statement”: [ “Sid”: “AllowSESPuts-1585263”, “Effect”: “Allow”, “Principal”: “Service”: “ses.amazonaws.com” , “Action”: “s3:PutObject”, “Resource”: [ “arn:aws:s3:::company.misdata.ses/*”, “arn:aws:s3:::company.misdata.ses” ], “Condition”: “StringEquals”: “aws:Referer”: “” ]12345678910111213141516171819202122″Version”: “2012-10-17″,”Statement”: [“Sid”: “AllowSESPuts-1585263″,”Effect”: “Allow”,”Principal”: “Service”: “ses.amazonaws.com”,”Action”: “s3:PutObject”,”Resource”: [“arn:aws:s3:::company.misdata.ses/*”,”arn:aws:s3:::company.misdata.ses”],”Condition”: “StringEquals”: “aws:Referer”: “”]
Step 4: SES- Creating a rule in SES to process mails
Go to the SES section of AWS. Click on the Rule Sets section in SES
Click on Create a Rule Set with Name Data-Sync-Project.
After the rule-set is created, click on the data-sync project. Select Create Rule.
Add Recipient as mail-datasync.company.co. Click on Add Recipient, then click on Next Step
Add actions to an S3 bucket created in the previous steps. Click on Next Step to add the object or path to the bucket that contains data.
Click on Next Step to enter a company name.
Take a look at the details and then create the rule.
Make Rule-Set data-sync project active
Step 5: S3 — Received mails inS3
Once you have made Rule-set active, you will begin receiving mails in S3.
Are you interested in learning more about AWS services. http://cloudthat.in
Please leave feedback in the comment section. I will be happy and able to answer any questions you may have.