# Email Connector: Microsoft Exchange Online

**URL:** <https://community.easymorph.com/t/email-connector-microsoft-exchange-online/3513>\
**Category:** General Q&A\
**Created:** [April 6, 2022, 8:13pm UTC](https://community.easymorph.com/t/email-connector-microsoft-exchange-online/3513 "2022-04-06T20:13:20Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Twitch](https://community.easymorph.com/user_avatar/community.easymorph.com/twitch/32/3891_2.png) [@Twitch](https://community.easymorph.com/u/Twitch)\
**Post date:** [April 6, 2022, 8:13pm UTC](https://community.easymorph.com/t/email-connector-microsoft-exchange-online/3513/1 "2022-04-06T20:13:20Z")

</div>

Hi there,

I am having a bit of a struggle getting the Microsoft Exchange Online connector to work. It looks like there is barely anything to configure and I have set the authentication to "Windows integrated."

When I try to send an email, I get the below error. Any idea on how I can get this working?

 ![image](https://community.easymorph.com/uploads/default/original/2X/3/3728f8e287776dedf94ffc3d4d058a7c0bcc0b95.png)

---

<div class="post-metadata">

**Author:** ![dgudkov](https://community.easymorph.com/user_avatar/community.easymorph.com/dgudkov/32/5_2.png) [@dgudkov](https://community.easymorph.com/u/dgudkov)\
**Post date:** [April 6, 2022, 9:28pm UTC](https://community.easymorph.com/t/email-connector-microsoft-exchange-online/3513/2 "2022-04-06T21:28:41Z")

</div>

Hi Sean,

Try using the OAuth authentication mode.

---

<div class="post-metadata">

**Author:** ![Twitch](https://community.easymorph.com/user_avatar/community.easymorph.com/twitch/32/3891_2.png) [@Twitch](https://community.easymorph.com/u/Twitch)\
**Post date:** [April 7, 2022, 3:51pm UTC](https://community.easymorph.com/t/email-connector-microsoft-exchange-online/3513/3 "2022-04-07T15:51:08Z")

</div>

Hi Dmitry,

Thanks for the reply! When I try using OAuth I get the below error message back. Since this is on a work machine, it does make sense I need to have some sort of approval granted. Do you by chance know what kind of approval this would be? I am not quite sure what lever to ask to be pulled on my side.

Here is how I have the connector setup. When I hit the Authorize button I get the below error message back.

 ![image](https://community.easymorph.com/uploads/default/original/2X/c/c102f9a5f1bf497129f164d542c97cdf940ec10c.png)

 ![image](https://community.easymorph.com/uploads/default/original/2X/2/2c75ef161ac7b70be8967dcf30e2fbd04427dcf5.png)

---

<div class="post-metadata">

**Author:** ![dgudkov](https://community.easymorph.com/user_avatar/community.easymorph.com/dgudkov/32/5_2.png) [@dgudkov](https://community.easymorph.com/u/dgudkov)\
**Post date:** [April 7, 2022, 4:26pm UTC](https://community.easymorph.com/t/email-connector-microsoft-exchange-online/3513/4 "2022-04-07T16:26:13Z")

</div>

Contact the IT support department in your organization and ask them to permit authorization for the EasyMorph OAuth client. Alternatively, a custom OAuth app can be used but it also has to be configured by your IT support.

---

<div class="post-metadata">

**Author:** ![aatash](https://community.easymorph.com/letter_avatar_proxy/v4/letter/a/e99b99/32.png) [@aatash](https://community.easymorph.com/u/aatash)\
**Post date:** [April 17, 2023, 7:23pm UTC](https://community.easymorph.com/t/email-connector-microsoft-exchange-online/3513/5 "2023-04-17T19:23:56Z")

</div>

Hi @dgudkov I am trying to use Exchange Online connector and getting the following error.

AADSTS70043: The refresh token has expired or is invalid due to sign-in frequency checks by conditional access.

Any idea how to resolve the issue?

---

<div class="post-metadata">

**Author:** ![olysak](https://community.easymorph.com/letter_avatar_proxy/v4/letter/o/aeb1de/32.png) [@olysak](https://community.easymorph.com/u/olysak)\
**Post date:** [April 17, 2023, 7:50pm UTC](https://community.easymorph.com/t/email-connector-microsoft-exchange-online/3513/6 "2023-04-17T19:50:48Z")

</div>

Hi @aatash !

Probably this error is caused by your tenant's administration settings with refresh token maximum lifetime set too low (via [Configurable Token Lifetimes - Microsoft identity platform | Microsoft Learn](https://learn.microsoft.com/en-us/azure/active-directory/develop/active-directory-configurable-token-lifetimes#refresh-token-max-inactive-time)).  
It can be changed in this way ([Adaptive Session Lifetime Policies for Conditional Access - Microsoft Entra ID | Microsoft Learn](https://learn.microsoft.com/en-us/azure/active-directory/conditional-access/howto-conditional-access-session-lifetime#policy-1-sign-in-frequency-control))
