Issue with SMTP server setup

Hi,

I’m getting an issue with setting up Discourse where it tries to send me an email to setup my admin account. I’ve read through the troubleshooting thread and looked on Google, nothing has solved the problem.

My app.yml settings for SMTP:

DISCOURSE_SMTP_ADDRESS: smtp.zoho.eu
DISCOURSE_SMTP_PORT: 587
DISCOURSE_SMTP_USER_NAME: email@example.com
DISCOURSE_SMTP_PASSWORD: password
DISCOURSE_SMTP_ENABLE_START_TLS: true           # (optional, default true)
DISCOURSE_SMTP_AUTHENTICATION: login

Logs from tail command, only available error:
Delivered mail d1d9fc2e-a84c-484e-9e81-73eda3b4c7e4@forum.domain.com (401.0ms)
Job exception: end of file reached

./discourse-doctor reports that “Sending mail failed.” with no other errors.

Is there something I am doing wrong?

1 Like

I’d assume that the email username is not authorised to send as the forum’s notification email.

There is a section at the end of the yml file where you can change the notification email address.

Once you rebuild after doing so, you’ll probably be able to send emails.

5 Likes

I can’t see anything in the app.yml relating to this, after the SMTP settings (at the end of the file) there is only volumes, hooks and run settings. Am I in the wrong file?

Edit: Never mind, it was a part of the run settings and I didn’t realise. This works, thank you!

4 Likes