Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for Microsoft Outlook OAuth2.0 authentication #133

Closed
d99kris opened this issue Jan 8, 2023 Discussed in #132 · 7 comments
Closed

Add support for Microsoft Outlook OAuth2.0 authentication #133

d99kris opened this issue Jan 8, 2023 Discussed in #132 · 7 comments
Assignees
Labels
enhancement New feature or request

Comments

@d99kris
Copy link
Owner

d99kris commented Jan 8, 2023

Discussed in #132

Originally posted by krackout January 5, 2023
On occasion of my business e-mail (office365) going OAuth 2.0 only, I'm concerned on how it'll be possible to continue using nmail with office365-OAuth.

Since application approval for OAuth on office365 is out of the question I suppose, what alternatives can be used?
One thought, making an oauth account on Thunderbird and using settings from there, (somehow) make nmail to pretend to be Thunderbird and trick office365 to allow nmail to connect.
Another thought is (email-oauth2-proxy)[https://github.com/simonrob/email-oauth2-proxy]. I haven't tried it yet.

Any guidance on these two thoughts or other proposals welcomed. I really like nmail and the workflow I got accustomed using it. Thank you once more @d99kris for a great product.

@d99kris d99kris self-assigned this Jan 8, 2023
@d99kris d99kris added the enhancement New feature or request label Jan 11, 2023
@d99kris
Copy link
Owner Author

d99kris commented Jan 11, 2023

Dev notes: This would be possible to support internally in nmail without too major changes - mainly extending src/oauth2nmail as needed. Will prepare the changes.

@d99kris
Copy link
Owner Author

d99kris commented Jan 14, 2023

Support for Microsoft Outlook OAuth2.0 authentication has been added in the above commit. It should be possible to use the setup wizard like this to set up an outlook/hotmail account:

nmail -s outlook-oauth2

I've only tested it with my personal hotmail-address (which also happen to be the Azure AD admin for the nmail app) so any feedback on if it's working with other outlook / hotmail accounts would be very welcome. 🙂

@krackout
Copy link

I haven't reached the ms365 admin of the company yet to give a definitive answer, but it seems to be on the right track (considering the packet capture I get and the interaction with browser, microsoft authentication, asking for admin, etc). I'll give a feedback as soon as I get approval.

@d99kris
Copy link
Owner Author

d99kris commented Mar 17, 2023

Please take note of the reported issue #137 which affects Microsoft 365 business/organization account authentication/setup for nmail. A fix is expected to be merged tomorrow.

@Kabouik
Copy link
Contributor

Kabouik commented Apr 21, 2023

@krackout, were you able to get nmail working with your company's Microsoft 365 system?

Sending emails started to return Send failed (no sasl mechs). Overwrite draft (y) or queue send (n)? since this morning with my work MS Exchange account, while it was working the day before, and still works on non-Exchange accounts. I received no information from my IT department about any change, but I'm wondering if they quietly deprecated the old system I was using, and if nmail car work with the new one.

@krackout
Copy link

krackout commented Apr 21, 2023 via email

@Kabouik
Copy link
Contributor

Kabouik commented Apr 21, 2023

Thanks! I hope my issue is not the same, because there's no way they'll approve a new application, let alone one that only one employee is using. I really don't want to change my emailing workflow, nmail has been perfect for several years now, it would really feel like a regression to get back to a GUI client.

[Edit] Turns out my issue was totally related, it was entirely a humanKabouik-machine issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants