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

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.

*(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

1 Like