Since my first migrations away from x400 I have installed a significant number of systems and packages with, none@none.com, username: none, password: none.
I wouldn’t like to be tasked with looking after intrusion detection here
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.
I assume that entering in no value would cause an error, as I assume that the SMTP credentials would be tested here. If SMTP isn’t tested, maybe note that so it’s clear that I have to put in an incorrect value, and go back to edit it later?
Not that it makes any sense to have to fake it.
Ultimately the problem that I’m smart enough to know that using the wizard is going to help catch rough edges that I didn’t know might exist (auto-setup of the swap, if needed, etc) . and know enough about SMTP to allow our primary mail server to accept & forward emails from a new forum I’m setting up, but don’t know how to safely get out of the wizard when it’s time to enter '' for the password.
./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.
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.
Or, those who don’t know if/how to setup a swap image. That’s me… that’s literally what I want to use the setup wizard for (unless there’s other goodness which Discourse knows, that I don’t, in which case I’d like the benefit of the wizard.
Also, later on when I’m submitting bugs, it’s FAR easier to say “I followed the guide” vs guessing where I might have taken unknown paths.
Sounds good, but that still leaves me entering known-bad data in the face of this DIRE WARNING
Email is CRITICAL for account creation and notifications in Discourse. If you do not properly configure email before bootstrapping YOU WILL HAVE A BROKEN SITE!
It’d be cleaner to have a way to set no password, if none is required. Maybe that would show as an option if the port was set to 25?
Well, @codinghorror can weigh in here (as he’s who’ll accept the PR should I submit it), but that DIRE WARNING applies to the people for whom discourse-setup is designed. Most of those people cannot and should not be configuring a no-password mail server on port 25; that’s a bad idea except in situations few people are likely to encounter. The likelihood that someone who tries to configure mail that way will then come here asking why, oh why, is their mail not getting delivered is fairly high. Again, if you know how to run a mail server, then you can know that the DIRE WARNING does not apply to you.
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.
*(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