Outlook OAuth2 login needed urgently! Password functionality is ending

I have posted about this recently, I have not had a reply. I get occasional disconnect from one account. But this is worrying issue. Only months away!

1 Like

I’m having the same issues with Google mail.
Linux Mint Mate 21.3

1 Like

My outlook.com account died today. It refuses to accept my password. Without a fix, I think we’re stuck using a different app or the web interface for Microsoft email accounts now.

1 Like

Hey folks, thanks for reporting this – It looks like you’re correct. Microsoft recently started requiring “Modern Authentication” for Outlook accounts, and I hadn’t noticed because our test accounts are grandfathered in in some way. I created a new Outlook.com account and I see the same issue you’re reporting, and I’m unable to create a new app password.

Could you try going to Preferences > Accounts and clicking “Add Account”, and connecting your Outlook account using the “Office 365” option? (You don’t have to unlink your account first.) Mailspring already uses modern authentication for Office 365, and at least for my test account, that seems to work fine for Outlook now. They may finally be merging these services together under the hood!

If that works, please let me know. Reading through their developer documentation, I think that we can merge the Outlook and Office365 options completely.

This post was flagged by the community and is temporarily hidden.

Thanks for giving that a spin @mischkl, it’s interesting it gave that particular error and not something more descriptive - I’ll do a bit more testing and see if I can sort out what’s going on. I think that this is impacting specifically Exchange Online accounts (Deprecation of Basic authentication in Exchange Online | Microsoft Learn), but the “instructions for app developers” shown on that page (Authenticate an IMAP, POP or SMTP connection using OAuth | Microsoft Learn) link to the steps we already implement for Office 365, and refer to “Office 365” and not “Outlook” or “Exchange Online”, which is super confusing.

This post was flagged by the community and is temporarily hidden.

I tried to add my super-old hotmail account and my one year old outlook account trough office 365 and unfortunately none of them worked.

@bengotow just an idea, since OAuth2 authentication for GMail IMAP seems to work, maybe you could take that as a jumping-off point?

Tried adding outlook account by using Office 365 option and received Error: An unknown error has occurred (mailsync: 134). Here’s the log which seems to be useful(some info are replaced by X for privacy reasons)https://0x0.st/Xx4F.txt

Yes just days away, still having issue. I’ve ditched it. I’m now using Bluemail.

Michael Klein’s image was a common error I was presented with.

On 2 x Outlook accounts! I never knew that Outlook provided an app password. But I got fed up of waiting, and only days away from MS big shut down.

So I’m now on Bluemail. Not as good (features) but it works.

Gmail is hard to setup. You will need manual setup, an app password, and 2 factor login setup. But it works now.

From what I’ve just read here, maybe app passwords would work with Outlook?

Gmail IMAP Settings & Bluemail

Incoming connections to the IMAP server at imap.gmail.com:993 and the POP server at pop.gmail.com:995 require SSL. The outgoing SMTP server, smtp.gmail.com , supports TLS. If your client begins with plain text, before issuing the STARTTLS command, use port 465 (for SSL), or port 587 (for TLS).

Passwords

Sign in with Google’s app passwords

https://support.google.com/mail/answer/185833?hl=en-GB

Bluemail

When adding a Gmail account 2-step verification needs to be enabled

https://discussion.fedoraproject.org/t/adding-gmail-account-to-flatpak-based-bluemail-app-on-silverblue-37/77569

Hey @Sving1024 thanks for the log file, that’s super helpful.

Could you try the beta update to Mailspring I linked below? I noticed when I was reading github issues and other reports in the Microsoft forums that the scopes sometimes have different names -

https://outlook.office.com/IMAP.AccessAsUser.All instead of
https://outlook.office365.com/IMAP.AccessAsUser.All

I changed this version of Mailspring to 1) use the office.com version and 2) use the OAuth flow for Outlook as well as Office365, and all my test accounts are still able to connect. Could you see if yours is able to as well? Hopefully this was the issue. It seems that this slight difference is due to some complicated mangling of the different Hotmail / Outlook / Microsoft platforms and I still don’t quite understand what is what.

Beta build:

Linux:

https://mailspring-builds.s3.amazonaws.com/client/becde448/linux/mailspring-1.13.3-0.1.x86_64.rpm

https://mailspring-builds.s3.amazonaws.com/client/becde448/linux/mailspring-1.13.3-amd64.deb

Windows:

https://s3.amazonaws.com/[secure]/client/becde448/win-x64/MailspringSetup.exe
Ben

I’m glad that my log file helps. Thanks for your effort and the beta build works pretty well, whatever I use the Outlook/Hotmail option and office365 option. My account was successfully added without errors. BTW, there’s a little problem, it seems my account was still displayed as an office365 account instead of an Outlook account if I chose the Outlook/Hotmail option. I was confused about this at first.

This post was flagged by the community and is temporarily hidden.

No, it’s not. I can’t login to google account either if i uses the old version - it is blocked too, and there are some similar issues before(like this one and this one). Seems google has rules more strict than ms outlook. Using imap instead of gmail option will help.

Wow, can’t believe that fixed the Outlook thing - will update that reference to Office 365 you noticed and we’ll ship this release Monday. Thanks for your help debugging and verifying the fix.

I’m still working with Google to fix the “app is blocked” issue for Gmail accounts, but it looks like it should be resolved this week. They changed their requirements for access to Gmail’s restricted scopes and asked us to complete a third-party CASA 2 security review, which is almost done and hasn’t identified any major issues. Sorry for the headache, I use Gmail with Mailspring myself and it’s been a real pain this month.

1 Like

:tada::tada::tada:
:clap::clap::clap:
Thanks @bengotow for all your efforts, soo happy to be able to continue using Mailspring with my various accounts in the near future!

Awesome! thank you.

Is there a reason why there is no Apple Silicon version in this release? will it come soon?

Thank you in advance.

Impressed by how quickly this issue was resolved! also pleased to see prompt release of 1.14 via Homebrew, but surprised to discover that it does not support Big Sur (macOS 11.7): You can’t open the application “Mailspring” because this application is not supported on this Mac.

reverted to 1.13, but i really want to complete my migration from Apple’s mail client. will create a thread for this new, build/release issue.