# TLS error on connection from (localhost.localdomain) \[172.17.0.2\]

**URL:** <https://meta.discourse.org/t/tls-error-on-connection-from-localhost-localdomain-172-17-0-2/99935>\
**Category:** Self-hosting\
**Tags:** unsupported-install\
**Created:** [19.Октябрь.2018 04:18:10 UTC](https://meta.discourse.org/t/tls-error-on-connection-from-localhost-localdomain-172-17-0-2/99935 "2018-10-19T04:18:10Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![Bruce\_Bates](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bruce_bates/32/122887_2.png) [@Bruce\_Bates](https://meta.discourse.org/u/Bruce_Bates)\
**Post date:** [19.Октябрь.2018 04:18:10 UTC](https://meta.discourse.org/t/tls-error-on-connection-from-localhost-localdomain-172-17-0-2/99935/1 "2018-10-19T04:18:10Z")

</div>

I have NO idea how to fix this. I get these errors from exim when trying to send emails from discourse. It is connecting fine, but not about to send.

Exim errors:

```
2018-10-19 00:07:41 no host name found for IP address 172.17.0.2
2018-10-19 00:07:44 no host name found for IP address 172.17.0.2
2018-10-19 00:07:44 TLS error on connection from (localhost.localdomain) [172.17.0.2] (cert/key setup: cert=/usr/local/vesta/ssl/certificate.crt key=/usr/local/vesta/ssl/certificate.key): Error while reading file.

```

When running discourse-doctor it returns:

```
For a robust test, get an address from http://www.mail-tester.com/
Sending mail to REDACTED . .
Testing sending to president@marketers.coop using president@marketers.coop: ******* @smtp.marketers.coop:587.
SMTP server connection successful.
Sending to president@marketers.coop. . .
Sending mail failed.

```

---

_[View the full topic](https://meta.discourse.org/t/tls-error-on-connection-from-localhost-localdomain-172-17-0-2/99935)._
