Sage X3 SMTP email relay for Microsoft customers

Context: 

- Microsoft document reference from 2021: https://techcommunity.microsoft.com/t5/exchange-team-blog/basic-authentication-and-exchange-online-september-2021-update/ba-p/2772210

- The sender email in Sage X3 must be similar to the sender email as used in SMTP relay. As per: https://www.sagecity.com/us/sage_erp_x3/f/sage-x3-general-discussion-forum/187893/using-outlook-wrt-new-email-client-for-sage-x3-workflow-notifications-post , the new notification server in Sage X3 v12p30 Administration module seems to be unusable and I need to go back to the old SMTP relay way with Entry point ZAWRKMEL with the script from: www.sagecity.com/.../how-to-change-sender-email-address-in-workflows

So uh, anyone got any idea how to use the Modern Authentication OAuth2 for SMTP relay when using Microsoft accounts as sender email?