AWS ses: Use smtp_endpoint placeholder instead of hardcoded Region endpoint
Summary
Replaces the hardcoded email-smtp.us-west-2.amazonaws.com relayhost/credentials examples with a generic smtp_endpoint placeholder and simplifies the SMTP credential wording.
Security assessment
The edit removes a Region-specific hardcoded endpoint from configuration examples and points users to the endpoint from their own SMTP credentials, which is a minor hardening/clarity improvement rather than a fix for a specific vulnerability.
Evidence
+ sudo postconf -e "relayhost = [smtp_endpoint]:587" \
Diff
diff --git a/ses/latest/dg/postfix.md b/ses/latest/dg/postfix.md index d4d0bb4..27da3fd 100644 --- a//ses/latest/dg/postfix.md +++ b//ses/latest/dg/postfix.md @@ -46 +46 @@ Complete the following procedures to configure your mail server to send email th - sudo postconf -e "relayhost = [email-smtp.us-west-2.amazonaws.com]:587" \ + sudo postconf -e "relayhost = [smtp_endpoint]:587" \ @@ -56 +56 @@ Note -If you use Amazon SES in an AWS Region other than US West (Oregon), replace `email-smtp.us-west-2.amazonaws.com` in the preceding command with the SMTP endpoint of the appropriate Region. For more information, see [Regions and Amazon SES](./regions.html). +Replace `smtp_endpoint` with the endpoint from your SMTP credentials. @@ -70 +70 @@ Otherwise, if this entry isn't present, continue to the next step. - [email-smtp.us-west-2.amazonaws.com]:587 SMTPUSERNAME:SMTPPASSWORD + [smtp_endpoint]:587 SMTPUSERNAME:SMTPPASSWORD @@ -74,3 +74 @@ Note -Replace `SMTPUSERNAME` and `SMTPPASSWORD` with your SMTP sign-in credentials. Your SMTP sign-in credentials aren't the same as your AWS access key ID and secret access key. For more information about credentials, see [Obtaining Amazon SES SMTP credentials](./smtp-credentials.html). - -If you use Amazon SES in an AWS Region other than US West (Oregon), replace `email-smtp.us-west-2.amazonaws.com` in the preceding example with the SMTP endpoint of the appropriate Region. For more information, see [Regions and Amazon SES](./regions.html). +Replace `SMTPUSERNAME` and `SMTPPASSWORD` with the user name and password from your SMTP credentials. Replace `smtp_endpoint` with the endpoint from those credentials. @@ -131 +129 @@ After you generate the certificate, type the following command: -This example shows how to send an email that uses a [configuration set](./using-configuration-sets.html), and that uses MIME-multipart encoding to send both a plain text and an HTML version of the message, along with an attachment. It also includes a [link tag](./faqs-metrics.html#sending-metric-faqs-clicks-q5), which can be used for categorizing click events. The content of the email is specified in an external file, so that you do not have to manually type the commands in the Postfix session. +This example uses a [configuration set](./using-configuration-sets.html) and MIME-multipart encoding to send plain text and HTML content with an attachment. It also includes a [link tag](./faqs-metrics.html#sending-metric-faqs-clicks-q5) for categorizing click events. The message content is stored in a file, so you do not need to type it in the Postfix session. @@ -154 +152 @@ This example shows how to send an email that uses a [configuration set](./using- - This message was sent from Amazon SES using the SMTP interface. + This message was sent to Amazon SES over SMTP. @@ -168 +166 @@ This example shows how to send an email that uses a [configuration set](./using- - <p>This message was sent from Amazon SES using the SMTP interface.</p> + <p>This message was sent to Amazon SES over SMTP.</p> @@ -172 +170 @@ This example shows how to send an email that uses a [configuration set](./using- - Using the Amazon SES SMTP Interface to Send Email</a> in the <em>Amazon SES + Using SMTP to Send Email</a> in the <em>Amazon SES