Mailspring icon indicating copy to clipboard operation
Mailspring copied to clipboard

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

Open alculete opened this issue 8 years ago • 11 comments

When trying to connect to my O365 I receive the error bellow

image

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

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

alculete avatar May 22 '18 10:05 alculete

Hey! Thanks for reporting this - this looks like a standard incorrect password response though. Is there any chance you have your O365 settings configured to require an "Application Password" for IMAP clients? You might need to create one using these instructions: https://support.office.com/en-us/article/create-an-app-password-for-office-365-3e7c860f-bda4-4441-a618-b53953ee1183

bengotow avatar May 22 '18 20:05 bengotow

@bengotow I've created Application Password but it doesn't work either... :/

cihyboj avatar Mar 31 '20 12:03 cihyboj

I, too, am getting this on 2 of my office 365 accounts. Even if I copy and paste the password into outlook web and login with no issue, I can't then paste the same password in mailspring and get it to authenticate. My CAPABILITY string is a little different than the one previously posted.

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

  • OK The Microsoft Exchange IMAP4 service is ready. [UwBOADQAUABSADAAMgAwADEAQwBBADAAMAAyADcALgBuAGEAbQBwAHIAZAAwADIALgBwAHIAbwBkAC4AbwB1AHQAbABvAG8AawAuAGMAbwBtAA==] 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.

When I run mailspring in dev mode (--dev) I don't get any new information on the terminal (I'm on pop_os 19.10), but I get

"Your mailspring id is missing required fields - you may need to reset Mailspring"}

I followed the link and confirmed I had libsecret installed (at least it appears that I do) and deleted the .config/Mailspring directory but I always get this error in --dev mode. Outside of dev mode, the error is the IMAP auth issue.

jwshive avatar Apr 02 '20 11:04 jwshive

change your password.

b00f avatar May 28 '20 07:05 b00f

It is not related to password. The application needs to be allowed to run on your company. In my case this app is not listed. Go to Office Page and see if Mailspring is listed in the apps that your have permission to use

alculete avatar May 28 '20 08:05 alculete

It is not related to password. The application needs to be allowed to run on your company. In my case this app is not listed. Go to Office Page and see if Mailspring is listed in the apps that your have permission to use

Where exactly are you looking? Mailspring is not a Microsoft app, so I don't think it would show up in the O365 Portal. Furthermore, doing a search for Mailspring here returns nothing.

im007 avatar Jun 05 '20 21:06 im007

Where exactly are you looking? Mailspring is not a Microsoft app, so I don't think it would show up in the O365 Portal. Furthermore, doing a search for Mailspring here returns nothing.

on the link I gave, click on see all apps you will see the list of all application you have permission to use for example for me hiri is listed image

alculete avatar Jun 06 '20 05:06 alculete

I have the same issue here. maybe I should add that I am registered with my domain in outlook.

meanmechanics avatar Jun 21 '20 14:06 meanmechanics

Having out of the blue the same issue since today, it might be because our company now wants two-factor-authentication. yesterday evening, everything was working. macOS Cataline +++ Mailspring 1.7.8

Rahbaran avatar Dec 11 '20 09:12 Rahbaran

I haven't tried prior to our company enabling 2-factor but we do have 2-factor enabled and I am getting this same error message. I can't seem to find a way to add an app password but Mailspring is listed under my app permissions. On Ubuntu 20.04

Melissa-Kay avatar Mar 29 '21 15:03 Melissa-Kay

We have migrated issue tracking 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.

Please search for a related issue there, or else start a new thread in the appropriate category. https://community.getmailspring.com/

We hope to see you on Discourse soon!

-The Mailspring Team

CodeMouse92 avatar Mar 29 '21 15:03 CodeMouse92