AWS ses: Rewrite Mail Manager ingress point docs with IAM, TLS, mTLS guidance
Summary
Restructures ingress point documentation; adds IAM condition keys, TLS policy table, mTLS/auth details, VPC endpoint service names, and logging guidance.
Security assessment
The added line documents IAM condition keys that restrict ingress point creation to approved types, traffic policies, and rule sets, which is authorization hardening guidance. It is security documentation rather than a fix for a specific vulnerability.
Evidence
+The principal that creates the ingress endpoint needs `ses:CreateIngressPoint` permission for the ingress point resource. You can restrict the selected type, traffic policy, and rule set with the `ses:MailManagerIngressPointType`, `ses:MailManagerTrafficPolicyArn`, and `ses:MailManagerRuleSetArn` condition keys.
Diff
diff --git a/ses/latest/dg/eb-ingress.md b/ses/latest/dg/eb-ingress.md index 746837a..1732b11 100644 --- a//ses/latest/dg/eb-ingress.md +++ b//ses/latest/dg/eb-ingress.md @@ -7 +7 @@ -Configuring ingress endpointsCredentials rotationTLS policymTLS authenticationCreating an ingress endpoint (console) +How ingress points workIngress point typesBefore you create an ingress pointPublic and private configurationTLS policiesCreate and manage ingress pointsMonitoring accepted and rejected trafficChoosing an ingress point for your email flow @@ -11 +11 @@ Configuring ingress endpointsCredentials rotationTLS policymTLS authenticationCr -An ingress endpoint is the key infrastructure component in Mail Manager that receives, routes, and manages your email by utilizing policies and rules you configure to determine which emails should be rejected, which ones should be allowed, and which ones should be acted upon. +An ingress endpoint is a managed Simple Mail Transfer Protocol (SMTP) endpoint that receives email for Mail Manager. You do not provision, scale, or patch the SMTP server. You configure how senders connect, which traffic the endpoint accepts, and what happens to accepted email. @@ -13 +13 @@ An ingress endpoint is the key infrastructure component in Mail Manager that rec -Each ingress endpoint has its own traffic policy to determine which emails to block or allow, and its own rule set to perform actions on the email you do allow in; therefore, by creating multiple ingress endpoints, you can delegate each one to manage and route specific types of email. This level of granularity will help you to build an email management system that's tailored to your business needs. +Every ingress endpoint references one traffic policy and one rule set. You can assign the same traffic policy or rule set to multiple ingress endpoints. You can also create separate ingress endpoints for different sender groups, domains, applications, or security requirements. @@ -15 +15 @@ Each ingress endpoint has its own traffic policy to determine which emails to bl -###### Prerequisite workflow to create an ingress endpoint +The following diagram shows three separate email flows that use open, mutual TLS, and authenticated ingress endpoints. @@ -17 +17 @@ Each ingress endpoint has its own traffic policy to determine which emails to bl -At the time of creating your ingress endpoint, you must assign it a traffic policy and a rule set that have _already been created_. Therefore, the workflow for creating an ingress endpoint should be in the following order: + @@ -19 +19 @@ At the time of creating your ingress endpoint, you must assign it a traffic poli - 1. Start by creating a traffic policy to determine the email you want to block or allow. For details, see [Creating traffic policies and policy statements in the SES console](./eb-filters.html#eb-filters-create-console). +Each ingress endpoint provides a separate SMTP entry path. Its traffic policy accepts or rejects each recipient before its rule set processes the accepted message. Application and traffic policy logs from every flow can share the same delivery destinations. @@ -21 +21 @@ At the time of creating your ingress endpoint, you must assign it a traffic poli - 2. Next, create a rule set to perform actions on the email you allow in. For details, see [Create and manage rule sets in the SES console](./eb-rules-setup.html#eb-rules-create-console). +## How ingress points process SMTP traffic @@ -23 +23 @@ At the time of creating your ingress endpoint, you must assign it a traffic poli - 3. Finally, create your ingress endpoint and assign to it the traffic policy and rule set you just created or any others you previously created. +An SMTP connection passes through the following stages. @@ -24,0 +25 @@ At the time of creating your ingress endpoint, you must assign it a traffic poli + 1. The sender connects to the public SMTP endpoint hostname or to a DNS name for the associated Amazon VPC endpoint. @@ -25,0 +27 @@ At the time of creating your ingress endpoint, you must assign it a traffic poli + 2. The ingress endpoint applies the connection requirements for its type. A public open ingress endpoint is reachable by any internet SMTP sender and does not require a username, password, or client certificate. Its traffic policy controls which recipients and traffic attributes are accepted. For example, an address-list condition can allow only recipients in a maintained list. An authenticated ingress endpoint requires an SMTP username and password. An mTLS ingress endpoint requires a trusted client certificate. @@ -26,0 +29 @@ At the time of creating your ingress endpoint, you must assign it a traffic poli + 3. The traffic policy evaluates each envelope recipient during the SMTP `RCPT TO` command. A rejected recipient does not enter rule-set processing. For evaluation order and conditions, see [Traffic policies and policy statements](./eb-filters.html). @@ -28 +31 @@ At the time of creating your ingress endpoint, you must assign it a traffic poli -Once you create your ingress endpoint, you must configure it with the environment you're using to receive email, whether that be the configuration of an on-premise SMTP client or a web-based DNS domain host. This is discussed below in Receiving email through the public endpoints. + 4. The traffic policy checks the received message size against its configured maximum during the SMTP `DATA` command. @@ -30 +33 @@ Once you create your ingress endpoint, you must configure it with the environmen -## Configuring your environment to use an ingress endpoint + 5. The assigned rule set processes the accepted email and runs its configured actions. For rule execution behavior, see [Rule sets and rules](./eb-rules.html). @@ -32 +34,0 @@ Once you create your ingress endpoint, you must configure it with the environmen -SES supports both public endpoints and Amazon Virtual Private Cloud (VPC) endpoints for ingress endpoints to accept incoming email. The following sections explain how to configure your ingress endpoint to use either of these options. @@ -34 +35,0 @@ SES supports both public endpoints and Amazon Virtual Private Cloud (VPC) endpoi -## Topics @@ -36 +36,0 @@ SES supports both public endpoints and Amazon Virtual Private Cloud (VPC) endpoi - * Public endpoint configuration @@ -38,47 +38 @@ SES supports both public endpoints and Amazon Virtual Private Cloud (VPC) endpoi - * VPC endpoint configuration - - - - -### Receiving email through the public endpoints - -###### Using the "A" record - -At the time you create an ingress endpoint, an "A" record for the endpoint will be generated and its value displayed on the ingress endpoint's summary screen in the SES console. The way you use the value of this record depends on the type of endpoint you created and your use case: - - * Open endpoint – Mail sent to your domain will resolve directly to your ingress endpoint—no authentication required. - - * Copy and paste the value of the "A" record either directly into the SMTP configuration of an on-premise SMTP client or into an MX record for your domain in your DNS configuration. - - * Supported port: 25 - - * Supports STARTTLS: Yes - - * Authenticated endpoint – Mail sent to your domain has to come from authorized senders whom you’ve shared your SMTP credentials with, such as your on-premise email servers. - - * Copy and paste the value of the "A" record directly into the SMTP configuration of an on-premise SMTP client as well as your user name and password. - - * Supported ports: 25, 587 ([RFC 2476](https://www.ietf.org/rfc/rfc2476.txt)) - - * Supports STARTTLS: Yes - - * mTLS endpoint – Mail sent to your domain must come from clients that present a TLS client certificate signed by one of the certificate authorities (CAs) in the ingress endpoint's trust store. See Mutual TLS (mTLS) authentication for ingress endpoints. - - * Copy and paste the value of the "A" record directly into the SMTP configuration of an on-premise SMTP client. - - * Supported port: 25 - - * Supports STARTTLS: Yes - - - - -If you're using an MX record in your configuration, keep in mind that while every DNS provider has different procedures and interfaces for configuring records, the key pieces of information you need to put into you DNS settings are listed in the following example: - -All email sent to [email protected]_ will go to your ingress endpoint because you entered the ingress endpoint's "A" record as the value for an MX record in your domain’s DNS settings: - - * Domain – `marketing.example.com` - - * MX record value – `890123abcdef.ghijk.mail-manager-smtp.amazonaws.com` _(This is the "A" record value copied from your ingress endpoint.)_ - - * Priority – `10` +Note @@ -85,0 +40 @@ All email sent to [email protected]_ will go to your ingress endp +Authentication and a traffic policy have different purposes. Authentication controls which clients can establish an authorized SMTP session. A traffic policy evaluates message and connection attributes, such as recipient, sender IP address, and TLS version. @@ -86,0 +42 @@ All email sent to [email protected]_ will go to your ingress endp +## Choosing an ingress point type @@ -87,0 +44 @@ All email sent to [email protected]_ will go to your ingress endp +The following table compares the available ingress endpoint types. @@ -89 +46,5 @@ All email sent to [email protected]_ will go to your ingress endp -###### Connecting to the authenticated endpoint +Type | Client verification | Common use | Detailed guidance +---|---|---|--- +`OPEN` | A public endpoint permits connections from any internet SMTP sender without credentials or a client certificate. The traffic policy controls which traffic is accepted. | Receiving internet email through an MX record, or receiving email from systems on a restricted private network. | [Open ingress points](./eb-ingress-open.html) +`AUTH` | SMTP username and password using `AUTH LOGIN` or `AUTH PLAIN`. | Applications, mail servers, and partner systems that support SMTP credentials. | [Authenticated ingress points](./eb-ingress-auth.html) +`MTLS` | A client certificate that chains to a certificate authority in the configured trust store. | System-to-system integrations that use certificate-based client identity. | [Mutual TLS ingress points](./eb-ingress-mtls.html) @@ -91 +52 @@ All email sent to [email protected]_ will go to your ingress endp -For the authorized senders whom you’ve shared your SMTP credentials with in order to connect to your authenticated endpoint, the following protocols must be followed for the _username_ and _password_ in order to establish a successful connection to the server: +## Before you create an ingress point @@ -93 +54 @@ For the authorized senders whom you’ve shared your SMTP credentials with in or - * Username – This is the ingress endpoint ID and must be encoded in Base64. _(SeeStep 11. in the console procedures to learn how to find the ingress endpoint ID.)_ + 1. Create a traffic policy that accepts only the intended traffic. For instructions, see [Creating traffic policies and policy statements in the SES console](./eb-filters.html#eb-filters-create-console). @@ -95 +56 @@ For the authorized senders whom you’ve shared your SMTP credentials with in or - * Password – This is the one used during ingress endpoint creation and must be encoded in Base64. + 2. Create a rule set that processes accepted email. For instructions, see [Create and manage rule sets](./eb-rules-setup.html). @@ -96,0 +58 @@ For the authorized senders whom you’ve shared your SMTP credentials with in or + 3. Choose an ingress endpoint type and prepare its authentication configuration. An authenticated ingress endpoint requires an SMTP password or AWS Secrets Manager secret. An mTLS ingress endpoint requires a CA certificate bundle. @@ -97,0 +60 @@ For the authorized senders whom you’ve shared your SMTP credentials with in or + 4. Choose public access or create the required interface Amazon VPC endpoint for private access. @@ -100 +62,0 @@ For the authorized senders whom you’ve shared your SMTP credentials with in or -The following example shows a typical SMTP AUTH server and client exchange establishing connection: @@ -103,7 +65 @@ The following example shows a typical SMTP AUTH server and client exchange estab - S: 250 AUTH LOGIN PLAIN - C: AUTH LOGIN - S: 334 VXNlcm5hbWU6 - C: SW5ncmVzc1BvaW50 - S: 334 UGFzc3dvcmQ6 - C: SW5ncmVzc1Bhc3N3b3Jk - S: 235 Authentication successful +The principal that creates the ingress endpoint needs `ses:CreateIngressPoint` permission for the ingress point resource. You can restrict the selected type, traffic policy, and rule set with the `ses:MailManagerIngressPointType`, `ses:MailManagerTrafficPolicyArn`, and `ses:MailManagerRuleSetArn` condition keys. @@ -111 +67 @@ The following example shows a typical SMTP AUTH server and client exchange estab -This example contains the following properties: +In the following IAM policy, replace the AWS Region, account ID, traffic policy ID, and rule set ID with your own values. The policy permits a principal to create only an open ingress endpoint that uses the approved traffic policy and rule set. @@ -113 +68,0 @@ This example contains the following properties: - * `S` means "Server"—the SMTP server accepting messages. @@ -115 +70,16 @@ This example contains the following properties: - * `C` means "Client"—the SMTP client establishing connection with the server and sending messages to server. + { + "Version": "2012-10-17", + "Statement": [{ + "Sid": "CreateOpenIngressPointWithApprovedResources", + "Effect": "Allow", + "Action": "ses:CreateIngressPoint", + "Resource": "arn:aws:ses:us-east-1:123456789012:mailmanager-ingress-point/*", + "Condition": { + "StringEquals": { + "ses:MailManagerIngressPointType": "OPEN", + "ses:MailManagerTrafficPolicyArn": "arn:aws:ses:us-east-1:123456789012:mailmanager-traffic-policy/tp-0123456789abcdef01234567", + "ses:MailManagerRuleSetArn": "arn:aws:ses:us-east-1:123456789012:mailmanager-rule-set/rs-0123456789abcdef01234567" + } + } + }] + } @@ -117 +87 @@ This example contains the following properties: - * `250 AUTH LOGIN PLAIN` is a response from the server with AUTH methods supported, `AUTH LOGIN` or `AUTH PLAIN`, the sender could choose either of them, and send SMTP commands compliant with the SMTP Service Extension for Authentication specification [RFC 2554](https://www.ietf.org/rfc/rfc2554.txt). `AUTH LOGIN` is used here. +To authorize a different type, replace `OPEN` with `AUTH` or `MTLS`. For a policy that also manages traffic policies and updates an existing ingress endpoint, see [Permissions for traffic policies and ingress points](./eb-filters.html#eb-filters-permissions). @@ -119 +89 @@ This example contains the following properties: - * `334 VXNlcm5hbWU6` – Server prompting for the username in Base64. +If the SES service-linked role does not exist, creating the first ingress endpoint also requires `iam:CreateServiceLinkedRole`. Creating a private ingress endpoint requires `ec2:DescribeVpcEndpoints`. A request that adds tags requires `ses:TagResource`. @@ -121 +91 @@ This example contains the following properties: - * `SW5ncmVzc1BvaW50` – Client responding with ingress endpoint ID in Base64. +## Configuring public and private ingress points @@ -123 +93 @@ This example contains the following properties: - * `334 UGFzc3dvcmQ6` – Server prompting for the password in Base64. +### Receiving email through public endpoints @@ -125 +95 @@ This example contains the following properties: - * `SW5ncmVzc1Bhc3N3b3Jk` – Client responding with ingress endpoint password in Base64. +After a public ingress endpoint becomes active, its `ARecord` field contains the SMTP endpoint hostname. Use this hostname as the server name in an SMTP client. For an open ingress endpoint that receives internet email for a domain, use the hostname as the target of the domain's MX record. @@ -126,0 +97 @@ This example contains the following properties: +For example, the following MX record routes email for `marketing.example.com` to a public ingress endpoint. @@ -127,0 +99,5 @@ This example contains the following properties: +Record name | `marketing.example.com` +---|--- +Record type | `MX` +Priority | `10` +Value | `890123abcdef.ghijk.mail-manager-smtp.amazonaws.com` @@ -128,0 +105 @@ This example contains the following properties: +Replace the example value with the hostname returned for your ingress endpoint. DNS providers use different interfaces and terminology for MX records. @@ -132,80 +109 @@ This example contains the following properties: -In addition to public ingress endpoints, you can use VPC endpoints with SES ingress endpoints for secure, private email ingestion within your private network infrastructure. - -###### Configuration differences compared to using public ingress endpoints - - * The "A" Record typically available for public endpoints is not provided. - - * You must connect to the ingress endpoint using DNS names provided by your VPC endpoint. - - * All connections use private networking within your VPC. - - - - -###### Types of ingress endpoints supported through VPC endpoints - -SES supports two types of ingress points through VPC endpoints: - - * Open ingress endpoint – Email sent to your domain route directly through the VPC endpoint without requiring sender authentication. -