# Is it possible to have multiple incoming email domains?

**URL:** https://meta.discourse.org/t/is-it-possible-to-have-multiple-incoming-email-domains/197906
**Category:** Support
**Tags:** email
**Created:** [July 22, 2021, 7:40pm UTC](https://meta.discourse.org/t/is-it-possible-to-have-multiple-incoming-email-domains/197906 "2021-07-22T19:40:31Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![rsmithlal](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rsmithlal/32/220716_2.png) [@rsmithlal](https://meta.discourse.org/u/rsmithlal)
#### Post date: [July 22, 2021, 7:40pm UTC](https://meta.discourse.org/t/is-it-possible-to-have-multiple-incoming-email-domains/197906/1 "2021-07-22T19:40:31Z")

</div>

Hi there!

I’m wondering if it’s possible to set multiple authorized incoming email domains for Discourse?

I’ve set up my instance to allow incoming emails from `@hub.bebettertogether.ca`, but I am hoping to allow our partners to set up specific incoming email domains for the categories and groups that they manage on our site. For example, one of our partners is a community organization with their own domain name and if we give them a category to manage their support requests with, it would be best if their members can email an address on their own domain instead of the base domain for the platform.

I realize that this is more easily done if I set up multisite and give each partner their own DB and URL, but the domain auth is an ENV config for the mail-receiver container as well as an admin config for the app itself, so I’m not sure what the best approach would be.

Any suggestions?

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [July 23, 2021, 2:11am UTC](https://meta.discourse.org/t/is-it-possible-to-have-multiple-incoming-email-domains/197906/2 "2021-07-23T02:11:19Z")

</div>

Have them configure their Neil server to forward the email sent to xxx@yyy to any address on your domain. Then configure the group for xxx@yyy.

---

<div class="post-metadata">

### Author: ![rsmithlal](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rsmithlal/32/220716_2.png) [@rsmithlal](https://meta.discourse.org/u/rsmithlal)
#### Post date: [August 5, 2021, 12:55pm UTC](https://meta.discourse.org/t/is-it-possible-to-have-multiple-incoming-email-domains/197906/3 "2021-08-05T12:55:53Z")

</div>

A new development has me revisiting this topic and asking our community for help.

I would like to convert my standalone Discourse instance to a multisite setup. I am currently using the mail receiver to handle incoming emails for my instance, but I haven’t found any existing guides on how to set up the mail receiver with multiple mailboxes to send mail to each separate Discourse instance.

Does anyone know how to set up multiple mailboxes with the mail receiver container for the multisite setup?

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [August 5, 2021, 2:20pm UTC](https://meta.discourse.org/t/is-it-possible-to-have-multiple-incoming-email-domains/197906/4 "2021-08-05T14:20:43Z")

</div>

I’ve thing I’ve done is run multiple containers on their own ipv6. Then you need some way to relay ipv4 to them for those who can’t send to ipv6.

---

<div class="post-metadata">

### Author: ![denvergeeks](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/denvergeeks/32/327671_2.png) [@denvergeeks](https://meta.discourse.org/u/denvergeeks)
#### Post date: [January 27, 2025, 4:03pm UTC](https://meta.discourse.org/t/is-it-possible-to-have-multiple-incoming-email-domains/197906/5 "2025-01-27T16:03:12Z")

</div>

Here’s my working recipe…

> [@Configure direct-delivery incoming email for self-hosted sites with Mail-Receiver](https://meta.discourse.org/t/configure-direct-delivery-incoming-email-for-self-hosted-sites-with-mail-receiver/49487/529):
>
> On my dedicated server (running Ubuntu 22.04, with Postfix installed) I use a separate mail-receiver.yml paired to each instance of Discourse where I have enabled the mail-in posting feature. This setup creates a separate container for each instance of Discourse on my server (alongside the typical app container) which receives and processes the e-mails for its corresponding Discourse instance. Incoming emails for all of the Discourse forums on the server are received by Postfix through the sta…
