Mailspring: Can't add office365 account

Created on 31 Oct 2018  路  16Comments  路  Source: Foundry376/Mailspring

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!

support

All 16 comments

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!

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

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

@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 "my.work.[email protected]" ***
    2 NO LOGIN failed.

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

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

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.

Same issue here.

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.

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

App passwords are also disabled by my employer.

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

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

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

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 - what does it mean to set it as "normal MS"?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

purefan picture purefan  路  3Comments

spartero picture spartero  路  3Comments

jerry79 picture jerry79  路  3Comments

tuxmachine picture tuxmachine  路  3Comments

vsanchez picture vsanchez  路  3Comments