# 尝试通过 Mailjet 进行验证，需要 TXT 文件或 DNS 记录

**URL:** <https://meta.discourse.org/t/trying-to-validate-with-mailjet-needs-txt-file-or-dns-entry/138508>\
**Category:** Self-hosting\
**Created:** [2020 年1 月 14 日 00:52 UTC](https://meta.discourse.org/t/trying-to-validate-with-mailjet-needs-txt-file-or-dns-entry/138508 "2020-01-14T00:52:59Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

作者： ![ctmoore](https://avatars.discourse-cdn.com/v4/letter/c/dec6dc/32.png) [@ctmoore](https://meta.discourse.org/u/ctmoore)\
发布日期： [2020 年1 月 14 日 00:52 UTC](https://meta.discourse.org/t/trying-to-validate-with-mailjet-needs-txt-file-or-dns-entry/138508/1 "2020-01-14T00:52:59Z")

</div>

好的，我正在使用 Mailjet 作为 SMTP，但在验证过程中遇到了问题。首先，我无法轻松验证单个邮箱地址 [noreply@discourse.example.com](mailto:noreply@discourse.example.com)。

我更倾向于验证整个域名 [discourse.example.com](http://discourse.example.com)，但这里又遇到了两个问题。我本可以用一个特殊名称的文本文件来完成，但似乎 Discourse 不允许这样做（尽管此时我确实有点想配置 nginx 配置文件，让该 URL 返回一些内容）。好吧，也许可以使用 DNS TXT 记录？但这里又遇到了麻烦，因为我管理的是 [example.com](http://example.com) 的 DNS，而 Mailjet 要求我为 essentially [mailjet.discourse.example.com](http://mailjet.discourse.example.com) 添加一条记录，这是一个子域名，我不太清楚该如何添加。我使用的是 Ubuntu 16.04 上的 BIND 9.3 版本，希望能得到一些指点？我可以找到如何为 [discourse.example.com](http://discourse.example.com) 添加 TXT 记录的信息，但 Mailjet 却说“不行，必须是 mailjet\_xxxxx.discourse.example.com”，也就是说这是一个子域，我认为这意味着需要额外的区域（zone）。我并不是 DNS 专家，不过安装复杂的东西还算拿手。

但现在，由于尝试了各种方法，我已经完全搞糊涂了……所以，能帮帮我吗？我的意思是，最好的消息莫过于有人告诉我：“当然可以，只需在 Discourse 的根目录下放置一个文本文件，就像这样……” ☹

---

_[View the full topic](https://meta.discourse.org/t/trying-to-validate-with-mailjet-needs-txt-file-or-dns-entry/138508)._
