cPanel Mail server + D.O Droplet Discourse 1 click install = No mail sent


(Christian) #1

Hello everybody!

I have a dedicated server on a local hosting provider. This server is CentOS 6.7 with cPanel.
I created a Droplet with 1 click Discourse install in DigitalOcean too, and I managed domain setup. Discourse is in a subdomain.

Now the problem comes when I setup Discourse. I follow all passages and so on, I insert my SMTP accesses (from my other server) but nothing happens when I try to register as admin, no mail.

This is my app .yml file:

http://pastebin. com/k9x7mKz7
(Join . and com: Discourse wouldn’t let me publish as it renders a part of the Paste and reads the link, and being a new user I can just paste two links in a Topic)

I replaced my website fields with example.com and so on, but apart of that everything is the same.
The SMTP port is right, and I’ve read all the possible posts here, but nothing. I can’t find a solution and as I have a strong Dedicated server I wanted to use it to send emails, not something Mandrill and so on…

Please, help.

Best regards


(Christian) #2

Update: tried even using SparkPost. No signal of any email address, SparkPost doesn’t even know that an email has been sent.
The problem seems to come from the Droplet itself or Discourse in some way.


(Jeff Atwood) #3

Follow the email troubleshooting topic in #howto closely.


(Christian) #4

Thank you for your reply.

Tried too, but still the same problem. I’m starting to think that maybe is a problem of my mail server.

Anyway now I’m trying doing a manual install instead of using the one-click install of D.O.
Let’s see how it goes.


(Christian) #5

I don’t know if this could be useful, but in /var/discourse/shared/standalone/log/rails/production.log

Started POST "/admin/email/test" for [myip] at 2016-05-10 09:30:56 +0000
Processing by Admin::EmailController#test as */*
  Parameters: {"email_address"=>"[myemail]"}

Sent mail to [myemail] (10101.4ms)
Completed 422 Unprocessable Entity in 10764ms (Views: 0.5ms | ActiveRecord: 0.0ms)
Started GET "/admin/logs/staff_action_logs.json?_=1462872513660" for [myip] at 2016-05-10 09:31:16 +0000
Started GET "/admin/logs/staff_action_logs.json?_=1462872513661" for [myip] at 2016-05-10 09:31:16 +0000
Processing by Admin::StaffActionLogsController#index as JSON
  Parameters: {"_"=>"1462872513660"}
Started GET "/admin/logs/staff_action_logs.json?_=1462872513662" for [myip] at 2016-05-10 09:31:17 +0000
Processing by Admin::StaffActionLogsController#index as JSON
  Parameters: {"_"=>"1462872513661"}
Processing by Admin::StaffActionLogsController#index as JSON
  Parameters: {"_"=>"1462872513662"}
Completed 200 OK in 40ms (Views: 0.4ms | ActiveRecord: 18.8ms)
Completed 200 OK in 68ms (Views: 0.4ms | ActiveRecord: 16.9ms)
Completed 200 OK in 50ms (Views: 0.5ms | ActiveRecord: 15.7ms)
Started GET "/admin/logs/screened_emails.json?_=1462872513663" for [myip] at 2016-05-10 09:31:19 +0000
Processing by Admin::ScreenedEmailsController#index as JSON
  Parameters: {"_"=>"1462872513663"}
Completed 200 OK in 10ms (Views: 0.3ms | ActiveRecord: 3.6ms)
Started GET "/admin/logs/screened_ip_addresses.json?filter=&_=1462872513664" for [myip] at 2016-05-10 09:31:20 +0000

I replaced my IP and my admin email address with [myip] and [myemail].

I would take attention to the line: Sent mail to myemail (10101.4ms)
Completed 422 Unprocessable Entity in 10764ms (Views: 0.5ms | ActiveRecord: 0.0ms)

This is after having entered my email in “test”, in the administration.

Any ideas?


(Christian) #6

Solved enabling Google DNS in Docker.

Open /etc/default/docker

Then uncomment

#DOCKER_OPTS="--dns 8.8.8.8 --dns 8.8.4.4"

This way it worked.