I followed this post to setup doctor multisites.
but how to configure different smtp email settings for different sites?
The discussion revolves around configuring separate SMTP email settings for different sites in a multisite Discourse installation. suanfazu and 5minpause initially struggled to achieve this, and sam confirmed that multisite installations currently don’t support multiple outgoing SMTP servers.
However, sam expressed willingness to consider a pull request for this feature, suggesting that email settings should be in site settings with the option to be shadowed by globals.
SimonBiggs explored the possibility of funding the implementation of this feature, but later discovered that the desired effect could be achieved by not setting the DISCOURSE_NOTIFICATION_EMAIL environment variable, allowing site-specific email settings to be configured.
silverdr proposed the details of the changes that could be implemented, including the possibility to override all SMTP configuration variables per site or, at a minimum, override the SMTP user name and password per site.
I followed this post to setup doctor multisites.
but how to configure different smtp email settings for different sites?
I tried this as well and couldn’t get the second site to use different settings from the first site.
Perhaps @sam could offer an opinion, if this is a known bug or something else.
We don’t support multiple outgoing SMTP servers in multisite
Thanks for the answer. Is this something you would consider given a pull request? Does it make sense to invest time in?
Sure, if you can pull it off, its pretty complicated, but I would be open to have a PR for it and would kind of prefer if email settings were in site settings as long as they can be shadowed by globals.
Hallo @sam,
Gäbe es eine potenzielle Finanzierung, wenn ich diese Funktion implementieren würde? Wir prüfen derzeit, ob wir ein MVP-Stipendium von unserer Regierung erhalten können (https://www.nsw.gov.au/grants-and-funding/mvp-ventures-program) und jede Finanzierung, die Sie bereitstellen, könnte die Regierung mit einer 1:1-Übereinstimmung aufstocken, was fantastisch wäre
.
Viele Grüße,
Simon
Können Sie alle vorgeschlagenen Änderungen detailliert darlegen?
Hallo @sam,
Ich habe gerade festgestellt, dass wenn ich die folgende Umgebungsvariable nicht setze:
DISCOURSE_NOTIFICATION_EMAIL
Innerhalb der app.yml, dann erscheint der folgende Konfigurationspunkt in den Einstellungen:
Und ich kann diesen verwenden, um genau den gewünschten Effekt zu erzielen.
Danke @sam, dass du offen für das Potenzial warst
, aber es sieht so aus, als ob ich dieses Mal keinen PR benötigen werde.
Maximum / Bestes:
DISCOURSE_SMTP_ADDRESSDISCOURSE_SMTP_PORTDISCOURSE_SMTP_USER_NAMEDISCOURSE_SMTP_PASSWORDDISCOURSE_SMTP_ENABLE_START_TLSDISCOURSE_SMTP_DOMAINMinimum:
DISCOURSE_SMTP_USER_NAMEDISCOURSE_SMTP_PASSWORDin ihren entsprechenden config/multisite.yml-Äquivalenten
Hintergrund für das Minimum: Wenn keine anderen Optionen zur Verfügung stehen, kann ich die Einrichtung so vornehmen, dass sie mit einem SMTP-Server funktioniert, aber ich benötige sicherlich separate SMTP-Benutzer (Absender). Der Versand von E-Mails von einer Adresse in einer anderen Domäne als der, auf der die Discourse-Site läuft, sieht leider wie ein Dealbreaker aus.