Commit 464f7345 authored by Daniel Dehennin's avatar Daniel Dehennin

fix(config): set `SMTP` authentication mechanism

Some `SMTP` servers require a specific authentication mecanism and
Discourse use `PLAIN` by default.
parent 60743795
......@@ -75,6 +75,7 @@ env:
DISCOURSE_SMTP_PORT: {{ discourse | traverse('smtp:port') }}
DISCOURSE_SMTP_USER_NAME: {{ discourse | traverse('smtp:user_name') }}
DISCOURSE_SMTP_PASSWORD: {{ discourse | traverse('smtp:password') }}
DISCOURSE_SMTP_AUTHENTICATION: {{ discourse | traverse('smtp:auth_mechanism', 'plain') }}
DISCOURSE_SMTP_ENABLE_START_TLS: {{ discourse | traverse('smtp:start_tls') | lower }} # (optional, default true)
## If you added the Lets Encrypt template, uncomment below to get a free SSL certificate
......
......@@ -9,6 +9,7 @@ discourse:
port: '25'
user_name: 'me@example.net'
start_tls: true
auth_mechanism: 'login'
# the following must be set in pillar
# smtp_password: ~
letsencrypt:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment