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

**URL:** https://meta.discourse.org/t/cpanel-mail-server-d-o-droplet-discourse-1-click-install-no-mail-sent/43980
**Category:** Support
**Tags:** unsupported-install
**Created:** [10 במאי,‏ 2016,‏ 7:29am UTC](https://meta.discourse.org/t/cpanel-mail-server-d-o-droplet-discourse-1-click-install-no-mail-sent/43980 "2016-05-10T07:29:09Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![Optiroot](https://avatars.discourse-cdn.com/v4/letter/o/c0e974/32.png) [@Optiroot](https://meta.discourse.org/u/Optiroot)
#### Post date: [10 במאי,‏ 2016,‏ 7:29am UTC](https://meta.discourse.org/t/cpanel-mail-server-d-o-droplet-discourse-1-click-install-no-mail-sent/43980/1 "2016-05-10T07:29:09Z")

</div>

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](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](http://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

---

<div class="post-metadata">

### Author: ![Optiroot](https://avatars.discourse-cdn.com/v4/letter/o/c0e974/32.png) [@Optiroot](https://meta.discourse.org/u/Optiroot)
#### Post date: [10 במאי,‏ 2016,‏ 8:32am UTC](https://meta.discourse.org/t/cpanel-mail-server-d-o-droplet-discourse-1-click-install-no-mail-sent/43980/2 "2016-05-10T08:32:18Z")

</div>

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.

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [10 במאי,‏ 2016,‏ 8:47am UTC](https://meta.discourse.org/t/cpanel-mail-server-d-o-droplet-discourse-1-click-install-no-mail-sent/43980/3 "2016-05-10T08:47:41Z")

</div>

Follow the email troubleshooting topic in #howto closely.

---

<div class="post-metadata">

### Author: ![Optiroot](https://avatars.discourse-cdn.com/v4/letter/o/c0e974/32.png) [@Optiroot](https://meta.discourse.org/u/Optiroot)
#### Post date: [10 במאי,‏ 2016,‏ 9:09am UTC](https://meta.discourse.org/t/cpanel-mail-server-d-o-droplet-discourse-1-click-install-no-mail-sent/43980/4 "2016-05-10T09:09:37Z")

</div>

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.

---

<div class="post-metadata">

### Author: ![Optiroot](https://avatars.discourse-cdn.com/v4/letter/o/c0e974/32.png) [@Optiroot](https://meta.discourse.org/u/Optiroot)
#### Post date: [10 במאי,‏ 2016,‏ 12:15pm UTC](https://meta.discourse.org/t/cpanel-mail-server-d-o-droplet-discourse-1-click-install-no-mail-sent/43980/5 "2016-05-10T12:15:51Z")

</div>

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?

---

<div class="post-metadata">

### Author: ![Optiroot](https://avatars.discourse-cdn.com/v4/letter/o/c0e974/32.png) [@Optiroot](https://meta.discourse.org/u/Optiroot)
#### Post date: [10 במאי,‏ 2016,‏ 3:38pm UTC](https://meta.discourse.org/t/cpanel-mail-server-d-o-droplet-discourse-1-click-install-no-mail-sent/43980/6 "2016-05-10T15:38:18Z")

</div>

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.

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [17 בינואר,‏ 2019,‏ 8:33pm UTC](https://meta.discourse.org/t/cpanel-mail-server-d-o-droplet-discourse-1-click-install-no-mail-sent/43980/7 "2019-01-17T20:33:50Z")

</div>



---

<div class="post-metadata">

### Author: ![featheredtoast](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/featheredtoast/32/116994_2.png) [@featheredtoast](https://meta.discourse.org/u/featheredtoast)
#### Post date: [17 בינואר,‏ 2019,‏ 9:05pm UTC](https://meta.discourse.org/t/cpanel-mail-server-d-o-droplet-discourse-1-click-install-no-mail-sent/43980/8 "2019-01-17T21:05:34Z")

</div>


