# 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:** 1

<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:** [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/1 "2020-12-29T14:31:36Z")

</div>

Cant get the first user registration email:

Discourse doctor says:  
SMTP server connection successful.  
Sending mail failed.

However:  
Telnet to [mail.domain.com](http://mail.domain.com) port 587 works and EHLO mailserver command works.

How can I fix this, any help would be greatly appreciated.

---

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