diff --git a/src/main/java/io/github/hectorvent/floci/services/ses/SesController.java b/src/main/java/io/github/hectorvent/floci/services/ses/SesController.java
index a698544dae..d759f316c6 100644
--- a/src/main/java/io/github/hectorvent/floci/services/ses/SesController.java
+++ b/src/main/java/io/github/hectorvent/floci/services/ses/SesController.java
@@ -355,7 +355,7 @@ public class SesController {
throw new AwsException("BadRequestException",
"EXTERNAL origin requires DomainSigningSelector and DomainSigningPrivateKey.", 400);
}
- SesService.DkimSigningResult result = sesService.putDkimSigningAttributes(
+ SesIdentityService.DkimSigningResult result = sesService.putDkimSigningAttributes(
emailIdentity, origin, selector, nextKeyLength, region);
ObjectNode out = objectMapper.createObjectNode();
out.put("DkimStatus", toV2Status(result.dkimStatus()));
diff --git a/src/main/java/io/github/hectorvent/floci/services/ses/SesIdentityService.java b/src/main/java/io/github/hectorvent/floci/services/ses/SesIdentityService.java
new file mode 100644
index 0000000000..db3d659bff
--- /dev/null
+++ b/src/main/java/io/github/hectorvent/floci/services/ses/SesIdentityService.java
@@ -0,0 +1,645 @@
+package io.github.hectorvent.floci.services.ses;
+
+import com.fasterxml.jackson.core.type.TypeReference;
+import io.github.hectorvent.floci.core.common.AwsException;
+import io.github.hectorvent.floci.core.storage.StorageBackend;
+import io.github.hectorvent.floci.core.storage.StorageFactory;
+import io.github.hectorvent.floci.services.route53.Route53Service;
+import io.github.hectorvent.floci.services.route53.model.HostedZone;
+import io.github.hectorvent.floci.services.route53.model.ResourceRecord;
+import io.github.hectorvent.floci.services.route53.model.ResourceRecordSet;
+import io.github.hectorvent.floci.services.ses.model.Identity;
+import io.github.hectorvent.floci.services.ses.model.Tag;
+import jakarta.enterprise.context.ApplicationScoped;
+import jakarta.inject.Inject;
+import org.jboss.logging.Logger;
+
+import java.time.Clock;
+import java.time.Duration;
+import java.time.Instant;
+import java.util.ArrayList;
+import java.util.HashSet;
+import java.util.List;
+import java.util.Locale;
+import java.util.Map;
+import java.util.Optional;
+import java.util.Set;
+import java.util.UUID;
+import java.util.concurrent.ConcurrentHashMap;
+
+/**
+ * Email and domain identities, extracted from {@link SesService} as the last store of the
+ * store-based domain split: the store, key derivation and whitespace validation, verification
+ * (email and domain), listing, MAIL FROM and notification settings, the CVET pending registration,
+ * the ARN-dispatched identity tagging, and the DKIM state machine (token generation, signing
+ * attributes, the Route53-backed record detection with its lookup cache) live here.
+ *
+ *
The remaining boundary follows the cross-domain seams: the default-configuration-set
+ * association and the send-path reads stay in the facade and reach the store through
+ * {@link #find}/{@link #save}. The facade also keeps the tenant delete-guard and the policy
+ * cascade around {@link #delete}.
+ */
+@ApplicationScoped
+public class SesIdentityService {
+
+ private static final Logger LOG = Logger.getLogger(SesIdentityService.class);
+
+ private static final Duration DKIM_LOOKUP_CACHE_TTL = Duration.ofSeconds(5);
+
+ private final StorageBackend identityStore;
+ // Null means DNS lookup disabled: DKIM records are then never detected and statuses stay Pending.
+ private final Route53Service route53Service;
+ private final Clock clock;
+ private final ConcurrentHashMap dkimLookupCache = new ConcurrentHashMap<>();
+
+ @Inject
+ public SesIdentityService(StorageFactory storageFactory, Route53Service route53Service, Clock clock) {
+ this(storageFactory.create("ses", "ses-identities.json",
+ new TypeReference