[Fixed] Can't send an email by Discourse

(João Paulo) #1

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?


(Neil Lalonde) #2

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.

(João Paulo) #3

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

(João Paulo) #4

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

(Rafael dos Santos Silva) #5