[Fixed] Can't send an email by Discourse

AI-generated summary

jpaulo reported an issue where Discourse, hosted on AWS with an AWS SES SMTP server, failed to send emails despite no errors appearing in the production.log and successful command-line tests. neil suggested checking the Admin panel’s “skipped” email logs for specific failure reasons. jpaulo confirmed the email was indeed marked as skipped due to an AWS SES error stating the email addresses were not verified. The issue was ultimately resolved by correcting the configuration in app.yml, after which email functionality was restored jpaulo.

Hi I just started using Discourse and everything went well but the email. My SMTP server is from AWS SES, my Discourse server is located in AWS as well but I can’t recieve emails coming from Discourse and I don’t know where to look for solutions.

What I have done so far:

  • Checked the app.yml file multiple times and rebuilt the application.
  • Trail the production.log, sent an email and got this:

Started POST “/admin/email/test” for IP at 2016-10-17 21:45:37 +0000
Processing by Admin::EmailController#test as /
Parameters: {“email_address”=>“xxxxxx@gmail.com”}

Sent mail to xxxxxx@gmail.com (2943.4ms)
Rendered text template (0.0ms)
Completed 200 OK in 3166ms (Views: 2.6ms | ActiveRecord: 13.6ms)

So no error on the log.

  • I ssh in my Discourse machine and could send an email using the command line and the same credentials Discourse have. So it shouldn’t be the machine or domain because I could send it and recieve it normally.

What else can I do? Am I missing something?

Thanks!

Do you see the test email logged as “sent” in admin? Or is it in the “skipped” logs, like this:

You might see a reason for the failure in one of those tabs.

It was on skipped with this error message:

Message rejected: Email address is not verified. The following identities failed the check in region US-EAST-1: sender@email.com, target@email.com

I will look into it, thanks

It was a problem in my Discourse config on app.yml, now everything is working fine, thanks!