Skip to content

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.com

Sent 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 ​

AreaOperations
SendingSendEmail, SendRawEmail, SendTemplatedEmail, SendBulkTemplatedEmail, SendBounce, SendCustomVerificationEmail
IdentitiesVerifyEmailIdentity, VerifyEmailAddress, VerifyDomainIdentity, VerifyDomainDkim, ListIdentities, ListVerifiedEmailAddresses, DeleteIdentity, DeleteVerifiedEmailAddress, GetIdentityVerificationAttributes, GetIdentityDkimAttributes, GetIdentityMailFromDomainAttributes, GetIdentityNotificationAttributes
Identity settingsSetIdentityDkimEnabled, SetIdentityFeedbackForwardingEnabled, SetIdentityHeadersInNotificationsEnabled, SetIdentityMailFromDomain, SetIdentityNotificationTopic, PutIdentityPolicy, GetIdentityPolicies, ListIdentityPolicies, DeleteIdentityPolicy
TemplatesCreateTemplate, GetTemplate, ListTemplates, UpdateTemplate, DeleteTemplate, TestRenderTemplate, custom verification email templates
Configuration setscreate, describe, list, delete, event destinations (create, update, delete), tracking options, PutConfigurationSetDeliveryOptions, UpdateConfigurationSetSendingEnabled, UpdateConfigurationSetReputationMetricsEnabled
Receipt rulesrule sets (create, clone, delete, list, describe, reorder, set active), rules (create, update, delete, describe, set position), receipt filters
AccountGetSendQuota, GetSendStatistics, GetAccountSendingEnabled, UpdateAccountSendingEnabled

Behaviour ​

  • Mailbox simulator addresses: success@, bounce@, ooto@, complaint@ and suppressionlist@ at simulator.amazonses.com, with an optional +label. Bounces and complaints produce notifications.
  • Configuration-set SNS event destinations and identity notification topics publish Send, Delivery, Bounce and Complaint events.
  • Real relay: when SMTP_HOST is set (optional SMTP_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=true to 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, with 550. Rule actions: AddHeader, S3, SNS, Lambda, Bounce and Stop.

Configuration ​

EnvDefaultPurpose
SES_EMAIL_TTL24hHow long sent emails are kept
SES_JANITOR_INTERVAL1mJanitor tick
SES_INBOUND_ENABLEDfalseRun the inbound SMTP listener
SES_INBOUND_ADDR127.0.0.1:2525Inbound listen address
SES_INBOUND_REGIONSnoneExtra per-region listeners as region=host:port,...
SES_INBOUND_MAX_SIZE41943040Maximum inbound message size in bytes
SMTP_HOST, SMTP_USER, SMTP_PASSnoneRelay 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 MessageRejected is returned. The sandbox rule that recipients must be verified is not enforced.
  • A missing template variable renders the literal instead of failing with MissingRenderingAttribute.
  • GetSendStatistics Rejects is always 0: there is no content scanner.
  • FromArn and TemplateArn are accepted but not acted on.
  • SendBounce is addressed to the bounced recipients: there is no inbound mailbox to resolve the original sender.

Parity & Coverage ​

MetricValue
PARITY entries audited71 (69 ok, 2 partial)
Feature families21 (21 ok)
Known gapsnone
Structural gaps (can't be emulated)3
Deferred items1
Resource leaksclean

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
OperationWireErrorsStatePersist
PutIdentityPolicyokokokok
DeleteIdentityPolicyokokokok
SetIdentityDkimEnabledokokokok
SetIdentityFeedbackForwardingEnabledokokokok
SetIdentityHeadersInNotificationsEnabledokokokok
SetIdentityMailFromDomainokokokok
SetIdentityNotificationTopicokokokok
UpdateReceiptRuleokpartialokok
ReorderReceiptRuleSetokokokok
SetReceiptRulePositionokokokok
PutConfigurationSetDeliveryOptionsokokokok
UpdateConfigurationSetEventDestinationokokokok
UpdateConfigurationSetTrackingOptionsokokokok
VerifyEmailAddressokokokok
DeleteVerifiedEmailAddressokokokok
UpdateAccountSendingEnabledokokokok
UpdateCustomVerificationEmailTemplateokokokok
UpdateConfigurationSetReputationMetricsEnabledokokokok
UpdateConfigurationSetSendingEnabledokokokok
SendEmailokokokok
SendRawEmailokokokok
SendTemplatedEmailokokokok
SendBulkTemplatedEmailokokokok
SendBounceokokokok
SendCustomVerificationEmailokokokok
VerifyEmailIdentityokokokok
DeleteIdentityokokokok
ListIdentitiesokokokok
GetIdentityVerificationAttributesokokokok
GetIdentityDkimAttributesokokokok
GetIdentityMailFromDomainAttributesokokokok
GetIdentityNotificationAttributesokokokok
GetIdentityPoliciesokokokok
ListIdentityPoliciesokokokok
VerifyDomainIdentityokokokok
VerifyDomainDkimokokfixedok
ListVerifiedEmailAddressesokokokok
GetAccountSendingEnabledokokokok
GetSendQuotaokokokok
GetSendStatisticsokokokok
CreateTemplateokokokok
UpdateTemplateokokokok
GetTemplateokokokok
ListTemplatesokokokok
DeleteTemplateokokokok
TestRenderTemplateokokokok
CreateConfigurationSetokokokok
DeleteConfigurationSetokokokok
ListConfigurationSetsokokokok
DescribeConfigurationSetokokokok
CreateConfigurationSetEventDestinationokokokok
DeleteConfigurationSetEventDestinationokokokok
CreateConfigurationSetTrackingOptionsokokokok
DeleteConfigurationSetTrackingOptionsokokokok
CreateCustomVerificationEmailTemplateokokokok
DeleteCustomVerificationEmailTemplateokokokok
GetCustomVerificationEmailTemplateokokokok
ListCustomVerificationEmailTemplatesokokokok
CreateReceiptRuleSetokokokok
CloneReceiptRuleSetokokokok
DeleteReceiptRuleSetokokokok
ListReceiptRuleSetsokokokok
DescribeReceiptRuleSetokokokok
SetActiveReceiptRuleSetokokokok
DescribeActiveReceiptRuleSetokokokok
CreateReceiptRuleokpartialokok
DescribeReceiptRuleokokokok
DeleteReceiptRuleokokokok
CreateReceiptFilterokokokok
ListReceiptFiltersokokokok
DeleteReceiptFilterokfixedokok

Audited Feature Families ​

Feature FamilyStatus
mailbox_simulator_quota_exemptionok
limit_exceeded_enforcementok
mail_from_domain_not_verifiedok
mailbox_simulator_bounces_complaintsok
notification_type_enum_validationok
event_destination_matching_event_types_validationok
sns_notification_deliveryok
list_identities_identity_type_filterok
void_result_opsok
account_sending_pausedok
send_quota_enforcementok
config_set_existence_validationok
identity_dkim_notification_opsok
receipt_rules_filtersok
templates_renderingok
persistence_janitorok
invented_error_removedok
tracking_options_error_code_wire_bugok
putidentitypolicy_policy_validationok
receipt_action_sqs_removedok
required_output_members_r80dok

Released under the MIT License.