I am trying to configure K2 against Exchange Online with OAuth according to the article K2 and upcoming changes to Exchange Online authentication. I have a server in on-prem with AD only, no integration with AAD. I have tried K2 blackpearl 4.7 and K2 Five 5.5, both with the latest updates. I just want to send mails from K2 directly to Exchange Online and maybe try SmartActions.
I think there are a few inaccuracies in the article, but I've gotten past some of them, but I think I have two problems near the end:
1. a simple test workflow fails to send a notification in the Task step, with a message:
"Error","General","1","GeneralErrorMessage","EwsMessageDestination","1 The From Adress is empty or missing","anonymous","0.0.0.0","SRV03:C:Program Files (x86)K2 blackpearlHost ServerBin","1233361","92a69cd253b043dea89695787f260c1a","""Error","MessageBus","61007","SendMessageException","MessageBusRuntime","61007 Permanent failure sending message New Task: System.Exception: No destinations could send the message New Task.
What helped me was to disable SmartActions, in K2HostServer.exe.config set enableListeners="false".
2. when I leave Autodiscovery = True in ConnectionStringEditor, I get an error over and over again in the HostServer and Windows Event log:
"Error","MessageBus","61012","ConnectionError","ExchangeWebServicesOrigin","61012 Exception from message source K2_Service@mydomain.com: Microsoft.Exchange.WebServices.Data.AutodiscoverLocalException: The Autodiscover service couldn't be located.
Once I turn off Autodiscovery, restart the K2 service, the errors disappear, I don't notice any problems.
But why is Autodiscovery not working when the article says it should be on?
These my test environments were only installed against SMTP, in this case when I want to use Exchange Online do I have to run K2 Setup Manager and reconfigure the whole K2 to almost at the end enable the use of Exchange Online and SmartActions, when I then set it up manually anyway according to the article?
I don't understand why according to the article, paragraph Verifying the changes, at the end of the article, letter D, it is necessary to have the AAD security label when I don't have any integration with AAD in K2.
Do you think that the steps described for K2 4.7 and 5.0 are also applicable for newer versions (5.1 to 5.5), if I am not interested in activating the whole Exchange Online Feature? I think so.
Finally, I have TLS set according to the K2 and TLS 1.2 Support article and the Minimum Requirement paragraph.
Thanks for your possible comments and experiences.
Best answer by PavelSView original