Reply by email on a multisite install (same mailbox)

AI-generated summary

In a discussion about enabling reply-by-email on a multisite Discourse install using a single mailbox, jtraulle proposes filtering incoming emails via the reply_key in the “reply by email address” setting (e.g., replies-abc+%{reply_key}@mydomain.com), allowing multiple forums to share one mailbox with unique aliases. eldy10 clarifies this would involve matching recipient addresses against the configured mask. pfaffman opposes the idea, arguing each site should have its own mailbox for simplicity and reliability, noting mailboxes are inexpensive. maiki agrees storage isn’t an issue and questions whether the goal is to automate new site setup by pointing aliases to a shared inbox. The core debate centers on feasibility and design philosophy: shared mailbox with filtering vs. dedicated mailboxes per site.

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 ?

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

1 Like

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.

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?

1 Like