Environment
- Discourse: latest tests-passed
- Host OS: [Ubuntu 24.04 LTS / 24.04.3 LTS]
- Install method: official Docker install, running
./discourse-setup
- Platform: VPS (Digital Ocean)
Steps to reproduce
- Run ./discourse-setup from /var/discourse
- Enter SMTP details when prompted:
- SMTP server: smtp.example.com
- SMTP port: 2525
- SMTP username: user@example.com
- SMTP password: p@ssw0rd!
- Finish setup and inspect containers/app.yml
Expected result
app.yml should contain two distinct fields, for example:
DISCOURSE_SMTP_USER_NAME: "user@example.com"
DISCOURSE_SMTP_PASSWORD: "p@ssw0rd!"
Actual result
The password field is written with the username prepended:
DISCOURSE_SMTP_USER_NAME: "user@example.com"
DISCOURSE_SMTP_PASSWORD: "user@brevo.comp@ssw0rd!"
This causes mail delivery to fail, and discourse-doctor confirms the mangled password.
Notes
• Quoting the password explicitly at the prompt does not change the outcome.
• Password contains special characters (@, !), but the problem is not just YAML quoting: the username string is literally concatenated at the start of the password.
• Reproducible across multiple runs of ./discourse-setup.