# Issues troubleshooting email

**URL:** <https://meta.discourse.org/t/issues-troubleshooting-email/116016>\
**Category:** Self-hosting\
**Created:** [April 25, 2019, 10:03pm UTC](https://meta.discourse.org/t/issues-troubleshooting-email/116016 "2019-04-25T22:03:58Z")\
**Posts on this page:** 1\
**Showing post:** 13

<div class="post-metadata">

**Author:** ![Stephen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stephen/32/95011_2.png) [@Stephen](https://meta.discourse.org/u/Stephen)\
**Post date:** [April 25, 2019, 10:51pm UTC](https://meta.discourse.org/t/issues-troubleshooting-email/116016/13 "2019-04-25T22:51:53Z")

</div>

Yep, so you transposed two characters, which led to an invalid mail server address. DNS resolution failed and gave you the original error.

You can:

1. re-run `discourse-setup` if you would prefer a prompt-driven process
2. edit it by hand using `vi` or `nano`
3. Use this to automatically substitute it for you:

> `sed -i 's/stmp.sparkpostmail.com/smtp.sparkpostmail.com/g' /var/discourse/containers/app.yml`

---

_[View the full topic](https://meta.discourse.org/t/issues-troubleshooting-email/116016)._
