# SendGrid needs root cert installed

**URL:** https://meta.discourse.org/t/sendgrid-needs-root-cert-installed/38022
**Category:** Self-hosting
**Created:** [January 15, 2016, 9:18pm UTC](https://meta.discourse.org/t/sendgrid-needs-root-cert-installed/38022 "2016-01-15T21:18:59Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![rockylhotka](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rockylhotka/32/122009_2.png) [@rockylhotka](https://meta.discourse.org/u/rockylhotka)
#### Post date: [January 15, 2016, 9:18pm UTC](https://meta.discourse.org/t/sendgrid-needs-root-cert-installed/38022/1 "2016-01-15T21:18:59Z")

</div>

I am trying to set up my first discourse server, using docker and hosted in azure.

I have it running, but can’t get email to send from discourse. Looking at the `production.log` file in the container it appears that the problem is a lack of root cert packages in the Linux machine

```plaintext
Sent mail to someone@example.com (143.7ms)
Job exception: hostname "smtp.sendgrid.com" does not match the server certificate

```

Googling around seems to indicate the problem is that I need to install the Godaddy root cert in the container.

Does that seem correct? Why wouldn’t the standard root certs already be available?

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [January 15, 2016, 9:24pm UTC](https://meta.discourse.org/t/sendgrid-needs-root-cert-installed/38022/2 "2016-01-15T21:24:46Z")

</div>

> [@rockylhotka](#):
>
> Does that seem correct?

That seems very strange, our image is based off Ubuntu, SSL connections work from the server to other spots.

We need to make SSL connections regularly to onebox links (do a search on oneboxing) do they work for you?

---

<div class="post-metadata">

### Author: ![rockylhotka](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rockylhotka/32/122009_2.png) [@rockylhotka](https://meta.discourse.org/u/rockylhotka)
#### Post date: [January 15, 2016, 9:30pm UTC](https://meta.discourse.org/t/sendgrid-needs-root-cert-installed/38022/3 "2016-01-15T21:30:37Z")

</div>

I don’t know that anything works, as I’ve been unable to validate my initial admin user.

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [January 15, 2016, 9:35pm UTC](https://meta.discourse.org/t/sendgrid-needs-root-cert-installed/38022/4 "2016-01-15T21:35:19Z")

</div>

You can validate it by hand if needed

```
./launcher enter app
rake admin:create

```

---

<div class="post-metadata">

### Author: ![rockylhotka](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rockylhotka/32/122009_2.png) [@rockylhotka](https://meta.discourse.org/u/rockylhotka)
#### Post date: [January 15, 2016, 9:49pm UTC](https://meta.discourse.org/t/sendgrid-needs-root-cert-installed/38022/5 "2016-01-15T21:49:57Z")

</div>

I’m rebuilding the container right now to not use TLS - but once it is running again I’ll try the `rake` command.

---

<div class="post-metadata">

### Author: ![rockylhotka](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rockylhotka/32/122009_2.png) [@rockylhotka](https://meta.discourse.org/u/rockylhotka)
#### Post date: [January 15, 2016, 11:51pm UTC](https://meta.discourse.org/t/sendgrid-needs-root-cert-installed/38022/6 "2016-01-15T23:51:30Z")

</div>

It may be (ok, it _is_) the case that I needed to use `sendgrid.net` rather than `sendgrid.com` as the smtp server ☹

---

<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: [January 16, 2016, 12:10am UTC](https://meta.discourse.org/t/sendgrid-needs-root-cert-installed/38022/7 "2016-01-16T00:10:35Z")

</div>


