Skip to content

IngressPoint

Source: src/AWS/MailManager/IngressPoint.ts

An SES Mail Manager ingress point — the SMTP endpoint that receives incoming email, screens it with a traffic policy, and processes it with a rule set.

type and networkConfiguration are immutable (changes replace the endpoint); everything else updates in place.

Open Ingress Point

import * as MailManager from "alchemy/AWS/MailManager";
const ruleSet = yield* MailManager.RuleSet("Inbound", {
rules: [{ Name: "DropAll", Actions: [{ Drop: {} }] }],
});
const trafficPolicy = yield* MailManager.TrafficPolicy("Edge", {
defaultAction: "ALLOW",
});
const ingress = yield* MailManager.IngressPoint("Smtp", {
type: "OPEN",
ruleSetId: ruleSet.ruleSetId,
trafficPolicyId: trafficPolicy.trafficPolicyId,
});
// point your domain's MX record at ingress.aRecord

Authenticated Ingress Point

const ingress = yield* MailManager.IngressPoint("Smtp", {
type: "AUTH",
ruleSetId: ruleSet.ruleSetId,
trafficPolicyId: trafficPolicy.trafficPolicyId,
ingressPointConfiguration: { SecretArn: secret.secretArn },
tlsPolicy: "REQUIRED",
});