# Mudando de SMTP para oAuth

**URL:** https://meta.discourse.org/t/switching-from-smtp-to-oauth/367023
**Category:** Support
**Created:** [Maio 21, 2025, 10:53am UTC](https://meta.discourse.org/t/switching-from-smtp-to-oauth/367023 "2025-05-21T10:53:54Z")
**Posts on this page:** 1
**Showing post:** 4

<div class="post-metadata">

### Author: ![NateDhaliwal](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/natedhaliwal/32/313494_2.png) [@NateDhaliwal](https://meta.discourse.org/u/NateDhaliwal)
#### Post date: [Maio 21, 2025, 11:11pm UTC](https://meta.discourse.org/t/switching-from-smtp-to-oauth/367023/4 "2025-05-21T23:11:37Z")

</div>

Se entendi corretamente, acho que uma pergunta semelhante foi feita há alguns anos, e esta foi a resposta:

> [@Basic Auth Disabled in Office 365](https://meta.discourse.org/t/basic-auth-disabled-in-office-365/228463/3):
>
> 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. 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/switching-from-smtp-to-oauth/367023)._
