Unable to send mails using Discourse


(Cee) #1

I have docker installation of discourse from this article. Discourse is working fine but I am unable to send mails.

my settings are.

TODO: The mailserver this Discourse instance will use

DISCOURSE_SMTP_ADDRESS: smtp.zoho.com # (mandatory)
DISCOURSE_SMTP_PORT: 587 # (optional)
DISCOURSE_SMTP_USER_NAME: xxxxx@xxxxxx.in # (optional)
DISCOURSE_SMTP_PASSWORD: xxxxxxxxx # (optional)

when I check production logs it shows Unprocessable entry.

Started POST “/admin/email/test” for 106.51.227.84 at 2016-10-09 10:36:28 +0000
Processing by Admin::EmailController#test as /
Parameters: {“email_address”=>"geekceeaim@gmail.com"}

Sent mail to geekceeaim@gmail.com (1430.7ms)
Completed 422 Unprocessable Entity in 1871ms (Views: 0.7ms | ActiveRecord: 1.1ms)

on sideKiq all email error queue have following logs.

Jobs::CriticalUserEmail

Jobs::HandledExceptionWrapper: Wrapped Net::SMTPAuthenticationError: 435 4.7.8 Error: authentication failed:

I am using digitalocean also I tried with ZOHO/mandrillapp smtp servers.

Thanks in advance.


(Matt Palmer) #2

There you are, then. Your credentials are wrong.


(Jay Pfaffman) #3

That is to say, there is something wrong with the username and /or password (or, perhaps the address/host name, but that’s pretty unlikely).