# Stop outbound mail going to a specific domain

**URL:** https://meta.discourse.org/t/stop-outbound-mail-going-to-a-specific-domain/284673
**Category:** Support
**Created:** [November 7, 2023, 7:57am UTC](https://meta.discourse.org/t/stop-outbound-mail-going-to-a-specific-domain/284673 "2023-11-07T07:57:33Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Andro](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/andro/32/173721_2.png) [@Andro](https://meta.discourse.org/u/Andro)
#### Post date: [November 7, 2023, 7:57am UTC](https://meta.discourse.org/t/stop-outbound-mail-going-to-a-specific-domain/284673/1 "2023-11-07T07:57:33Z")

</div>

For some reason Apple has decided with all its mail domains that mail originating from our Discourse server and out via Amazon SES is spam and bounces it. [It’s an Early Music forum, hardly offensive in any way I don’t think.] This affects our mail reputation badly. Is there any way I can suppress email to a set of given domains, e.g. [me.com](http://me.com), [icloud.com](http://icloud.com) and so on, while leaving all other outbound mail intact?

---

<div class="post-metadata">

### Author: ![Jagster](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jagster/32/192154_2.png) [@Jagster](https://meta.discourse.org/u/Jagster)
#### Post date: [November 7, 2023, 8:11am UTC](https://meta.discourse.org/t/stop-outbound-mail-going-to-a-specific-domain/284673/2 "2023-11-07T08:11:15Z")

</div>

Sorry, I don’t know, but there is stong history where Amazon and Apple are marking each others mailservers as spam. You can check if your mailserver is marked as spam. If that’s true it will be corrected in a day — unless you are actually relying and your setup is spamming.

---

<div class="post-metadata">

### Author: ![Andro](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/andro/32/173721_2.png) [@Andro](https://meta.discourse.org/u/Andro)
#### Post date: [November 7, 2023, 9:11am UTC](https://meta.discourse.org/t/stop-outbound-mail-going-to-a-specific-domain/284673/3 "2023-11-07T09:11:05Z")

</div>

> [@Jagster](#):
>
> there is stong history where Amazon and Apple are marking each others mailservers as spam.

That is useful to know.

We are most certainly not an open relay, I have checked rigourously.

The cycle I am seeing is that we get Apple bounces solid for about a week or two, then a week of relief, and then back to being bounced. Not a cycle of days, but more like weeks. It’s hopeless, because there is no way to contact Apple about it as far as I know.

---

<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: [November 7, 2023, 12:04pm UTC](https://meta.discourse.org/t/stop-outbound-mail-going-to-a-specific-domain/284673/4 "2023-11-07T12:04:44Z")

</div>

My plugin can solve this problem.

> [@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 fo…

Just set the `discourse_another_smtp_enabling_mails` to the domains you want, and keep the other settings at default (which is invalid), you can prevent emails from being sent to these domain names.
