# 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:** [2017 年 3 月 11 日午後 9:55 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:** 7

<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:** [2017 年 3 月 26 日午後 3:09 UTC](https://meta.discourse.org/t/how-to-set-no-user-pass-for-smtp-in-discourse-setup/58900/7 "2017-03-26T15:09:07Z")

</div>

> [@watchmanmonitor](#):
>
> I just set up another discourse using discourse-setup and am sure that’s the way to go.
> 
> I’m still a bit confused as to how I should handle the case of “port 25, no password needed” in the setup.

`./discourse-setup` is for people with limited (or no) sysadmin skills. If you’re able to configure a mail server to accept mail from a given IP, then you’re able to use `vim` and edit the mail config. Surely, you did that to configure the mail server. 😉

> [@watchmanmonitor](#):
>
> but don’t know how to safely get out of the wizard when it’s time to enter ‘’ for the password.

Ah! That I can help with! There’s an _undocumented feature_. `discourse-setup` sleeps for 5 seconds after it writes the config file. Just run the wizard and `^C` a second or two after you’ve hit enter after the last prompt.

You’ve made the point that I’m not the only person who might make use of that feature. Next time I submit a PR I’ll add a prompt that mentions that delay.

---

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