Join our Newsletter — 33% off our NHI Course
Home› Guides› Amazon SES Security Guide: Sending Authorisation, SMTP Credentials…
Guide Cloud Security

Amazon SES Security Guide: Sending Authorisation, SMTP Credentials and Abuse Prevention

PDF for newsletter subscribers · free to read online

← All guides
By NHI Mgmt Group, under the editorial direction of Lalit Choda Updated 18 November 2026 13 min read
On this page

Amazon Simple Email Service (SES) is safe to run when its SMTP credentials are treated as the IAM access keys they really are, sending rights are fenced with condition keys and sending authorisation policies, and reputation alarms catch abuse before AWS pauses the account. SES credentials are a favourite target for attackers because a working production SES account can send large volumes of mail from a trusted domain. This guide covers the SES-specific controls: SMTP credentials, IAM conditions, sending authorisation for third parties, sandbox and production access, DKIM, and monitoring.

Every SES sender is a non-human identity (NHI): an application role calling the API, an IAM user whose SMTP password sits in a mail relay or CMS config file, or a third party sending on your behalf. For the cross-provider picture of application email credentials, read our Application Email Credentials Guide. For the IAM key controls that underpin SMTP credentials, see our AWS Access Keys Security Guide; this page does not repeat them.

This is an independent guide from NHI Mgmt Group, based on Amazon Web Services' public documentation as of November 2026. It is not sponsored or reviewed by Amazon Web Services. Product features change, so confirm settings against Amazon Web Services' current documentation.

Key takeaways

  • An SES SMTP user name is the IAM access key ID, and the SMTP password is derived from the secret access key. A leaked SMTP credential is a leaked IAM key.
  • Create a separate IAM user for each SMTP sender and give it only ses:SendRawEmail, narrowed with condition keys.
  • Prefer the SES API with IAM roles for workloads that can use it. SMTP credentials cannot be derived from temporary credentials.
  • Restrict sending with ses:FromAddress, ses:Recipients, ses:FeedbackAddress and related condition keys.
  • Use sending authorisation policies, not shared credentials, when a third party must send from your domain.
  • Alarm at a 5% bounce rate and a 0.1% complaint rate. AWS says it might pause sending above 10% bounces or 0.5% complaints.
  • Use Easy DKIM with 2048-bit keys and publish SPF and DMARC for every sending domain.

Why SES credentials are a high-value NHI

Attackers who find cloud keys routinely check whether SES is enabled and out of the sandbox. A production SES account offers high sending quotas, verified domains with good reputation and DKIM signatures that pass checks. That makes it ideal for phishing, spam and business email compromise lures, and the cost and the reputational damage land on the account owner.

SMTP credentials are especially exposed. They live in places that rarely get secrets hygiene: WordPress and CMS plugins, on-premises mail relays, printers and scanners, monitoring tools, legacy application config files and shared runbooks. They are often created once, by hand, and never rotated. Map their misuse to MITRE ATT&CK Valid Accounts: Cloud Accounts, and outbound phishing from your domain to Phishing. The OWASP Non-Human Identities Top 10 lists secret leakage and long-lived secrets among its top risks, and SES SMTP passwords are a textbook case of both.

SMTP credentials: what they really are

The SES SMTP interface uses a user name and password, but both come from IAM. AWS documents that the SMTP user name is the same as the AWS access key ID, so you only need to generate the SMTP password, and that your SMTP password is different from your AWS secret access key. The password is computed from the secret access key and the Region with a published HMAC-SHA256 algorithm. Three consequences follow.

  • Anyone with the secret access key can compute the SMTP password. A leaked IAM key for that user is also a leaked SMTP credential, and the reverse is true for access key ID exposure: the user name reveals which IAM key is involved.
  • Credentials are per Region. AWS states SMTP credentials are unique to each AWS Region, so a sender using several Regions needs a set per Region. Inventory them per Region.
  • No temporary credentials. AWS states the SMTP interface does not support SMTP credentials generated from temporary security credentials. SMTP senders therefore always rely on long-lived IAM user keys.

Creating SMTP users safely

AWS recommends a separate IAM user when you generate SMTP credentials. The console flow creates an IAM user with sending access through the AmazonSesSendingAccess policy granting ses:SendRawEmail, and that policy must stay attached for sending to work. Creating these users requires iam:CreateUser, iam:CreateGroup, iam:PutGroupPolicy, iam:AddUserToGroup and iam:CreateAccessKey; AWS notes that two of those are in the highest IAM access level and should be restricted or regularly monitored. Credentials cannot be viewed again after the dialog closes, so write them straight into a secrets manager rather than a downloaded CSV that lingers in a downloads folder.

