Ends in
00
days
00
hrs
00
mins
00
secs
ENROLL NOW

🔥 $1.99 Claude eBooks and $4.99 Claude Video Courses Up for Grabs

Setting up Amazon SES for a Lightsail Based Application

Home » AWS Cheat Sheets » Setting up Amazon SES for a Lightsail Based Application

Setting up Amazon SES for a Lightsail Based Application

On this article, you will learn how you can send emails from AWS Simple Email Service (Amazon SES) on applications hosted in AWS Lightsail, a virtual private server. You will learn how to verify a sending domain, connect your application, and prepare to send password resets, notifications, and newsletters.Amazon Lightsail and SES icons connected by an arrow beneath the title “Setting up Amazon SES for a Lightsail Based Application."

Prepare your domain and application

This article assumes that you already have a working application within the Lightsail instance, that is capable of handling and sending emails and ready to support Simple Mail Transfer Protocol (SMTP), the standard used here to submit messages to SES. The Tutorials Dojo Amazon Lightsail cheat sheet explains the hosting service and its main features.

To start make sure you have an AWS account, a registered domain (you own or rented), and access to the domain’s DNS settings. The Domain Name System (DNS) stores records that direct services to the correct destinations and help prove domain ownership. You also need access to an inbox where you can receive a verification link during setup.

This guide uses example.com as the sending domain and hello@example.com as the sender address. Replace these examples with a domain you control. Keep the same domain throughout the setup so that the identity, DNS records, and application settings agree.

Choose one AWS Region for sending, such as Asia Pacific (Singapore). A Region is a geographic area where AWS runs services; SES identities and SMTP credentials have regional requirements. Keep the console Region consistent as you work through the steps.

AWS region selector within web console displaying current region (AP Singapore) and a root account

 

Choose where to manage your DNS records

SES needs the required records at the provider that serves your domain’s DNS. If you intend to keep your current provider, skip the migration instructions and add the authentication records there later.

To move DNS, open Lightsail > Domains & DNS > Create DNS zone. A DNS zone holds the records for a domain, seelect Use a domain from another registrar, enter your registered domain without www, and create the zone.

Create a Lightsail DNS zone for a domain registered elsewhere.

Copy your existing website and email records into the new zone before changing nameservers. Nameservers identify the service that answers DNS queries for your domain. Missing email records, for example, can stop new messages from reaching your existing inbox.

If Hostinger is your registrar, (the company where you registered the domain), open its domain dashboard, select the domain, and choose DNS/Nameservers > Change Nameservers. Enter all four nameservers from that domain’s Lightsail zone and save. Hostinger’s nameserver instructions describe this change and the time needed for it to take effect.

Transferring DNS/Nameserver from Hostinger to AWS Lightsail

Domain registration and renewal remain with your registrar. Keep the old DNS zone available while the change spreads, and make later record updates in Lightsail once it is serving the domain.

Tutorials dojo strip

 

Set up Simple Email Service

Open the SES console in your chosen Region and select Get started if the setup wizard is available. Enter an email address you can access, then follow the verification link sent to that inbox. The address must include an @ sign, such as hello@example.com.

Start SES setup from the Get started screen in your chosen AWS Region.

 

Add the domain you own as your sending domain. An SES identity is a domain or email address that you verify for sending. For basic sending, a verified domain generally covers its email addresses, so you do not need to verify each address separately. Continue through the plan and optional feature screens 

Screenshot of the Amazon SES setup wizard dark mode interface showing "Step 1 Add your email address" selected in the left navigation sidebar. The main panel displays an input field labeled "Email address" with "test.example.com" entered, along with "Cancel" and "Next" action buttons at the bottom right.

Amazon Simple Email Service (SES) onboarding wizard, where users enter an email address to send a verification link and confirm ownership.

 

Fill up your desired sending subdomain and mailfrom that your users will see from the email. Fill up your desired sending subdomain and mailfrom that your users will see from the email.

