forum: authenticate to SMTP with LOGIN
Some checks are pending
CI / Integration (mcr.microsoft.com/mssql/server:2017-latest) (push) Blocked by required conditions
CI / Integration (mcr.microsoft.com/mssql/server:2019-latest) (push) Blocked by required conditions
CI / Integration (mcr.microsoft.com/mssql/server:2022-latest) (push) Blocked by required conditions
CI / Integration (mcr.microsoft.com/mssql/server:2025-latest) (push) Blocked by required conditions
CI / Build og unit tests (push) Successful in 1m10s
CI / MSI-installer (push) Successful in 42s

Discourse uses AUTH PLAIN by default. Microsoft 365 only offers LOGIN and
XOAUTH2 and rejects PLAIN with "504 5.7.4 Unrecognized authentication
type", so no sign-up mail was sent.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
Søren Eggert Lundsteen Olsen 2026-09-30 09:28:07 +02:00
parent 64ccaedf1f
commit c520919a76

View file

@ -44,6 +44,9 @@ env:
DISCOURSE_SMTP_USER_NAME: '{{FORUM_SMTP_USER}}'
DISCOURSE_SMTP_PASSWORD: '{{FORUM_SMTP_PASSWORD}}'
DISCOURSE_SMTP_ENABLE_START_TLS: true
## Discourse defaults to AUTH PLAIN; Microsoft 365 (smtp.office365.com) only offers LOGIN and XOAUTH2
## and answers PLAIN with "504 5.7.4 Unrecognized authentication type". LOGIN works on other servers too.
DISCOURSE_SMTP_AUTHENTICATION: login
DISCOURSE_NOTIFICATION_EMAIL: '{{FORUM_NOTIFICATION_EMAIL}}'
volumes: