I’m keeping struggling even after reading all topics on this forum and outside it.
I’ve just got my Discourse set up on a new server and configured it with my AWS Credentials.
Same credential is used on same server, same domain and works just fine.
I’m getting this:
==================== MAIL TEST ==================== For a robust test, get an address from http://www.mail-tester.com/ Or just send a test message to yourself. Email address for mail test? ('n' to skip) [firstname.lastname@example.org]: Sending mail to email@example.com. . . Testing sending to firstname.lastname@example.org using <MYAMAZONUSER>:<MYAMAZONPASS>@email-smtp.us-east-1.amazonaws.com:587. SMTP server connection successful. Sending to email@example.com. . . Sending mail failed. Replacing: SMTP_PASSWORD Replacing: LETSENCRYPT_ACCOUNT_EMAIL Replacing: DEVELOPER_EMAILS Replacing: DISCOURSE_DB_PASSWORD Replacing: Sending mail to ==================== DONE! ====================
My config looks like:
DISCOURSE_SMTP_ADDRESS: email-smtp.us-east-1.amazonaws.com DISCOURSE_SMTP_PORT: 587 DISCOURSE_SMTP_USER_NAME: <MYAMAZONUSER> DISCOURSE_SMTP_PASSWORD: <MYAMAZONPASS> DISCOURSE_SMTP_ENABLE_START_TLS: true DISCOURSE_SMTP_AUTHENTICATION: login
Did the FROM address change with:
- exec: rails r "SiteSetting.firstname.lastname@example.org'"
Changing the app.yml AND executing the command:
./launcher enter app rails r "SiteSetting.notification_email = 'email@example.com'" exit
What I can see is it connects to SMTP server but is not able to send the email, but logs don’t say why.
Any help appreciated