In a Discourse multisite setup, configuring a single Mail Receiver to handle emails for all forums is not straightforward. Abdelrahman_MoHamed initially asked if one Mail Receiver could route emails by domain, and thoka suggested adapting the receiver’s code, even proposing using the same API key across sites as a workaround [4]. However, denvergeeks confirmed a working solution: deploying a separate Mail Receiver container per forum, each mapped via Postfix transport maps to its respective domain. Abdelrahman_MoHamed asked clarifying questions about Postfix setup, volume mounts, and domain blocking, to which denvergeeks and [10] confirmed the need for unique volume paths per forum (e.g., /var/discourse/shared/mail-receiver-N/postfix-spool) to isolate spools and enable domain blocking features. After implementation, Abdelrahman_MoHamed reported success and thanked the community, asking about security best practices. denvergeeks acknowledged the lack of known security enhancements but praised the collaborative spirit and encouraged further community input. The thread concludes with mutual appreciation and validation of the multi-container approach as the current best practice for multisite email routing.
We are currently running Discourse with a multisite setup, and we plan to use the Mail Receiver for email handling. I have a question about the configuration:
Is it possible to configure a single Mail Receiver container to handle incoming emails for all forums in the multisite setup?
I want to ensure that the incoming emails are correctly routed to the appropriate forum based on their domain. Has anyone configured Mail Receiver in a similar setup?
Any guidance, examples, or best practices would be greatly appreciated!
Should I create a new path for each mail receiver for example I have about 10 forums so I will need to create new volume for each one od them like this
Thanks to your support, I’ve gained a much clearer understanding of how to proceed. I admire the way you generously share your knowledge, and I’m grateful to be part of such a collaborative community it’s working now.
I do have a quick follow-up question: Is there any additional configuration or best practices you’d recommend for enhancing security in this setup?
Thanks again for your support—it means a lot to me!
Not that I know of but, I agree with you, that is the next question for which I hope we’ll get some guidance from the community!
Great work! I really appreciate your postings about your progress and results as well - it is a really nice validation and reward for my efforts in sharing!