lichess-org / lila-docker

Lichess local development using Docker Compose.
GNU Affero General Public License v3.0
44 stars 44 forks source link

Outbound emails #53

Closed david03g closed 9 months ago

david03g commented 9 months ago

I was looking to have real outbound emails for registration. I'm not sure how to configure the docker image to do this.

fitztrev commented 9 months ago

lila has a base.conf file with the possible config values, then this repo loads the lila.conf file into the container as application.conf to override specific values.

david03g commented 9 months ago

@fitztrev I tried configuring it as follows:

mailer.primary.mock = false mailer.primary.tls = true mailer.primary.host = "smtp.mailgun.org" mailer.primary.port = 587 mailer.primary.sender = "xyz.com <support@xyz.com>" mailer.primary.user = "postmaster@xyz.com" mailer.primary.password ="fakepassword" security.email_confirm.enabled = true

There was no field for user and password, so I added them after seeing them in Mailer class in lila codebase.

This did not work.

Am I close or completely wrong?

fitztrev commented 9 months ago

Seems right. Assuming you've restarted lila and nothing in the error logs? Maybe also spin up a test smtp server and see if you see connection attempts to it.