# Discourse SMTP Error

**URL:** https://meta.discourse.org/t/discourse-smtp-error/169762
**Category:** Self-hosting
**Created:** [November 10, 2020, 6:31pm UTC](https://meta.discourse.org/t/discourse-smtp-error/169762 "2020-11-10T18:31:16Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![NamVr](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/namvr/32/189838_2.png) [@NamVr](https://meta.discourse.org/u/NamVr)
#### Post date: [November 10, 2020, 6:31pm UTC](https://meta.discourse.org/t/discourse-smtp-error/169762/1 "2020-11-10T18:31:16Z")

</div>

I dont know but why… cPanel SMTP never works with Discourse.

Actually, I recently installed discourse on my brand new ubuntu vps. I have a cPanel server on a different dedicated server. cPanel SMTP settings always work with all softwares, including wordpress and flarum, but the same settings doesn’t work with Discourse.

Ok, details:

| | |
| --- | --- |
| address | `mail.domain.com` |
| port | 587 |
| user\_name | `forums@domain.com` |
| authentication | plain |
| enable\_starttls\_auto | true |

Test mail never goes. Sending test Email… for 5 minutes. After a very long time:

> There was a problem sending the test email. Please double-check your mail settings, verify that your host is not blocking mail connections, and try again.

This is the cPanel Email, the very first email that sends configuration.

 ![image](https://global.discourse-cdn.com/meta/original/3X/d/1/d1e9a1cc03d9f241b29098bd4220f90af5ea1cef.png)

Confused because here it is port SSL and discourse says TLS

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [November 10, 2020, 8:01pm UTC](https://meta.discourse.org/t/discourse-smtp-error/169762/2 "2020-11-10T20:01:54Z")

</div>

> [@NamVr](#):
>
> There was a problem sending the test email. Please double-check your mail settings, verify that your host is not blocking mail connections, and try again.

Did you check that your host isn’t blocking outbound connections to `mail.domain.com` port 465?

If your mailer expects `forums@domain.com` as your notification email, did you change that setting in Discourse?

Oh, but wait. You have Discourse configured to use port 587, but the screenshot that you provide shows port 465, so you might want to tell Discourse to use that port.

Did you look at [Troubleshooting email on a new Discourse install](https://meta.discourse.org/t/troubleshooting-email-on-a-new-discourse-install/16326)?

---

<div class="post-metadata">

### Author: ![NamVr](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/namvr/32/189838_2.png) [@NamVr](https://meta.discourse.org/u/NamVr)
#### Post date: [November 11, 2020, 6:01am UTC](https://meta.discourse.org/t/discourse-smtp-error/169762/3 "2020-11-11T06:01:30Z")

</div>

I am giving it a try… Does cloudflare effect the proxy over mailer?
