FIX: Add Azure communication service endpoint to SMTP authentication override (#33226)

Per [this
topic](https://meta.discourse.org/t/struggling-to-configure-smtp-in-discourse-with-azure-communication-service/290511), Azure communication service requires the `login` authentication method
on their SMTP service.
This commit is contained in:
Justin Moore
2025-10-21 09:39:25 +02:00
committed by GitHub
parent 6e39bb9728
commit 9125f85e69
+1 -1
View File
@@ -6,7 +6,7 @@ class SmtpProviderOverrides
# need certain authentication methods. This may need to change when we start to
# use XOAUTH2 for SMTP.
def self.authentication_override(host)
return "login" if %w[smtp.office365.com smtp-mail.outlook.com].include?(host)
return "login" if %w[smtp.office365.com smtp-mail.outlook.com smtp.azurecomm.net].include?(host)
GlobalSetting.smtp_authentication
end
end