# Digital Ocean, G Suite, SendGrid, Namecheap

**URL:** https://meta.discourse.org/t/digital-ocean-g-suite-sendgrid-namecheap/90969
**Category:** Self-hosting
**Tags:** email
**Created:** [28 Junio, 2018 16:37 UTC](https://meta.discourse.org/t/digital-ocean-g-suite-sendgrid-namecheap/90969 "2018-06-28T16:37:24Z")
**Posts on this page:** 17
**Page:** 1

<div class="post-metadata">

### Author: ![jayqueue2](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jayqueue2/32/105883_2.png) [@jayqueue2](https://meta.discourse.org/u/jayqueue2)
#### Post date: [28 Junio, 2018 16:37 UTC](https://meta.discourse.org/t/digital-ocean-g-suite-sendgrid-namecheap/90969/1 "2018-06-28T16:37:24Z")

</div>

Estoy teniendo bastantes problemas para que el correo funcione con mi nuevo servidor Discourse.

Estoy utilizando DigitalOcean para el alojamiento. No parece haber ningún problema allí. El servidor está en ejecución y puedo iniciar sesión.

Estoy usando G Suite como correo de administrador, pero no para gestionar el correo del sitio.

Estoy usando Namecheap para DNS y registro de dominios.

Estoy usando SendGrid como proveedor SMTP para el sitio. He probado todas las combinaciones posibles de verificación que se me han ocurrido: usando el dominio de nivel superior, usando el subdominio, eliminando los nombres de dominio y la información DNS proporcionada por SendGrid para ingresarlos en Namecheap, agregando el dominio a una lista blanca de G Suite (¿es esto incluso necesario?).

Puedo hacer que los correos se envíen. Según SendGrid, los correos de prueba fueron enviados desde Discourse, pero nunca llegan. La siguiente información se muestra en el mensaje de error de SendGrid:

**Recibido por [gmail-smtp-in.l.google.com](http://gmail-smtp-in.l.google.com)**

Bloqueado

El servidor de Gmail bloqueó este mensaje para que no se entregara. Aunque no intentaremos enviar este mensaje nuevamente, intentaremos enviar nuevos mensajes a esta dirección en el futuro.

Puedes ver todas las direcciones en tu [Bloqueos].

Respuesta completa del servidor de Gmail:

550 5.7.1 Correo no autenticado desde do.c no es aceptado debido a la política DMARC 5.7.1 del dominio. Por favor, contacta al administrador del dominio do.c si esto fue un correo legítimo. Por favor, visita 5.7.1 para aprender sobre la iniciativa DMARC. m55-v6si4266550qtc.214 - gsmtp

¿Esto reduce mi problema estrictamente a SendGrid y la verificación del dominio, o es algo más? De cualquier manera, SendGrid nunca quiere verificar una vez que he pegado la información que proporcionaron en la sección DNS de mi Namecheap.

---

<div class="post-metadata">

### Author: ![itsbhanusharma](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/itsbhanusharma/32/180717_2.png) [@itsbhanusharma](https://meta.discourse.org/u/itsbhanusharma)
#### Post date: [28 Junio, 2018 16:52 UTC](https://meta.discourse.org/t/digital-ocean-g-suite-sendgrid-namecheap/90969/2 "2018-06-28T16:52:58Z")

</div>

As it says, Your dmarc record is not correct.  
You can find the correct dmarc value in sendgrid and that should be updated into your dns.  
Please correct it or contact sendgrid for assistance.

Just by chance, is it a one-click install app from DO?

---

<div class="post-metadata">

### Author: ![jayqueue2](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jayqueue2/32/105883_2.png) [@jayqueue2](https://meta.discourse.org/u/jayqueue2)
#### Post date: [28 Junio, 2018 17:51 UTC](https://meta.discourse.org/t/digital-ocean-g-suite-sendgrid-namecheap/90969/3 "2018-06-28T17:51:23Z")

</div>

@itsbhanusharma, yes. I did the one-click Discourse setup. Everything went very smoothly up until the SMTP setup. I’ve put in a ticket with SendGrid and am waiting for their response.

---

<div class="post-metadata">

### Author: ![itsbhanusharma](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/itsbhanusharma/32/180717_2.png) [@itsbhanusharma](https://meta.discourse.org/u/itsbhanusharma)
#### Post date: [28 Junio, 2018 17:52 UTC](https://meta.discourse.org/t/digital-ocean-g-suite-sendgrid-namecheap/90969/4 "2018-06-28T17:52:15Z")

</div>

What is the notification email in your discourse admin? I think that needs to be corrected.

---

<div class="post-metadata">

### Author: ![jayqueue2](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jayqueue2/32/105883_2.png) [@jayqueue2](https://meta.discourse.org/u/jayqueue2)
#### Post date: [28 Junio, 2018 17:53 UTC](https://meta.discourse.org/t/digital-ocean-g-suite-sendgrid-namecheap/90969/5 "2018-06-28T17:53:52Z")

</div>

It is currently set at [noreply@unconfigured.discourse.org](mailto:noreply@unconfigured.discourse.org).

When going through the setup wizard I chose for the system to handle mail so the one G Suite account I have to accompany the site [info@mydomain.com](mailto:info@mydomain.com) is not flooded with messages, if I’m even understanding it correctly.

---

<div class="post-metadata">

### Author: ![itsbhanusharma](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/itsbhanusharma/32/180717_2.png) [@itsbhanusharma](https://meta.discourse.org/u/itsbhanusharma)
#### Post date: [28 Junio, 2018 17:55 UTC](https://meta.discourse.org/t/digital-ocean-g-suite-sendgrid-namecheap/90969/6 "2018-06-28T17:55:35Z")

</div>

It can’t be @unconfigured.discourse.org in any case.

Please change it to @(your-discourse-domain) or the domain that’s verified with sparkpost first. I hope that’ll fix it.

Also, you may have to tweak your smtp port as DO may be blocking common SMTP ports on your account.

---

<div class="post-metadata">

### Author: ![jayqueue2](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jayqueue2/32/105883_2.png) [@jayqueue2](https://meta.discourse.org/u/jayqueue2)
#### Post date: [28 Junio, 2018 18:03 UTC](https://meta.discourse.org/t/digital-ocean-g-suite-sendgrid-namecheap/90969/7 "2018-06-28T18:03:21Z")

</div>

@itsbhanusharma, I made your suggested changes and it worked, although the message did go to my spam folder and is still showing “via SendGrid”. I’m guessing the way to solve that is through domain verification with SendGrid and that will be between me and them.

---

<div class="post-metadata">

### Author: ![itsbhanusharma](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/itsbhanusharma/32/180717_2.png) [@itsbhanusharma](https://meta.discourse.org/u/itsbhanusharma)
#### Post date: [28 Junio, 2018 18:04 UTC](https://meta.discourse.org/t/digital-ocean-g-suite-sendgrid-namecheap/90969/8 "2018-06-28T18:04:39Z")

</div>

Exactly. They should have provided you some DNS records to create. Those records take care of the whole verification process.

---

<div class="post-metadata">

### Author: ![jayqueue2](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jayqueue2/32/105883_2.png) [@jayqueue2](https://meta.discourse.org/u/jayqueue2)
#### Post date: [28 Junio, 2018 18:05 UTC](https://meta.discourse.org/t/digital-ocean-g-suite-sendgrid-namecheap/90969/9 "2018-06-28T18:05:33Z")

</div>

Great. Thanks so much for the help. Now I’m wondering if I need to go back and undo some of the things I did like whitelisting my G Suite account with SendGrid and stuff like that.

---

<div class="post-metadata">

### Author: ![itsbhanusharma](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/itsbhanusharma/32/180717_2.png) [@itsbhanusharma](https://meta.discourse.org/u/itsbhanusharma)
#### Post date: [28 Junio, 2018 18:07 UTC](https://meta.discourse.org/t/digital-ocean-g-suite-sendgrid-namecheap/90969/10 "2018-06-28T18:07:28Z")

</div>

Not immediately, first step that I’d take is to make sure sendgrid is happy with my domain and then I’d test the quality of emails sent using [mail-tester.com](http://mail-tester.com) or similar service.

Once that’s all fixed then only I’d lax any whitelist

---

<div class="post-metadata">

### Author: ![jayqueue2](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jayqueue2/32/105883_2.png) [@jayqueue2](https://meta.discourse.org/u/jayqueue2)
#### Post date: [28 Junio, 2018 18:09 UTC](https://meta.discourse.org/t/digital-ocean-g-suite-sendgrid-namecheap/90969/11 "2018-06-28T18:09:37Z")

</div>

As it’s set up now, while going through all the various forums trying to troubleshoot my problem I followed one tutorial that had me go into my G Suite settings and whitelist Digital Ocean, not SendGrid like I said. Because that wasn’t related to my actual problem is it necessary anymore or could it cause any problems in the future?

It actually wasn’t even whitelisting. It was SMTP relay service where I added my droplet IP address.

---

<div class="post-metadata">

### Author: ![itsbhanusharma](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/itsbhanusharma/32/180717_2.png) [@itsbhanusharma](https://meta.discourse.org/u/itsbhanusharma)
#### Post date: [28 Junio, 2018 18:12 UTC](https://meta.discourse.org/t/digital-ocean-g-suite-sendgrid-namecheap/90969/12 "2018-06-28T18:12:40Z")

</div>

While it won’t really cause any problems as long as you retain the IP it can possibly cause spam whitelist if you leave the IP and other owner is a notorious spammer.

So it’s okay to remove it. Also, DO is not sending emails from it’s own IP either. Those are sent from sendgrid.

---

<div class="post-metadata">

### Author: ![jayqueue2](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jayqueue2/32/105883_2.png) [@jayqueue2](https://meta.discourse.org/u/jayqueue2)
#### Post date: [28 Junio, 2018 18:13 UTC](https://meta.discourse.org/t/digital-ocean-g-suite-sendgrid-namecheap/90969/13 "2018-06-28T18:13:23Z")

</div>

Great. Thanks again for the help.

---

<div class="post-metadata">

### Author: ![jayqueue2](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jayqueue2/32/105883_2.png) [@jayqueue2](https://meta.discourse.org/u/jayqueue2)
#### Post date: [20 Julio, 2018 15:41 UTC](https://meta.discourse.org/t/digital-ocean-g-suite-sendgrid-namecheap/90969/14 "2018-07-20T15:41:44Z")

</div>

While I’m able to get emails delivered to people who register for the forum now (albeit in their spam folder), I now am having trouble sending admin emails. When I attempt to make a member of the forum and admin, I get the message saying to check my email. My single G suite email address is [info@mydomain.com](mailto:info@mydomain.com). SendGrid can never seem to send a message from [info@mydomain.com](mailto:info@mydomain.com) to [info@mydomain.com](mailto:info@mydomain.com). This is quite a problem because I can’t make anyone else an admin because I can never finish the process. There error I get from SendGrid is:

The [mydomain.com](http://mydomain.com) server blocked this message from being delivered. While we won’t try to send this message again, we will attempt to send new messages to this address in the future.

You can view all addresses in your [Blocks](https://app.sendgrid.com/suppressions/blocks) suppression group. [Learn more](https://sendgrid.com/docs/User_Guide/email_activity.html).

Full response from the [mydomain.com](http://mydomain.com) server:

error dialing remote address: dial tcp 167.89.106.64:0-\>162.255.119.167:25: i/o timeout

---

<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: [20 Julio, 2018 17:09 UTC](https://meta.discourse.org/t/digital-ocean-g-suite-sendgrid-namecheap/90969/15 "2018-07-20T17:09:06Z")

</div>

You should check the mail debugging document. The problem is between sendgrid and your mail server that is refusing connections from sendgrid.

---

<div class="post-metadata">

### Author: ![jayqueue2](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jayqueue2/32/105883_2.png) [@jayqueue2](https://meta.discourse.org/u/jayqueue2)
#### Post date: [26 Julio, 2018 18:07 UTC](https://meta.discourse.org/t/digital-ocean-g-suite-sendgrid-namecheap/90969/16 "2018-07-26T18:07:35Z")

</div>

I’m using Namecheap, so I had set up all of my SendGrid information CNAME records, but in the “Mail Settings” portion of the Advanced DNS page I didn’t have anything selected. Once I selected Gmail everything began to work. I swear I’d thought I had read something about if you’re setting up SendGrid you don’t need anything the Mail Settings section. Things appear to be working now.

---

<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: [25 Agosto, 2018 18:07 UTC](https://meta.discourse.org/t/digital-ocean-g-suite-sendgrid-namecheap/90969/17 "2018-08-25T18:07:41Z")

</div>

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