If your SMTP users were created before 6 September 2024, AWS notes they carry an inline policy and a tag, and SES is moving to group policies. Attach the group policy before removing the inline one, and use the migration as a chance to tighten the policy with conditions.

Rotation

The SES documentation describes changing an SMTP password by deleting the existing SMTP user and generating new credentials. Because the password is derived from an IAM access key, you can also plan rotation around the IAM key: create a second key for the same user, derive the new SMTP password, update the sender, confirm mail flows, then deactivate and delete the old key. Whichever method you use, record every system that holds the credential first; a forgotten printer or plugin will break silently.

Prefer the API and IAM roles where you can

Applications running in AWS should send through the SES API using their own IAM role, not SMTP. Role sessions are short-lived and scoped, there is no stored password, and CloudTrail records which workload sent. Keep SMTP for systems that cannot sign API requests, such as appliances and third-party software, and put those behind a relay you control where possible so only the relay holds the SES credential.

For each SMTP sender that remains, record the owner, the system, the Region, the IAM user, the key creation date and the From addresses it may use. That inventory is what lets you respond in minutes when a credential appears in a public repository or an infostealer log.

Restricting what a sender can send

Default SES sending policies use "Resource": "*", which lets the sender use any verified identity in the account and send to anyone. SES supports condition keys that narrow this. AWS documents these keys:

Condition keyWhat it restricts
ses:FromAddressThe From address
ses:FromDisplayNameThe From display name
ses:RecipientsTo, CC and BCC addresses
ses:FeedbackAddressThe Return-Path address for bounces and complaints
ses:ApiVersionThe SES API version

AWS also lists aws:SourceIp among the global keys SES implements. Practical uses:

  • Pin each sender to its From addresses. A password reset service should send only as no-reply@ your domain, never as finance@ or ceo@. This single condition removes most of the phishing value of a stolen credential.
  • Pin internal-only senders to internal recipients. Alerting and reporting systems that only email staff can be limited with ses:Recipients, using ForAllValues:StringLike. AWS notes that StringLike is case sensitive, so test with mixed-case addresses.
  • Pin SMTP users to known sources. An SMTP user used only by an on-premises relay can be limited to that relay's egress IP addresses, so a stolen password is useless elsewhere.
  • Fix the Return-Path. Restrict ses:FeedbackAddress so bounces go to a monitored mailbox you own.

AWS notes that these email address condition keys apply only to the APIs listed in its table, and that sandbox restrictions can prevent some policies from being implemented. Test each policy with the SES mailbox simulator before relying on it. The SES IAM access control documentation has the full examples.

Sending authorisation for third parties

Marketing platforms, agencies and SaaS providers often ask for your SMTP credentials so they can send from your domain. Do not hand them over. SES offers sending authorisation instead: AWS describes it as a way to authorise other users to send emails from the identities that you own (domains or email addresses) using their own Amazon SES accounts, so that you can change or revoke permissions at any time.

The model has two roles. The identity owner keeps the verified domain or address and attaches an authorisation policy to it. The delegate sender, in its own AWS account, sends from that identity as the policy allows. The delegate can use its own configuration set and event publishing, and at the delegate's request the owner can route feedback notifications to SNS topics the delegate owns.

Making delegation safe

  • Name the delegate's account or specific principals in the policy, not a wildcard.
  • Restrict the From addresses the delegate may use, for example a marketing subdomain only.
  • Use a dedicated sending subdomain per third party, so a delegate's reputation problems do not affect your main domain's mail.
  • Record each policy with an owner, contract reference and review date, and remove it when the relationship ends.
  • Remember that in the sandbox neither you nor the delegate can send to non-verified addresses.

Revoking a policy takes effect for the delegate without any credential rotation on your side, which is the main security benefit over shared SMTP passwords.

Sandbox, production access and quotas

New SES accounts start in the sandbox in each Region. AWS documents that sandbox accounts can only send mail to verified email addresses and domains, or to the Amazon SES mailbox simulator, with a maximum of 200 messages per 24 hours and 1 message per second. Sandbox status is unique per Region, and production access is requested per Region. After production access, you can send to any recipient but must still verify every identity used as From, Source, Sender or Return-Path.

The security point is that production access is a privilege. Request it only in the Regions you actually send from, and keep unused Regions in the sandbox. An attacker with a stolen key will try every Region; a sandboxed Region limits what they can send. Alert on any request for production access, because a request from an account that should not send email is a strong sign of compromise.

Domain authentication: DKIM, SPF and DMARC

