Simple Email Service
Floci provides a local model of Amazon Simple Email Service (SES). It lets clients create sender identities, prepare messages, apply contact and suppression rules, record delivery outcomes, and inspect the result without contacting real mail providers. The model supports SES v1 Query requests and SES v2 JSON requests within account and Region scope. For request dispatch, see request routing and protocols; for event targets and workflow consumers, see event orchestration. Infrastructure workflows can also manage SES resources through CloudFormation, while identity policy metadata relates to IAM and authentication.
Request surfaces and scope
SES has two wire surfaces over one service model. The v1 surface uses Query actions and XML responses. The v2 surface uses JSON requests under /v2/email and JSON responses. Both resolve the caller's account and Region before they read or change SES state.
Protocol surfaces
The v1 Query path maps action names to SES operations. The v2 path separates sending, identities, templates, contacts, tenants, suppression, account state, configuration sets, metrics, and jobs into route groups. Shared state means that a resource created through one surface is visible through the other.
The v2 boundary checks JSON body shapes before it checks operation rules. Wrong object, list, scalar, and member types produce serialization-style errors. Operation services then apply value and business rules. Responses preserve the different error names and timestamp forms expected by each protocol. Send requests can carry structured content, stored or inline templates, or raw MIME content. Raw content is decoded and parsed once so the same message headers and body support validation, scanning, storage, and relay.
| Surface | Main use | Response form |
|---|---|---|
| SES v1 Query | Classic SES clients and SDKs | XML |
| SES v2 JSON | Modern send and resource APIs | JSON |
| Local inspection | Test and development review | Stored message records |
| Optional SMTP relay | Local delivery attempt | SMTP session |
v2 timestamps use numeric epoch seconds. v1 timestamps keep the XML time form. Pagination tokens belong to the resource list and its Region. Filtered and tenant-scoped lists also bind tokens to the selected scope.
References: src/…/SesQueryHandler.java• L94-189 src/…/SesV2Json.java• L44-69 src/…/SesV2Json.java• L111-128 src/…/SesSendController.java• L80-229 src/…/SesRawMessage.java• L60-109 src/…/SmtpRelay.java• L727-750
Account and Region state
SES resources are isolated by account and Region. Identities, templates, contact lists, suppression entries, tenants, configuration sets, receipt rule sets, messages, metrics, and jobs do not cross that boundary.
The account view exposes sending status, quota, suppression defaults, dedicated-IP warmup state, Virtual Deliverability Manager (VDM) state, and account details. VDM is an opt-in gate for message insights, metric data, and export jobs. Recommendation listing returns no findings until VDM is enabled. Account details return a local granted review result because Floci does not run the real SES production-access review.
References: src/…/SesService.java• L218-220 src/…/SesQueryHandler.java• L322-357
Email submission and delivery
The send flow accepts simple content, raw MIME content, and stored or inline templates. It validates the request, resolves the effective configuration set and recipient state, records the accepted message, classifies recipient outcomes, publishes matching events, and optionally attempts SMTP relay.
Message forms
Simple content contains a subject and text or HTML body. It can include headers and attachments. Raw content contains an RFC 5322 MIME message and can derive its sender, recipients, return path, configuration set, message tags, and authorization data from MIME headers. Templated content uses a stored template or inline template data. Bulk sends render one template for many entries and return a result for each entry.
Template variables use {{name}} syntax. Triple-brace variables are also accepted and render without HTML escaping. A normal send fails when a required value is missing. A bulk send isolates rendering, address, and entry data errors so valid entries can still complete. v2 sends can also carry message tags, headers, attachments, and list-management options. List-managed single-recipient sends can add unsubscribe headers and replace the unsubscribe URL placeholder.
The send boundary checks sender, recipient, return-path, and reply-to syntax before it accepts the message. It also applies the address length limit. Raw sends apply the relevant checks to addresses found in MIME headers. SES control headers, such as configuration-set and message-tag headers, affect local processing and are not forwarded as ordinary mail headers. Display names and comments are handled separately from the mailbox address, so address checks do not treat every visible character as part of the address.
Template test rendering produces MIME output that follows SES-style subject encoding, body transfer encoding, and multipart rules. This output is for rendering inspection; it does not by itself send a message.
References: src/…/SesSendController.java• L90-212 src/…/SesQueryHandler.java• L279-340 src/…/SesService.java• L255-309 src/…/SesService.java• L533-590 src/…/SesTemplateService.java• L322-448 src/…/SesRawMessage.java• L17-109 src/…/SesAddressSyntax.java• L14-29
Acceptance and recipient outcomes
SES acceptance is separate from delivery. After validation, the service stores one message record and derives an outcome for each envelope recipient. Suppressed or opted-out recipients stay in the record and event data but are removed from the SMTP recipient set.
Content scanning models the SES test-virus path. A matching test signature prevents relay and redacts the stored content. Blocked attachment types fail before acceptance. A raw MIME message that cannot be parsed fails before acceptance; an attachment-bearing structured message is assembled and scanned as MIME. An unavailable SMTP server does not undo an accepted SES result.
The local SMTP relay is optional. Without it, stored messages, events, insights, and metrics still provide deterministic local behavior. With it, eligible messages are sent asynchronously to the configured local mail server. Structured messages and accepted raw messages use the same local mail path, while SES control headers are consumed instead of being forwarded.
This diagram shows the high-level send path from a wire request to stored state and optional delivery.
flowchart TD
A[SES v1 or v2 send request] --> B[Parse and validate]
B --> C[Resolve identity and configuration]
C --> D[Resolve suppression and contact state]
D --> E[Scan and accept message]
E --> F[Store message and recipient outcomes]
F --> G[Publish matching events]
F --> H[Optional SMTP relay for eligible recipients]
F --> I[Insights and metric timelines]
References: src/…/SesService.java• L389-501 src/…/SesService.java• L533-658 src/…/SesContentScan.java• L85-190 src/…/SesRawMessage.java• L60-109 src/…/SmtpRelay.java• L408-484
Delivery events and insights
One recipient outcome model feeds event publishing, message insights, and metrics. It distinguishes SEND, DELIVERY, BOUNCE, COMPLAINT, and REJECT, with causes such as suppression, list opt-out, simulator behavior, or content rejection.
Configuration-set destinations can send matching events to SNS, Kinesis Data Firehose, EventBridge, or CloudWatch. SNS delivery must pass the topic policy for the configuration-set ARN. Firehose and EventBridge receive the event payload through their local service models. Pinpoint destinations remain configuration metadata and do not deliver locally. Identity feedback settings use the legacy identity-level SNS form.
A destination publishes only when it is enabled and its event type matches. An unavailable or unauthorized downstream target is logged and skipped rather than undoing the accepted send. If an identity notification topic later becomes unusable, bounce and complaint topic settings are removed and feedback forwarding is enabled again.
Message insights provide a per-recipient timeline when VDM is enabled. Ordinary local recipients receive a derived delivery outcome because Floci cannot observe a real receiving provider. The local model also records simulator and suppressed-recipient outcomes for testing.
References: src/…/SesEventPublisher.java• L72-103 src/…/SesEventPublisher.java• L105-147 src/…/SesEventPublisher.java• L149-200 src/…/SesService.java• L661-725
Deliverability data and export jobs
VDM reads the recipient timelines created during send. Metric queries aggregate those timelines by day. Export jobs turn metric data or message-insight data into a local S3 object and return a presigned URL after the job completes.
Metric data
Metric queries return daily series filtered by identity, configuration set, ISP, or tenant. A batch can contain several queries and supports send, delivery, bounce, and complaint measures. The request validates query shape, dimensions, identifiers, and time windows before it aggregates the shared send timelines. Open and click measures remain empty because the local model has no mailbox activity.
Metric requests require VDM and use UTC-day buckets with an exclusive end time. A query with no matching timeline returns an empty series. Exports use the same metric aggregation as these queries, so both views describe the same local sends.
References: src/…/SesAccountService.java• L89-105 src/…/SesMetricsController.java• L81-112 src/…/SesMetricsController.java• L165-289
Deliverability recommendations
VDM recommendations give a current list of deliverability findings for verified sending domains. The list is derived at request time from domain identity settings and the presence of DMARC and BIMI DNS records, so a finding disappears when its condition clears instead of changing to a stored fixed state.
The service reports findings for DKIM, DMARC, and BIMI. Recommendations are newest first and can be filtered by type, impact, status, or resource ARN. A type filter takes precedence over an impact filter, matching the SES behavior modeled here. A Region without VDM returns an empty list.
References: src/…/SesRecommendationController.java• L31-83 src/…/SesRecommendationService.java• L21-73 src/…/SesRecommendations.java• L8-60
Export jobs
An export job has one source: metric data or message insights. The caller selects CSV or JSON, but not the destination. Floci writes the result to an account- and Region-scoped local S3 object and exposes its presigned URL when complete. A caller-provided S3 URL is rejected before the VDM check.
Jobs start in PROCESSING, then move through completion, failure, or cancellation. A restart marks unfinished jobs as failed. A Region allows up to 20 active export jobs. Metric ranges cover whole UTC days. Message-insight ranges include the end timestamp. The job's processed count describes the stored rows examined, not only rows written after filters.
This diagram shows how an export turns stored send timelines into a downloadable file.
flowchart LR
A[Create export job] --> B[Validate source and format]
B --> C[Check VDM and time range]
C --> D[Read stored timelines]
D --> E[Aggregate or filter rows]
E --> F[Render CSV or JSON]
F --> G[Write local S3 object]
G --> H[Return presigned URL]
References: src/…/SesExportJobController.java• L57-70 src/…/SesExportJobService.java• L128-189 src/…/SesExportJobService.java• L239-300 src/…/SesExportJobService.java• L317-333
Email address insights
Email-address insights provide a stable offline mailbox check for one address. They return confidence values for syntax, DNS, mailbox existence, role use, disposable use, and random input without doing DNS or mailbox network calls.
Malformed or over-long addresses return low confidence rather than a request error. Reserved domains lower the DNS result. The simulator suppression address is the only simulator address with a low mailbox result; ordinary addresses use fixed local rules.
References: src/…/SesInsightsController.java• L80-105 src/…/SesMailboxValidation.java• L10-26 src/…/SesMailboxValidation.java• L49-87
Sender identities
An SES identity is a verified email address or domain that can represent a sender. Identity state also covers DKIM, MAIL FROM, feedback, notification, default configuration-set, tag, certificate, and policy data.
Identity verification and sender controls
Email identities are ready for local sending. Domain identities begin with pending verification and expose DKIM tokens. A later read can detect the expected CNAME records in Route 53 and move the identity and DKIM state to success. Email identities inherit DKIM state from a registered parent domain. A key rotation resets DKIM verification until the new records appear, but does not revoke an already verified domain. V2 identity reads and lists expose the same state through JSON names.
Identity settings can set MAIL FROM, feedback forwarding, notification topics, and a default configuration set. DKIM signing can use the SES-managed or external signing origin, subject to the required signing data. Policies are stored as sending-authorization metadata. Floci does not evaluate their principals at send time. If SES can no longer publish to a bounce or complaint topic, the local model removes that topic setting and turns feedback forwarding back on.
S/MIME certificate associations are metadata. A listed association is active only when the identity is verified and its ACM certificate is issued, current, suitable for email signing, and names the sender. Floci does not sign local mail with the certificate. Any association blocks identity deletion until it is removed.
References: src/…/SesIdentityService.java• L101-173 src/…/SesIdentityService.java• L601-722 src/…/SesIdentityService.java• L724-765 src/…/SesIdentityCertificateService.java• L39-47 src/…/SesIdentityCertificateService.java• L139-179
Identity authorization policies
Identity policies provide stored sending-authorization documents for v1 and v2 policy operations. The local model validates policy names and keeps separate create, update, list, and delete behavior for the two API generations, but it does not make send decisions from policy principals. See IAM and authentication for the wider authorization model.
An identity can have a bounded number of policies. Deleting an identity removes its policies, so a later identity with the same name does not inherit old policy state.
References: src/…/SesPolicyService.java• L53-165 src/…/SesPolicyService.java• L168-211 src/…/SesService.java• L237-254
Email templates
Templates separate reusable message content from custom verification messages. Both are regional resources and can be managed through v1 and v2 APIs.
Reusable message templates
An EmailTemplate stores a name and subject, text, or HTML content. Clients can create, update, list, delete, and test-render it. Sends select a stored template by name or ARN and provide rendering data. v2 can also carry inline template content.
Template lists are paginated and use resource-specific tokens. Template tags are managed separately from template content. Rendering supports named values and the reserved unsubscribe placeholder. A failed render prevents that message from being accepted. In a bulk send, only the affected entry fails. Test rendering returns MIME content that lets clients inspect how the subject, body encoding, and text/HTML parts will appear. The test view uses a local placeholder for unsubscribe links; an actual list-managed send replaces that placeholder with its generated link.
References: src/…/SesTemplateService.java• L88-185 src/…/SesTemplateService.java• L322-448 src/…/SesSendController.java• L164-212 src/…/SesQueryHandler.java• L582-687
Custom verification templates
A custom verification template is a branded message for registering an email identity. Its sender must be a verified identity or domain. Its success and failure URLs must use HTTP or HTTPS.
Sending the message records the target as a pending email identity before the local relay attempt. Floci appends the SES disclaimer but does not provide a real verification-click flow or external verification link.
References: src/…/SesQueryHandler.java• L690-771 src/…/SesService.java• L880-991
Contacts and suppression state
Contact lists describe subscription preferences for list-managed email. Suppression lists describe addresses that should not receive mail because of bounce or complaint history. These states affect recipient outcomes during send.
Contact lists and preferences
An account can have one contact list per Region. The list defines topics and default subscription status. A contact can override a topic, unsubscribe from the whole list, or store application attributes. Reads expose both explicit preferences and effective defaults.
Contact updates merge topic preferences by topic name. An import replaces the whole contact. Deleting the list also deletes its contacts. List and contact reads support pagination and filters for effective opt-in or opt-out state.
The local unsubscribe flow shows a confirmation page for GET and changes state on POST. The generated one-click request carries the Region, contact list, address, and optional topic. The endpoint is unauthenticated and is intended for a trusted local development or test network.
References: src/…/SesContactService.java• L83-212 src/…/SesContactService.java• L452-501 src/…/SesUnsubscribeController.java• L17-32 src/…/SesUnsubscribeController.java• L44-88
List-managed sending
V2 SendEmail can name a contact list and an optional topic. The send path creates a missing contact when needed and treats an opted-out contact as a list-management bounce. That recipient is not relayed and appears in the shared event model.
For a single-recipient send, the service can replace unsubscribe URL placeholders and add one-click unsubscribe headers. Bulk sends and v1 Query sends do not use list-management options.
References: src/…/SesSendController.java• L115-132 src/…/SesService.java• L404-429 src/…/SesService.java• L1574-1639 src/…/SesContactService.java• L745-791
Suppression lists
Fresh account state suppresses both BOUNCE and COMPLAINT reasons. An account update can replace that set, including with an empty list. A configuration set can override it, and an explicit empty configuration-set list disables suppression filtering for that set.
Suppression addresses trim input and lower-case only the domain. The same lookup controls relay filtering and event classification. Tenant suppression lists are separate from the account list and are removed when the tenant is deleted.
References: src/…/SesService.java• L1315-1335 src/…/SesService.java• L1463-1569 src/…/SesService.java• L405-416
Configuration sets and deliverability
A configuration set groups send-time rules and delivery metadata. It can pause sending, override suppression reasons, set tracking and delivery options, select a dedicated IP pool, store VDM or archiving options, and route events.
Configuration set behavior
Sending is enabled unless the set is paused. A named missing or paused set fails before the message is accepted. If a sender has a default set, that set applies when the request does not name one. An explicit set name takes precedence over an identity or domain default.
Tracking requires a verified domain. Delivery options can require TLS, select an existing dedicated IP pool, and set a delivery time limit from 300 to 50,400 seconds. Message security, reputation, archiving, and VDM settings model SES state but do not create real signing or external deliverability behavior. V1 and v2 use different option names while sharing the same configuration state.
References: src/…/SesConfigurationSetController.java• L84-145 src/…/SesConfigurationSetController.java• L192-365 src/…/SesConfigurationSetService.java• L91-124 src/…/SesConfigurationSetService.java• L192-216 src/…/SesConfigurationSetService.java• L226-289 src/…/SesService.java• L386-393
Event destinations
An event destination selects one downstream target and the event types it receives. Both v1 and v2 configure the same destination state even though their field names differ. A destination must contain one valid target and at least one event type.
Supported local targets connect to SNS, Kinesis Data Firehose, EventBridge, or CloudWatch. SNS topics must be usable by SES and must be in the configuration set's Region. EventBridge must name the default bus in the same account and Region. Pinpoint remains metadata only.
CloudWatch dimensions can read message tags or additional email headers. If the requested value is absent, the configured default dimension value is used. Events are published only for enabled destinations whose event list contains the event type.
References: src/…/SesConfigurationSetService.java• L538-730 src/…/SesConfigurationSetService.java• L745-803 src/…/SesEventPublisher.java• L149-200 src/…/SesEventPublisher.java• L294-375
Dedicated IP pools
Dedicated IP pools provide named deliverability groups that a configuration set can select. Floci stores pool names, scaling mode, warmup settings, and tags so account and infrastructure workflows can manage the resource.
Floci does not lease or allocate dedicated IP addresses. Dedicated-IP inventory and warmup operations therefore do not change local SMTP delivery.
References: src/…/SesConfigurationSetService.java• L254-276 src/…/SesService.java• L1060-1076
Reputation entities
Each SES tenant is exposed as a reputation entity. The entity reports its tenant ARN, policy, sending status, and customer-managed status. Floci has no reputation findings, so the reputation impact is always NONE and SES-managed status is empty.
Clients can list entities, filter them, change the tenant's reputation policy, or set a customer-managed sending status. The status record keeps the status, cause, and update time, and the tenant's aggregate sending status follows it.
References: src/…/SesReputationEntityService.java• L20-29 src/…/SesReputationEntityService.java• L60-165
Tenants and resource associations
SES v2 tenants add a sending boundary inside an account. A tenant has a generated identity, an ARN, tags, sending status, optional suppression attributes, and associations with SES resources.
Tenant resources
Tenants can associate with identities, configuration sets, and reusable templates. The resource must exist in the same account and Region. Deleting a tenant removes its associations and tenant suppression entries. Deleting an associated backing resource is blocked until the association is removed.
Tenant suppression attributes define whether tenant policy uses tenant or account suppression reasons. The tenant suppression address list remains separate from the account list.
References: src/…/SesService.java• L1112-1147 src/…/SesService.java• L1253-1277 src/…/SesService.java• L1463-1523
Tenant-scoped sending
When a v2 send names a tenant, every stored resource used by the send must be associated with that tenant. This can include the sender identity, effective configuration set, and stored template. A missing association causes access denial before delivery.
Tenant sending status is reported as part of tenant state. Resource association and normal account or configuration-set gates control local sending. Bulk sends keep per-entry failures for invalid destinations while shared tenant and sender checks apply to the call.
References: src/…/SesService.java• L1160-1229 src/…/SesService.java• L1695-1741
Receipt rule sets
Receipt rule sets model SES inbound-mail configuration. They store ordered rules, actions, and IP filters so clients and infrastructure tools can create, inspect, reorder, activate, clone, and remove inbound configuration. CloudFormation can use these resources as part of infrastructure setup.
Inbound rule behavior
Rules can describe recipients, TLS policy, scan behavior, and actions such as S3, SNS, Lambda, bounce, header, stop, Connect, and WorkMail. Local resource targets are checked when rules are created or updated. Sparse action data is preserved for describe and clone operations.
Receipt resources are inert. Floci has no inbound-mail endpoint, so an active rule set does not receive mail or execute actions. Only one rule set can be active in a Region. An active set cannot be deleted, and activation without a name clears the active selection.
References: src/…/SesQueryHandler.java• L168-183 src/…/SesReceiptRuleService.java• L34-46 src/…/SesReceiptRuleService.java• L125-211 src/…/SesReceiptRuleService.java• L568-665
Simulated delivery outcomes
The SES mailbox simulator gives tests deterministic recipient outcomes without a real mailbox. Known simulator addresses map to success, bounce, complaint, or suppression-list behavior.
Mailbox simulator addresses
Matching is case-insensitive and supports a +label on the local part. The simulator result affects recipient events, suppression behavior, relay eligibility, and message insights. Ordinary addresses use the local delivery result because no external provider is available.
References: src/…/SimulatorAddresses.java• L3-55 src/…/SesService.java• L476-500
Local message inspection
The local inspection endpoint lets tests and development tools review accepted messages or clear the stored set. It can filter by message ID or recipient.
Inspection distinguishes structured messages from raw MIME messages. Structured records expose the envelope and content metadata. Raw records expose the original MIME data. Rejected-content records keep the envelope and reason but not the rejected body. Stored records also carry recipient insight timelines, the resolved configuration set, and the tenant name used by metrics and exports.
References: src/…/SesService.java• L459-499 src/…/SesExportJobService.java• L303-333
Change checklist
When these files or sections are changed, remember to consider these:
- Keep v1 Query actions and v2 routes aligned when they expose the same SES operation. Preserve each protocol's response, timestamp, and error form.
- Keep v2 JSON shape checks aligned with controller parsing. Wrong structure and list member types must fail before operation-level validation, while scalar checks remain in the owning operation.
- Keep send content, address checks, template rendering, MIME output, bulk entry results, tenant association checks, suppression lookup, event classification, insight timelines, and relay eligibility aligned.
- Keep raw MIME decoding, header extraction, MIME parsing, content scanning, blocked-attachment rejection, stored raw content, and raw relay behavior aligned. Parse raw content once so validation and delivery use the same message.
- Keep SES raw control headers aligned with request fields. Configuration-set, message-tag, return-path, and authorization headers must affect processing without being forwarded as ordinary mail headers.
- Keep the address syntax package and MIME encoding helpers aligned with every caller that builds error text or rendered message content.
- Keep account suppression defaults, configuration-set overrides, tenant suppression attributes, and tenant suppression lists separate.
- Keep contact update merge behavior distinct from contact-import replacement behavior.
- Keep the unsubscribe URL contract aligned across list-management injection, the GET confirmation page, and the POST state change. Preserve the Region in the link.
- Keep identity parent-domain DKIM state, Route 53 refresh, notification-topic fallback, certificate status, policy cleanup, and deletion guards aligned.
- Keep configuration-set option validation, v1/v2 field translation, SNS and EventBridge target validation, downstream event publishing, and identity feedback notifications aligned.
- Keep SNS topic policy checks consistent between event-destination creation and event publishing. Keep EventBridge default-bus and account/Region checks aligned with event orchestration.
- Keep metric query shape checks, dimension rules, insight timelines, address-insight verdicts, export filters, date bounds, and stored message dimensions aligned.
- Keep export-job admission, VDM gating, source windows, active-job limits, restart recovery, local S3 output, cancellation, and presigned URLs aligned.
- Keep VDM recommendation derivation aligned with verified-domain state, DKIM settings, DMARC and BIMI DNS records, filter precedence, and the empty result when VDM is disabled.
- Keep tenant associations, reputation status updates, and backing-resource deletion guards consistent.
- Keep receipt-rule validation and resource checks separate from the inert inbound-mail boundary.
Important failure modes
| Trigger | Consequence | Guard |
|---|---|---|
| Account sending is disabled | A send fails before acceptance | Account sending state is checked at v1 and v2 send entry points |
| A v2 member has the wrong JSON type | A serialization error returns before operation validation | v2 body and member shape checks reject the wire shape |
| A raw MIME message cannot be decoded or parsed | The raw send fails before a message record or relay attempt is created | The shared raw-message parse result is checked before raw content is accepted |
| A raw or structured attachment has a blocked file type | The send fails before acceptance | MIME attachment names are checked against the SES blocked-type set |
| A test-virus signature is found | The message is accepted but not relayed, and its stored content is redacted | Text, headers, wire bytes, and decoded MIME parts are scanned |
| A metric batch has invalid query shape, dimension, identifier, or time range | The whole metric request fails instead of returning partial query data | Batch validation runs before timeline aggregation |
| A configuration set is missing or paused | The message is not stored or relayed | The effective set is validated before acceptance |
| A recipient is suppressed or opted out | The message is accepted but that recipient is not relayed | Account, configuration-set, tenant, and contact state are resolved before relay |
| A tenant lacks a required resource association | The send is denied | Tenant sending checks every stored resource used by the send |
| VDM is not enabled | Message insights, metrics, or exports fail; recommendation listing returns no findings | Each VDM surface applies its account VDM state |
| An event destination names an unusable SNS topic or wrong EventBridge bus | The destination cannot be created or the event is skipped | Destination validation and downstream publish checks verify target scope and access |
| A bulk entry has invalid data | That entry fails while other entries can complete | Bulk request state keeps rejection at entry level |
| An export names more than one source or a custom S3 URL | No export job starts | Export admission requires one source and a fixed local destination |
| An export job is interrupted by restart | The unfinished job becomes failed and has no usable output | Startup recovery marks non-terminal jobs failed |
| A domain's DKIM records are absent | Identity and DKIM verification stay pending | Identity reads refresh state from Route 53 records |
| An identity notification topic becomes unavailable | Bounce or complaint topic settings are removed and feedback forwarding is restored | Notification publish checks topic existence and policy |
| An identity has a certificate association | Identity deletion is blocked | Certificate associations must be removed first |
| An associated ACM certificate is missing, expired, or not suitable for email signing | The certificate association reports FAILED and cannot be used for signing | Certificate status is evaluated against the verified identity and ACM certificate properties |
| An active receipt rule set is deleted | Deletion fails | Receipt-rule state protects the active set |
| The SMTP server is unavailable | The accepted message remains but relay fails | Relay runs separately from acceptance |
Key files
| File | Why to read it |
|---|---|
| src/…/SesQueryHandler.java | v1 action routing, XML responses, v1 send translation, templates, configuration sets, and receipt-rule operations |
| src/…/SesSendController.java | v2 send request shapes, structured content, raw content, bulk entries, headers, attachments, tags, and list-management options |
| src/…/SesV2Json.java | v2 JSON body parsing, type errors, boolean coercion, tags, filters, and timestamps |
| src/…/SesService.java | Shared send coordination across identities, templates, suppression, tenants, events, relay, MIME scanning, and stored messages |
| src/…/SesIdentityService.java | Identity verification, DKIM state, Route 53 checks, MAIL FROM, and notification settings |
| src/…/SesIdentityCertificateService.java | S/MIME identity associations, certificate status, and identity deletion guards |
| src/…/SesConfigurationSetController.java | v2 configuration-set routes and option translation |
| src/…/SesConfigurationSetService.java | Configuration-set gates, option validation, suppression overrides, and event destinations |
| src/…/SesEventPublisher.java | Live event delivery to SNS, Firehose, EventBridge, and CloudWatch |
| src/…/SesTemplateService.java | Reusable template lifecycle, rendering, and MIME test output |
| src/…/SesTemplateController.java | v2 template routes and JSON template rendering requests |
| src/…/SesAddressSyntax.java | Shared envelope and raw-message address rules |
| src/…/SesRawMessage.java | Shared raw-message decoding, header extraction, and SES control-header handling |
| src/…/SesMimeParser.java | Shared parsing of raw MIME bytes for send validation, scanning, and relay |
| src/…/SesContentScan.java | Test-virus scanning and blocked attachment checks |
| src/…/SesEncodedWord.java | Encoded display names and subject text used in MIME output |
| src/…/SesMimeEncoding.java | Subject folding and body transfer encoding for rendered MIME |
| src/…/SesUnsubscribeController.java | Local confirmation and one-click unsubscribe behavior |
| src/…/SesContactService.java | Contact-list state, preferences, and list-managed send behavior |
| src/…/SesExportJobController.java | v2 export-job requests, job reads, listing, and cancellation |
| src/…/SesExportJobService.java | Export validation, asynchronous processing, local S3 output, restart recovery, and presigned URLs |
| src/…/SesMetricsController.java | VDM metric query shape, validation, and aggregation entry point |
| src/…/SesTenantService.java | Tenant lifecycle, associations, suppression attributes, and send gates |
| src/…/SesReceiptRuleService.java | Receipt rule sets, ordering, action checks, filters, and active-set state |
| src/…/SmtpRelay.java | Optional structured and raw SMTP delivery, MIME reconstruction, and relay header rules |
| src/…/SimulatorAddresses.java | Deterministic mailbox simulator outcomes |