Mailspring icon indicating copy to clipboard operation
Mailspring copied to clipboard

Can't add office365 account

Open jshwvr opened this issue 8 years ago • 18 comments

I am 100% sure that the login information is correct. I've double checked and even reset to be certain.

Here's the error I get:

Authentication Error - Check your username and password. (IMAP)View Log

And here's the log I get:

----------IMAP----------

  • OK The Microsoft Exchange IMAP4 service is ready. [UwBOADQAUABSADAAMgAwADEAQwBBADAAMAA2ADEALgBuAGEAbQBwAHIAZAAwADIALgBwAHIAbwBkAC4AbwB1AHQAbABvAG8AawAuAGMAbwBtAA==] 1 CAPABILITY
  • CAPABILITY IMAP4 IMAP4rev1 AUTH=PLAIN AUTH=XOAUTH2 SASL-IR UIDPLUS MOVE ID UNSELECT CHILDREN IDLE NAMESPACE LITERAL+ 1 OK CAPABILITY completed. 2 LOGIN "[email protected]" "************" 2 NO LOGIN failed.

I've also tried manually entering the info through the imap config and no dice.

Thanks!

jshwvr avatar Oct 31 '18 19:10 jshwvr

Hey! Thanks for reporting this - could you try creating an Office365 app password (https://support.office.com/en-us/article/create-an-app-password-for-office-365-3e7c860f-bda4-4441-a618-b53953ee1183) for Mailspring? I think that App Passwords used to be optional in Office365, but something seems to have changed recently.

Let me know if that allows you to sign in and I'll see if I can get a warning into the app itself!

bengotow avatar Nov 03 '18 17:11 bengotow

Can you add OAuth2 support? https://blogs.msdn.microsoft.com/exchangedev/2014/03/25/using-oauth2-to-access-calendar-contact-and-mail-api-in-office-365-exchange-online/

nimish avatar Nov 12 '18 21:11 nimish

+1 for OAuth2. My company will not allow app-specific passwords due to security concerns. Dead in the water here. 🥺

djsipe avatar Nov 26 '18 14:11 djsipe

Yes many companies dont allow app passwords anymore. We are also enforced to OAuth2

erenoglu avatar Dec 05 '18 09:12 erenoglu

@jshwvr Hi, were you able to log in with app password? I've been trying to set it up and haven't been able to do it. I've tried both, app password and normal password, but still can't login, it gives me same error message as you. @bengotow can you help me?

----------IMAP----------

  • OK The Microsoft Exchange IMAP4 service is ready. [UwBHADIAUABSADAAMQBDAEEAMAAxADUANQAuAGEAcABjAHAAcgBkADAAMQAuAHAAcgBvAGQALgBlAHgAYwBoAGEAbgBnAGUAbABhAGIAcwAuAGMAbwBtAA==] 1 CAPABILITY
  • CAPABILITY IMAP4 IMAP4rev1 AUTH=PLAIN AUTH=XOAUTH2 SASL-IR UIDPLUS MOVE ID UNSELECT CHILDREN IDLE NAMESPACE LITERAL+ 1 OK CAPABILITY completed. 2 LOGIN "[email protected]" ********* 2 NO LOGIN failed.

I wonder why it says "AUTH=XOAUTH2" in capability line

sahil-rivigo avatar Feb 04 '19 05:02 sahil-rivigo

@sahil-rivigo did you ever figure it out? I'm in the same boat.

duoi avatar Jul 11 '19 23:07 duoi

Same issue here App passwords arent working:

1 CAPABILITY
* CAPABILITY IMAP4 IMAP4rev1 AUTH=PLAIN AUTH=XOAUTH2 SASL-IR UIDPLUS ID UNSELECT CHILDREN IDLE NAMESPACE LITERAL+
1 OK CAPABILITY completed.
2 LOGIN "[email protected]" "*********"
2 NO LOGIN failed.

ImTheDeveloper avatar Nov 12 '19 18:11 ImTheDeveloper

Same issue here.

sirusss avatar Nov 14 '19 01:11 sirusss

Just got around this.

Created app password and chose to go the IMAP route instead of using the office365 route: https://getmailspring.com/setup/access-office365-via-imap-smtp

App password obviously into the password field.

ImTheDeveloper avatar Nov 14 '19 08:11 ImTheDeveloper

For the record... app passwords are disabled at my place of work to mitigate account hijacking.

djsipe avatar Nov 14 '19 17:11 djsipe

App passwords are also disabled by my employer.

sirusss avatar Nov 14 '19 17:11 sirusss

I am receiving this same error. I have created an app password as well as tried my domain password. We have 2FA enabled.

3v1lb1t avatar Jan 16 '20 13:01 3v1lb1t

Did anyone solve this? Cause I've been trying to use app passwords with no luck. Neither option for office 365 works and this really sux

manooll avatar Feb 10 '20 23:02 manooll

Ended up using davmail as a workaround to get office 365 to work on linux.

sirusss avatar Feb 10 '20 23:02 sirusss

Did anyone solve this? Cause I've been trying to use app passwords with no luck. Neither option for office 365 works and this really sux

The only solution is to set it up as a normal MS account, not specifically as Office365.

duoi avatar Feb 12 '20 22:02 duoi

@duoi - what does it mean to set it as "normal MS"?

cihyboj avatar Mar 31 '20 13:03 cihyboj

This issue has been mentioned on Mailspring Community. There might be relevant details there:

https://community.getmailspring.com/t/institutional-office365-not-working/48/3

foundry376-bot avatar Jan 18 '21 18:01 foundry376-bot

Thank you for your patience on this issue! I know it's frustrating when you cannot connect to your email with Mailspring.

2020 prevented much development work on Mailspring, but rest assured, development has resumed!

We are in the process of migrating issues to Discourse, which can better facilitate discussion and discovery, and so GitHub Issues can focus on issues that are confirmed and slated for resolution in the near term. Learn more about the changes here.

This issue appears to be a duplicate of one we've already migrated to Discourse:

https://community.getmailspring.com/t/institutional-office365-not-working/48/2

Please consider joining that community and continuing the discussion there.

We're closing and locking the issue here as part of this migration. Rest assured, this doesn't mean the issue is being discarded or ignored.

We hope to see you on Discourse soon!

-The Mailspring Team

CodeMouse92 avatar Jan 18 '21 18:01 CodeMouse92