AWS Security ChangesHomeSearch

AWS ses: Sendmail guide: require STARTTLS build, generalize SMTP endpoint

Service: ses · 2026-11-21 · Documentation medium

File: ses/latest/dg/send-email-sendmail.md · Type: encryption

Summary

Rewrites the Sendmail SMTP setup guide to require a Sendmail build that supports STARTTLS, replaces hardcoded us-west-2 SMTP endpoint with a generic `smtp_endpoint` placeholder, rewords the EC2 port 25 restriction guidance, downgrades an Important note to a Note, and removes the note distinguishing SMTP credentials from AWS credentials.

Security assessment

The added prerequisite explicitly requires a Sendmail build supporting STARTTLS, promoting encrypted transport for SMTP submission and reducing exposure of credentials/mail to plaintext interception. It is best-practice hardening guidance rather than a fix for a specific disclosed vulnerability, so it is security documentation, not an incident response.

Evidence

+  * Install a Sendmail build that supports STARTTLS. Depending on your operating system, you might also need the `sendmail-cf`, `m4`, and `cyrus-sasl-plain` packages.

Diff

diff --git a/ses/latest/dg/send-email-sendmail.md b/ses/latest/dg/send-email-sendmail.md
index a4d52cb..86ac488 100644
--- a//ses/latest/dg/send-email-sendmail.md
+++ b//ses/latest/dg/send-email-sendmail.md
@@ -23,5 +23 @@ Before you complete the procedure in this section, you should complete the follo
-  * Install the Sendmail package on your server. 
-
-Note
-
-Depending on which operating system distribution you use, you might also need to install the following packages: `sendmail-cf`, `m4`, and `cyrus-sasl-plain`.
+  * Install a Sendmail build that supports STARTTLS. Depending on your operating system, you might also need the `sendmail-cf`, `m4`, and `cyrus-sasl-plain` packages.
@@ -40,3 +36 @@ If you're using Amazon SES to send email from an Amazon EC2 instance, you should
-  * Amazon Elastic Compute Cloud (Amazon EC2) restricts email traffic over port 25 by default. To avoid timeouts when sending email through the SMTP endpoint from Amazon EC2, you can request that these restrictions be removed. For more information, see [How do I remove the restriction on port 25 from my Amazon EC2 instance or AWS Lambda function?](https://aws.amazon.com/premiumsupport/knowledge-center/ec2-port-25-throttle/) in the AWS Knowledge Center.
-
-Alternatively, you can modify the procedure in this section to use port 587 rather than port 25.
+  * Amazon Elastic Compute Cloud (Amazon EC2) restricts outbound email traffic over port `25` by default. This procedure uses port `25`. Request removal of the restriction before using this procedure from Amazon EC2. For more information, see [How do I remove the restriction on port 25 from my Amazon EC2 instance or AWS Lambda function?](https://aws.amazon.com/premiumsupport/knowledge-center/ec2-port-25-throttle/) in the AWS Knowledge Center. Alternatively, change the procedure to use port `587`.
@@ -51 +45 @@ Complete the steps in this section to configure Sendmail to send email by using
-Important
+Note
@@ -53 +47 @@ Important
-The procedure in this section assumes that you want to use Amazon SES in the US West (Oregon) AWS Region. If you want to use a different Region, replace all instances of _email-smtp.us-west-2.amazonaws.com_ in this procedure with the SMTP endpoint of the desired Region. For a list of SMTP endpoint URLs for the AWS Regions where Amazon SES is available, see [Amazon Simple Email Service (Amazon SES)](https://docs.aws.amazon.com/general/latest/gr/rande.html#ses_region) in the _AWS General Reference_.
+Replace `smtp_endpoint` with the endpoint from your SMTP credentials.
@@ -61 +55 @@ Add the following line to _/etc/mail/authinfo_ :
-        AuthInfo:email-smtp.us-west-2.amazonaws.com "U:root" "I:smtpUsername" "P:smtpPassword" "M:PLAIN"
+        AuthInfo:smtp_endpoint "U:root" "I:smtpUsername" "P:smtpPassword" "M:PLAIN"
@@ -65 +59 @@ In the preceding example, make the following changes:
-     * Replace `email-smtp.us-west-2.amazonaws.com` with the Amazon SES SMTP endpoint that you want to use.
+     * Replace `smtp_endpoint` with the endpoint from your SMTP credentials.
@@ -67 +61 @@ In the preceding example, make the following changes:
-     * Replace `smtpUsername` with your Amazon SES SMTP user name.
+     * Replace `smtpUsername` with the user name from your SMTP credentials.
@@ -69,5 +63 @@ In the preceding example, make the following changes:
-     * Replace `smtpPassword` with your Amazon SES SMTP password.
-
-Note
-
-Your SMTP sign-in credentials are different from your AWS Access Key ID and Secret Access Key. For more information about obtaining your SMTP sign-in credentials, see [Obtaining Amazon SES SMTP credentials](./smtp-credentials.html).
+     * Replace `smtpPassword` with the password from your SMTP credentials.
@@ -81 +71 @@ When you finish, save `authinfo`.
-  3. At the command line, type the following command to add support for relaying to the Amazon SES SMTP endpoint.
+  3. At the command line, type the following command to allow relaying to the selected SMTP endpoint.
@@ -83 +73 @@ When you finish, save `authinfo`.
-        sudo sh -c 'echo "Connect:email-smtp.us-west-2.amazonaws.com RELAY" >> /etc/mail/access'
+        sudo sh -c 'echo "Connect:smtp_endpoint RELAY" >> /etc/mail/access'
@@ -85 +75 @@ When you finish, save `authinfo`.
-In the preceding command, replace `email-smtp.us-west-2.amazonaws.com` with the address of the Amazon SES SMTP endpoint that you want to use.
+In the preceding command, replace `smtp_endpoint` with the endpoint from your SMTP credentials.
@@ -97 +87 @@ In the preceding command, replace `email-smtp.us-west-2.amazonaws.com` with the
-        define(`SMART_HOST', `email-smtp.us-west-2.amazonaws.com')dnl
+        define(`SMART_HOST', `smtp_endpoint')dnl
@@ -107 +97 @@ In the preceding text, do the following:
-     * Replace `email-smtp.us-west-2.amazonaws.com` with the Amazon SES SMTP endpoint that you want to use.
+     * Replace `smtp_endpoint` with the endpoint from your SMTP credentials.
@@ -113,4 +102,0 @@ When you finish, save the file.
-Note
-
-Amazon EC2 restricts communications over port 25 by default. If you're using Sendmail in an Amazon EC2 instance, you should complete the [Request to Remove Email Sending Limitations](https://aws-portal.amazon.com/gp/aws/html-forms-controller/contactus/ec2-email-limit-rdns-request).
-