Skip to content

Commit 617a8ab

Browse files
committed
Reformat SMTP server configuration example block in templates
* remove mention of DISCOURSE_SMTP_ENABLE_START_TLS * clarify when authentication is required * ensure sample is consistent between standalone/web_only e.g. DISCOURSE_SMTP_OPENSSL_VERIFY_MODE and DISCOURSE_SMTP_AUTHENTICATION
1 parent 45b2526 commit 617a8ab

File tree

2 files changed

+35
-15
lines changed

2 files changed

+35
-15
lines changed

samples/standalone.yml

Lines changed: 17 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -58,18 +58,27 @@ env:
5858
## on initial signup example '[email protected],[email protected]'
5959
DISCOURSE_DEVELOPER_EMAILS: '[email protected],[email protected]'
6060

61-
## TODO: The SMTP mail server used to validate new accounts and send notifications
62-
# SMTP ADDRESS is required
63-
# WARNING: SMTP password should be wrapped in quotes to avoid problems
61+
## TODO: Configure the mail server
62+
## (used for validation of new accounts, notifications, digests, etc.)
63+
## required: hostname of the SMTP mail server used to send mail
6464
DISCOURSE_SMTP_ADDRESS: smtp.example.com
65+
## uncomment to set the port to something other than the default (25)
6566
#DISCOURSE_SMTP_PORT: 587
67+
## USER_NAME / PASSWORD required if the SMTP provider needs authentication
68+
## WARNING: a '#' in the SMTP password can be misinterpreted; ensure it's inside string quotes, e.g.:
69+
## DISCOURSE_SMTP_PASSWORD: "#pass#ord"
6670
DISCOURSE_SMTP_USER_NAME: [email protected]
6771
DISCOURSE_SMTP_PASSWORD: "pa$$word"
68-
#DISCOURSE_SMTP_ENABLE_START_TLS: true # (optional, default: true)
69-
#DISCOURSE_SMTP_DOMAIN: discourse.example.com # (required by some providers)
70-
#DISCOURSE_NOTIFICATION_EMAIL: [email protected] # (address to send notifications from)
71-
#DISCOURSE_SMTP_OPENSSL_VERIFY_MODE: peer # (optional, default: peer, valid values: none, peer, client_once, fail_if_no_peer_cert)
72-
#DISCOURSE_SMTP_AUTHENTICATION: plain # (default: plain, valid values: plain, login, cram_md5)
72+
## uncomment to enable implicit TLS at connection time, probably needed for using port 465
73+
#DISCOURSE_SMTP_FORCE_TLS: true
74+
## uncomment to set the HELO/EHLO domain, only set if required by provider
75+
#DISCOURSE_SMTP_DOMAIN: discourse.example.com
76+
## the address from which notifications are sent
77+
#DISCOURSE_NOTIFICATION_EMAIL: [email protected]
78+
## uncomment to change server certificate verification
79+
#DISCOURSE_SMTP_OPENSSL_VERIFY_MODE: peer # peer|none
80+
## uncomment to override the authentication method
81+
#DISCOURSE_SMTP_AUTHENTICATION: plain # plain|login|cram_md5
7382

7483
## If you added the Lets Encrypt template, uncomment below to get a free SSL certificate
7584
#LETSENCRYPT_ACCOUNT_EMAIL: [email protected]

samples/web_only.yml

Lines changed: 18 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -49,16 +49,27 @@ env:
4949
## on initial signup example '[email protected],[email protected]'
5050
DISCOURSE_DEVELOPER_EMAILS: '[email protected],[email protected]'
5151

52-
## TODO: The SMTP mail server used to validate new accounts and send notifications
53-
# SMTP ADDRESS, username, and password are required
54-
# WARNING the char '#' in SMTP password can cause problems!
52+
## TODO: Configure the mail server
53+
## (used for validation of new accounts, notifications, digests, etc.)
54+
## required: hostname of the SMTP mail server used to send mail
5555
DISCOURSE_SMTP_ADDRESS: smtp.example.com
56+
## uncomment to set the port to something other than the default (25)
5657
#DISCOURSE_SMTP_PORT: 587
58+
## USER_NAME / PASSWORD required if the SMTP provider needs authentication
59+
## WARNING: a '#' in the SMTP password can be misinterpreted; ensure it's inside string quotes, e.g.:
60+
## DISCOURSE_SMTP_PASSWORD: "#pass#ord"
5761
DISCOURSE_SMTP_USER_NAME: [email protected]
58-
DISCOURSE_SMTP_PASSWORD: pa$$word
59-
#DISCOURSE_SMTP_ENABLE_START_TLS: true # (optional, default true)
60-
#DISCOURSE_SMTP_DOMAIN: discourse.example.com # (required by some providers)
61-
#DISCOURSE_NOTIFICATION_EMAIL: [email protected] # (address to send notifications from)
62+
DISCOURSE_SMTP_PASSWORD: "pa$$word"
63+
## uncomment to enable implicit TLS at connection time, probably needed for using port 465
64+
#DISCOURSE_SMTP_FORCE_TLS: true
65+
## uncomment to set the HELO/EHLO domain, only set if required by provider
66+
#DISCOURSE_SMTP_DOMAIN: discourse.example.com
67+
## the address from which notifications are sent
68+
#DISCOURSE_NOTIFICATION_EMAIL: [email protected]
69+
## uncomment to change server certificate verification
70+
#DISCOURSE_SMTP_OPENSSL_VERIFY_MODE: peer # peer|none
71+
## uncomment to override the authentication method
72+
#DISCOURSE_SMTP_AUTHENTICATION: plain # plain|login|cram_md5
6273

6374
## If you added the Lets Encrypt template, uncomment below to get a free SSL certificate
6475
#LETSENCRYPT_ACCOUNT_EMAIL: [email protected]

0 commit comments

Comments
 (0)