# Seeking Advice on Mail Delivery Setup for Discourse Multisite

**URL:** <https://meta.discourse.org/t/seeking-advice-on-mail-delivery-setup-for-discourse-multisite/347227>\
**Category:** Self-hosting\
**Tags:** multisite\
**Created:** [January 15, 2025, 9:47am UTC](https://meta.discourse.org/t/seeking-advice-on-mail-delivery-setup-for-discourse-multisite/347227 "2025-01-15T09:47:25Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![RGJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rgj/32/523185_2.png) [@RGJ](https://meta.discourse.org/u/RGJ)\
**Post date:** [January 15, 2025, 2:36pm UTC](https://meta.discourse.org/t/seeking-advice-on-mail-delivery-setup-for-discourse-multisite/347227/5 "2025-01-15T14:36:36Z")

</div>

> [@onebigunicorn](#):
>
> However, when emails are sent from the second instance (`xyz2.domain2.com`), email providers like Gmail flag them as mismatched because the email headers don’t align with the `xyz2.domain2.com` domain

Even though this looks like a limitation of Discourse because a multisite setup only allows you to use a single account for sending, this is in fact a limitation of your email provider where they only allow you to use a single From address under your account.

The fact that the `SMTP_USER_NAME` looks like an email address is because they have _chosen to enforce_ that the `From:` header of the mails you send have to be the same (or: are rewritten to be the same) as the `SMTP_USER_NAME`.

The email headers are being set by Discourse and if you use an email provider that doesn’t touch them and allows you to use multiple from addresses under the same account, everything will work fine.

---

_[View the full topic](https://meta.discourse.org/t/seeking-advice-on-mail-delivery-setup-for-discourse-multisite/347227)._
