tech-docs

Simple Email Service (SES)

The Simple Email Service (SES) is perfect for sending e-mails from EC2 instances.

For example, Jenkins pipelines can use SES to send failure messages to a chosen e-mail address.

Configuration

Verifying Your E-mail Address

The first activity is to verify your e-mail address:

This can be achieved from the SES Management Console in the AWS console, under “E-mail Addresses”.

You will receive a test e-mail containing a link to confirm that the e-mail has been received.

See Verifying an Email Address for further details.

Creating SMTP User

This can be achieved from the SES Management Console in the AWS console, under “SMTP Settings”.

Simply click “Create My SMTP Credentials”, choose the name press “Create”.

You can now click “Show User SMTP Security Credentials” to show the SMTP username and SMTP password.

Save these details somewhere safe as they cannot be obtained at a later date.

The SMTP user can be found under “Identity and Access Management (IAM)” should you wish to delete it.

Getting SMTP Details

This can be achieved from the SES Management Console in the AWS console, under “SMTP Settings”.

The server name and ports are clearly shown on this page. For example:

Server Name:   email-smtp.us-east-1.amazonaws.com
Port:          25, 465 or 587

Sending a Test Email

I went straight to Jenkins and tested it from a pipeline as described in my notes.

Reference

Setting up Email with Amazon SES

Verifying Identities in Amazon SES

Testing Email Sending Using the Command Line

Connecting to the Amazon SES SMTP Endpoint