Skip to main content
Solved

"Modern Authentication" for SMTP Office 365 IFS cloud


Forum|alt.badge.img+3

Hi!

A customer reached out and asked about the the SMTP authentication for Event Actions in IFS Cloud 22R1. Are there an option to use a modern authentication (like Oauth 2.0) when connecting to Office 365 Exchange server ? 

 

The background is that Microsoft are moving away from legacy authentication methods (in some areas it’s deprecated) and recommend upgrading your authentication method. 

 

https://docs.microsoft.com/en-us/exchange/clients-and-mobile-in-exchange-online/deprecation-of-basic-authentication-exchange-online 

Best answer by Kasun Alahakoon

Hi @NovAlbinL

I hope you’re doing well and keeping safe.

This is a new feature request and we’re aware of the requirement. And this option will be available with IFS Cloud 22R2 release. 

Best Regards,

View original
Did this topic help you find an answer to your question?

15 replies

Forum|alt.badge.img+9

Hi @NovAlbinL

I hope you’re doing well and keeping safe.

This is a new feature request and we’re aware of the requirement. And this option will be available with IFS Cloud 22R2 release. 

Best Regards,


Forum|alt.badge.img+3
  • Author
  • Do Gooder (Partner)
  • 7 replies
  • June 27, 2022

Great, thx for the information!


Forum|alt.badge.img+16
  • Superhero (Partner)
  • 401 replies
  • August 9, 2022

What about IFS10 version? It will not be possible to configure MAIL_SENDER with using MS account?


Forum|alt.badge.img+8
  • Sidekick (Customer)
  • 44 replies
  • February 8, 2023

I hope you’re doing well and keeping safe.

This is a new feature request and we’re aware of the requirement. And this option will be available with IFS Cloud 22R2 release. 

Best Regards,

 

Do we know if this got implimented? 

 

Are there any instructons as I couldn’t get it to work.

 

Thanks,

Alex


JasonPM
Do Gooder (Partner)
Forum|alt.badge.img+3
  • Do Gooder (Partner)
  • 7 replies
  • March 8, 2023
Kasun Alahakoon wrote:

Hi @NovAlbinL

I hope you’re doing well and keeping safe.

This is a new feature request and we’re aware of the requirement. And this option will be available with IFS Cloud 22R2 release. 

Best Regards,

we are trying to do this in 22R2 but I think this is delayed to 22R3 can you please confirm?

22r2 – Link

22r3 – Link


Forum|alt.badge.img+4

Is this feature, promised for 22R2, available yet? We’re on 23R1 and we can’t get it to work. It will be a blocker for our implementation if we can’t send emails through Microsoft Office 365.


Forum|alt.badge.img+2
  • Sidekick (Customer)
  • 8 replies
  • January 23, 2024

I am looking for this functionality too. We are on 23R1, but can’t get it to work. Worked with my partner, no luck. Asked support, they told me to open a consultancy ticket because they don’t support implementing features, opened a consultancy ticket and they forwarded it on to my partner without communicating with me in any way. #momentofservice

Guessing that someone at IFS knows how to configure this. Would be nice if they would share their knowledge.


durette
Superhero (Customer)
Forum|alt.badge.img+19
  • Superhero (Customer)
  • 526 replies
  • April 26, 2024

Exchange Online removed all forms of Basic auth as of 2022-12-31, with Client Submission (SMTP AUTH) being the only exception.

https://techcommunity.microsoft.com/t5/exchange-team-blog/exchange-online-to-retire-basic-auth-for-client-submission-smtp/ba-p/4114750

SMTP AUTH is now off by default and will be completely going away in September 2025.

https://learn.microsoft.com/en-us/exchange/mail-flow-best-practices/how-to-set-up-a-multifunction-device-or-application-to-send-email-using-microsoft-365-or-office-365

We're already looking to move our email tenant to reduce our spend, and it's going to cost us extra money to keep an ERP around that can't support this.


durette
Superhero (Customer)
Forum|alt.badge.img+19
  • Superhero (Customer)
  • 526 replies
  • April 26, 2024

Is this working yet?


durette
Superhero (Customer)
Forum|alt.badge.img+19
  • Superhero (Customer)
  • 526 replies
  • July 8, 2024

Is this working yet?


