Unable to send messages using Office 365 / Thunderbird for Linux
I installed Thunderbird and typed in my Office 365 email information to connect my account. Thunderbird found the correct IMAP settings, which I verified on Microsoft's website. It proceeds to open a browser so I can authenticate my account. After that succeeds it starts downloading all of my messages & folders. I thought everything went fine until I attempted to send a message. I get the following error:
Login to server smtp.office365.com with username me@mydomain.com has failed.
It gives me the option to enter a new password, which doesn't make sense since it's oAuth2 but I created an app password to see if that would work, and it didn't. The only other options are cancel & retry which don't help either.
I thought maybe something went wrong with the authentication process so I uninstalled thunderbird and started again with the same results. I've tried many other server settings, but nothing works, so I'm here.
Current Settings:
Server Name: smtp.office365.com User Name: me@mydomain.com Authentication Method: oAuth2 Security: STARTTLS Port: 587
I've tried: Using Port 465 / SSL/TLS Using Port 465 / STARTLS Using Port 587 / SSL/TLS Changing Auth method to Normal Password and then using app-specific password. Uninstall / Resintsall
One final thing to note: I followed the same process with my fastmail.com account, which worked flawlessly. I can send & receive fine.
Chosen solution
re :Login to server smtp.office365.com with username me@mydomain.com has failed.
That sounds like the email address is not a standard eg: me@outlook.com
Error console says: mailnews.smtp: Command failed: 535 Authentication unsuccessful, SmtpClientAuthentication is disabled for the Tenant. Visit https://aka.ms/smtp_auth_disabled for more information.
That link goes to a microsoft website - I selected the section 'enable smtp....' Specifically this: https://learn.microsoft.com/en-us/exchange/clients-and-mobile-in-exchange-online/authenticated-client-smtp-submission#enable-smtp-auth-for-specific-mailboxes
I'm wondering if your issue is to do with settings saying smtp auth is disabled - check it out.
Skaityti atsakymą kartu su kontekstu 👍 0All Replies (8)
Yes, it prompted for my password in a new window. No it does not ask me to "accept" anything. The login window just disappears and the messages start downloading. I'm sure it's because I'm not deleting the app from my Microsoft account during each test. However, I removed it once during a previous test, and it prompted me to "accept". Also, note that smtp1.outh2.scope did NOT appear in the perf.js file until I attempted to send an email.
user_pref("mail.server.server4.oauth2.scope", "https://outlook.office.com/IMAP.AccessAsUser.All https://outlook.office.com/POP.AccessAsUser.All https://outlook.office.com/SMTP.Send offline_access");
user_pref("mail.smtpserver.smtp1.oauth2.scope", "https://outlook.office.com/IMAP.AccessAsUser.All https://outlook.office.com/POP.AccessAsUser.All https://outlook.office.com/SMTP.Send offline_access");
Can you do a test and post some results?
- Tools > Developer Tools > Error Console
- Click on the top left bin icon to clear the console.
- Close Error console
Then try to send an email and wait for the failure. Open Error console Make sure the options at the top right are all selected. If there is something in the results that can be expanded to show info - please click on the chevron > icon to expand it. Please post an image of results - or copy and paste the data.
Thanks.
Sure - See below:
mailnews.smtp: Command failed: 535 Authentication unsuccessful, SmtpClientAuthentication is disabled for the Tenant. Visit https://aka.ms/smtp_auth_disabled for more information. [BL1PR13CA0131.namprd13.prod.outlook.com 2024-09-25T16:17:00.055Z 08DCDC7DB9525546]; currentAction=_actionAUTH_XOAUTH2 SmtpClient.sys.mjs:602:19
_onCommand resource:///modules/SmtpClient.sys.mjs:602 _parse resource:///modules/SmtpClient.sys.mjs:404 _onData resource:///modules/SmtpClient.sys.mjs:461 _onOpen resource:///modules/SmtpClient.sys.mjs:433 (Async: EventHandlerNonNull) connect resource:///modules/SmtpClient.sys.mjs:142 sendMailMessage resource:///modules/SmtpServer.sys.mjs:678 sendMailMessage resource:///modules/OutgoingServerService.sys.mjs:121 sendMailMessage resource:///modules/OutgoingServerService.sys.mjs:106 _deliverAsMail resource:///modules/MessageSend.sys.mjs:1138 _deliverMessage resource:///modules/MessageSend.sys.mjs:807 createAndSendMessage resource:///modules/MessageSend.sys.mjs:141 CompleteGenericSendMessage chrome://messenger/content/messengercompose/MsgComposeCommands.js:6443 GenericSendMessage chrome://messenger/content/messengercompose/MsgComposeCommands.js:6359 SendMessage chrome://messenger/content/messengercompose/MsgComposeCommands.js:6971 doCommand chrome://messenger/content/messengercompose/MsgComposeCommands.js:1083 doCommand chrome://messenger/content/messengercompose/MsgComposeCommands.js:1261 goDoCommand chrome://messenger/content/globalOverlay.js:99 oncommand chrome://messenger/content/messengercompose/messengercompose.xhtml:1
mailnews.smtp: Command failed: 500 Unrecognized command 'Length: 7' [BL1PR13CA0131.namprd13.prod.outlook.com 2024-09-25T16:17:05.101Z 08DCDC7DB9525546]; currentAction=_actionAUTHComplete SmtpClient.sys.mjs:602:19
_onCommand resource:///modules/SmtpClient.sys.mjs:602 _parse resource:///modules/SmtpClient.sys.mjs:404 _onData resource:///modules/SmtpClient.sys.mjs:461 _onOpen resource:///modules/SmtpClient.sys.mjs:433 (Async: EventHandlerNonNull) connect resource:///modules/SmtpClient.sys.mjs:142 sendMailMessage resource:///modules/SmtpServer.sys.mjs:678 sendMailMessage resource:///modules/OutgoingServerService.sys.mjs:121 sendMailMessage resource:///modules/OutgoingServerService.sys.mjs:106 _deliverAsMail resource:///modules/MessageSend.sys.mjs:1138 _deliverMessage resource:///modules/MessageSend.sys.mjs:807 createAndSendMessage resource:///modules/MessageSend.sys.mjs:141 CompleteGenericSendMessage chrome://messenger/content/messengercompose/MsgComposeCommands.js:6443 GenericSendMessage chrome://messenger/content/messengercompose/MsgComposeCommands.js:6359 SendMessage chrome://messenger/content/messengercompose/MsgComposeCommands.js:6971 doCommand chrome://messenger/content/messengercompose/MsgComposeCommands.js:1083 doCommand chrome://messenger/content/messengercompose/MsgComposeCommands.js:1261 goDoCommand chrome://messenger/content/globalOverlay.js:99 oncommand chrome://messenger/content/messengercompose/messengercompose.xhtml:1
mailnews.smtp: Authentication failed: Unrecognized command 'Length: 7' [BL1PR13CA0131.namprd13.prod.outlook.com 2024-09-25T16:17:05.101Z 08DCDC7DB9525546] SmtpClient.sys.mjs:786:17
_onAuthFailed resource:///modules/SmtpClient.sys.mjs:786 _actionAUTHComplete resource:///modules/SmtpClient.sys.mjs:1187 _onCommand resource:///modules/SmtpClient.sys.mjs:607 _parse resource:///modules/SmtpClient.sys.mjs:404 _onData resource:///modules/SmtpClient.sys.mjs:461 _onOpen resource:///modules/SmtpClient.sys.mjs:433 (Async: EventHandlerNonNull) connect resource:///modules/SmtpClient.sys.mjs:142 sendMailMessage resource:///modules/SmtpServer.sys.mjs:678 sendMailMessage resource:///modules/OutgoingServerService.sys.mjs:121 sendMailMessage resource:///modules/OutgoingServerService.sys.mjs:106 _deliverAsMail resource:///modules/MessageSend.sys.mjs:1138 _deliverMessage resource:///modules/MessageSend.sys.mjs:807 createAndSendMessage resource:///modules/MessageSend.sys.mjs:141 CompleteGenericSendMessage chrome://messenger/content/messengercompose/MsgComposeCommands.js:6443 GenericSendMessage chrome://messenger/content/messengercompose/MsgComposeCommands.js:6359 SendMessage chrome://messenger/content/messengercompose/MsgComposeCommands.js:6971 doCommand chrome://messenger/content/messengercompose/MsgComposeCommands.js:1083 doCommand chrome://messenger/content/messengercompose/MsgComposeCommands.js:1261 goDoCommand chrome://messenger/content/globalOverlay.js:99 oncommand chrome://messenger/content/messengercompose/messengercompose.xhtml:1
mailnews.smtp: Authentication failed: Unrecognized command 'Length: 7' [BL1PR13CA0131.namprd13.prod.outlook.com 2024-09-25T16:17:05.101Z 08DCDC7DB9525546] SmtpClient.sys.mjs:827:19
_onAuthFailed resource:///modules/SmtpClient.sys.mjs:827 _actionAUTHComplete resource:///modules/SmtpClient.sys.mjs:1187 _onCommand resource:///modules/SmtpClient.sys.mjs:607 _parse resource:///modules/SmtpClient.sys.mjs:404 _onData resource:///modules/SmtpClient.sys.mjs:461 _onOpen resource:///modules/SmtpClient.sys.mjs:433 (Async: EventHandlerNonNull) connect resource:///modules/SmtpClient.sys.mjs:142 sendMailMessage resource:///modules/SmtpServer.sys.mjs:678 sendMailMessage resource:///modules/OutgoingServerService.sys.mjs:121 sendMailMessage resource:///modules/OutgoingServerService.sys.mjs:106 _deliverAsMail resource:///modules/MessageSend.sys.mjs:1138 _deliverMessage resource:///modules/MessageSend.sys.mjs:807 createAndSendMessage resource:///modules/MessageSend.sys.mjs:141 CompleteGenericSendMessage chrome://messenger/content/messengercompose/MsgComposeCommands.js:6443 GenericSendMessage chrome://messenger/content/messengercompose/MsgComposeCommands.js:6359 SendMessage chrome://messenger/content/messengercompose/MsgComposeCommands.js:6971 doCommand chrome://messenger/content/messengercompose/MsgComposeCommands.js:1083 doCommand chrome://messenger/content/messengercompose/MsgComposeCommands.js:1261 goDoCommand chrome://messenger/content/globalOverlay.js:99 oncommand chrome://messenger/content/messengercompose/messengercompose.xhtml:1
mailnews.send: Sending failed; Unable to authenticate to Outgoing server (SMTP) smtp.office365.com. Please check the password and verify the 'Authentication method' in 'Account Settings | Outgoing server (SMTP)'., exitCode=2153066805, originalMsgURI= MessageSend.sys.mjs:319:32
fail resource:///modules/MessageSend.sys.mjs:319 _deliveryExitProcessing resource:///modules/MessageSend.sys.mjs:669 sendDeliveryCallback resource:///modules/MessageSend.sys.mjs:723 OnStopRunningUrl resource:///modules/MessageSend.sys.mjs:1417 onStopRequest resource:///modules/OutgoingServerService.sys.mjs:117 onerror resource:///modules/SmtpServer.sys.mjs:675 _onNsError resource:///modules/SmtpClient.sys.mjs:567 _onAuthFailed resource:///modules/SmtpClient.sys.mjs:828 _actionAUTHComplete resource:///modules/SmtpClient.sys.mjs:1187 _onCommand resource:///modules/SmtpClient.sys.mjs:607 _parse resource:///modules/SmtpClient.sys.mjs:404 _onData resource:///modules/SmtpClient.sys.mjs:461 _onOpen resource:///modules/SmtpClient.sys.mjs:433 (Async: EventHandlerNonNull) connect resource:///modules/SmtpClient.sys.mjs:142 sendMailMessage resource:///modules/SmtpServer.sys.mjs:678 sendMailMessage resource:///modules/OutgoingServerService.sys.mjs:121 sendMailMessage resource:///modules/OutgoingServerService.sys.mjs:106 _deliverAsMail resource:///modules/MessageSend.sys.mjs:1138 _deliverMessage resource:///modules/MessageSend.sys.mjs:807 createAndSendMessage resource:///modules/MessageSend.sys.mjs:141 CompleteGenericSendMessage chrome://messenger/content/messengercompose/MsgComposeCommands.js:6443 GenericSendMessage chrome://messenger/content/messengercompose/MsgComposeCommands.js:6359 SendMessage chrome://messenger/content/messengercompose/MsgComposeCommands.js:6971 doCommand chrome://messenger/content/messengercompose/MsgComposeCommands.js:1083 doCommand chrome://messenger/content/messengercompose/MsgComposeCommands.js:1261 goDoCommand chrome://messenger/content/globalOverlay.js:99 oncommand chrome://messenger/content/messengercompose/messengercompose.xhtml:1
Can you please try:
It says you are using outgoing smtp server name : smtp.office365.com
In Account Settings Bottom of left pane - select Outgoing Server SMTP It shows list of smtp servers. Locate the smtp and click on 'Edit' Could you edit it as a test - server name: smtp-mail.outlook.com clickon OK
Access Error Console Empty it. Then restart Thunderbird. Allow time for all processes to check for things Then try a send. If it fails: Check Error Console and post results as before.
Done - see below:
mailnews.smtp: Command failed: 535 Authentication unsuccessful, SmtpClientAuthentication is disabled for the Tenant. Visit https://aka.ms/smtp_auth_disabled for more information. [MN0P220CA0005.NAMP220.PROD.OUTLOOK.COM 2024-09-25T17:14:10.912Z 08DCDD24D6A0B041]; currentAction=_actionAUTH_XOAUTH2 SmtpClient.sys.mjs:602:19
_onCommand resource:///modules/SmtpClient.sys.mjs:602 _parse resource:///modules/SmtpClient.sys.mjs:404 _onData resource:///modules/SmtpClient.sys.mjs:461 _onOpen resource:///modules/SmtpClient.sys.mjs:433 (Async: EventHandlerNonNull) connect resource:///modules/SmtpClient.sys.mjs:142 sendMailMessage resource:///modules/SmtpServer.sys.mjs:678 sendMailMessage resource:///modules/OutgoingServerService.sys.mjs:121 sendMailMessage resource:///modules/OutgoingServerService.sys.mjs:106 _deliverAsMail resource:///modules/MessageSend.sys.mjs:1138 _deliverMessage resource:///modules/MessageSend.sys.mjs:807 createAndSendMessage resource:///modules/MessageSend.sys.mjs:141 CompleteGenericSendMessage chrome://messenger/content/messengercompose/MsgComposeCommands.js:6443 GenericSendMessage chrome://messenger/content/messengercompose/MsgComposeCommands.js:6359 SendMessage chrome://messenger/content/messengercompose/MsgComposeCommands.js:6971 doCommand chrome://messenger/content/messengercompose/MsgComposeCommands.js:1083 doCommand chrome://messenger/content/messengercompose/MsgComposeCommands.js:1261 goDoCommand chrome://messenger/content/globalOverlay.js:99 oncommand chrome://messenger/content/messengercompose/messengercompose.xhtml:1
mailnews.smtp: Command failed: 500 Unrecognized command 'Length: 7' [MN0P220CA0005.NAMP220.PROD.OUTLOOK.COM 2024-09-25T17:14:15.943Z 08DCDD24D6A0B041]; currentAction=_actionAUTHComplete SmtpClient.sys.mjs:602:19
_onCommand resource:///modules/SmtpClient.sys.mjs:602 _parse resource:///modules/SmtpClient.sys.mjs:404 _onData resource:///modules/SmtpClient.sys.mjs:461 _onOpen resource:///modules/SmtpClient.sys.mjs:433 (Async: EventHandlerNonNull) connect resource:///modules/SmtpClient.sys.mjs:142 sendMailMessage resource:///modules/SmtpServer.sys.mjs:678 sendMailMessage resource:///modules/OutgoingServerService.sys.mjs:121 sendMailMessage resource:///modules/OutgoingServerService.sys.mjs:106 _deliverAsMail resource:///modules/MessageSend.sys.mjs:1138 _deliverMessage resource:///modules/MessageSend.sys.mjs:807 createAndSendMessage resource:///modules/MessageSend.sys.mjs:141 CompleteGenericSendMessage chrome://messenger/content/messengercompose/MsgComposeCommands.js:6443 GenericSendMessage chrome://messenger/content/messengercompose/MsgComposeCommands.js:6359 SendMessage chrome://messenger/content/messengercompose/MsgComposeCommands.js:6971 doCommand chrome://messenger/content/messengercompose/MsgComposeCommands.js:1083 doCommand chrome://messenger/content/messengercompose/MsgComposeCommands.js:1261 goDoCommand chrome://messenger/content/globalOverlay.js:99 oncommand chrome://messenger/content/messengercompose/messengercompose.xhtml:1
mailnews.smtp: Authentication failed: Unrecognized command 'Length: 7' [MN0P220CA0005.NAMP220.PROD.OUTLOOK.COM 2024-09-25T17:14:15.943Z 08DCDD24D6A0B041] SmtpClient.sys.mjs:786:17
_onAuthFailed resource:///modules/SmtpClient.sys.mjs:786 _actionAUTHComplete resource:///modules/SmtpClient.sys.mjs:1187 _onCommand resource:///modules/SmtpClient.sys.mjs:607 _parse resource:///modules/SmtpClient.sys.mjs:404 _onData resource:///modules/SmtpClient.sys.mjs:461 _onOpen resource:///modules/SmtpClient.sys.mjs:433 (Async: EventHandlerNonNull) connect resource:///modules/SmtpClient.sys.mjs:142 sendMailMessage resource:///modules/SmtpServer.sys.mjs:678 sendMailMessage resource:///modules/OutgoingServerService.sys.mjs:121 sendMailMessage resource:///modules/OutgoingServerService.sys.mjs:106 _deliverAsMail resource:///modules/MessageSend.sys.mjs:1138 _deliverMessage resource:///modules/MessageSend.sys.mjs:807 createAndSendMessage resource:///modules/MessageSend.sys.mjs:141 CompleteGenericSendMessage chrome://messenger/content/messengercompose/MsgComposeCommands.js:6443 GenericSendMessage chrome://messenger/content/messengercompose/MsgComposeCommands.js:6359 SendMessage chrome://messenger/content/messengercompose/MsgComposeCommands.js:6971 doCommand chrome://messenger/content/messengercompose/MsgComposeCommands.js:1083 doCommand chrome://messenger/content/messengercompose/MsgComposeCommands.js:1261 goDoCommand chrome://messenger/content/globalOverlay.js:99 oncommand chrome://messenger/content/messengercompose/messengercompose.xhtml:1
mailnews.smtp: Authentication failed: Unrecognized command 'Length: 7' [MN0P220CA0005.NAMP220.PROD.OUTLOOK.COM 2024-09-25T17:14:15.943Z 08DCDD24D6A0B041] SmtpClient.sys.mjs:827:19
_onAuthFailed resource:///modules/SmtpClient.sys.mjs:827 _actionAUTHComplete resource:///modules/SmtpClient.sys.mjs:1187 _onCommand resource:///modules/SmtpClient.sys.mjs:607 _parse resource:///modules/SmtpClient.sys.mjs:404 _onData resource:///modules/SmtpClient.sys.mjs:461 _onOpen resource:///modules/SmtpClient.sys.mjs:433 (Async: EventHandlerNonNull) connect resource:///modules/SmtpClient.sys.mjs:142 sendMailMessage resource:///modules/SmtpServer.sys.mjs:678 sendMailMessage resource:///modules/OutgoingServerService.sys.mjs:121 sendMailMessage resource:///modules/OutgoingServerService.sys.mjs:106 _deliverAsMail resource:///modules/MessageSend.sys.mjs:1138 _deliverMessage resource:///modules/MessageSend.sys.mjs:807 createAndSendMessage resource:///modules/MessageSend.sys.mjs:141 CompleteGenericSendMessage chrome://messenger/content/messengercompose/MsgComposeCommands.js:6443 GenericSendMessage chrome://messenger/content/messengercompose/MsgComposeCommands.js:6359 SendMessage chrome://messenger/content/messengercompose/MsgComposeCommands.js:6971 doCommand chrome://messenger/content/messengercompose/MsgComposeCommands.js:1083 doCommand chrome://messenger/content/messengercompose/MsgComposeCommands.js:1261 goDoCommand chrome://messenger/content/globalOverlay.js:99 oncommand chrome://messenger/content/messengercompose/messengercompose.xhtml:1
mailnews.send: Sending failed; Unable to authenticate to Outgoing server (SMTP) . Please check the password and verify the 'Authentication method' in 'Account Settings | Outgoing server (SMTP)'., exitCode=2153066805, originalMsgURI= MessageSend.sys.mjs:319:32
fail resource:///modules/MessageSend.sys.mjs:319 _deliveryExitProcessing resource:///modules/MessageSend.sys.mjs:669 sendDeliveryCallback resource:///modules/MessageSend.sys.mjs:723 OnStopRunningUrl resource:///modules/MessageSend.sys.mjs:1417 onStopRequest resource:///modules/OutgoingServerService.sys.mjs:117 onerror resource:///modules/SmtpServer.sys.mjs:675 _onNsError resource:///modules/SmtpClient.sys.mjs:567 _onAuthFailed resource:///modules/SmtpClient.sys.mjs:828 _actionAUTHComplete resource:///modules/SmtpClient.sys.mjs:1187 _onCommand resource:///modules/SmtpClient.sys.mjs:607 _parse resource:///modules/SmtpClient.sys.mjs:404 _onData resource:///modules/SmtpClient.sys.mjs:461 _onOpen resource:///modules/SmtpClient.sys.mjs:433 (Async: EventHandlerNonNull) connect resource:///modules/SmtpClient.sys.mjs:142 sendMailMessage resource:///modules/SmtpServer.sys.mjs:678 sendMailMessage resource:///modules/OutgoingServerService.sys.mjs:121 sendMailMessage resource:///modules/OutgoingServerService.sys.mjs:106 _deliverAsMail resource:///modules/MessageSend.sys.mjs:1138 _deliverMessage resource:///modules/MessageSend.sys.mjs:807 createAndSendMessage resource:///modules/MessageSend.sys.mjs:141 CompleteGenericSendMessage chrome://messenger/content/messengercompose/MsgComposeCommands.js:6443 GenericSendMessage chrome://messenger/content/messengercompose/MsgComposeCommands.js:6359 SendMessage chrome://messenger/content/messengercompose/MsgComposeCommands.js:6971 doCommand chrome://messenger/content/messengercompose/MsgComposeCommands.js:1083 doCommand chrome://messenger/content/messengercompose/MsgComposeCommands.js:1261 goDoCommand chrome://messenger/content/globalOverlay.js:99 oncommand chrome://messenger/content/messengercompose/messengercompose.xhtml:1
Chosen Solution
re :Login to server smtp.office365.com with username me@mydomain.com has failed.
That sounds like the email address is not a standard eg: me@outlook.com
Error console says: mailnews.smtp: Command failed: 535 Authentication unsuccessful, SmtpClientAuthentication is disabled for the Tenant. Visit https://aka.ms/smtp_auth_disabled for more information.
That link goes to a microsoft website - I selected the section 'enable smtp....' Specifically this: https://learn.microsoft.com/en-us/exchange/clients-and-mobile-in-exchange-online/authenticated-client-smtp-submission#enable-smtp-auth-for-specific-mailboxes
I'm wondering if your issue is to do with settings saying smtp auth is disabled - check it out.
me@mydomain.com was used in place of my email address for privacy reasons.
Thank you for the link. That solved my issue. See the attached screenshot; the last box was unchecked. I have no idea why, I didn't disable it. Maybe it's disabled by default. I also don't know why it worked with other email clients, but I'm glad we resolved it. Thanks again for all the support and hard work.
I'm so pleased we have managed to find a solution. Sometimes it looks like the same issue as others are experiencing, but together - you suppying info and me trying to find solution - we have identified another potential reason for failure on the smtp. Your help and feedback are very much appreciated.