We could add an ENV var for that, but… I feel that it is just a handful of people in the world would ever use it.
Perhaps a more effective direction that would improve quality of life for every installer is to host a “free for all” SMTP install API for use during setup. The huge upside would be that we could move SMTP config out of ENV and into the UI.
Off the top of my head implementation:
api.discourse.org/validate_admin
POST
email: admin email address
activation_link: email activation link
forum_url: url of forum
Then when posted to that URL
- We add an endpoint that explicitly returns true if this service is enabled on the Discourse site and validate.
- Demand that the IP that makes the request is the IP of the forum.
- Heavy throttling by IP