Sending, receiving, and organizing email in Outlook.com
Thanks for providing the detailed troubleshooting information. Since IMAP and Outlook webmail are working, while the failure occurs specifically during SMTP OAuth2 authentication, your basic account access appears to be working correctly.
Your SMTP settings also match the documented Outlook configuration: smtp-mail.outlook.com, port 587, STARTTLS, and OAuth2/Modern Authentication.
At this point, I would suggest:
- Update Thunderbird to the latest available version before testing again. Mozilla notes that Microsoft OAuth handling has changed in recent Thunderbird releases and recommends staying current.
- In Thunderbird, remove the saved OAuth credentials/tokens for the Microsoft account from the saved-password/login area, then restart Thunderbird and try sending again.
- When prompted, complete the Microsoft sign-in and authorization process again. This refreshes the OAuth authorization without requiring you to remove and recreate the entire Thunderbird account.
If a fresh OAuth authorization on the latest Thunderbird still produces Unrecognized command 'Length: 7', I would recommend reporting the exact SMTP error to Thunderbird Support, since the standard Outlook.com SMTP configuration has already been verified. You can also contact Outlook support if you need the mailbox side checked.
Please note that this is a user-to-user support forum. Moderators, contributors including external Microsoft employees cannot directly intervene in Microsoft product features or access back-end systems. Our role is limited to providing technical guidance on reported issues, requests, or ideas.
Hopefully this helps narrow down whether the failure is occurring during Thunderbird's OAuth exchange or after SMTP authentication reaches the service.