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

Can't add office365 account #1208

Closed
jshwvr opened this issue Oct 31, 2018 · 18 comments
Closed

Can't add office365 account #1208

jshwvr opened this issue Oct 31, 2018 · 18 comments
Labels
migrated Migrated to Discourse support

Comments

@jshwvr
Copy link

jshwvr commented Oct 31, 2018

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!

@bengotow
Copy link
Collaborator

bengotow commented Nov 3, 2018

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!

@nimish
Copy link

nimish commented Nov 12, 2018

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/

@djsipe
Copy link

djsipe commented Nov 26, 2018

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

@erenoglu
Copy link

erenoglu commented Dec 5, 2018

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

@sahil-rivigo
Copy link

sahil-rivigo commented Feb 4, 2019

@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

@duoi
Copy link

duoi commented Jul 11, 2019

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

@ImTheDeveloper
Copy link

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.

@sirusss
Copy link

sirusss commented Nov 14, 2019

Same issue here.

@ImTheDeveloper
Copy link

ImTheDeveloper commented Nov 14, 2019

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.

@djsipe
Copy link

djsipe commented Nov 14, 2019

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

@sirusss
Copy link

sirusss commented Nov 14, 2019

App passwords are also disabled by my employer.

@3v1lb1t
Copy link

3v1lb1t commented Jan 16, 2020

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

@manooll
Copy link

manooll commented Feb 10, 2020

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

@sirusss
Copy link

sirusss commented Feb 10, 2020

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

@duoi
Copy link

duoi commented Feb 12, 2020

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.

@cihyboj
Copy link

cihyboj commented Mar 31, 2020

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

@foundry376-bot
Copy link

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

@CodeMouse92
Copy link
Contributor

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

@Foundry376 Foundry376 locked and limited conversation to collaborators Jan 18, 2021
@CodeMouse92 CodeMouse92 added migrated Migrated to Discourse and removed audit Auditing issue labels Jan 18, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
migrated Migrated to Discourse support
Projects
None yet
Development

No branches or pull requests