# Too many user emails domains not working lead to mailgun domain disabled: what to do?

**URL:** <https://meta.discourse.org/t/too-many-user-emails-domains-not-working-lead-to-mailgun-domain-disabled-what-to-do/167780>\
**Category:** Product Support\
**Tags:** email\
**Created:** [October 20, 2020, 7:46pm UTC](https://meta.discourse.org/t/too-many-user-emails-domains-not-working-lead-to-mailgun-domain-disabled-what-to-do/167780 "2020-10-20T19:46:59Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![Canapin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/canapin/32/119591_2.png) [@Canapin](https://meta.discourse.org/u/Canapin)\
**Post date:** [October 20, 2020, 9:07pm UTC](https://meta.discourse.org/t/too-many-user-emails-domains-not-working-lead-to-mailgun-domain-disabled-what-to-do/167780/5 "2020-10-20T21:07:04Z")

</div>

Yeah, I thought about doing this to get rid of these email domains.

I notice that a Discourse method creates `@no-email.invalid` emails:

> <https://github.com/discourse/discourse/blob/main/app/services/user_merger.rb#L364>

And in the importer base, it uses `@email.invalid` which is slightly different:

> <https://github.com/discourse/discourse/blob/main/script/import_scripts/base.rb#L869>

1. Are these two different “dummy domains” both ignored when Discourse must send emails?

2. Should I replace my non-working domain with `@no-email.invalid` or `@email.invalid`, or it doesn’t matter?

@pfaffman, I’m not sure to understand why I should remap in **posts** instead of changing the **user emails** … 🤔 These email addresses aren’t in posts, unless I’m missing something.

If it is a recommended way, I’d just like to replace my `@brokendomains.com` addresses in each profile by `@no-email.invalid` or `@email.invalid`. I can figure out how to do this, I just wonder which “fake” domain to use.

---

_[View the full topic](https://meta.discourse.org/t/too-many-user-emails-domains-not-working-lead-to-mailgun-domain-disabled-what-to-do/167780)._
