# Issue with emails

**URL:** <https://forum.ghost.org/t/issue-with-emails/35270>\
**Category:** Developer help\
**Created:** [January 4, 2023, 7:57pm UTC](https://forum.ghost.org/t/issue-with-emails/35270 "2023-01-04T19:57:39Z")\
**Posts on this page:** 17\
**Page:** 1

<div class="post-metadata">

**Author:** ![learnt](https://avatars.discourse-cdn.com/v4/letter/l/8e8cbc/32.png) [@learnt](https://forum.ghost.org/u/learnt)\
**Post date:** [January 4, 2023, 7:57pm UTC](https://forum.ghost.org/t/issue-with-emails/35270/1 "2023-01-04T19:57:39Z")

</div>

the issue is that newsletter emails will not send. we have all the DNS records properly configured in mailgun and yet the emails will not send. we also have the mailgun api properly configured in ghost.

here’s some more info:

- [learnt.io/blog](https://learnt.io/blog) is the URL of our Ghost blog
- running version 5.23.0

Please help! Thank you

---

<div class="post-metadata">

**Author:** ![mjw](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/mjw/32/30781_2.png) [@mjw](https://forum.ghost.org/u/mjw)\
**Post date:** [January 4, 2023, 8:18pm UTC](https://forum.ghost.org/t/issue-with-emails/35270/2 "2023-01-04T20:18:00Z")

</div>

Your DNS is not set up correctly. You have both Google and Mailgun MX on the bare domain. I’m afraid that’s not right: Mailgun should be on a subdomain, e.g., [email.learnt.io](http://email.learnt.io).

---

<div class="post-metadata">

**Author:** ![learnt](https://avatars.discourse-cdn.com/v4/letter/l/8e8cbc/32.png) [@learnt](https://forum.ghost.org/u/learnt)\
**Post date:** [January 5, 2023, 2:32pm UTC](https://forum.ghost.org/t/issue-with-emails/35270/3 "2023-01-05T14:32:53Z")

</div>

![image.png](https://us1.discourse-cdn.com/flex015/uploads/ghost2/original/3X/4/a/4a98e3c0f5c09982ce792e9d7d0828225d24d965.png)

---

<div class="post-metadata">

**Author:** ![mjw](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/mjw/32/30781_2.png) [@mjw](https://forum.ghost.org/u/mjw)\
**Post date:** [January 5, 2023, 2:51pm UTC](https://forum.ghost.org/t/issue-with-emails/35270/4 "2023-01-05T14:51:12Z")

</div>

The hostname is incorrect: it’s the bare domain. You’re already using this with Google Mail, so it needs to be on a subdomain, e.g., [mg.learnt.io](http://mg.learnt.io).

---

<div class="post-metadata">

**Author:** ![learnt](https://avatars.discourse-cdn.com/v4/letter/l/8e8cbc/32.png) [@learnt](https://forum.ghost.org/u/learnt)\
**Post date:** [January 6, 2023, 5:01pm UTC](https://forum.ghost.org/t/issue-with-emails/35270/5 "2023-01-06T17:01:16Z")

</div>

thanks @mjw . so should i just used [mg.learnt.io](http://mg.learnt.io) or what should i use? I’m sorry but I don’t know what to put there instead.

---

<div class="post-metadata">

**Author:** ![mjw](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/mjw/32/30781_2.png) [@mjw](https://forum.ghost.org/u/mjw)\
**Post date:** [January 6, 2023, 5:06pm UTC](https://forum.ghost.org/t/issue-with-emails/35270/6 "2023-01-06T17:06:04Z")

</div>

Use [mg.learnt.io](http://mg.learnt.io) for MX, as you may want to set up a CNAME for [email.mg.learnt.io](http://email.mg.learnt.io) later. Furthermore, make sure you log into Mailgun and change the domain settings, and confirm that these are reflected in the settings.

---

<div class="post-metadata">

**Author:** ![learnt](https://avatars.discourse-cdn.com/v4/letter/l/8e8cbc/32.png) [@learnt](https://forum.ghost.org/u/learnt)\
**Post date:** [January 6, 2023, 6:28pm UTC](https://forum.ghost.org/t/issue-with-emails/35270/7 "2023-01-06T18:28:34Z")

</div>

Thanks so much, @mjw . These are my updated records in Digital Ocean:

 ![image](https://us1.discourse-cdn.com/flex015/uploads/ghost2/original/3X/f/3/f32df8491ce919a694b06caf05913e61432bf564.jpeg)

---

<div class="post-metadata">

**Author:** ![learnt](https://avatars.discourse-cdn.com/v4/letter/l/8e8cbc/32.png) [@learnt](https://forum.ghost.org/u/learnt)\
**Post date:** [January 6, 2023, 6:29pm UTC](https://forum.ghost.org/t/issue-with-emails/35270/8 "2023-01-06T18:29:07Z")

</div>

everything seems to be ok in mailgun:

 ![image](https://us1.discourse-cdn.com/flex015/uploads/ghost2/original/3X/b/9/b90bdb40c5078688e48e0b62fb626e8f7c798490.jpeg)

---

<div class="post-metadata">

**Author:** ![learnt](https://avatars.discourse-cdn.com/v4/letter/l/8e8cbc/32.png) [@learnt](https://forum.ghost.org/u/learnt)\
**Post date:** [January 6, 2023, 6:30pm UTC](https://forum.ghost.org/t/issue-with-emails/35270/9 "2023-01-06T18:30:39Z")

</div>

![image](https://us1.discourse-cdn.com/flex015/uploads/ghost2/original/3X/5/c/5c710190381dd6839891f14f8b03c0385fa53c4c.jpeg)

---

<div class="post-metadata">

**Author:** ![mjw](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/mjw/32/30781_2.png) [@mjw](https://forum.ghost.org/u/mjw)\
**Post date:** [January 6, 2023, 6:46pm UTC](https://forum.ghost.org/t/issue-with-emails/35270/10 "2023-01-06T18:46:28Z")

</div>

You need to remove the incorrect records, too. Mailgun is seeing these rather than the new ones.

Also, be patient since it may take a few hours for the changes to propagate.

---

<div class="post-metadata">

**Author:** ![learnt](https://avatars.discourse-cdn.com/v4/letter/l/8e8cbc/32.png) [@learnt](https://forum.ghost.org/u/learnt)\
**Post date:** [January 6, 2023, 7:35pm UTC](https://forum.ghost.org/t/issue-with-emails/35270/11 "2023-01-06T19:35:59Z")

</div>

sorry @mjw do you know which ones in particular are incorrect?

 ![image](https://us1.discourse-cdn.com/flex015/uploads/ghost2/original/3X/f/f/ff059d79d2d7f97e71323ac5d661bd9514b8e5d8.jpeg)

---

<div class="post-metadata">

**Author:** ![mjw](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/mjw/32/30781_2.png) [@mjw](https://forum.ghost.org/u/mjw)\
**Post date:** [January 6, 2023, 8:56pm UTC](https://forum.ghost.org/t/issue-with-emails/35270/12 "2023-01-06T20:56:33Z")

</div>

I can’t be much clearer. You should have **two** MX records pointing to Mailgun, and these need to be named [mg.learnt.io](http://mg.learnt.io). So, remove the other four, but not those related to Google Mail.

---

<div class="post-metadata">

**Author:** ![learnt](https://avatars.discourse-cdn.com/v4/letter/l/8e8cbc/32.png) [@learnt](https://forum.ghost.org/u/learnt)\
**Post date:** [January 9, 2023, 11:54pm UTC](https://forum.ghost.org/t/issue-with-emails/35270/13 "2023-01-09T23:54:25Z")

</div>

Thank you @mjw

I did that and now Mailgun is showing “unverified”

 ![image](https://us1.discourse-cdn.com/flex015/uploads/ghost2/original/3X/6/5/65735966d4062e0723974f5fbbf78e8cf214f0ed.jpeg)  
are you sure it should be the [mg.learnt.io](http://mg.learnt.io)? It was showing **verified** _before_ i removed the additional records 😱

---

<div class="post-metadata">

**Author:** ![learnt](https://avatars.discourse-cdn.com/v4/letter/l/8e8cbc/32.png) [@learnt](https://forum.ghost.org/u/learnt)\
**Post date:** [January 9, 2023, 11:55pm UTC](https://forum.ghost.org/t/issue-with-emails/35270/14 "2023-01-09T23:55:59Z")

</div>

![image](https://us1.discourse-cdn.com/flex015/uploads/ghost2/original/3X/a/f/afa5f0f2606118fede8ae4cfdf4c12ea1298afe2.jpeg)

here is the screenshot of the updated records!

---

<div class="post-metadata">

**Author:** ![learnt](https://avatars.discourse-cdn.com/v4/letter/l/8e8cbc/32.png) [@learnt](https://forum.ghost.org/u/learnt)\
**Post date:** [January 10, 2023, 12:03am UTC](https://forum.ghost.org/t/issue-with-emails/35270/15 "2023-01-10T00:03:07Z")

</div>

scratch that – looks like it finally registered/ it’s working!

 ![image](https://us1.discourse-cdn.com/flex015/uploads/ghost2/original/3X/0/8/089f859cb2cac6ebc06c3ed4087ce4dc905ce698.jpeg)

---

<div class="post-metadata">

**Author:** ![mjw](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/mjw/32/30781_2.png) [@mjw](https://forum.ghost.org/u/mjw)\
**Post date:** [January 10, 2023, 8:55am UTC](https://forum.ghost.org/t/issue-with-emails/35270/16 "2023-01-10T08:55:24Z")

</div>

It was showing verification for the bare domain, but this wouldn’t work because you already use the bare domain for Google Mail.

Therefore, this is correct.

DNS propagation takes a while.

---

<div class="post-metadata">

**Author:** ![mjw](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/mjw/32/30781_2.png) [@mjw](https://forum.ghost.org/u/mjw)\
**Post date:** [January 10, 2023, 8:57am UTC](https://forum.ghost.org/t/issue-with-emails/35270/17 "2023-01-10T08:57:05Z")

</div>

Now test your mail using the API and SMTP.
