Outlook Integration with multiple M365 tenants

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jj.payally
    Junior Member
    • Jun 2023
    • 15

    Outlook Integration with multiple M365 tenants

    Hello!
    We have multiple M365 tenants for different domains, ex.: tenant A - aaa.com, tenant B - bbb.com
    Since in Administration -> Integrations -> Outlook can be configured only one tenant, tenant A is configured there, everything with mail accounts from tenant A in CRM is ok, we can fetch and send emails.
    But we need to use mailboxes from tenant B, so i just added them in Group Email Accounts and successfully connected using Outlook extension button. I see green status "connected" but unfortunately sending and receiving not works. I found such error in logs:
    Code:
    [2024-10-11 08:17:23] DEBUG: API (0) cannot select INBOX, is this a valid transport?; POST /InboundEmail/action/testConnection; Input data: {"host":"outlook.office365.com","port":993,"security":"SSL","username":"eb@bbb.com","password":null,"id":"6707fc46b1ae47da3","emailAddress":"*****"}; Route pattern: /{controller}/action/{action}; Route params: Array (     [controller] => InboundEmail     [action] => testConnection )  
    [2024-10-11 08:17:58] DEBUG: API (500) sendingFail; POST /Email/sendTest; Input data: {"server":"smtp.office365.com","port":587,"auth":true,"security":"TLS","username":"eb@bbb.com","password":null,"authMechanism":"login","fromName":"EB","fromAddress":"eb@bbb.com","type":"inboundEmail","id":"6707fc46b1ae47da3","emailAddress":"*****"}; Route pattern: /Email/sendTest​
    When account is not connected to Outlook i can send emails through Authenticated SMTP but fetching since Microsoft disabled Basic Authentication for IMAP.
    What can be done about that? Is it possible to use multiple tenants with Espo?

  • crmscot
    Member
    • Jun 2014
    • 54

    #2
    I too have a similar issue. One tenant works just fine but I can no longer use my outlook.com email as a second, personal email account. This used to work for me but Microsoft, so far has been unable to suggest a solution.

    Comment

    • victor
      Active Community Member
      • Aug 2022
      • 731

      #3
      The topic created by crmscot and the answer to your question can be viewed here: https://forum.espocrm.com/forum/gene...493#post110493.

      At the moment (we cannot know what changes they will make in the near future) Outlook allows you to use a login (for example, eeee@outlook.com) and password (just a simple password, not an app password) for IMAP work, and SMTP only works when you press Send test email. I don't know how useful this information is for you, but at least IMAP can be used without the Outlook Integration extension.​
      Last edited by victor; 10-11-2024, 10:51 AM.

      Comment

      • jj.payally
        Junior Member
        • Jun 2023
        • 15

        #4
        Originally posted by victor
        The topic created by crmscot and the answer to your question can be viewed here: https://forum.espocrm.com/forum/gene...493#post110493.

        At the moment (we cannot know what changes they will make in the near future) Outlook allows you to use a login (for example, eeee@outlook.com) and password (just a simple password, not an app password) for IMAP work, and SMTP only works when you press Send test email. I don't know how useful this information is for you, but at least IMAP can be used without the Outlook Integration extension.​
        I went through this topic, but unfortunately it didn't help to resolve this issue.
        I already updated Outlook extension to version 1.3.5
        We use multiple M365 tenants, not free mailboxes from @outlook.com.
        EspoCRM registered like owned app in Microsoft Entra for tenant A. In tenant B and others EspoCRM is in Enterprise App list with all needed permissions.
        Authenticated SMTP is enabled for all tenants and all mailboxes used in CRM.
        Everything is working for mailboxes from tenant A, but it is a problem with mailboxes from tenant B.
        I tried to add to CRM another new mailbox from tenant B and i cannot send or receive emails for it.

        Code:
        [2024-10-11 08:17:23] DEBUG: API (0) cannot select INBOX, is this a valid transport?; POST /InboundEmail/action/testConnection; Input data: {"host":"outlook.office365.com","port":993,"securi ty":"SSL","username":"eb@bbb.com","password":null, "id":"6707fc46b1ae47da3","emailAddress":"[I][B][B]"}; Route pattern: /{controller}/action/{action}; Route params: Array ( [controller] => InboundEmail [action] => testConnection )
        [2024-10-11 08:17:58] DEBUG: API (500) sendingFail; POST /Email/sendTest; Input data: {"server":"smtp.office365.com","port":587,"auth":t rue,"security":"TLS","username":"eb@bbb.com","pass word":null,"authMechanism":"login","fromName":"EB" ,"fromAddress":"eb@bbb.com","type":"inboundEmail", "id":"6707fc46b1ae47da3","emailAddress":"[/B][/B][/I]"}; Route pattern: /Email/sendTest​

        Comment

        Working...