Issues with Enabling Outlook Email Auth and Sending Emails

TLDR alejandrog7200 had issues with enabling Outlook Email Auth through Chatwoot. tejaswini suggested checking server logs and using a single tenant application. SwimCare and jaken discussed issues with sending emails. No resolution was provided.

Photo of alejandrog7200
alejandrog7200
Thu, 23 Mar 2023 12:55:25 UTC

Hi, I followed this https://www.chatwoot.com/docs/self-hosted/configuration/features/email-channel/azure-app-setup/ to enable Outlook Email Auth. After authorizing the login it goes back to dashboard web and it doesn't create the inbox

Photo of sojan_official
sojan_official
Fri, 24 Mar 2023 06:11:12 UTC

tejaswini could you help ?

Photo of tejaswini
tejaswini
Fri, 24 Mar 2023 06:13:58 UTC

Could you check if there are any issues on the server logs? 1. Check if the profile is added in the id_token 2. user.email is present in id_roken?

Photo of tejaswini
tejaswini
Fri, 24 Mar 2023 06:15:19 UTC

This happens when id_token usually has the different information that the request one, or account_id is not being saved in redis.

Photo of tejaswini
tejaswini
Fri, 24 Mar 2023 06:19:36 UTC

I will suggest you: if you are using only one email then use single tenant application

Photo of SwimCare
SwimCare
Fri, 24 Mar 2023 15:42:24 UTC

Hi, I have a somewhat similar issue. I now can receive mails from office 365 account. But sending doesn't seem to work. I don't get any error and the checkmark is there in the chatwoot interface. Any ideas?

Photo of SwimCare
SwimCare
Mon, 03 Apr 2023 14:54:29 UTC

No errors, but I found a issue already reported on github. Its is identical to what I have.

Photo of SwimCare
SwimCare
Mon, 03 Apr 2023 14:56:14 UTC

https://github.com/chatwoot/chatwoot/issues/6729

Photo of jaken
jaken
Mon, 03 Apr 2023 19:13:38 UTC

Yeah I'm facing this problem too, any update on this?

Photo of tejaswini
tejaswini
Tue, 04 Apr 2023 02:54:25 UTC

In that same fixed PR the author decided to keep sending email via SMTP as it is working for them.

Photo of alejandrog7200
alejandrog7200
Mon, 17 Apr 2023 19:44:20 UTC

Hi! tejaswini in my case I need to configure it as multitenant so multiple accounts can access to diferent domains. This setup is working at this moment?

Photo of alejandrog7200
alejandrog7200
Wed, 19 Apr 2023 12:37:43 UTC

OKay, do you know if any of your clients have been able to get that verification? My use case is in a single CWT installation I have multiple accounts and each of this accounts I need to log in with diferent Microsoft 365 domains