Mailbox access using OAuth2 ?

Skip to first unread message

Sep 16, 2022, 3:35:57 PMSep 16
to WildFly

Microsoft announced to disable basic authentication (username + password) in favor of modern authentication using OAuth2.
At least one of our customers is using Wildfly 10 with IMAP configured to access a postbox hosted on Office365. Others only use SMTP for sending mails which will further support Basic Authentication.
Jakarta Mail / Java Mail supports OAuth2:

How could IMAP work integrated in Wildfly 10 ff ?

Tomaž Cerar

Sep 17, 2022, 6:14:34 AMSep 17
to, WildFly

you should be able to configure that by using "custom" session type in configuration of mail subsystem.
This allows you to specify all the javamail properties directly, see


You received this message because you are subscribed to the Google Groups "WildFly" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
To view this discussion on the web visit
Reply all
Reply to author
0 new messages