Self-hosted Bitwarden instance cannot send mails via Microsoft 365

Has your company enabled SMTP AUTH for mail sent via its servers? If not, that may be the issue, as Bitwarden does not support OAuth2.