We currently have an application that uses IMAP/POP3 to access mail in O365; however, Microsoft has determined that they will no longer be allowing basic authentication. By do this, the application does not have the inability to use modern auth to access the mail in O365. So I am forced to build a postfix/dovecot mail server, that I'd like to use fetchmail to pull the mail from O365 into the new mail server so the application can access the mail. So my question, does fetchmail have this ability to use modern auth to poll the mail in O365 using IMAP/POP3, and if not, can anyone guide me to one that can?
Thanks
Update
When running fetchmail the follwoing error I get,
fetchmail: IMAP< A0001 OK CAPABILITY completed fetchmail: IMAP> A0002 LOGIN "[email protected]" * fetchmail: IMAP< A0002 NO LOGIN failed fetchmail: Authorization failure on [email protected]@localhost fetchmail: For help, see http://www.fetchmail.info/fetchmail-FAQ.html#R15 fetchmail: IMAP> A0003 LOGOUT fetchmail: IMAP< * BYE Closing connection fetchmail: IMAP< A0003 OK LOGOUT completed Checking davmail log I'm getting the following,though not sure why I'm running into this issue.
2020-10-21 13:37:50,916 DEBUG [ImapConnection-42868] davmail - < LOGIN ******** 2020-10-21 13:37:50,917 WARN [ImapConnection-42868] davmail.exchange.ExchangeSession - All network interfaces down or host unreachable ! 2020-10-21 13:37:50,918 DEBUG [ImapConnection-42868] davmail.exchange.ExchangeSession - java.lang.ClassNotFoundException: davmail.exchange.auth.O365InteractiveAuthenticator java.lang.ClassNotFoundException: davmail.exchange.auth.O365InteractiveAuthenticator at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:581) at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178) at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522) at java.base/java.lang.Class.forName0(Native Method) at java.base/java.lang.Class.forName(Class.java:315) at davmail.exchange.ExchangeSessionFactory.getInstance(ExchangeSessionFactory.java:180) at davmail.exchange.ExchangeSessionFactory.getInstance(ExchangeSessionFactory.java:95) at davmail.imap.ImapConnection.run(ImapConnection.java:113) 2020-10-21 13:37:50,920 INFO [ImapConnection-42868] davmail.connection - FAILED - 0:0:0:0:0:0:0:1:42868 [email protected]