# Reply by email on a multisite install (same mailbox)

**URL:** https://meta.discourse.org/t/reply-by-email-on-a-multisite-install-same-mailbox/142245
**Category:** Feature
**Created:** [February 21, 2020, 11:42am UTC](https://meta.discourse.org/t/reply-by-email-on-a-multisite-install-same-mailbox/142245 "2020-02-21T11:42:50Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![jtraulle](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jtraulle/32/151436_2.png) [@jtraulle](https://meta.discourse.org/u/jtraulle)
#### Post date: [February 21, 2020, 11:42am UTC](https://meta.discourse.org/t/reply-by-email-on-a-multisite-install-same-mailbox/142245/1 "2020-02-21T11:42:50Z")

</div>

Hello,

We have a multisite install and we are currently testing the reply by email feature of Discourse.

It would be really great if when polling the provided mailbox using POP, Discourse would effectively filter emails using the reply\_key provided in the site settings (reply by email address param).

This way, it would allow to use a single mailbox for multiple forums as long as the reply\_key used on the forum is unique by forum.

What do you think ?

---

<div class="post-metadata">

### Author: ![eldy10](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/eldy10/32/170592_2.png) [@eldy10](https://meta.discourse.org/u/eldy10)
#### Post date: [February 21, 2020, 11:50am UTC](https://meta.discourse.org/t/reply-by-email-on-a-multisite-install-same-mailbox/142245/2 "2020-02-21T11:50:03Z")

</div>

To be more accurate, the question is on filtering on the mask defined into parameter “reply by email address”

For example, if we have this value in parameter “reply by email address”  
replies-abc+%{reply\_key}@mydomain.com  
We should only poll emails that match  
replies-abc+\*@mydomain.com  
as recipient address

So with several discourses, i would be able to use the same emailbox (but different email aliases) using a different value for “reply by email address”. For exemple:  
replies-discourse1+%{reply\_key}@mydomain.com  
replies-discourse2+%{reply\_key}@mydomain.com  
replies-discourse3+%{reply\_key}@mydomain.com

---

<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: [February 21, 2020, 1:54pm UTC](https://meta.discourse.org/t/reply-by-email-on-a-multisite-install-same-mailbox/142245/3 "2020-02-21T13:54:59Z")

</div>

Each site needs its own mailbox.

If this is a feature request (oh, that’s where you put it) that multiple sites could use the same mailbox, it’s just not a good idea. It’s would very difficult to engineer and mailboxes are cheap.

If what you’re looking for is a way to automate what mailbox each multisite site is using, then you need a plugin.

---

<div class="post-metadata">

### Author: ![maiki](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/maiki/32/233950_2.png) [@maiki](https://meta.discourse.org/u/maiki)
#### Post date: [February 21, 2020, 6:51pm UTC](https://meta.discourse.org/t/reply-by-email-on-a-multisite-install-same-mailbox/142245/4 "2020-02-21T18:51:19Z")

</div>

> [@jtraulle](#):
>
> What do you think ?

> [@pfaffman](#):
>
> mailboxes are cheap

My inboxes basically stay empty, so storage is not a concern; mailboxes are cheap.

Are you trying to automate new sites by just point a new alias at the inbox?