Screenshot of the Amazon SES setup console displaying Step 2: "Add your sending domain" selected in the left navigation sidebar. The main area contains an input field labeled "Sending domain" filled with "subdomain.example.com", followed by an optional "MAIL FROM domain" section set to "mailfrom". At the bottom right are "Cancel", "Previous", and orange "Next" buttons.

Select a pricing model based on your usage volume, feature requirements, and business needs. Choose from Essential, Professional, or Enterprise plans, or opt for à la carte, pay-as-you-go pricing for flexible, usage-based billing with no unnecessary commitments.

Screenshot of the Amazon SES console highlighting Step 3: "Select pricing plan" in the left navigation bar. Three vertical plan cards display tier features for Essentials, Pro, and Enterprise. Beneath the comparison options is a section to "Downgrade to à la carte pricing" with a "Cancel plan" button

 

Deliverability Manager allows you to enable or disable additional features based on your operational requirements. These features are enabled by default and may incur additional charges on top of standard Amazon SES pricing.

Screenshot of the Amazon SES setup console with Step 4: "Deliverability enhancements" selected in the left menu bar. The main panel displays toggle options for Virtual Deliverability Manager, Engagement tracking, and Optimized shared delivery. Below, an "Auto Validation settings" section shows "Enabled" checked along with radio button options for selecting the validation threshold.

As with the previous step, you may choose to use Dedicated IPs based on your sending requirements. Dedicated IPs provide several benefits for organizations with specific deliverability and reputation management needs, with additional costs beyond standard Amazon SES pricing.

Screenshot of the Amazon SES onboarding wizard highlighting Step 5: "Create your Dedicated IP pool" in the left sidebar menu. The central section titled "Why use Managed Dedicated IPs" details key benefits including immediate availability, automatic scaling, and intelligent warmup. A toggle switch at the bottom is set to disable "Yes, enable Dedicated IPs," accompanied by "Cancel", "Previous", and orange "Next" buttons on the bottom right.

Tenant Management is essential for organizations supporting multiple tenants, accounts, or business units at scale. Enable this option when your use case requires tenant-level management and separation; otherwise, you may leave it blank.

Screenshot of the Amazon SES onboarding wizard showing Step 6: "Add tenant management" selected in the left menu. The main section explains key benefits of tenant management, including resource isolation, reputation protection, and tenant-level metrics monitoring. Below the benefits list is an empty text box with the placeholder "Enter a unique name" under "Tenant Name", along with "Cancel", "Previous", and orange "Next" action buttons in the lower-right corner.

Finally Review the configuration details and click Get started

Screenshot of the Amazon SES console displaying Step 7: "Review and get started with SES" selected in the top left menu. The main panel lists summary sections for Steps 3 through 6—showing "Essentials" selected for pricing, and "Disabled" for Virtual Deliverability Manager, Auto Validation settings, Dedicated IP pool, and Tenant management. Each section features an "Edit" button on the right, with "Cancel", "Previous", and an orange "Get started" button at the bottom right.

 

Verify sending identity

Navigate to Configuration > Identities to review the identities that were created. If the required domain is not listed, select Create identity > Domain and add it. Do not recreate an identity that already exists.

Screenshot of the Amazon Simple Email Service (SES) "Create identity" form in dark mode. Under "Identity type," the radio button for "Email address" is selected. An informational banner warns about DMARC policies when sending from an unverified domain. Below it is an empty "Email address" input field, followed by unchecked checkboxes for "Assign a default configuration set" and "Assign to a tenant," and an optional "Tags" section with an "Add new tag" button at the bottom left.

Finally, configure a Tenant. A tenant functions similarly to an email user identity, allowing you to control, organize, and manage email activity within your environment.

Screenshot of the Amazon SES console Tenants management table showing one configured tenant named "Websphere-support" with a "Tenant status" set to "Enabled". The top action bar includes a "Search tenant" input field along with buttons for "Pause sending", "Delete", and an orange "Create tenant" button at the top right.

