Reworking the emails:test rake task output

DISCOURSE_SMTP_ENABLE_START_TLS will only use STARTTLS if the server offers it. If your mailserver doesn’t offer it, it won’t be used.

(this is referred to as opportunistic TLS)

My reason for adding the warning is that prior to my change, setting DISCOURSE_SMTP_ENABLE_START_TLS to false did not actually disable STARTTLS.

I envisioned there was a non-zero number of admins who had no idea how this worked and banged together variables until it did and happened to leave DISCOURSE_SMTP_ENABLE_START_TLS=false set, even though their setup required it. The warning is largely directed at those people.

1 Like