Forum|alt.badge.img+10
  • Hero (Customer)
  • 62 replies
  • January 14, 2025

Hi all,

Am I right in thinking that if you are on Apps10 that this new feature is not available ?

Thanks

 

 


durette
Superhero (Customer)
Forum|alt.badge.img+19
  • Superhero (Customer)
  • 526 replies
  • March 13, 2025

Microsoft is still scheduled to retire basic authentication for client submission, so the deadline is now just six months away. Is this working yet?


dsj
Superhero (Partner)
Forum|alt.badge.img+22
  • Superhero (Partner)
  • 844 replies
  • March 13, 2025
durette wrote:

Microsoft is still scheduled to retire basic authentication for client submission, so the deadline is now just six months away. Is this working yet?

Hi ​@durette,

 

Oauth2 authentication is supported since 23R1 for mail sender/reader. I have not set it up by myself but the steps are included in the documentation.

23R1: Configure the Mail Transport Connector - Technical Documentation For IFS Cloud

 

I have not done a complete setup by myself but involved with some troubleshooting. Here’s the MS guide to setup the entra application.

Authenticate an IMAP, POP or SMTP connection using OAuth | Microsoft Learn

 

Regards,

Damith


Forum|alt.badge.img+12
  • Hero (Customer)
  • 262 replies
  • March 18, 2025

Does anyone have any more information on the exact flow to follow to set up either client credentials or authorization code with mail senders in Cloud ?

 

I found a document done by ​@Krzysztof Ryszkowski  on 

 

But it doesn’t really help me as I have some outstanding questions.

 

For Instance, if we want to use the Authorization Code flow, the document says that the Redirect URI is mandatory when configuring the App on the Azure Portal, but I don’t know what that redirect URI would be ?

 

When you setup an IDP Provider in Cloud, it does provide you with the redirect URI

 

 

But it does not provide you one when you try and set up a Mail Sender.

 

Should I simply use the same App / Endpoints as my IDP ones? When I log in with SSO, obviously I get asked for my email/password/2FA Auth Challenge, but this can’t be right for a mail account as the Mail Sender config doesn’t actually let you register a password when you switch the Authentication Type to either Authorization Code or Client Credentials ?

 

It also says that the “user” should be the user that created the app registration in azure, but that seems very weird ? So if one of my IT staff Registers the Azure App I need to use their own email in the User field ?!

 

Any input appreciated

 

 


Forum|alt.badge.img+12
  • Hero (Customer)
  • 262 replies
  • March 19, 2025

Ok so I did end up managing to configure this in Cloud using Client Submission (not Authorization code), following roughly the steps outlined by ​@Krzysztof Ryszkowski.

 

I did do the powershell steps, I don’t know if they were actually required or not, but I think they are required to basically link the registered azure application to a particular mailbox so that only that mailbox can authenticate using that App (or rather, so that IFS when contacting O365 through App oAuth Authentication is allowed to open that particular mailbox to send emails from)

 

In short:

  1. Register App In Azure with all required permissions (I used IMAP/POP/SMTP, not sure if IMAP/POP are required, but just followed the steps above). No need for a redirect URI at least when using Client Submission
     
  2. Create Client Secret, and make sure to keep the Secret Value to input in IFS Later
     
  3. Get the Token Endpoint ID for your tenant to input in IFS Later
     
  4. Run Powershell scripts detailed by ​@Krzysztof Ryszkowski  to create service principal and link service principal to the mailbox you want to use to send emails from (typically something like noreply@<yourcompany>.com or any equivalent)
     
  5. Create your MAIL_SENDER as follows:
     
    You might need to figure out which host and port to use. For me, smtp.office365.com worked,  smtp-mail.outlook.com  did not.

    Here, the “user” and “default mail sender” are the same, and they are my dedicated email account used to send emails from ifs (like I said above, something along the lines of noreply@<yourcompanydomain>.com.


    The Client ID is the Azure App ID, which you get in the App details in Azure. It is NOT the Secret ID

    The Client Secret is the Secret VALUE you get in the Secret Details for the App in Azure. It is NOT the Secret ID

    The Access Token URL is the Token Endpoint Url for our Tenant
     

 

This has worked and my Cloud Instance now manages to send Emails through our MS O365 Corporate Account using oAuth with Client Submission

 


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings