I am glad to hear all worked well in the end. Thank you for updating the documentation with the new error code and sharing it with the Community!
Original Message:
Sent: 12-16-2024 05:10
From: Fabrizio Tortis
Subject: SMTP Oauth2.0 set up
Hi @Tatjana Knezevic
Many thanks for your answer. I gladly inform you that finally we were able to fix this issue and integrate succesfully Genesys Cloud with M365. It was a misconfiguration between the Service Principal Name and the user created on Exchange side leading this issue.
I've added this error in the section "Known error codes" of your documentation, so it could help other people managing this integration.
Many thanks for your support and Kind regards,
------------------------------
Fabrizio Tortis
Swisscom (Schweiz) AG - Technical Lead CIM
Original Message:
Sent: 12-03-2024 22:11
From: Tatjana Knezevic
Subject: SMTP Oauth2.0 set up
Hi @Fabrizio Tortis,
I'm sorry for not getting back to you sooner. Unfortunately, I don't have experience with either of your questions.
I hope the log you shared here will help the Microsoft/Exchange Team with the resolution.
Thanks,
------------------------------
Tatjana Knezevic
www.startelecom.cloud
https://www.linkedin.com/company/star-telecom-www-startelecom-ca-/
Original Message:
Sent: 11-26-2024 05:48
From: Fabrizio Tortis
Subject: SMTP Oauth2.0 set up
Hi @Tatjana Knezevic many thanks for your answer. I was able to fix this issue. There was a Conditional Access Policy rule configured on Azure which was blocking Genesys in getting the token.
Now the integration on Genesys is correctly active but infortunately I'm still not able to reply or send out and outbound email. On Genesys I'm receiving the following error: "Unable to authenticate with the specified integration."
I've opened a case to Genesys Support and it seems that Genesys is receiving back the following error "Caught SMTPSendFailedException (Return Code 430) while sending email (size estimated 711 bytes) using SMTP server" from Exchange. You could find the complete log snippet provided by Genesys Support in attach for more details.
First question to you: Did you ever faced this issue during your integrations?
In addition I've discovered that this Customer is using Exchange Server hybrid deployments which is a combination between an on-premises Exchange organization and Exchange Online (link: https://learn.microsoft.com/en-us/exchange/exchange-hybrid)
Second question to you: Have you integrated with this type of deployment?
I look forward to your kindly reply.
Many thanks and Best regards,
Fabrizio
------------------------------
Fabrizio Tortis
Swisscom (Schweiz) AG - Technical Lead CIM
Original Message:
Sent: 11-18-2024 16:47
From: Tatjana Knezevic
Subject: SMTP Oauth2.0 set up
Hi @Fabrizio Tortis,
Oh, sorry to hear that. The parameters you shared look fine (assuming the values correspond to what is configured in Azure AD, and Microsoft 365 (as per documentation shared).
I can confirm that we successfully installed 4 SMTP integrations using the same procedure from this document Can you please run this curl command? Just so you know, I left the placeholders (bolded) for you to enter the data for your current integration.
curl -X POST -H "Content-Type: application/x-www-form-urlencoded" -d 'client_id={clientId}&scope=https://graph.microsoft.com/.default&client_secret={clientSecret}&grant_type=client_credentials' 'https://login.microsoftonline.com/{tenantId}/oauth2/v2.0/token'
When run, this command should return either the token (if everything is configured as expected) or the error. In case of an error, please refer to learn.microsoft.com and provide the error code or error details in the search field.
Please keep me posted on progress.
------------------------------
Tatjana Knezevic
www.startelecom.cloud
https://www.linkedin.com/company/star-telecom-www-startelecom-ca-/
Original Message:
Sent: 11-14-2024 13:26
From: Fabrizio Tortis
Subject: SMTP Oauth2.0 set up
Hi Tatjana,
Many thanks for your answer and the latest version of the documentation. We have the following specilities in our integrations:
We adopt redirect message for the inbound email (https://help.mypurecloud.com/articles/register-domain-redirect-inbound-messages/) and Custom SMTP integration only for outbound/reply email.
On Microsoft side we're using a Service Account.
Questions: Did you manage to have this integration working with the same specialities mentioned above?
In addition we had a look at the latest version of your documentation and we recreated both applications on MS and Genesys side following step-by-step what is mentioned on it. Now we did a step back since I'm receiving an error activating
the Customer SMTP integration. Before at least this part was working.
in the Sign-in logs on MS Azure we can't see any requests arriving from Genesys.
Here are the parameters I'm using in the Integration:
Do you know what could be the problem behind this error received when activating the Integration?
Many thanks and Kind regards,
Fabrizio
------------------------------
Fabrizio Tortis
Swisscom (Schweiz) AG - Technical Lead CIM
Original Message:
Sent: 11-13-2024 17:14
From: Tatjana Knezevic
Subject: SMTP Oauth2.0 set up
Hi @Fabrizio Tortis,
The documentation on this thread may need to be updated. We have successfully configured in the last couple of months SMTP integration using Client Credential Flow and would recommend doing the same with your integration.
Here is the latest document we created, which provides all the details and steps to take in Azure AD and Genesys Cloud.
I hope this document will help you to (finally) resolve the issues with the SMTP integration. Please keep me posted on the progress.
Thanks,
------------------------------
Tatjana Knezevic
www.startelecom.cloud
https://www.linkedin.com/company/star-telecom-www-startelecom-ca-/
Original Message:
Sent: 11-12-2024 11:27
From: Fabrizio Tortis
Subject: SMTP Oauth2.0 set up
Dear @Tatjana Knezevic,
Hope you're doing well.
We're struggling since weeks to have this Integration up&running.
In the current Integration we are using email forwarding for inbound email and Custom SMTP Integration for Outbound email.
There are several questions that I hope you could help me to answer. Here they are:
Integration:
1. Is the current Integration applicable with the guideline shared in this post?
Azure AD:
1. For the Application Permissions shown in one of your post, do we have to grant those listed in the "Office 365 Exchange Online" part or also those in the "Microsoft Graph" Section?
Genesys Cloud:
1. What Kind of "Credential Type" are you using in your Customer SMTP Application? Basic, ROPC or Credential Flow?
2. What value should be entered in the username parameter? The user or the mailbox itself?
Having your support would we very helpful because at the moment we were able only to activate and test the integration but not to reply to an inbound email successfully.
Many thanks and Kind regards,
------------------------------
Fabrizio Tortis
Swisscom (Schweiz) AG - Technical Lead CIM
Original Message:
Sent: 06-13-2023 15:32
From: Tatjana Knezevic
Subject: SMTP Oauth2.0 set up
Hi @Harpal Dhillon ,
These are the settings we use for our SMTP OAuth2 Integration to work.
- Create a new application in Azure AD. I strongly recommend starting from scratch instead of modifying the existing application.
- After registering the application take the values for * Application (client) ID, and * Directory (tenant) ID as you will use them later on in Genesys
- Continue with the application registration and when you get to the step: Application permissions, configure the permissions as per the screenshot below.
NOTEs about User: The user should have Microsoft 365 Standard license and MUST have "Authenticated SMTP" enabled (please note, this is disabled by default).
Genesys configuration settings (redacted) are shared in one of the previous posts. Can you please give it a try?

------------------------------
Tatjana Knezevic
www.startelecom.cloud
https://www.linkedin.com/company/star-telecom-www-startelecom-ca-/
Original Message:
Sent: 06-13-2023 04:24
From: Harpal Dhillon
Subject: SMTP Oauth2.0 set up
We've got the same issue where genesys support keep referring us to Microsoft. Could you share how you got it working please?
------------------------------
Harpal Dhillon
Foxtons Limited
Original Message:
Sent: 06-09-2023 15:16
From: Tatjana Knezevic
Subject: SMTP Oauth2.0 set up
Hi @Harpal Dhillon
Any progress with your SMTP OAuth2 configuration?
Customer Care didn't provide any guidance or documents, rather they were directing us to go to Microsoft. After numerous attempts, we were able to finally get this Integration to work :-)
------------------------------
Tatjana Knezevic
www.startelecom.cloud
https://www.linkedin.com/company/star-telecom-www-startelecom-ca-/
Original Message:
Sent: 06-06-2023 10:54
From: Harpal Dhillon
Subject: SMTP Oauth2.0 set up
yes your settings look identical to mine, but still fail.
------------------------------
Harpal Dhillon
Foxtons Limited
Original Message:
Sent: 06-06-2023 10:43
From: Tatjana Knezevic
Subject: SMTP Oauth2.0 set up
@Harpal Dhillon
No progress to report, still experiencing the error with SMTP OAuth2.
Here are the settings for SMTP OAuth2 integration (I'll use the placeholders for sensitive data):
Client ID*: {clientId}
Client Secret*: {clientSecret}
Access token endpoint*: https://login.microsoftonline.com/{tenantId}/oauth2/v2.0/token
Username: {username}
Password: {password}
Scopes: https://outlook.office365.com/.default
SMTP Host: smtp.office365.com
SMTP Port: 587
StartTLS: True
------------------------------
Tatjana Knezevic
www.startelecom.cloud
https://www.linkedin.com/company/star-telecom-www-startelecom-ca-/
Original Message:
Sent: 06-06-2023 10:21
From: Tatjana Knezevic
Subject: SMTP Oauth2.0 set up
@Harpal Dhillon
Thank you for your response. We don't have any progress to report OAuth2 SMTP integration. Still not able to configure it. Yeah, we found also the same Engage document.
@Guru Prasad Saw your post on the community here when the feature was released. Do you have any recommendations to share?
Thanks,
------------------------------
Tatjana Knezevic
www.startelecom.cloud
https://www.linkedin.com/company/star-telecom-www-startelecom-ca-/
Original Message:
Sent: 06-06-2023 04:10
From: Harpal Dhillon
Subject: SMTP Oauth2.0 set up
Afraid not, i can get it working in Basic Auth however Oauth keeps failing.
I too tried smtp.office365.com and other settings i found in a genesys i found in the below Genesys Engage doc thinking it would be similar:
Setting up Microsoft Azure mailboxes for OAuth 2.0 authorization (genesys.com)
I too logged a ticket with support but its not got anywhere so far.
------------------------------
Harpal Dhillon
Foxtons Limited
Original Message:
Sent: 06-05-2023 12:19
From: Tatjana Knezevic
Subject: SMTP Oauth2.0 set up
Hi @Harpal Dhillon ,
We have the same problem. Our SMPT host is smtp.office365.com.
Also, we configured the application registration in Azure and got the error. We opened the case with Customer Care, but there is no help.
Were you able to configure this integration meanwhile?
@Marc Gaspard :
Yes, this feature was released in the release on April 26th (https://help.mypurecloud.com/releasenote/april-26-2023/).
------------------------------
Tatjana Knezevic
www.startelecom.cloud
https://www.linkedin.com/company/star-telecom-www-startelecom-ca-/
Original Message:
Sent: 05-31-2023 11:51
From: Harpal Dhillon
Subject: SMTP Oauth2.0 set up
Hi everyone,
I'm trying to get SMTP integration set up with with Ouath2.0 connecting to a mailbox we have in o365.
Has anyone got this to work? I can't seem to find any instructions online, I've configured the App registration in azure and plugged the id's into the smtp integration but would like to verify if i've done it correct as its still failing.
#API/Integrations
------------------------------
Harpal Dhillon
Foxtons Limited
------------------------------