Microsoft Outlook Error

Hi, I have provided the Pricipal Name by enabling the shared mail box and connection was successful, but when I am trying to execute getting the error message as below:
“message”: “The mailbox is either inactive, soft-deleted, or is hosted on-premise.”.
Actually this mail box is hosted in on premise. Could you please help on this issue.

Welcome to the n8n community @Sushma,

That error means the Microsoft Outlook node cannot access your on‑premise mailbox through the Microsoft credentials you are using.

n8n’s Microsoft Outlook node authenticates against Microsoft 365 / Microsoft Graph and is designed for cloud mailboxes, including shared inboxes configured with Use Shared Inbox and a User Principal Name. It expects a mailbox that lives in Microsoft 365, not in an on‑premise Exchange server.

So with a purely on‑premise mailbox you will not be able to use the Outlook node successfully. Instead you have two practical options:

  1. Move or sync the mailbox to Exchange Online
    Then continue using the Microsoft Outlook node and shared inbox settings.

  2. Connect directly to your on‑prem server via IMAP/SMTP

    • Use the IMAP Email (Email Trigger IMAP) node with IMAP credentials to read mail from your on‑prem server.

    • Use the Send Email node with SMTP credentials to send mail from that server.

If your mailbox must stay on‑prem, approach 2 is the one that will work reliably with n8n. Hope this helps!

Hi @Anshul_Namdev , thank you for the solutions will try the provided approaches and let you know.

Thanks and Regards,

Sushma

Sure! Let me know if that works for you