Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show users an SMTP protocol configuration option, preset based on the given port #881

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

Gullumluvl
Copy link

This follows my post on the meta.discourse forum about setting up the email for port 465.

I added a prompt for "SMTP protocol" to the setup.

It's prefilled with TLS if the chosen port is 465, otherwise STARTTLS. When TLS is chosen, it actually means "implicit TLS".

In the resulting app.yml file, this will set both DISCOURSE_SMTP_ENABLE_START_TLS and DISCOURSE_SMTP_FORCE_TLS accordingly.

It might be best to replace these two configuration variables with a single one, e.g. DISCOURSE_SMTP_PROTOCOL, but I cannot handle that at the moment because my knowledge of the source code is limited to the setup script.

This pull request is just a suggestion!

Also: there is an additional commit that fixes an error in the definition of read_default. Let me know if I should do a separate PR for that.

Cheers,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant