Unable to send mails using Discourse

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.

There you are, then. Your credentials are wrong.

3 Likes

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).

This topic was automatically closed after 2799 days. New replies are no longer allowed.