When i try to send email through outlook node from n8n getting error likeThe mailbox is either inactive, soft-deleted, or is hosted on-premise.

Aravind Babu Paritala 0 Reputation points
2025-11-11T08:12:14.88+00:00

{

"errorMessage": "The resource you are requesting could not be found",

"errorDescription": "The mailbox is either inactive, soft-deleted, or is hosted on-premise.",

"errorDetails": {

"rawErrorMessage": [

  "404 - {\"error\":{\"code\":\"MailboxNotEnabledForRESTAPI\",\"message\":\"The mailbox is either inactive, soft-deleted, or is hosted on-premise.\"}}"

],

"httpCode": "404"
```  },

  "n8nDetails": {

```javascript
"nodeName": "Microsoft Outlook",

"nodeType": "n8n-nodes-base.microsoftOutlook",

"nodeVersion": 2,

"resource": "message",

"operation": "send",

"itemIndex": 0,

"time": "11/11/2025, 1:26:13 PM",

"n8nVersion": "1.90.2 (Self Hosted)",

"binaryDataMode": "default",

"stackTrace": [

  "NodeApiError: The resource you are requesting could not be found",

  "    at ExecuteContext.requestWithAuthentication (/usr/local/lib/node_modules/n8n/node_modules/n8n-core/dist/execution-engine/node-execution-context/utils/request-helper-functions.js:991:19)",

  "    at processTicksAndRejections (node:internal/process/task_queues:95:5)",

  "    at ExecuteContext.requestWithAuthentication (/usr/local/lib/node_modules/n8n/node_modules/n8n-core/dist/execution-engine/node-execution-context/utils/request-helper-functions.js:1147:20)",

  "    at ExecuteContext.microsoftApiRequest (/usr/local/lib/node_modules/n8n/node_modules/n8n-nodes-base/dist/nodes/Microsoft/Outlook/v2/transport/index.js:52:12)",

  "    at ExecuteContext.execute (/usr/local/lib/node_modules/n8n/node_modules/n8n-nodes-base/dist/nodes/Microsoft/Outlook/v2/actions/message/send.operation.js:271:3)",

  "    at ExecuteContext.router (/usr/local/lib/node_modules/n8n/node_modules/n8n-nodes-base/dist/nodes/Microsoft/Outlook/v2/actions/router.js:82:26)",

  "    at ExecuteContext.execute (/usr/local/lib/node_modules/n8n/node_modules/n8n-nodes-base/dist/nodes/Microsoft/Outlook/v2/MicrosoftOutlookV2.node.js:38:12)",

  "    at WorkflowExecute.runNode (/usr/local/lib/node_modules/n8n/node_modules/n8n-core/dist/execution-engine/workflow-execute.js:681:27)",

  "    at /usr/local/lib/node_modules/n8n/node_modules/n8n-core/dist/execution-engine/workflow-execute.js:915:51",

  "    at /usr/local/lib/node_modules/n8n/node_modules/n8n-core/dist/execution-engine/workflow-execute.js:1246:20"

]
```  }

}
Microsoft 365 and Office | Development | Other
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Jack-Bu 5,405 Reputation points Microsoft External Staff Moderator
    2025-11-11T15:40:43.2766667+00:00

    Hello Aravind Babu Paritala

    Thank you for reaching out to Microsoft Q&A regarding the issue with sending emails through the Microsoft Outlook node in your n8n workflow. This error (MailboxNotEnabledForRESTAPI) occurs when the Outlook REST API (via Microsoft Graph) cannot access the mailbox. Common causes include:

    • The mailbox is hosted on-premise (local Exchange Server) rather than in the cloud.
    • The account is inactive, soft-deleted, or lacks a valid Microsoft 365 license with Exchange Online.
    • Licensing or configuration issues in hybrid setups.

    Your n8n setup authenticates successfully but fails during email sending, which aligns with mailbox accessibility restrictions. Here something you can do to fix this:

    1. Verify Mailbox Status:
      • Sign in to the Microsoft 365 admin center at admin.microsoft.com.
      • Navigate to Users > Active users and ensure the account is active. If it's soft-deleted, restore it from Users > Deleted users.
    2. Assign or Confirm License:
      • In the admin center, select the user and go to Licenses and apps.
      • Assign a Microsoft 365 license that includes Exchange Online (e.g., Business Basic/Standard or Enterprise plans). Save changes and allow time for updates to apply.
    3. Migrate Mailbox if On-Premise:
    4. Check App Permissions:
      • In Azure AD, confirm your app registration has Microsoft Graph permissions like Mail.Send and Mail.ReadWrite, with admin consent granted.

    After implementing these changes, retest your n8n workflow. Hope this will help you clear things up.


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".      

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.