Authentication protects your domain from being spoofed by others and makes your legitimate SES mail deliverable. With Easy DKIM, AWS states that SES automatically adds a 2048-bit DKIM key to every email that you send from that identity. You can choose 1024 bits if a DNS provider requires it, but AWS notes that 2048 bits is always preferred. If you use Route 53, SES can create the records automatically.

  • Keep 2048-bit keys unless a DNS constraint forces otherwise, and revisit that constraint.
  • When moving from bring-your-own DKIM to Easy DKIM, AWS warns that mail may be sent without a DKIM signature while Easy DKIM is pending; use an intermediate subdomain as AWS suggests.
  • Publish SPF per RFC 7208 and a DMARC policy per RFC 9989, moving to enforcement once reports show all legitimate sources aligned.
  • Review DMARC aggregate reports for SES sending you did not expect; they can reveal a compromised sender quickly.

Our Email Authentication for Developers Guide covers record syntax and alignment in depth.

Monitoring, reputation and abuse response

SES publishes reputation metrics to Amazon CloudWatch, including Reputation.BounceRate and Reputation.ComplaintRate. AWS recommends keeping bounces under 5% and complaints under 0.1%, and states that if the bounce rate for your account is greater than 10%, we might pause your account's ability to send email, with the equivalent complaint threshold at 0.5%. AWS suggests alarms at 5% and 0.1%.

Signals of a compromised sender

  • A sudden jump in send volume, bounces or complaints, especially out of hours.
  • Sending from a Region you do not normally use.
  • New verified identities, new configuration sets or changed sending authorisation policies in CloudTrail.
  • A request for production access or a quota increase nobody planned.
  • Creation of new IAM users or access keys with SES permissions.
  • Mail with From addresses outside the sender's normal set, visible through event publishing.

Response steps

  1. Deactivate the IAM access key behind the SMTP user, or detach the sending policy, to stop sending at once.
  2. Check every Region for sending activity and for new identities, users or keys the attacker created.
  3. Find where the credential leaked, using your sender inventory, and remove it from that location.
  4. Issue a new credential to the legitimate sender with tighter conditions.
  5. Monitor reputation metrics and DMARC reports until they return to normal, and contact AWS Support if sending was paused.

For the wider outbound abuse picture, see our Outbound Email Abuse guide.

Common failure patterns

  • SMTP password committed to source control in a CMS or application config file, then found by automated scanners.
  • One SMTP user shared by many systems, so rotation breaks everything and nobody knows which system leaked.
  • SMTP derived from a broad IAM user, so the leaked secret access key also grants non-SES access.
  • Unconditioned ses:SendRawEmail on *, allowing any From address in any verified domain.
  • Third parties given SMTP credentials instead of sending authorisation, with no way to revoke cleanly.
  • Production access in every Region, widening what a stolen key can do.
  • No reputation alarms, so the first signal is an AWS pause or a blocklisting.
  • Credentials left in downloaded CSV files on laptops and shared drives.

Practitioner checklist

  • Inventory every SES SMTP user and API sender per Region, with owner, system and key age.
  • Move AWS workloads to the SES API with IAM roles and keep SMTP for systems that need it.
  • Use one dedicated IAM user per SMTP sender, with only ses:SendRawEmail.
  • Add ses:FromAddress, ses:Recipients, ses:FeedbackAddress or aws:SourceIp conditions to every sending policy.
  • Store SMTP passwords in a secrets manager and delete downloaded CSV files.
  • Rotate SMTP credentials on a schedule and on staff or supplier changes.
  • Replace shared credentials for third parties with sending authorisation policies on dedicated subdomains.
  • Keep unused Regions in the sandbox and alert on production access requests.
  • Use Easy DKIM with 2048-bit keys and publish SPF and enforced DMARC.
  • Set CloudWatch alarms at 5% bounces and 0.1% complaints and alert on SES configuration changes in CloudTrail.
  • Rehearse the compromised sender response, including key deactivation across Regions.

Standards and references

Related NHI Mgmt Group resources: Application Email Credentials Guide · AWS Access Keys Security Guide · Outbound Email Abuse · Email Authentication for Developers Guide

PDF for subscribers

Take this guide with you

Every section, table and checklist in one PDF, with links to the sources and related guides. Subscribe to our weekly NHI & AI Identity Journal and we’ll email you a download link.

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.

PDF Downloads for Newsletter Subscribers

Get the guide

Enter your details and we’ll email you a download link.

The full guide is free to read online. The PDF is a thank you for subscribing.

Fill in all fields marked * and tick both boxes to continue.