# How to set no user/pass for smtp in discourse setup?

**URL:** <https://meta.discourse.org/t/how-to-set-no-user-pass-for-smtp-in-discourse-setup/58900>\
**Category:** Support\
**Created:** [Março 11, 2017, 9:55pm UTC](https://meta.discourse.org/t/how-to-set-no-user-pass-for-smtp-in-discourse-setup/58900 "2017-03-11T21:55:27Z")\
**Posts on this page:** 1\
**Showing post:** 10

<div class="post-metadata">

**Author:** ![watchmanmonitor](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/watchmanmonitor/32/430970_2.png) [@watchmanmonitor](https://meta.discourse.org/u/watchmanmonitor)\
**Post date:** [Março 26, 2017, 6:54pm UTC](https://meta.discourse.org/t/how-to-set-no-user-pass-for-smtp-in-discourse-setup/58900/10 "2017-03-26T18:54:21Z")

</div>

I know enough to run a mail server, but not enough to emulate the logic in

> <https://github.com/discourse/discourse_docker/blob/master/discourse-setup#L131-L223>

From swap setup to bumping up defaults if the host I’m installing on is beefy enough.

I wish I knew enough logic to add this following pseudo-code here:

> <https://github.com/discourse/discourse_docker/blob/master/discourse-setup#L287-L288>

If port = `25` then print “Enter none to disable SMTP Authentication, only choose this if you what you are doing”

This would allow me to have a uniform setup, and know that it wasn’t me when I run in to [other issues during setup](https://meta.discourse.org/t/jquery-error-prevents-email-from-being-sent-on-first-run/59902).

\*(Note that the forum I’m trying to set up today is using sparkpost/port 587/smtp\_injection/password), the topic at hand is about a different forum which is working now.)

Edited the second code area to reference `DISCOURSE_SMTP_PORT`, which was my initial intent

---

_[View the full topic](https://meta.discourse.org/t/how-to-set-no-user-pass-for-smtp-in-discourse-setup/58900)._
