# 启用向管理员/版主组发送外部电子邮件

**URL:** https://meta.discourse.org/t/enable-sending-external-emails-to-admin-moderator-groups/243128
**Category:** Feature
**Tags:** email
**Created:** [2022年十月27日 22:42 UTC](https://meta.discourse.org/t/enable-sending-external-emails-to-admin-moderator-groups/243128 "2022-10-27T22:42:37Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Nesha](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nesha/32/268340_2.png) [@Nesha](https://meta.discourse.org/u/Nesha)
#### Post date: [2022年十月27日 22:42 UTC](https://meta.discourse.org/t/enable-sending-external-emails-to-admin-moderator-groups/243128/1 "2022-10-27T22:42:37Z")

</div>

允许将外部电子邮件发送到预定义的管理员/版主组。

有一个推荐的解决方法，用于将外部电子邮件发送给管理员/版主：

- 创建组 admin\_messaging，其中包含与组 admin 相同的用户列表（是的，这里有双重管理！）
- 配置此组以接受传入电子邮件
- 创建外部邮箱/使用外部邮件系统将电子邮件转发到配置的组电子邮件地址

但是，这仍然需要管理员/版主监控额外的邮箱。

基本原理：  
如果用户/新用户无法登录我们的受限 Discourse 平台，他们需要一种联系站点管理员的方式。我们希望在不同的对话框中显示外部管理员电子邮件（当用户无法登录或被暂停等时）。这是用户在遇到麻烦时从外部联系站点管理员的唯一途径。我们估计这种情况很少发生。但是，管理员的注意力将集中在 admins 组中的消息上，因此他们可能会忽略 admins\_mesaging 中实际上有些紧急的消息。

考虑到我们已经设置了带有我们品牌并转发到 admins\_messaging 的外部共享邮箱，我们可以使用该外部邮箱来某种程度上提醒管理员，但这超出了 Discourse 平台的解决方案，而且并不十分优雅……

---

<div class="post-metadata">

### Author: ![nathank](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nathank/32/290039_2.png) [@nathank](https://meta.discourse.org/u/nathank)
#### Post date: [2026年四月24日 01:17 UTC](https://meta.discourse.org/t/enable-sending-external-emails-to-admin-moderator-groups/243128/2 "2026-04-24T01:17:14Z")

</div>

这可以通过 Rails 控制台实现：

> [@Allow email in for moderators, staff, and admins](https://meta.discourse.org/t/allow-email-in-for-moderators-staff-and-admins/212147/3):
>
> Well, since nobody told me that was completely stupid, I’ve gone and tested this rails command on a little used instance. And it seems to work (so far)! bangbang Use at your own risk and backup first To add an email-in address Group.where(name: "=groups.name=").update(incoming\_email: "=groups.name=@=domain=") To remove an email-in address Group.where(name: "=groups.name=").update(incoming\_email: nil)

但我认为，对于无法访问控制台的用户来说，将其作为核心功能之一将会非常有用。
