# Discourse connects to the SMTP server but fails to send email through it

**URL:** <https://meta.discourse.org/t/discourse-connects-to-the-smtp-server-but-fails-to-send-email-through-it/174501>\
**Category:** Self-hosting\
**Created:** [December 29, 2020, 2:31pm UTC](https://meta.discourse.org/t/discourse-connects-to-the-smtp-server-but-fails-to-send-email-through-it/174501 "2020-12-29T14:31:36Z")\
**Posts on this page:** 1\
**Showing post:** 10

<div class="post-metadata">

**Author:** ![superman](https://avatars.discourse-cdn.com/v4/letter/s/ea5d25/32.png) [@superman](https://meta.discourse.org/u/superman)\
**Post date:** [January 18, 2021, 2:59am UTC](https://meta.discourse.org/t/discourse-connects-to-the-smtp-server-but-fails-to-send-email-through-it/174501/10 "2021-01-18T02:59:40Z")

</div>

What is the hostname that Discourse uses to send mail?  
Does it use [forum.somedomain.com](http://forum.somedomain.com)?  
or  
Does it use [mail.forum.somedomain.com](http://mail.forum.somedomain.com)?

---

_[View the full topic](https://meta.discourse.org/t/discourse-connects-to-the-smtp-server-but-fails-to-send-email-through-it/174501)._