Go to SMTP Settings and select Create IAM credentials and Create user to generate the credentials required for SMTP access.

Screenshot of the dark mode AWS console page titled "Retrieve SMTP credentials" with a green success banner reading "User created successfully" at the top.

Copy the generated SMTP credentials into your application’s environment variables and ensure they are securely stored. Assuming your backend is already deployed and running on Amazon Lightsail, your application will be able to send emails through Amazon SES for common use cases such as notifications, password resets, transactional emails, and newsletters.

 

Configure Easy DKIM

Select Easy DKIM, which allows AWS to manage your DomainKeys Identified Mail (DKIM) signing keys. DKIM adds a digital signature that receiving mail systems use to authenticate your domain and verify that signed content has not been modified. For this walkthrough, keep the default 2048-bit key length.

Open the domain’s Authentication settings and copy the three generated CNAME records. Publish all three records through your active DNS provider so AWS can verify the domain and enable DKIM signing.

In Lightsail, go to Domains & DNS, select your DNS zone, and open DNS records. Add each SES entry as a CNAME, using the record name and target provided by SES, then save the changes.

Wait until SES shows the domain as Verified and DKIM as Successful before testing email delivery. If verification remains pending, review the CNAME names and values carefully for typing errors or a duplicated domain suffix.

 

Conclusion

With your domain verified, DKIM configured, and SMTP credentials securely connected to your Lightsail application, you have the foundation for sending email through Amazon SES. You are now ready to test your backend functionality by sending emails to confirm that messages reach the intended inbox and work as expected. Before sending to unverified recipients, request production access if your SES account is still in the sandbox. As your application grows, monitor delivery failures, complaints, and costs, and enable additional features when your sending needs justify them. This is essential on limiting your SES bill.

 

Resources

 

 

🔥 $1.99 eBooks and $4.99 Video Claude Reviewers

Tutorials Dojo portal

Turn Your Team Into Cloud-Ready Professionals Today

Tutorials Dojo for Business

Learn AWS with our PlayCloud Hands-On Labs

$2.99 AWS and Azure Exam Study Guide eBooks

tutorials dojo study guide eBook

Learn GCP By Doing! Try Our GCP PlayCloud

Learn Azure with our Azure PlayCloud

FREE AI and AWS Digital Courses

FREE AWS, Azure, GCP Practice Test Samplers

SAA-C03 Exam Guide SAA-C03 examtopics AWS Certified Solutions Architect Associate

Subscribe to our YouTube Channel

Tutorials Dojo YouTube Channel

Follow Us On Linkedin

Written by: Vince Austria

Vince is a BSIT student, academic researcher, and advocate for diversity and inclusion within the technology sector. She brings a diverse portfolio of experience spanning IT infrastructure management, compliance, security consulting, and systems evaluation. Her professional background includes work on industrial machine programming, software assessment, and IT operational support. In addition to her technical pursuits, Vince has led operations for AWS BuildHers+ PH, and presented award-winning research at academic conferences. She remains committed to fostering safer, more inclusive environments that empower diverse talent to succeed in the technology industry.

AWS, Azure, and GCP Certifications are consistently among the top-paying IT certifications in the world, considering that most companies have now shifted to the cloud. Earn over $150,000 per year with an AWS, Azure, or GCP certification!

Follow us on LinkedIn, YouTube, Facebook, or join our Slack study group. More importantly, answer as many practice exams as you can to help increase your chances of passing your certification exams on your first try!

View Our AWS, Azure, and GCP Exam Reviewers Check out our FREE courses

Our Community

~98%
passing rate
Around 95-98% of our students pass the AWS Certification exams after training with our courses.
200k+
students
Over 200k enrollees choose Tutorials Dojo in preparing for their AWS Certification exams.
~4.8
ratings
Our courses are highly rated by our enrollees from all over the world.

What our students say about us?