Jenkins email notifications using Outlook SMTP with OAuth (Modern Authentication)

Hi Everone,
I’m looking for guidance on configuring Jenkins email notifications using Outlook SMTP with OAuth (Modern Authentication).

One of my clients uses Outlook SMTP with OAuth-based authentication instead of basic username/password. They authenticate using an OAuth access token, which (as far as I understand) expires after a specific time period and needs to be refreshed.

My requirement is to:

Configure SMTP credentials in Jenkins

Use Outlook SMTP with OAuth (Modern Auth)

Send email notifications with file attachments from Jenkins jobs

I have a few questions:

Is it possible to use Outlook SMTP OAuth authentication with Jenkins?

Are there any Jenkins plugins that support OAuth-based SMTP authentication for Outlook?

Are there any official docs or working examples for setting this up?

Any suggestions, documentation, or best practices would be really helpful.

This is not currently possible. I am in the progress of trying to add OAuth support (with client credentials flow) to email-ext, but it is a work in progress.

Thanks for Update @slide_o_mix

Is possible to mask using a postfix relay inside the VM of Jenkins?