# Basic Auth Disabled in Office 365

**URL:** https://meta.discourse.org/t/basic-auth-disabled-in-office-365/228463
**Category:** Self-hosting
**Created:** [May 30, 2022, 5:23pm UTC](https://meta.discourse.org/t/basic-auth-disabled-in-office-365/228463 "2022-05-30T17:23:11Z")
**Posts on this page:** 1
**Showing post:** 3

<div class="post-metadata">

### Author: ![gerhard](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gerhard/32/119479_2.png) [@gerhard](https://meta.discourse.org/u/gerhard)
#### Post date: [May 30, 2022, 8:44pm UTC](https://meta.discourse.org/t/basic-auth-disabled-in-office-365/228463/3 "2022-05-30T20:44:01Z")

</div>

Looks like there’s no need to switch to OAuth2.

> SMTP AUTH will still be available when Basic authentication is permanently disabled on October 1, 2022.

So, you should be able to change to SMTP Auth by adding an additional env variable to `app.yml`.

```plaintext
DISCOURSE_SMTP_AUTHENTICATION: cram_md5

```

In addition to that I think you will need to use the MD5 hash of the SMTP password as value of the `DISCOURSE_SMTP_PASSWORD` setting. Rebuild the Docker container after those changes and give it a try.

---

_[View the full topic](https://meta.discourse.org/t/basic-auth-disabled-in-office-365/228463)._
