# 在 Amazon Web Services (AWS) 上使用 Lightsail、SES 和 Route 53 安装 Discourse

**URL:** https://meta.discourse.org/t/install-discourse-on-amazon-web-services-aws-with-lightsail-ses-and-route-53/239343
**Category:** Sysadmins
**Tags:** how-to, install
**Created:** [2022年九月18日 17:16 UTC](https://meta.discourse.org/t/install-discourse-on-amazon-web-services-aws-with-lightsail-ses-and-route-53/239343 "2022-09-18T17:16:55Z")
**Posts on this page:** 1
**Showing post:** 4

<div class="post-metadata">

### Author: ![wal](https://avatars.discourse-cdn.com/v4/letter/w/d6d6ee/32.png) [@wal](https://meta.discourse.org/u/wal)
#### Post date: [2024年七月31日 04:57 UTC](https://meta.discourse.org/t/install-discourse-on-amazon-web-services-aws-with-lightsail-ses-and-route-53/239343/4 "2024-07-31T04:57:10Z")

</div>

我在以下链接中找到了一个非常有用的指南，用于对 SES 配置进行试运行：

> **[Testing your connection to the Amazon SES SMTP interface using the command...](https://docs.aws.amazon.com/ses/latest/dg/send-email-smtp-client-command-line.html)**
>
> Use common command line utilities to test your connection to the Amazon SES SMTP interface.

只需将其中显示的脚本复制/粘贴到一个新的脚本文件中，修改端点（例如 `email-smtp.us-east-1.amazonaws.com` ），它似乎就能正常工作。出于某种原因，[`telnet` 方法](https://serverfault.com/questions/49935/easiest-way-to-send-a-test-email-from-a-server-to-test-settings)似乎无法与 SES 一起使用，原因不明。

哦，对了，关于那个指南，我还做了这个来“创建一个配置集”，不确定它是否对 Discourse 实际上是必需的，但我还是做了，以便能够按照脚本中的描述来测试 SES：[Creating configuration sets in SES - Amazon Simple Email Service](https://docs.aws.amazon.com/ses/latest/dg/creating-configuration-sets.html)

这里还有另一件让我困惑的事情：[Publishing an MX record for Amazon SES email receiving - Amazon Simple Email Service](https://docs.aws.amazon.com/ses/latest/dg/receiving-email-mx-record.html)

对于应用于您的域的必需的 DNS MX 记录，AWS SES 以如下格式提供记录的“值”：

```plaintext
10 inbound-smtp.region.amazonaws.com

```

但是，我的域名注册商给了我一个错误，说“值必须是主机名”，也就是说，它不喜欢前面带有“`10 `”的内容。AWS 控制台没有直接告诉您这意味着什么或该怎么做，因此根据那里链接的文档，您需要为您的 DNS 注册商执行此操作：

> 一些 DNS 提供商的管理控制台包含记录 **值** 和记录 **优先级** 的单独字段。如果您的 DNS 提供商是这种情况，请为 **优先级** 值输入 `10`，为 **值** 输入入站邮件端点 URL。

在您的域名注册商仪表板中应该看起来像这样：

 ![Screenshot 2024-07-31 at 11.24.29 AM copy](https://global.discourse-cdn.com/meta/original/4X/f/0/c/f0c1a94d124949e83a448ddfaaa2dfcaaf056351.png)

---

_[View the full topic](https://meta.discourse.org/t/install-discourse-on-amazon-web-services-aws-with-lightsail-ses-and-route-53/239343)._
