Outlook account keeps getting Authentication Error

Every other day, my Outlook email goes from working just fine to suddenly getting the error message “Cannot authenticate with ***@hotmail.com”, the account itself works fine in the browser and on my phone (using Spark).

Any attempts to re-add the email account then gets the error “Authentication Error - Check your username and password. (IMAP)”, the password is most definitely correct as this is being copied from a password manager.

I have tried to disable 2FA on the email account, use app passwords (whilst 2FA is enabled), change the password, but this issue keeps popping up and leaves my email account unable to be added.

4 Likes

I have the same issue with my hotmail account.

1 Like

I believe you are supposed to use the Office 365 button for hotmail. However, that doesn’t work for me either:

Jun 03 13:22:04  plasmashell[56978]: Error: An unknown error has occurred (mailsync: 134)
Jun 03 13:22:04  plasmashell[56978]:     at ChildProcess.<anonymous> (file:///tmp/nylas-build/electron-packager/linux-x64/mailspring-linux-x64-6Ns7Ou/resources/app/src/mailsync-process.ts:252:25)
Jun 03 13:22:04  plasmashell[56978]:     at ChildProcess.emit (node:events:513:28)
Jun 03 13:22:04  plasmashell[56978]:     at ChildProcess.emit (node:domain:489:12)
Jun 03 13:22:04  plasmashell[56978]:     at maybeClose (node:internal/child_process:1093:16)
Jun 03 13:22:04  plasmashell[56978]:     at Socket.<anonymous> (node:internal/child_process:451:11)
Jun 03 13:22:04  plasmashell[56978]:     at Socket.emit (node:events:513:28)
Jun 03 13:22:04  plasmashell[56978]:     at Socket.emit (node:domain:489:12)
Jun 03 13:22:04  plasmashell[56978]:     at Pipe.<anonymous> (node:net:757:14) {
Jun 03 13:22:04  plasmashell[56978]:   rawLog: '\n' +
Jun 03 13:22:04  plasmashell[56978]:     'Waiting for Account JSON:\n' +
Jun 03 13:22:04  plasmashell[56978]:     '\n' +
Jun 03 13:22:04  plasmashell[56978]:     'Waiting for Identity JSON:\n' +
Jun 03 13:22:04 plasmashell[56978]:     'info: Identity created at 1717451715 - using ID Schema 1\n' +
Jun 03 13:22:04 plasmashell[56978]:     'info: Fetching XOAuth2 access token (office365) for e0fb1f1e\n' +
Jun 03 13:22:04  plasmashell[56978]:     'critical: \n' +
Jun 03 13:22:04  plasmashell[56978]:     '***\n' +
Jun 03 13:22:04 plasmashell[56978]:     '*** Mailspring Sync \n' +
Jun 03 13:22:04 plasmashell[56978]:     '*** An exception occurred during program execution: \n' +
Jun 03 13:22:04  plasmashell[56978]:     `*** {"debuginfo":"https://login.microsoftonline.com/common/oauth2/v2.0/token RETURNED {\\"error\\":\\"invalid_scope\\",\\"error_description\\":\\"AADSTS70011: The provided resource value for the input parameter 'scope' is not valid...
Jun 03 13:22:04  plasmashell[56978]:     '***\n' +
Jun 03 13:22:04  plasmashell[56978]:     '\n' +
Jun 03 13:22:04  plasmashell[56978]:     'critical: \n' +
Jun 03 13:22:04  plasmashell[56978]:     '***\n' +
Jun 03 13:22:04 plasmashell[56978]:     '*** Mailspring Sync \n' +
Jun 03 13:22:04  plasmashell[56978]:     '*** An exception occurred during program execution: \n' +
Jun 03 13:22:04 plasmashell[56978]:     `*** {"debuginfo":"https://login.microsoftonline.com/common/oauth2/v2.0/token RETURNED {\\"error\\":\\"invalid_scope\\",\\"error_description\\":\\"AADSTS70011: The provided resource value for the input parameter 'scope' is not valid...
Jun 03 13:22:04  plasmashell[56978]:     '***\n' +
Jun 03 13:22:04  plasmashell[56978]:     '\n' +
Jun 03 13:22:04 plasmashell[56978]:     '/snap/mailspring/541/usr/share/mailspring/resources/app.asar.unpacked/mailsync: line 5: 58693 Aborted                 (core dumped) SASL_PATH="$SCRIPTPATH" LD_LIBRARY_PATH="$SCRIPTPATH;$LD_LIBRARY_PATH" "$SCRIPTPATH/mailsync.bin" "$@"\n'
Jun 03 13:22:04  plasmashell[56978]: } { pluginIds: [] }
1 Like

For weeks i have the same problem, is it mailspring or outlook that creates this problem??

1 Like

Hello,
As per my knowledge,
1 Update Outlook: Ensure it’s the latest version.
2 Clear Credentials: Remove stored credentials from Windows Credential Manager.
3 Re-add Account: Remove and re-add your email with manual IMAP settings.
4 App Passwords: Use an app password if 2FA is enabled.
5 Check Network: Ensure your network/VPN isn’t causing issues.
6 New Profile: Create a new Outlook profile in Control Panel.
7 Firewall/Antivirus: Temporarily disable to test if they’re blocking authentication.
I hope this will help you,
Thank you

Having the same issue and a bit confused with @robertsrose answer… what would the Outlook app and Windows Credential Manager have to do with Mailspring? What would my Firewall/Antivirus have to do with a connection to a remote sever? Excuse me my ignorance just trying to understand how Mailspring account authentication works to see if I can fix this…

I’m going through Mailspring’s account settings to try to connect… tried both with the outlook/hotmail and IMAP option but it’s the same… I haven’t tried Office 365 @Retalak said as there’s an explicit hotmail option and it didn’t even work for him… Are you guys AI’s? lol