# Failing to connect to SMTP mail server

**URL:** <https://meta.discourse.org/t/failing-to-connect-to-smtp-mail-server/112737>\
**Category:** Self-hosting\
**Created:** [27.Март.2019 17:53:08 UTC](https://meta.discourse.org/t/failing-to-connect-to-smtp-mail-server/112737 "2019-03-27T17:53:08Z")\
**Posts on this page:** 1\
**Showing post:** 2

<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:** [27.Март.2019 19:48:57 UTC](https://meta.discourse.org/t/failing-to-connect-to-smtp-mail-server/112737/2 "2019-03-27T19:48:57Z")

</div>

It looks like discourse can’t connect to your mail server.

Can you `telnet my-mail-server 587` from the server? From inside the container?

You can see if `./discourse-doctor` gives you any clues.

---

_[View the full topic](https://meta.discourse.org/t/failing-to-connect-to-smtp-mail-server/112737)._
