AWS ses: SES SMTP credentials: add TLS/STARTTLS connection guidance
Summary
Restructures the Amazon SES SMTP credentials topic, adding sections on SMTP interface requirements, connecting via STARTTLS or TLS Wrapper, required email information, a note recommending Mail Manager SMTP, and clarifying that SMTP credentials differ from AWS access keys.
Security assessment
The added content documents that all SMTP connections must use TLS and explains STARTTLS/TLS Wrapper for encrypted transport, and warns that SMTP credentials are not the same as AWS access keys. This is security best-practice/hardening documentation rather than a fix for a specific vulnerability or incident, so it is security-adjacent (medium) rather than high.
Evidence
+All connections require Transport Layer Security (TLS). Use STARTTLS or TLS Wrapper to establish an encrypted connection.
Diff
diff --git a/ses/latest/dg/smtp-credentials.md b/ses/latest/dg/smtp-credentials.md index f37843a..238e256 100644 --- a//ses/latest/dg/smtp-credentials.md +++ b//ses/latest/dg/smtp-credentials.md @@ -7 +7 @@ -Obtaining your SMTP credentials using the consoleConverting existing credentialsMigrating from an inline policy to a group policy +Requirements for the Amazon SES SMTP interfaceConnect to the Amazon SES SMTP interfaceEmail information to provideObtaining your SMTP credentials using the consoleConverting existing credentialsMigrating from an inline policy to a group policy @@ -9 +9,5 @@ Obtaining your SMTP credentials using the consoleConverting existing credentials -# Obtaining Amazon SES SMTP credentials +# Obtaining Amazon SES SMTP credentials using IAM + +Note + +Mail Manager SMTP is the recommended option for sending email over SMTP. For setup instructions, see [Creating SMTP credentials using Mail Manager](./smtp-credentials-mail-manager.html). This topic describes the IAM user credential option. @@ -13 +17,58 @@ You need Amazon SES SMTP credentials to access the SES SMTP interface. -The credentials that you use to send email through the SES SMTP interface are unique to each AWS Region. If you use the SES SMTP interface to send email in more than one Region, you must generate a set of SMTP credentials for each Region that you plan to use. +## Requirements for the Amazon SES SMTP interface + +To send email using the Amazon SES SMTP interface, you need the following: + + * The SMTP endpoint address. For a list of Amazon SES SMTP endpoints, see [SMTP endpoints](https://docs.aws.amazon.com/general/latest/gr/ses.html#ses_smtp_endpoints) in the _AWS General Reference_. + + * The SMTP interface port number. The port depends on the connection method. For more information, see Connect to the Amazon SES SMTP interface. + + * An SMTP user name and password. SMTP credentials are unique to each AWS Region. You need SMTP credentials for each Region where you use this interface. An IAM-based SMTP user name is a 20-character string of letters and numbers. + +Important + +Your SMTP credentials aren't identical to your AWS access keys. They also differ from the credentials that you use to sign in to the Amazon SES console. For more information, see [Types of Amazon SES credentials](./send-email-concepts-credentials.html). + + + + +## Connect to the Amazon SES SMTP interface + +After you create the credentials, configure your SMTP client to connect to the regional Amazon SES SMTP endpoint. All connections require Transport Layer Security (TLS). Use STARTTLS or TLS Wrapper to establish an encrypted connection. + +Some software uses the term Secure Sockets Layer (SSL) for TLS settings. Check your software documentation to confirm whether it supports STARTTLS, TLS Wrapper, or both. + +Amazon Elastic Compute Cloud (Amazon EC2) throttles email traffic over port `25` by default. Use another port or submit a [Request to Remove Email Sending Limitations](https://aws-portal.amazon.com/gp/aws/html-forms-controller/contactus/ec2-email-limit-rdns-request). You can also use an [Amazon Virtual Private Cloud (Amazon VPC) endpoint](./send-email-set-up-vpc-endpoints.html). + +### STARTTLS + +With STARTTLS, you can upgrade an unencrypted connection to an encrypted connection. Use STARTTLS on port `25`, `587`, or `2587`. For protocol details, see [RFC 3207](https://www.ietf.org/rfc/rfc3207.txt) on the IETF website. + +###### To establish a STARTTLS connection + + 1. Connect to the SMTP endpoint and issue an `EHLO` command. + + 2. Wait for the endpoint to announce STARTTLS support. + + 3. Issue the `STARTTLS` command and complete TLS negotiation. + + 4. Issue another `EHLO` command over the encrypted connection. + + + + +### TLS Wrapper + +With TLS Wrapper, you can start an encrypted connection without first establishing an unencrypted connection. It is also known as SMTP Secure (SMTPS) or the Handshake Protocol. Use TLS Wrapper on port `465` or `2465`. + +Your client initiates TLS and uses it for the complete SMTP session. The endpoint presents its certificate before the client issues an `EHLO` command. TLS Wrapper is an older protocol, but many clients still support it. + +## Email information to provide + +Your SMTP client application assembles the message. The required information depends on the application that you use. At a minimum, the SMTP exchange requires the following: + + * a source address + + * a destination address + + * message data + @@ -15 +75,0 @@ The credentials that you use to send email through the SES SMTP interface are un -Your SMTP password is different from your AWS secret access key. For more information about credentials, see [Types of Amazon SES credentials](./send-email-concepts-credentials.html). @@ -17 +76,0 @@ Your SMTP password is different from your AWS secret access key. For more inform -Note @@ -19 +78 @@ Note -For a list of currently available SMTP endpoints, see [SMTP endpoints](https://docs.aws.amazon.com/general/latest/gr/ses.html#ses_smtp_endpoints) in the _AWS General Reference_. +If you enable feedback forwarding, bounces, complaints, and delivery notifications go to the `MAIL FROM` address. SES doesn't use a `Reply-To` address for these notifications. @@ -322 +381 @@ To use the Amazon Web Services Documentation, Javascript must be enabled. Please -Using the SMTP interface +Credentials using Mail Manager @@ -324 +383 @@ Using the SMTP interface -Using Mail Manager +Using software packages to send email