# Sendgrid SMTP Issue - Say it works, nothing is delivered

**URL:** https://meta.discourse.org/t/sendgrid-smtp-issue-say-it-works-nothing-is-delivered/151007
**Category:** Self-hosting
**Created:** [11 במאי,‏ 2020,‏ 4:41am UTC](https://meta.discourse.org/t/sendgrid-smtp-issue-say-it-works-nothing-is-delivered/151007 "2020-05-11T04:41:46Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![tobywhughes](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tobywhughes/32/179965_2.png) [@tobywhughes](https://meta.discourse.org/u/tobywhughes)
#### Post date: [11 במאי,‏ 2020,‏ 4:41am UTC](https://meta.discourse.org/t/sendgrid-smtp-issue-say-it-works-nothing-is-delivered/151007/1 "2020-05-11T04:41:46Z")

</div>

Hello, I have installed dscourse on an EC2 instance. I am using sendgrid as my SMTP pointed at 587 using the apikey authentication method as recommended in the docs

Previously I was unable to connect, then specifed the port in the app.yml and according to discourse-doctor the emails are able to send and I am able to telnet using that port while SSH’d into my instance. However, no email is actually sent, and nothing is being received, even when using the mail-tester emails.

When I check the logs (when trying to send through the actual website, I see this:  
`Delivered mail 1ed931d5-3181-46a1-86f0-1b18b6366020@forum.redactedthisisactuallymydomain.com ( 628.3ms)`

Sendgrid does not seem to have any requests in its logs.

My outgoing ports on my EC2 instance are completely open.

Not quite sure what I’m missing. Also tried using 2525 as the port, no success.

Anybody have any ideas?

---

<div class="post-metadata">

### Author: ![tobywhughes](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tobywhughes/32/179965_2.png) [@tobywhughes](https://meta.discourse.org/u/tobywhughes)
#### Post date: [12 במאי,‏ 2020,‏ 1:17am UTC](https://meta.discourse.org/t/sendgrid-smtp-issue-say-it-works-nothing-is-delivered/151007/2 "2020-05-12T01:17:50Z")

</div>

I ended up just moving to mailgun and it worked perfectly. I am guessing then that there was just some issue with the domain registration, but honestly, still not sure.

---

<div class="post-metadata">

### Author: ![Bcat](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bcat/32/163148_2.png) [@Bcat](https://meta.discourse.org/u/Bcat)
#### Post date: [12 במאי,‏ 2020,‏ 2:25am UTC](https://meta.discourse.org/t/sendgrid-smtp-issue-say-it-works-nothing-is-delivered/151007/3 "2020-05-12T02:25:17Z")

</div>

Yesterday I also demoed a new version using sendgrid as smtp, but it looks like email was not sent!  
So it looks like the fault isn’t just yours. 🙄

---

<div class="post-metadata">

### Author: ![tobywhughes](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tobywhughes/32/179965_2.png) [@tobywhughes](https://meta.discourse.org/u/tobywhughes)
#### Post date: [12 במאי,‏ 2020,‏ 7:44am UTC](https://meta.discourse.org/t/sendgrid-smtp-issue-say-it-works-nothing-is-delivered/151007/4 "2020-05-12T07:44:12Z")

</div>

Hmm, perhaps SendGrid was having issues on their side. I couldn’t find anything in their logs, but also was a bit confused by their logs so who knows. The good thing for me was that we weren’t set with any SMTP yet so the switch was easy. Might have also been some issue with the domain registraion stuff, because I was getting weird errors when setting that up with them now that I’m thinking of it (click veriy, one said it worked the other said it didn’t, clicked verify again later, and it switched) so perhaps if anybody else comes across this, make sure that your DNS stuff is working correct with them?

---

<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: [11 ביוני,‏ 2020,‏ 7:55am UTC](https://meta.discourse.org/t/sendgrid-smtp-issue-say-it-works-nothing-is-delivered/151007/5 "2020-06-11T07:55:13Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
