From c520919a7646a94a638f31ca01f66af31f5fdfe5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B8ren=20Eggert=20Lundsteen=20Olsen?= Date: Wed, 30 Sep 2026 09:28:07 +0200 Subject: [PATCH] forum: authenticate to SMTP with LOGIN 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) --- deploy/forum/app.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/deploy/forum/app.yml b/deploy/forum/app.yml index aa91299..be1393f 100644 --- a/deploy/forum/app.yml +++ b/deploy/forum/app.yml @@ -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: