UPDATE: Using the curl --ssl-reqd
command, I tested ports 465, 587, 25, and 2525. The results were:
25: Did not work (Curl error 35, wrong version number)
465: Worked as intended and fast email response
587: Did not work (Curl error 35, wrong version number)
2525: Did not fail, but never sent an email (time spent counted up and never stopped while sending no email)
If it helps, my current settings are (with the 502 error):
DISCOURSE_SMTP_ADDRESS: CENSORED
DISCOURSE_SMTP_PORT: 465
DISCOURSE_SMTP_USER_NAME: CENSORED
DISCOURSE_SMTP_PASSWORD: CENSORED
# DISCOURSE_SMTP_ENABLE_START_TLS: true # (optional, default true)
Templates:
templates:
- "templates/postgres.template.yml"
- "templates/redis.template.yml"
- "templates/web.template.yml"
- "templates/web.ratelimited.template.yml"
## Uncomment these two lines if you wish to add Lets Encrypt (https)
- "templates/web.ssl.template.yml"
- "templates/web.letsencrypt.ssl.template.yml"
And expose:
expose:
- "80:80" # http
- "443:443" # https
This is an image with the email information:
Not sure if the reason is because maybe Discourse does not connect with SSL/TLS, or something else. I hope this information is useful and will help solve the problem.