DevOps SriLanka
Published in

DevOps SriLanka

Emails & AWS SES

Emails are pivotal for our day to day tasks. lets see how the email communication working as below.

When the sender is sending an email first it will execute in the senders email server. Check for the MX record and SPF records and send the email to the recipient. If the recipient email account is valid in the recipient email server the email will deliver successfully.

What is a MX record.

MX record as known as mail exchanger record is a type of resource record in the Domain Name System that specifies a mail server responsible for accepting email messages on behalf of a recipient’s domain, and a preference value used to prioritize mail delivery if multiple mail servers are available. following results indicate the mx records and other related informations.

What is a SPF record.

An SPF record is a type of DNS record that identifies which mail servers are permitted to send email on behalf of your domain. The purpose of an SPF record is to prevent spammers from sending messages with forged From addresses at your domain.

What if you want to send multiple emails at a time? What if your only ip blacklisted ? best solution we can use an SMTP relay server.

What is an SMTP relay server?

SMTP Relay, which stands for Simple Mail Transfer Protocol, lets you send email messages through your email account using your existing email service. the actual email messages are processed through our SMTP relaying services. This will bypass the email server IP address from the public, which will help to avoid any malicious attacks. Below diagram shows the architecture of a SMTP relay server.

lets assume to the above scenario. Zack is sending an email to chamal, but zack’s email server ip is invisible to the public. emails are relaying through the SMTP relay server.

What is AWS SES?

Amazon Simple Email Service (Amazon SES) is a cloud-based email sending service designed to help digital marketers and application developers send marketing, notification, and transactional emails. You can use AWS SES SMTP interface or one of the AWS SDK’s to integrate Amazon SES directly into your existing applications.

we have to validate the domain name prior to send email from AWS SES. or we can validate sender email address as well.


This is really important and should always keep an eye on the reputation level.

Good reputation level and should try to maintain this always for uninterrupted service. it should always healthy as below

If the reputation level is red as below, well its not a good sign.

Reasons for Blacklist

- No SPF Records Created.
- Send From Invalid Emails/ Domain.
- Send to Invalid Emails/ Domain and NDR rate is increasing.
- AWS SES Reputation Levels.
- Spam Contents.

How To Prevent Blacklist ?

- Always use SPF Records.
- Send From valid Emails/ Domain.
- Send to valid Emails/ Domain and NDR rate is low.
- Maintain a Healthy AWS SES Reputation Levels.
- Make sure to Not Send Spam Contents.

All about collaborating to make software and software delivery better.

Recommended from Medium

Social Attacker: Automated Phishing on Social Media

Rum is coming!

Automation in Cybersecurity

{UPDATE} SECRET Fan Crush Hack Free Resources Generator

Distribution of 450 million DBC tokens among existing holders

COSS.IO v1.2 December 6th 2018

Technical Report of Scaleswap DDoS Attack

Breaking Apple secure enclave

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Arshad Zackeriya

Arshad Zackeriya

DevOps Engineer ☁, A Cloud Enthusiast and AWS Certified Solution Architect. AWS Fanboy!!

More from Medium

AWS CloudWatch ile Logları Kontrol Etme ( VPC Trafiği İzleme )

AWS Tutorial : AWS App Runner

Access AWS Resources using IAM Role through AWS SDK of NodeJS

AWS EC2 Pricing