@RGJ Ich möchte allen für ihre Hilfe danken. Ich habe dies endlich, endlich gelöst. Der Tweak für Office365 ist die Verwendung von DISCOURSE_SMTP_AUTHENTICATION: login.
Der Office365 SMTP-Server und die Portkonfiguration sind smtp.office365.com:587 mit aktiviertem STARTTLS, was sowieso der Standard ist.
Und der Benutzername ist die vollständige E-Mail-Adresse bei der Organisation, die Office365 verwendet, normalerweise myaccount@mycompany.onmicrosoft.com. Diese kann mit Ihrer Benachrichtigungs-E-Mail übereinstimmen oder auch nicht.
Hier ist meine endgültige Konfiguration:
DISCOURSE_SMTP_ADDRESS: smtp.office365.com
DISCOURSE_SMTP_PORT: 587
DISCOURSE_SMTP_USER_NAME: myacct@mycompany.onmicrosoft.com
DISCOURSE_SMTP_PASSWORD: mypassword
DISCOURSE_SMTP_ENABLE_START_TLS: true
DISCOURSE_SMTP_DOMAIN: outlook.com
DISCOURSE_NOTIFICATION_EMAIL: myacct@mycompany.com
DISCOURSE_SMTP_AUTHENTICATION: login
Laut Mail Tester ist es 10 von 10!