![Thunderbird logo](https://assets-prod.sumo.prod.webservices.mozgcp.net/media/uploads/products/2024-02-12-07-36-53-599028_1.png)
Can't login to Outlook account with OAuth 2
Hi,
I have an old email account with the address j*****@netcabo.pt that some years was migrated to Microsoft Outlook by the Portuguese ISP. I can access this account on the webmail and on the Mail App from Windows 10, but I can’t login in Thunderbird. I’m following the server configurations that are available on https://outlook.live.com/mail/0/options/mail/accounts, namely
IMAP Server name: outlook.office365.com Port: 993 Encryption method: TLS
SMTP Server name: smtp.office365.com Port: 587 Encryption method: STARTTLS
I’m choosing OAuth2 as “authentication method”. The problem is that when the Microsoft login windows appears, it doesn’t recognize the email j*****@netcabo.pt, it says it must be a wrong address and I should change it or else to contact the administrator (see the figure). I’m sending a picture in attachment. It seems a bug on the OAuth2 app.
Thanks for your help.
Regards, João Esteves
Chosen solution
If this is a regular outlook.com account and not an Office365 account, the 'encryption method' (TB connection security) should be SSL/TLS and the authentication should be 'normal password' unless there is two-step verification on the account, in which case use an app password instead of the regular account password.
Read this answer in context 👍 1All Replies (5)
Seçilmiş Həll
If this is a regular outlook.com account and not an Office365 account, the 'encryption method' (TB connection security) should be SSL/TLS and the authentication should be 'normal password' unless there is two-step verification on the account, in which case use an app password instead of the regular account password.
Hi,
Thank you for your reply. Yes, it is a regular outlook.com account. The fact is that I did choose SSL/TLS and "normal password" in the first place, but it gives login error "wrong user name or password" and I'm certain they are correct, because they are the ones I'm using to login in my area in Outlook.com web site. Then I tried two-step login but I've checked now in my personal area that it is not turned on, so that's probably why it doesn't work...
OK, I solved the problem by activating the 2-step verification on the account and using an app pasword as sfhowes suggested. But for some reason only worked for POP mail, not IMAP, on the account configuration it kept saying that the IMAP reception server already existed...
Is there an IMAP account listed in Tools/Account Settings? The Server Type is at the top of Server Settings. It's always advised to give each account a distinct Account Name (select the account in the left pane of Account Settings) to avoid the 'this account already exists' error.
I have two IMAP severs, one from the Google account and another from my University, but I don't see how that could clash with the Outlook.com server. The two accounts are named by default with my email addresses...