# 如何确保除激活或密码重置外，所有电子邮件均已关闭

**URL:** https://meta.discourse.org/t/how-to-make-sure-all-emails-are-off-unless-used-for-activation-or-password-reset/161251
**Category:** Support
**Created:** [2020 年8 月 18 日 09:37 UTC](https://meta.discourse.org/t/how-to-make-sure-all-emails-are-off-unless-used-for-activation-or-password-reset/161251 "2020-08-18T09:37:02Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### 作者： ![Garrick](https://avatars.discourse-cdn.com/v4/letter/g/b9bd4f/32.png) [@Garrick](https://meta.discourse.org/u/Garrick)
#### 发布日期： [2020 年8 月 18 日 09:37 UTC](https://meta.discourse.org/t/how-to-make-sure-all-emails-are-off-unless-used-for-activation-or-password-reset/161251/1 "2020-08-18T09:37:02Z")

</div>

我最近遇到了邮件问题。之前，只有当我在帖子中@信任等级时，用户才会收到邮件通知。但最近（就在本月或上个月），情况变得异常：只要我在任何分类中发帖，所有人都会收到邮件。我不确定这是否与我添加的“关注”插件有关（为了保险起见，我现在正在移除它），我的关注者并不多。我只想彻底关闭这个功能。我收到了大量邮件，甚至导致我的账号被邮件服务商封禁。

---

<div class="post-metadata">

### 作者： ![osioke](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/osioke/32/238946_2.png) [@osioke](https://meta.discourse.org/u/osioke)
#### 发布日期： [2020 年8 月 18 日 12:10 UTC](https://meta.discourse.org/t/how-to-make-sure-all-emails-are-off-unless-used-for-activation-or-password-reset/161251/2 "2020-08-18T12:10:17Z")

</div>

在不清楚具体发送的是哪类邮件的情况下，很难确切说明如何关闭通知。您的用户是否启用了邮件列表模式？或者他们是否为某些非常活跃的类别设置了跟踪？我见过这两种情况导致发送大量邮件。

若要完全关闭通知，您可以将“默认邮件级别”设置为“从不”，但这意味着用户需要登录网站才能了解最新动态。您也可以选择在 Discourse 网站上禁用邮件列表模式以及其他一些设置。建议您浏览网站管理员设置中“用户偏好”部分（/admin/site\_settings/category/user\_preferences）列出的各项设置，以便更好地了解您可以调整哪些选项。

此外，请查阅以下帖子，了解这些邮件的概述以及您可以使用的选项：

> [@Configuring Activity Summary emails](https://meta.discourse.org/t/discourse-activity-summary-emails-guide/36627):
>
> bookmark This guide explains how to configure and manage activity summary emails in Discourse, including user and admin options, customization, and troubleshooting. person_raising_hand Required user level: Administrator Activity summary emails (formerly known as digest emails) are automated messages sent to forum members who haven’t visited in a specific period. These emails contain a collection of popular content since the user’s last visit, aiming to re-engage inactive members. Under…

---

<div class="post-metadata">

### 作者： ![Garrick](https://avatars.discourse-cdn.com/v4/letter/g/b9bd4f/32.png) [@Garrick](https://meta.discourse.org/u/Garrick)
#### 发布日期： [2020 年8 月 18 日 12:26 UTC](https://meta.discourse.org/t/how-to-make-sure-all-emails-are-off-unless-used-for-activation-or-password-reset/161251/3 "2020-08-18T12:26:15Z")

</div>

谢谢。他们并没有使用邮件模式，但我想有些人可能关注了某些分类。不过我仍然认为这并没有影响所有内容。我刚刚把默认设置关闭了。我的邮件量从每月 4 万到 5 万封，在不到半个月的时间内激增到了近 12 万封。我注意到的是我的帖子，几乎每篇帖子都被群发给了所有人。这种情况大概是从这个月开始出现的。我已经更换了服务提供商，不想再冒更多风险。我们每天都有新用户注册，所以邮件服务每停一天都会造成损失。

---

<div class="post-metadata">

### 作者： ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### 发布日期： [2020 年8 月 20 日 21:11 UTC](https://meta.discourse.org/t/how-to-make-sure-all-emails-are-off-unless-used-for-activation-or-password-reset/161251/4 "2020-08-20T21:11:40Z")

</div>

邮件列表模式非常非常危险。它可能在极短时间内生成数十万封邮件（具体取决于您的用户基数）。

老实说，我甚至不确定我们当初为何要将此功能添加到 Discourse 中。我以为我们已通过站点设置将其自动禁用了，@sam？如果不是的话，我们应该这样做。

---

<div class="post-metadata">

### 作者： ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### 发布日期： [2020 年8 月 24 日 03:19 UTC](https://meta.discourse.org/t/how-to-make-sure-all-emails-are-off-unless-used-for-activation-or-password-reset/161251/5 "2020-08-24T03:19:03Z")

</div>

我们的 `disable_mailing_list_mode` 默认值为 false。

> <https://github.com/discourse/discourse/blob/54cf3c67664a3eccf2e08710474a100a489d3380/config/site_settings.yml#L2134-L2136>

如果我们愿意，可以将其改为 true，但我建议在即将发布 beta 版本之前再进行更改，以便站点管理员能针对默认值的变更提供更清晰的说明。

---

<div class="post-metadata">

### 作者： ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### 发布日期： [2020 年8 月 24 日 23:59 UTC](https://meta.discourse.org/t/how-to-make-sure-all-emails-are-off-unless-used-for-activation-or-password-reset/161251/6 "2020-08-24T23:59:09Z")

</div>

好的 @jomaxro，你能确保在下一个测试版之前完成这件事吗？这个设置默认对用户开放实在太危险了。

 ![image](https://global.discourse-cdn.com/meta/original/3X/c/5/c5fb11266f2914ef1fca4e9857db2d124107ed15.jpeg)

---

<div class="post-metadata">

### 作者： ![jomaxro](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jomaxro/32/126216_2.png) [@jomaxro](https://meta.discourse.org/u/jomaxro)
#### 发布日期： [2021 年3 月 4 日 21:41 UTC](https://meta.discourse.org/t/how-to-make-sure-all-emails-are-off-unless-used-for-activation-or-password-reset/161251/8 "2021-03-04T21:41:15Z")

</div>

这件事被我疏忽了。邮件列表模式现在在站点设置中默认禁用（beta 2.7.0.beta5 版本即将发布）。如果管理员希望用户能够启用邮件列表模式，需要手动开启该功能。
