# 阻止外发邮件到特定域名

**URL:** <https://meta.discourse.org/t/stop-outbound-mail-going-to-a-specific-domain/284673>\
**Category:** Support\
**Created:** [2023年十一月7日 07:57 UTC](https://meta.discourse.org/t/stop-outbound-mail-going-to-a-specific-domain/284673 "2023-11-07T07:57:33Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![Lhc\_fl](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lhc_fl/32/268115_2.png) [@Lhc\_fl](https://meta.discourse.org/u/Lhc_fl)\
**Post date:** [2023年十一月7日 12:04 UTC](https://meta.discourse.org/t/stop-outbound-mail-going-to-a-specific-domain/284673/4 "2023-11-07T12:04:44Z")

</div>

我的插件可以解决这个问题。

> [@Discourse Another SMTP](https://meta.discourse.org/t/discourse-another-smtp/262532):
>
> information_sourceSummary This plugin allows you to add another SMTP server for sending emails to specific email addresseshammer_and_wrenchRepository Link [Lhcfl/discourse-another-smtp (github.com)](https://github.com/Lhcfl/discourse-another-smtp)open_bookInstall Guide [How to install plugins in Discourse](https://meta.discourse.org/t/install-plugins-in-discourse/19157)Features This plugin is very simple: it gives you some options, and the email address in the settings will use an alternative smtp server instead of the one you configured in app.yml What is it …

只需将 `discourse_another_smtp_enabling_mails` 设置为您想要的域名，并将其他设置保留为默认值（无效），您就可以阻止向这些域名发送电子邮件。

---

_[View the full topic](https://meta.discourse.org/t/stop-outbound-mail-going-to-a-specific-domain/284673)._
