We set up our own email server, and I was wondering how to use it best with the Discourse Docker container.
Of course I can just configure our SMTP details and credentials, but it feels like unnecessary overhead, since the SMTP server runs on the same machine.
sendmail
works, but Discourse is in the container, hence has no access to sendmail
on its host.
Searching for something here in the forum gives one example where DISCOURSE_SMTP_DOMAIN
was used without credentials, where doing the same with swaks
within the container works: How to get Discourse to work with Postfix - #18 by sonmicrosystems
I guess in that case, it is still normal SMTP submission on default port, and Postfix accepts it without authentication, since the request comes from localhost?
Is anyone aware of another method? I see the used Ruby library generally supports everything: GitHub - discourse/mail: A Really Ruby Mail Library
In Discourse settings, what caught my eyes is a field Delivery method
:
I cannot change these settings in the GUI, I guess because the container YAML enforces them via DISCOURSE_SMTP_ADDRESS
etc? But I cannot find a variable for the delivery method.
Maybe someone knows another way, and until then, I’m setting up normal SMTP submission port authentication. Thanks for DISCOURSE_SMTP_FORCE_TLS
btw, added more recently, but not part of any sample yet (it should). I do not intend to allow STARTTLS, but only implicit/immediate TLS.