Request Support New Authentication Method for mail(outlook)

Request Support New Authentication Method for mail(outlook)

Impact

[EPERM] Authentication error (535): b'5.7.139 Authentication unsuccessful, basic authentication is disabled. [SG2PR01CA0170.apcprd01.prod.exchangelabs.com 2024-10-03T14:22:24.601Z 08DCE27F4697ED46]'

Yes, +1 for this please.
I had naively assumed that TrueNAS had introduced support for new auth methods for Microsoft based accounts, but I got caught out on the 16th when Microsoft finally turned off basic auth and I stopped getting all my TrueNAS emails :frowning:

Just confirming.

Microsft changed their policies very quickly.
https://support.microsoft.com/en-us/office/modern-authentication-methods-now-needed-to-continue-syncing-outlook-email-in-non-microsoft-email-apps-c5d65390-9676-4763-b41f-d7986499a90d

Basically, Oauth2 is needed for email access.

I assume Gmail Outh does not work?? Can you verify.

Afraid I cannot say as I don’t have a Gmail account.
I’m not sure if you were suggesting trying Gmail instead, or using the Gmail OAuth for Outlook.com?

Gmail Oauth with microsoft account??
Perhaps search the web for info on whether that can work.

Gmail work fine with the Gmail OAuth.
Microsoft accounts through Basic Authentication no longer works, with the error message displayed.

I was looking for verification that gmail Oauth does not work with Microsoft mail accounts…

I did not think it was possible, this is the reason I asked as I wasn’t sure why you were asking about Google Oauth when the issue is with Microsoft accounts?

How would that work? I can test it if you can explain, but I don’t see how that would be possible?

Not sure, but Microsoft does work with Google as an Outh2 provider.

I don’t think this quite applies to this scenario?
Unless I am misunderstanding…

You may be correct… I’d appreciate hearing from an expert that uses both.

I have a gmail account that TrueNAS uses through OAuth - but I send the emails to a Microsoft Email account (though 365). It works reliably

But I assume you cannot use Google Auth to access the Microsoft email account directly via SMTP…

err not that I am aware of

The issue here, and the feature request, is to do with sending FROM an outlook email address, not to.

Since MS changed their basic auth settings for the service, TrueNAS is unable to connect to and send from a Microsoft account

Added a vote. I’m allergic to gmail.

1 Like

Surprised to see only Gmail supported. It’s fairly trivial to add support for Microsoft, I’ve done it in our application at work. Both use OAuth2 to get an authentication token, and Microsoft uses the same SMTP extension as Gmail for authentication using the token.

Main difference is just one needs to talk to Microsoft servers rather than Google servers.