Need help with SMTP settings from Brevo to Discourse

AI-generated summary

Issa_George struggled to configure SMTP settings in Discourse using Brevo, despite correctly setting environment variables like DISCOURSE_SMTP_ADDRESS, DISCOURSE_SMTP_PORT, and DISCOURSE_NOTIFICATION_EMAIL. They tried both admin@mywebsite.com and no-reply@mywebsite.com without success. pfaffman clarified that the notification email must be an address Brevo is authorized to send from, and advised checking Brevo’s logs. Architect suggested switching from port 587 to 2525, as some providers (like DigitalOcean) no longer support 587. After applying this fix, Issa_George confirmed the issue was resolved and emails began working.

I spent the whole day trying to fix this problem, but I am still struggling.
cd /var/discourse
nano containers/app.yml
these are the settings I have: i replaced my site name to mywebsite for privacy

DISCOURSE_HOSTNAME: “mywebsite.com”

Email settings for Brevo (SMTP)

DISCOURSE_DEVELOPER_EMAILS: ‘admin@mywebsite’
DISCOURSE_SMTP_ADDRESS: smtp-relay.brevo.com
DISCOURSE_SMTP_PORT: 587
DISCOURSE_SMTP_USER_NAME: found this in the brevo SMTP section login name
DISCOURSE_SMTP_PASSWORD: found this in brevo SMTP section
DISCOURSE_SMTP_ENABLE_START_TLS: true
DISCOURSE_SMTP_AUTHENTICATION: login
DISCOURSE_SMTP_DOMAIN: mywebsite.com
DISCOURSE_NOTIFICATION_EMAIL: admin@mywebsite.com

Required for Let’s Encrypt

LETSENCRYPT_ACCOUNT_EMAIL: admin@mywebsite.com

what am i putting wrong? i still can’t send a test email using my site. I don’t know where to find the discourse notification email setting on my website so i tried no-reply@mywebsite.com and it didn’t work so i tried admin@mywebsite.com and it didn’t work. In brevo I verified the 2 senders (admin@mywebsite.com and no-reply@mywebsite.com)

Here is where you set it

It has to be an address that Brevo will send for. You can look at your logs there.

That port won’t work with some servers anymore (specifically digital ocean doesn’t support that now) you can try 2525 instead should work.

Thank you. It worked.