8 Nov 2017 We are facing issues to connect to the Office365 mailbox from java class on/from DB server(Oracle 11.2.0.4.0).The following error is thrown. javax.mail. AuthenticationFailedException: LOGIN failed. at com.sun.mail.imap..