SES
Parity grade: A · SDK aws-sdk-go-v2/service/ses@v1.42.3 · last audited 2026-10-12 (bfdb308be)
Category: Messaging & Integration · View PARITY.md on GitHub · All Services
In-memory SES (v1 API) with identities, templates, configuration sets, receipt rules and a mailbox simulator. SES v2 is a separate service on the same port.
Quick start
bash
export AWS_ENDPOINT_URL=http://localhost:8000
aws ses verify-email-identity --email-address test@example.com
aws ses list-identities
aws ses send-email --from test@example.com \
--destination '{"ToAddresses":["success@simulator.amazonses.com"]}' \
--message '{"Subject":{"Data":"Test"},"Body":{"Text":{"Data":"Hello"}}}'
aws ses get-identity-verification-attributes --identities test@example.comSent messages are kept in memory (SES_EMAIL_TTL, 24h by default, at most 10000). GET /_aws/ses returns them in LocalStack's per-message shape, and DELETE /_aws/ses clears them.
Supported operations
| Area | Operations |
|---|---|
| Sending | SendEmail, SendRawEmail, SendTemplatedEmail, SendBulkTemplatedEmail, SendBounce, SendCustomVerificationEmail |
| Identities | VerifyEmailIdentity, VerifyEmailAddress, VerifyDomainIdentity, VerifyDomainDkim, ListIdentities, ListVerifiedEmailAddresses, DeleteIdentity, DeleteVerifiedEmailAddress, GetIdentityVerificationAttributes, GetIdentityDkimAttributes, GetIdentityMailFromDomainAttributes, GetIdentityNotificationAttributes |
| Identity settings | SetIdentityDkimEnabled, SetIdentityFeedbackForwardingEnabled, SetIdentityHeadersInNotificationsEnabled, SetIdentityMailFromDomain, SetIdentityNotificationTopic, PutIdentityPolicy, GetIdentityPolicies, ListIdentityPolicies, DeleteIdentityPolicy |
| Templates | CreateTemplate, GetTemplate, ListTemplates, UpdateTemplate, DeleteTemplate, TestRenderTemplate, custom verification email templates |
| Configuration sets | create, describe, list, delete, event destinations (create, update, delete), tracking options, PutConfigurationSetDeliveryOptions, UpdateConfigurationSetSendingEnabled, UpdateConfigurationSetReputationMetricsEnabled |
| Receipt rules | rule sets (create, clone, delete, list, describe, reorder, set active), rules (create, update, delete, describe, set position), receipt filters |
| Account | GetSendQuota, GetSendStatistics, GetAccountSendingEnabled, UpdateAccountSendingEnabled |
Behaviour
- Mailbox simulator addresses:
success@,bounce@,ooto@,complaint@andsuppressionlist@atsimulator.amazonses.com, with an optional+label. Bounces and complaints produce notifications. - Configuration-set SNS event destinations and identity notification topics publish
Send,Delivery,BounceandComplaintevents. - Real relay: when
SMTP_HOSTis set (optionalSMTP_USER,SMTP_PASS; port 25 unless given), accepted messages are also relayed over SMTP. Delivery is asynchronous and failures are only logged. Simulator recipients are never relayed. - Inbound mail: set
SES_INBOUND_ENABLED=trueto run an SMTP listener that applies the active receipt rule set. It supports STARTTLS with a self-signed certificate and refuses unverified recipients, or ones no enabled rule matches, with550. Rule actions: AddHeader, S3, SNS, Lambda, Bounce and Stop.
Configuration
| Env | Default | Purpose |
|---|---|---|
SES_EMAIL_TTL | 24h | How long sent emails are kept |
SES_JANITOR_INTERVAL | 1m | Janitor tick |
SES_INBOUND_ENABLED | false | Run the inbound SMTP listener |
SES_INBOUND_ADDR | 127.0.0.1:2525 | Inbound listen address |
SES_INBOUND_REGIONS | none | Extra per-region listeners as region=host:port,... |
SES_INBOUND_MAX_SIZE | 41943040 | Maximum inbound message size in bytes |
SMTP_HOST, SMTP_USER, SMTP_PASS | none | Relay target for real delivery |
Differences from AWS
NOTE
Messages are not delivered anywhere unless SMTP_HOST is set.
- The sender must be a verified identity, or
MessageRejectedis returned. The sandbox rule that recipients must be verified is not enforced. - A missing template variable renders the literal
instead of failing withMissingRenderingAttribute. GetSendStatisticsRejectsis always 0: there is no content scanner.FromArnandTemplateArnare accepted but not acted on.SendBounceis addressed to the bounced recipients: there is no inbound mailbox to resolve the original sender.
Parity & Coverage
| Metric | Value |
|---|---|
| PARITY entries audited | 71 (69 ok, 2 partial) |
| Feature families | 21 (21 ok) |
| Known gaps | none |
| Structural gaps (can't be emulated) | 3 |
| Deferred items | 1 |
| Resource leaks | clean |
Structural Gaps
These do not block an A grade — no implementation could produce real data here because the underlying data source cannot exist in an emulator.
- GetSendStatistics Rejects is always 0: AWS rejects only via virus scan and there is no content scanner.
- SendRawEmail FromArn and SendTemplatedEmail/SendBulkTemplatedEmail TemplateArn are accepted but not acted on: no cross-account identity/policy/template model, and the SDK models no format to validate.
- SendBounce is addressed to the bounced recipients: there is no inbound mailbox to resolve the original sender or OriginalMessageId.
Deferred Items
- services/sesv2/ — separate REST-JSON service, out of scope this pass per task constraints (bd: gopherstack-029)
Audited Operations
71 audited operations
| Operation | Wire | Errors | State | Persist |
|---|---|---|---|---|
PutIdentityPolicy | ok | ok | ok | ok |
DeleteIdentityPolicy | ok | ok | ok | ok |
SetIdentityDkimEnabled | ok | ok | ok | ok |
SetIdentityFeedbackForwardingEnabled | ok | ok | ok | ok |
SetIdentityHeadersInNotificationsEnabled | ok | ok | ok | ok |
SetIdentityMailFromDomain | ok | ok | ok | ok |
SetIdentityNotificationTopic | ok | ok | ok | ok |
UpdateReceiptRule | ok | partial | ok | ok |
ReorderReceiptRuleSet | ok | ok | ok | ok |
SetReceiptRulePosition | ok | ok | ok | ok |
PutConfigurationSetDeliveryOptions | ok | ok | ok | ok |
UpdateConfigurationSetEventDestination | ok | ok | ok | ok |
UpdateConfigurationSetTrackingOptions | ok | ok | ok | ok |
VerifyEmailAddress | ok | ok | ok | ok |
DeleteVerifiedEmailAddress | ok | ok | ok | ok |
UpdateAccountSendingEnabled | ok | ok | ok | ok |
UpdateCustomVerificationEmailTemplate | ok | ok | ok | ok |
UpdateConfigurationSetReputationMetricsEnabled | ok | ok | ok | ok |
UpdateConfigurationSetSendingEnabled | ok | ok | ok | ok |
SendEmail | ok | ok | ok | ok |
SendRawEmail | ok | ok | ok | ok |
SendTemplatedEmail | ok | ok | ok | ok |
SendBulkTemplatedEmail | ok | ok | ok | ok |
SendBounce | ok | ok | ok | ok |
SendCustomVerificationEmail | ok | ok | ok | ok |
VerifyEmailIdentity | ok | ok | ok | ok |
DeleteIdentity | ok | ok | ok | ok |
ListIdentities | ok | ok | ok | ok |
GetIdentityVerificationAttributes | ok | ok | ok | ok |
GetIdentityDkimAttributes | ok | ok | ok | ok |
GetIdentityMailFromDomainAttributes | ok | ok | ok | ok |
GetIdentityNotificationAttributes | ok | ok | ok | ok |
GetIdentityPolicies | ok | ok | ok | ok |
ListIdentityPolicies | ok | ok | ok | ok |
VerifyDomainIdentity | ok | ok | ok | ok |
VerifyDomainDkim | ok | ok | fixed | ok |
ListVerifiedEmailAddresses | ok | ok | ok | ok |
GetAccountSendingEnabled | ok | ok | ok | ok |
GetSendQuota | ok | ok | ok | ok |
GetSendStatistics | ok | ok | ok | ok |
CreateTemplate | ok | ok | ok | ok |
UpdateTemplate | ok | ok | ok | ok |
GetTemplate | ok | ok | ok | ok |
ListTemplates | ok | ok | ok | ok |
DeleteTemplate | ok | ok | ok | ok |
TestRenderTemplate | ok | ok | ok | ok |
CreateConfigurationSet | ok | ok | ok | ok |
DeleteConfigurationSet | ok | ok | ok | ok |
ListConfigurationSets | ok | ok | ok | ok |
DescribeConfigurationSet | ok | ok | ok | ok |
CreateConfigurationSetEventDestination | ok | ok | ok | ok |
DeleteConfigurationSetEventDestination | ok | ok | ok | ok |
CreateConfigurationSetTrackingOptions | ok | ok | ok | ok |
DeleteConfigurationSetTrackingOptions | ok | ok | ok | ok |
CreateCustomVerificationEmailTemplate | ok | ok | ok | ok |
DeleteCustomVerificationEmailTemplate | ok | ok | ok | ok |
GetCustomVerificationEmailTemplate | ok | ok | ok | ok |
ListCustomVerificationEmailTemplates | ok | ok | ok | ok |
CreateReceiptRuleSet | ok | ok | ok | ok |
CloneReceiptRuleSet | ok | ok | ok | ok |
DeleteReceiptRuleSet | ok | ok | ok | ok |
ListReceiptRuleSets | ok | ok | ok | ok |
DescribeReceiptRuleSet | ok | ok | ok | ok |
SetActiveReceiptRuleSet | ok | ok | ok | ok |
DescribeActiveReceiptRuleSet | ok | ok | ok | ok |
CreateReceiptRule | ok | partial | ok | ok |
DescribeReceiptRule | ok | ok | ok | ok |
DeleteReceiptRule | ok | ok | ok | ok |
CreateReceiptFilter | ok | ok | ok | ok |
ListReceiptFilters | ok | ok | ok | ok |
DeleteReceiptFilter | ok | fixed | ok | ok |
Audited Feature Families
| Feature Family | Status |
|---|---|
mailbox_simulator_quota_exemption | ok |
limit_exceeded_enforcement | ok |
mail_from_domain_not_verified | ok |
mailbox_simulator_bounces_complaints | ok |
notification_type_enum_validation | ok |
event_destination_matching_event_types_validation | ok |
sns_notification_delivery | ok |
list_identities_identity_type_filter | ok |
void_result_ops | ok |
account_sending_paused | ok |
send_quota_enforcement | ok |
config_set_existence_validation | ok |
identity_dkim_notification_ops | ok |
receipt_rules_filters | ok |
templates_rendering | ok |
persistence_janitor | ok |
invented_error_removed | ok |
tracking_options_error_code_wire_bug | ok |
putidentitypolicy_policy_validation | ok |
receipt_action_sqs_removed | ok |
required_output_members_r80d | ok |
