O365 attempting to use fetchmail to poll emails to local postfix/dovecot mails server
1
vote
1
answer
2510
views
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 A0002 LOGIN "tst@domain.com" *
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 tst@domain.com
Asked by helpo11
(21 rep)
Oct 20, 2020, 04:00 PM
Last activity: Oct 21, 2020, 05:48 PM
Last activity: Oct 21, 2020, 05:48 PM