I am not receiving emails from the site or the doctor. I noticed that the doctor is using port 465 even though I configured it to use 2525:
==================== YML SETTINGS ====================
DISCOURSE_HOSTNAME=url
SMTP_ADDRESS=smtp.mailgun.org
DEVELOPER_EMAILS=REDACTED
SMTP_PASSWORD=REDACTED
SMTP_PORT=2525
SMTP_USER_NAME=url
LETSENCRYPT_ACCOUNT_EMAIL=REDACTED
==================== MAIL TEST ====================
For a robust test, get an address from URL...
Sending mail to REDACTED . .
Testing sending to email@gmail.com using smtp.mailgun.org:465, username:postmaster@url with plain auth.
======================================== ERROR ========================================
UNEXPECTED ERROR
Net::ReadTimeout
Is this expected? I used the smtp checker and it works with 2525 but times out with 465.
Testing sending to bj97301@gmail.com using smtp.mailgun.org:465, username:postmaster@***.org with plain auth.
======================================== ERROR ========================================
UNEXPECTED ERROR
Net::ReadTimeout
====================================== SOLUTION =======================================
This is not a common error. No recommended solution exists!
Please report the exact error message above to https://meta.discourse.org/
(And a solution, if you find one!)
=======================================================================================
I had to edit the app.yml directly because it didn’t allow me to set the smtp domain differently than the hostname:
DISCOURSE_HOSTNAME: forum.electricmoto.org
...
DISCOURSE_DEVELOPER_EMAILS: 'bj97301@gmail.com'
## TODO: The SMTP mail server used to validate new accounts and se>
# SMTP ADDRESS, username, and password are required
# WARNING the char '#' in SMTP password can cause problems!
DISCOURSE_SMTP_ADDRESS: smtp.mailgun.org
DISCOURSE_SMTP_PORT: 587
DISCOURSE_SMTP_USER_NAME: postmaster@electricmoto.org
DISCOURSE_SMTP_PASSWORD: "***"
# DISCOURSE_SMTP_ENABLE_START_TLS: true # (optional, defa>
DISCOURSE_SMTP_DOMAIN: electricmoto.org
DISCOURSE_NOTIFICATION_EMAIL: noreply@electricmoto.org
After doing that i restarted the app using the launcher thingy. Do i need to do something different to rebuild the container?