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

<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 07:04:56 UTC](https://meta.discourse.org/t/tls-error-on-connection-from-localhost-localdomain-172-17-0-2/99935/10 "2018-10-19T07:04:56Z")

</div>

The script was not an option for me. Exim is custom installed and working with dozens of different domain names and using the script would have put files in all sorts of wrong places and changed configurations in various ways that would have broken my server.

Instead what I did was:

```
#edit /etc/hosts
172.17.0.2 localhost.localdomain marketers.coop

```

then

```
#added to my dns
mail._domain...TXT "v=DKIM1; k=rsa; p={my rsa key}"
_domainkeyTXT "t=y; o=~;"
_dmarcTXT "v=DMARC1; p=none"
@TXT "v=spf1 a mx ip4:172.17.0.2 ~all"
@MX10 172.17.0.2.
imap A 172.17.0.2
pop A 172.17.0.2
smtp A 172.17.0.2

```

then

```
ls -s /etc/exim4/domains/localhost.localdomain /path/to/my/domain/exim_files

```

finally

```
#edit containers/app.yml
DISCOURSE_SMTP_ENABLE_START_TLS: false

```

After all the above steps were done it started working (and yes I did try TLS false from the start but it still failed with auth denied from 172.17.0.2)

Happy to say, my mails are now being delivered from the script.

---

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