Well, it finally happened. Microsoft shut off basi...
# adobe
b
Well, it finally happened. Microsoft shut off basic authentication for email on Tuesday. Has anyone found a reliable solution for email using scheduled tasks (non-interactive) using OAuth 2 and Azure? I've seen a few different posts in various places where people seem to have it working, but they also seem to be using different methods. Support from Microsoft and Adobe have not been helpful so far.
e
In the domain settings for Office 365 Admin, Go to Exchange Administrator, Go to Settings, Mail Flow, Settings, there is
Or you can fire up a VM, assign it a public IP address (if it doesnt have one) set the firewall to allow your COLDFUSION box or network of boxes to it, then in Exchange Admin center you can setup a mail connector setting to allow all mail from That IP_OF_THE_VM on the VM, you can simply que mail to any local smtp server, such as Bat, MailEnable, Postfix, sendmail to name a few.
b
@Brian I feel like we've discussed this before, but I've switched clients over from CFIMAP/CFMAIL to use their graph API and an Oauth flow
(I'm unclear whether you're sending or receiving mail)
And while it would be ideal for the built in tags to work, if you just need to get a process back up and working, the APIs aren't too hard to work with once you have the oauth setup
I actually pasted my CFImap replacement om this forum https://dev.lucee.org/t/check-email-on-o365-with-oauth/11389/5?u=bdw429s
b
The app both retrieves email and sends it. I'm going to try the MS Graph route that someone referenced in a discussion on the Adobe forum and see how far I get with that. I was getting the token fine before, but if I remember right the request was being rejected after that.
And yes, this has been discussed here before, but as of yet we haven't been able to get it to work. There are so many variables, including internal firewall policies and such, that I need to eliminate as many as possible.
m
GraphAPI support is coming in CF2024 1st party but in the mean time I am trying to get Brian Sappey to do a talk on his implementation. We discussed it this weekend and it is elegant, well architected and currently running on his product servers at scale with no issues. Once we're all back from our trips I'll try and get some velocity on that, but one thing that was made clear from every single client is the importance of Adobe 1p support natively for MS GraphAPI and we heard it loud and clear.
b
So Graph seems to be the way to go?
e
you could always install windows powershell, and then build your Powershell graph commands using Coldfusion.
👍 1