# Connecting to a SMTP server on localhost:25 without auth?

**URL:** <https://meta.discourse.org/t/connecting-to-a-smtp-server-on-localhost-25-without-auth/156849>\
**Category:** Self-hosting\
**Tags:** email\
**Created:** [7 בנובמבר,‏ 2019,‏ 1:32pm UTC](https://meta.discourse.org/t/connecting-to-a-smtp-server-on-localhost-25-without-auth/156849 "2019-11-07T13:32:21Z")\
**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:** [7 בנובמבר,‏ 2019,‏ 3:14pm UTC](https://meta.discourse.org/t/connecting-to-a-smtp-server-on-localhost-25-without-auth/156849/2 "2019-11-07T15:14:00Z")

</div>

> [@maltfield](#):
>
> I’m very surprised that this isn’t supported OOTB; it’s the default config on most linux installs…

I think that hasn’t been very true for about 20 years.

You can’t use discourse-setup for situations like yours because few people have non password protected smtp servers, even behind a firewall.

What I would do is configure smtp passwords for my mail server. There really isn’t much downside.

If you don’t want to do that I think that instead of “none” for authentication you might want “” (and similarly for the password and username).

> [@maltfield](#):
>
> I think ‘localhost’ is resolving inside the docker container to the Discourse docker container itself ( `app` ) – not the docker host that is running my postfix smtp server.

I think so too. You might try using the container name. I think that you need to see that they are both on the same docker network.

---

_[View the full topic](https://meta.discourse.org/t/connecting-to-a-smtp-server-on-localhost-25-without-auth/156849)._
