Please note that VisualCron support is not actively monitoring this community forum. Please use our contact page for contacting the VisualCron support directly.


John Moe
2021-10-12T02:59:06Z
I'm trying to set up an email connection to Exchange Online using Oauth (since basic auth will be retired soon ). I've tried following the guides for SMTP  and Exchange EWS , but neither seem to mention Oauth; they look like they were written before that feature was available.

I've created my service principal in Azure AD, but I'm not sure what permissions it needed? I've given it an Application Permission of Microsoft Graph -> Mail.Send and granted admin consent; is that enough?

I've then entered the following info into a Visual Cron SMTP connection:

  • Main Settings

    • Address - smtp.office365.com
    • Port - 587

  • Authentication

    • Authentication type - OAuth
    • Use VisualCron registered app - not selected (I presume there's some way to define the registered app within Visual Cron, but I haven't found it yet, and am just trying to get this working here for now)
    • Application ID - from the Service Principal
    • Client Secret - from the App Registration

  • Encryption

    • Cryptographic protocol - TLS
    • Security mode - Explicit
    • Allowed SSL/TLS versions - TLS 1.2 & 1.3

  • Extra settings

    • Tenant ID - From Azure AD
    • Tenant Name - From Azure AD
    • Tenant Primary Domain - <Tenant Name>.onmicrosoft.com


However, it doesn't seem to be working. When I click "Test" and enter a to and from e-mail address, I get a popup window in Visual Cron saying "Failure -> Connection test failed. Error: Unhandled error: One or more errors occurred". I'm also not seeing any auth failures in the Azure AD Sign-In logs (under Service Principals), so I presume it's not even getting to the point of trying to authentication to Azure.

Can anyone help me?
Sponsor
Forum information
Support
2021-10-13T08:40:29Z
Originally Posted by: John Moe 

I'm trying to set up an email connection to Exchange Online using Oauth (since basic auth will be retired soon ). I've tried following the guides for SMTP  and Exchange EWS , but neither seem to mention Oauth; they look like they were written before that feature was available.

I've created my service principal in Azure AD, but I'm not sure what permissions it needed? I've given it an Application Permission of Microsoft Graph -> Mail.Send and granted admin consent; is that enough?

I've then entered the following info into a Visual Cron SMTP connection:


  • Main Settings

    • Address - smtp.office365.com
    • Port - 587

  • Authentication

    • Authentication type - OAuth
    • Use VisualCron registered app - not selected (I presume there's some way to define the registered app within Visual Cron, but I haven't found it yet, and am just trying to get this working here for now)
    • Application ID - from the Service Principal
    • Client Secret - from the App Registration

  • Encryption

    • Cryptographic protocol - TLS
    • Security mode - Explicit
    • Allowed SSL/TLS versions - TLS 1.2 & 1.3

  • Extra settings

    • Tenant ID - From Azure AD
    • Tenant Name - From Azure AD
    • Tenant Primary Domain - <Tenant Name>.onmicrosoft.com


However, it doesn't seem to be working. When I click "Test" and enter a to and from e-mail address, I get a popup window in Visual Cron saying "Failure -> Connection test failed. Error: Unhandled error: One or more errors occurred". I'm also not seeing any auth failures in the Azure AD Sign-In logs (under Service Principals), so I presume it's not even getting to the point of trying to authentication to Azure.

Can anyone help me?



Dealing with this via email

Michael
Support
http://www.visualcron.com 

Please like  VisualCron on facebook!
Scott Morgan
2021-12-18T05:28:14Z
Support - How was this issue resolved using exchange ews and oauth?

Can anyone elaborate on the specifics of what one needs to configure to get the exchange ews working with 0365 using oauth?
Jonah Kosfiszer
2022-01-05T23:10:13Z
I also have the same problem. I have a C# app using graph library working fine, but when I try and use the parameters in Exchange EWS connection, I can't get it to work.
Support
2022-01-12T13:27:22Z
Originally Posted by: Jonah Kosfiszer 

I also have the same problem. I have a C# app using graph library working fine, but when I try and use the parameters in Exchange EWS connection, I can't get it to work.



All of you who are having issues with this, please send us an email to support@visualcron.com - make sure you've read the documentation and set all the properties from the Azure app in to VisualCron
Michael
Support
http://www.visualcron.com 

Please like  VisualCron on facebook!
Lee
2022-05-19T15:25:08Z
Originally Posted by: Support 

Originally Posted by: Jonah Kosfiszer 

I also have the same problem. I have a C# app using graph library working fine, but when I try and use the parameters in Exchange EWS connection, I can't get it to work.



All of you who are having issues with this, please send us an email to support@visualcron.com - make sure you've read the documentation and set all the properties from the Azure app in to VisualCron



Hi Michael,

We will email you directly as we are having the same problem.

Thanks
Michael Fjellström
2022-06-10T11:58:45Z
If anyone else has issues, please send an email to support@visualcron.com
PapoNL
2022-07-04T14:58:26Z
Will the solution be posted in the end?
Lee
2022-08-22T13:51:14Z
Originally Posted by: PapoNL 

Will the solution be posted in the end?



Hi, we are yet to solve the issue with Support. We will post once we have a solution.

Thanks
Michael Fjellström
2022-09-16T14:42:45Z
Hi,

Exchange EWS Oauth has been fixed now in our latest beta build which you can download here:  https://www.visualcron.c...aspx?g=Posts&t=10689 

Here is the full, updated documentation for setting it up. Please follow the instructions there: https://www.visualcron.c...HTML/connection-ews.html 
James Boyle
2022-11-01T17:54:47Z
We have upgraded to 9.9.10 and set up an OAuth connection due to Microsoft's turndown of basic auth for POP3/IMAP. However, triggers to download attachments on new email are not firing. Documentation for "on email" triggers still shows only POP3 and IMAP as supported. Are we able to have VisualCron monitor for emails received via a modern authentication method that is still supported?
Michael Fjellström
2022-11-08T10:14:52Z
Originally Posted by: James Boyle 

We have upgraded to 9.9.10 and set up an OAuth connection due to Microsoft's turndown of basic auth for POP3/IMAP. However, triggers to download attachments on new email are not firing. Documentation for "on email" triggers still shows only POP3 and IMAP as supported. Are we able to have VisualCron monitor for emails received via a modern authentication method that is still supported?



Hi James,

Please use the Exchange EWS Oauth method for setting up both SMTP and IMAP. We have full documentation here: https://www.visualcron.c...HTML/connection-ews.html 
Wil Dobson
2022-11-29T14:37:42Z
Originally Posted by: James Boyle 

We have upgraded to 9.9.10 and set up an OAuth connection due to Microsoft's turndown of basic auth for POP3/IMAP. However, triggers to download attachments on new email are not firing. Documentation for "on email" triggers still shows only POP3 and IMAP as supported. Are we able to have VisualCron monitor for emails received via a modern authentication method that is still supported?



Agree with the findings of Mr. Boyle.
Connection to OAUTH EWS works, however getting headers or downloading attachments continually return "Connection to [name of connection] is not authenticated".

I've reached out to support, tried out their suggested v10.0.0.0 beta build, and sent in screenshots of my VC settings / Azure settings.
Support responded "There is an issue with the email trigger/imap functionality now that we are working on. I will let you know when we have a working build up for this."
tsprks
2022-12-07T17:20:03Z
I too am struggling with this. I've extended basic authentication for my O365 accounts so that I can continue to use SMTP, but with EWS being scheduled to be depreciated I really feel like VC needs to implement OAuth for O365 SMTP just like they have for GMail.
Scroll to Top