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.
Hola @sam,
¿Habría alguna posibilidad de financiación si implementara esta función? Actualmente estamos investigando la obtención de una subvención MVP de nuestro gobierno (https://www.nsw.gov.au/grants-and-funding/mvp-ventures-program) y cualquier financiación que usted proporcione podría hacer que el gobierno iguale $1 por $1, lo que sería increíble
.
Saludos,
Simon
¿Puede especificar en detalle todos los cambios que se proponen?
Hola @sam,
De hecho, acabo de darme cuenta de que si elijo no establecer la siguiente variable de entorno:
DISCOURSE_NOTIFICATION_EMAIL
Dentro de app.yml, entonces el siguiente elemento de configuración aparece en la configuración:
Y puedo usar eso para tener exactamente el efecto que deseaba.
Gracias @sam por estar abierto a la posibilidad de esto
, pero parece que esta vez no necesitaré una PR.
Máximo / mejor:
DISCOURSE_SMTP_ADDRESSDISCOURSE_SMTP_PORTDISCOURSE_SMTP_USER_NAMEDISCOURSE_SMTP_PASSWORDDISCOURSE_SMTP_ENABLE_START_TLSDISCOURSE_SMTP_DOMAINMínimo:
DISCOURSE_SMTP_USER_NAMEDISCOURSE_SMTP_PASSWORDen sus equivalentes de config/multisite.yml
Antecedentes para el mínimo: dadas las otras opciones, puedo configurar las cosas para vivir con un servidor SMTP, pero ciertamente necesito usuarios SMTP separados (remitentes). Enviar correos desde una dirección en un dominio diferente al del sitio de Discourse en ejecución parece, desafortunadamente, un factor decisivo.