mguessan / davmail

DavMail POP/IMAP/SMTP/Caldav/Carddav/LDAP Exchange and Office 365 Gateway - Synced with main subversion repository at
http://davmail.sourceforge.net
GNU General Public License v2.0
572 stars 82 forks source link

java.lang.ClassNotFoundException: davmail.exchange.auth.O365InteractiveAuthenticator #274

Open toomasaas opened 1 year ago

toomasaas commented 1 year ago

I upgraded davmail from 6.0.1 to 6.1.0 on my Linux machine. Davmail is installed from zip package (davmail-6.1.0-3422.zip).

After installation, I ran ./davmail azul in the unpacked new davmail directory to install the Azul JDK.

I have davmail configured to use O365Interactive authentication.

Launched the new version of davmail, and after that Mozilla Thunderbird.

Davmail does not open the O365 login window as the previous version used to do. Instead Thunderbird keeps prompting me for a password.

In davmail.log I see the following errors:

2023-03-21 18:17:13,651 WARN  [ImapConnection-38380] davmail.exchange.ExchangeSession  - All network interfaces down or host unreachable !
2023-03-21 18:17:13,651 DEBUG [ImapConnection-38380] 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(Unknown Source)
    at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(Unknown Source)
    at java.base/java.lang.ClassLoader.loadClass(Unknown Source)
    at java.base/java.lang.Class.forName0(Native Method)
    at java.base/java.lang.Class.forName(Unknown Source)
    at davmail.exchange.ExchangeSessionFactory.getInstance(ExchangeSessionFactory.java:178)
    at davmail.exchange.ExchangeSessionFactory.getInstance(ExchangeSessionFactory.java:97)
    at davmail.imap.ImapConnection.run(ImapConnection.java:155)

Obviously I verified that "all network interfaces down" is not correct. As soon as I revert to previous version of davmail, everything works as expected.

Also, I can successfully connect to https://outlook.office365.com with browser.

Full log is attached: davmail.log.test1.txt

s-p-turner commented 1 year ago

Fwiw I also encountered the same issue after upgrading. I switched to O365 Modern and that worked around the issue for me. Obviously I would of course be interested if the O365 Interactive issue is properly resolved.

monagai commented 1 year ago

Maybe same issue? After updating Davmail from 6.0.1 to 6.1.0, Davmail does not work. So, I contiue using 6.0.1.

Here is my Davmail 6.1.0 log.

2023-03-23 08:51:42,771 DEBUG [main] davmail.DavGateway  - Start DavMail in GUI mode
2023-03-23 08:51:43,636 DEBUG [main] davmail  - OS Name: Mac OS X Java version: 16.0.2 64 System tray supported 
2023-03-23 08:51:43,637 INFO  [main] davmail  - O365Interactive is not compatible with SWT, do not try to create SWT tray
2023-03-23 08:51:44,769 INFO  [main] davmail  - DavMail Gateway 6.1.0-3422 listening on SMTP port 1025 POP port 1110 IMAP port 1143 CALDAV port 1080 LDAP port 1389 
2023-03-23 08:51:47,031 DEBUG [CheckRelease] davmail.http.HttpClientAdapter  - GET https://davmail.sourceforge.net/version.txt
2023-03-23 08:51:47,072 DEBUG [CheckRelease] org.apache.http.client.protocol.RequestAddCookies  - CookieSpec selected: default
2023-03-23 08:51:47,114 DEBUG [CheckRelease] org.apache.http.client.protocol.RequestAuthCache  - Auth cache not set in the context
2023-03-23 08:51:47,115 DEBUG [CheckRelease] org.apache.http.impl.conn.BasicHttpClientConnectionManager  - Get connection for route {s}->https://davmail.sourceforge.net:443
2023-03-23 08:51:47,166 DEBUG [CheckRelease] org.apache.http.impl.conn.DefaultManagedHttpClientConnection  - http-outgoing-0: set socket timeout to 0
2023-03-23 08:51:47,167 DEBUG [CheckRelease] org.apache.http.impl.execchain.MainClientExec  - Opening connection {s}->https://davmail.sourceforge.net:443
2023-03-23 08:51:47,302 DEBUG [CheckRelease] org.apache.http.impl.conn.DefaultHttpClientConnectionOperator  - Connecting to davmail.sourceforge.net/xxx.xxx.xxx.xxx:443
2023-03-23 08:51:47,302 DEBUG [CheckRelease] org.apache.http.conn.ssl.SSLConnectionSocketFactory  - Connecting socket to davmail.sourceforge.net/xxx.xxx.xxx.xxx:443 with timeout 10000
2023-03-23 08:51:47,321 DEBUG [CheckRelease] davmail.http.DavGatewaySSLSocketFactory  - createSocket davmail.sourceforge.net 443
2023-03-23 08:51:50,388 DEBUG [CheckRelease] org.apache.http.conn.ssl.SSLConnectionSocketFactory  - Enabled protocols: [TLSv1, TLSv1.1, TLSv1.2]
2023-03-23 08:51:50,389 DEBUG [CheckRelease] org.apache.http.conn.ssl.SSLConnectionSocketFactory  - Enabled cipher suites:[TLS_AES_256_GCM_SHA384, TLS_AES_128_GCM_SHA256, TLS_CHACHA20_POLY1305_SHA256, TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384, TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256, TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305_SHA256, TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384, TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256, TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256, TLS_DHE_RSA_WITH_AES_256_GCM_SHA384, TLS_DHE_RSA_WITH_CHACHA20_POLY1305_SHA256, TLS_DHE_DSS_WITH_AES_256_GCM_SHA384, TLS_DHE_RSA_WITH_AES_128_GCM_SHA256, TLS_DHE_DSS_WITH_AES_128_GCM_SHA256, TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA384, TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384, TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256, TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256, TLS_DHE_RSA_WITH_AES_256_CBC_SHA256, TLS_DHE_DSS_WITH_AES_256_CBC_SHA256, TLS_DHE_RSA_WITH_AES_128_CBC_SHA256, TLS_DHE_DSS_WITH_AES_128_CBC_SHA256, TLS_ECDH_ECDSA_WITH_AES_256_GCM_SHA384, TLS_ECDH_RSA_WITH_AES_256_GCM_SHA384, TLS_ECDH_ECDSA_WITH_AES_128_GCM_SHA256, TLS_ECDH_RSA_WITH_AES_128_GCM_SHA256, TLS_ECDH_ECDSA_WITH_AES_256_CBC_SHA384, TLS_ECDH_RSA_WITH_AES_256_CBC_SHA384, TLS_ECDH_ECDSA_WITH_AES_128_CBC_SHA256, TLS_ECDH_RSA_WITH_AES_128_CBC_SHA256, TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA, TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA, TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA, TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA, TLS_DHE_RSA_WITH_AES_256_CBC_SHA, TLS_DHE_DSS_WITH_AES_256_CBC_SHA, TLS_DHE_RSA_WITH_AES_128_CBC_SHA, TLS_DHE_DSS_WITH_AES_128_CBC_SHA, TLS_ECDH_ECDSA_WITH_AES_256_CBC_SHA, TLS_ECDH_RSA_WITH_AES_256_CBC_SHA, TLS_ECDH_ECDSA_WITH_AES_128_CBC_SHA, TLS_ECDH_RSA_WITH_AES_128_CBC_SHA, TLS_RSA_WITH_AES_256_GCM_SHA384, TLS_RSA_WITH_AES_128_GCM_SHA256, TLS_RSA_WITH_AES_256_CBC_SHA256, TLS_RSA_WITH_AES_128_CBC_SHA256, TLS_RSA_WITH_AES_256_CBC_SHA, TLS_RSA_WITH_AES_128_CBC_SHA, TLS_EMPTY_RENEGOTIATION_INFO_SCSV]
2023-03-23 08:51:50,389 DEBUG [CheckRelease] org.apache.http.conn.ssl.SSLConnectionSocketFactory  - Starting handshake
2023-03-23 08:51:51,674 DEBUG [CheckRelease] org.apache.http.conn.ssl.SSLConnectionSocketFactory  - Secure session established
2023-03-23 08:51:51,674 DEBUG [CheckRelease] org.apache.http.conn.ssl.SSLConnectionSocketFactory  -  negotiated protocol: TLSv1.2
2023-03-23 08:51:51,674 DEBUG [CheckRelease] org.apache.http.conn.ssl.SSLConnectionSocketFactory  -  negotiated cipher suite: TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256
2023-03-23 08:51:51,674 DEBUG [CheckRelease] org.apache.http.conn.ssl.SSLConnectionSocketFactory  -  peer principal: CN=sourceforge.net, O="Cloudflare, Inc.", L=San Francisco, ST=California, C=US
2023-03-23 08:51:51,674 DEBUG [CheckRelease] org.apache.http.conn.ssl.SSLConnectionSocketFactory  -  peer alternative names: [sourceforge.net, *.sourceforge.net]
2023-03-23 08:51:51,674 DEBUG [CheckRelease] org.apache.http.conn.ssl.SSLConnectionSocketFactory  -  issuer principal: CN=Cloudflare Inc ECC CA-3, O="Cloudflare, Inc.", C=US
2023-03-23 08:51:51,761 DEBUG [CheckRelease] org.apache.http.impl.conn.DefaultHttpClientConnectionOperator  - Connection established xxx.xxx.xx.xxx:51707<->xxx.xx.xx.xxx:443
2023-03-23 08:51:51,761 DEBUG [CheckRelease] org.apache.http.impl.conn.DefaultManagedHttpClientConnection  - http-outgoing-0: set socket timeout to 120000
2023-03-23 08:51:51,761 DEBUG [CheckRelease] org.apache.http.impl.execchain.MainClientExec  - Executing request GET /version.txt HTTP/1.1
2023-03-23 08:51:51,761 DEBUG [CheckRelease] org.apache.http.impl.execchain.MainClientExec  - Target auth state: UNCHALLENGED
2023-03-23 08:51:51,762 DEBUG [CheckRelease] org.apache.http.impl.execchain.MainClientExec  - Proxy auth state: UNCHALLENGED
2023-03-23 08:51:51,803 DEBUG [CheckRelease] org.apache.http.headers  - http-outgoing-0 >> GET /version.txt HTTP/1.1
2023-03-23 08:51:51,804 DEBUG [CheckRelease] org.apache.http.headers  - http-outgoing-0 >> Host: davmail.sourceforge.net
2023-03-23 08:51:51,804 DEBUG [CheckRelease] org.apache.http.headers  - http-outgoing-0 >> Connection: Keep-Alive
2023-03-23 08:51:51,804 DEBUG [CheckRelease] org.apache.http.headers  - http-outgoing-0 >> User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.93 Safari/537.36 Edg/90.0.818.49
2023-03-23 08:51:51,804 DEBUG [CheckRelease] org.apache.http.headers  - http-outgoing-0 >> Accept-Encoding: gzip,deflate
2023-03-23 08:51:51,804 DEBUG [CheckRelease] org.apache.http.wire  - http-outgoing-0 >> "GET /version.txt HTTP/1.1[\r][\n]"
2023-03-23 08:51:51,804 DEBUG [CheckRelease] org.apache.http.wire  - http-outgoing-0 >> "Host: davmail.sourceforge.net[\r][\n]"
2023-03-23 08:51:51,804 DEBUG [CheckRelease] org.apache.http.wire  - http-outgoing-0 >> "Connection: Keep-Alive[\r][\n]"
2023-03-23 08:51:51,804 DEBUG [CheckRelease] org.apache.http.wire  - http-outgoing-0 >> "User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.93 Safari/537.36 Edg/90.0.818.49[\r][\n]"
2023-03-23 08:51:51,804 DEBUG [CheckRelease] org.apache.http.wire  - http-outgoing-0 >> "Accept-Encoding: gzip,deflate[\r][\n]"
2023-03-23 08:51:51,804 DEBUG [CheckRelease] org.apache.http.wire  - http-outgoing-0 >> "[\r][\n]"
2023-03-23 08:51:52,048 DEBUG [CheckRelease] org.apache.http.wire  - http-outgoing-0 << "HTTP/1.1 200 OK[\r][\n]"
2023-03-23 08:51:52,048 DEBUG [CheckRelease] org.apache.http.wire  - http-outgoing-0 << "Date: Wed, 22 Mar 2023 23:51:52 GMT[\r][\n]"
2023-03-23 08:51:52,048 DEBUG [CheckRelease] org.apache.http.wire  - http-outgoing-0 << "Content-Type: text/plain[\r][\n]"
2023-03-23 08:51:52,048 DEBUG [CheckRelease] org.apache.http.wire  - http-outgoing-0 << "Content-Length: 10[\r][\n]"
2023-03-23 08:51:52,048 DEBUG [CheckRelease] org.apache.http.wire  - http-outgoing-0 << "Connection: keep-alive[\r][\n]"
2023-03-23 08:51:52,048 DEBUG [CheckRelease] org.apache.http.wire  - http-outgoing-0 << "Vary: Host[\r][\n]"
2023-03-23 08:51:52,049 DEBUG [CheckRelease] org.apache.http.wire  - http-outgoing-0 << "Vary: Accept-Encoding[\r][\n]"
2023-03-23 08:51:52,049 DEBUG [CheckRelease] org.apache.http.wire  - http-outgoing-0 << "Last-Modified: Sun, 19 Mar 2023 17:06:30 GMT[\r][\n]"
2023-03-23 08:51:52,049 DEBUG [CheckRelease] org.apache.http.wire  - http-outgoing-0 << "ETag: "a-5f743d4e37fff"[\r][\n]"
2023-03-23 08:51:52,049 DEBUG [CheckRelease] org.apache.http.wire  - http-outgoing-0 << "Cache-Control: max-age=3600[\r][\n]"
2023-03-23 08:51:52,049 DEBUG [CheckRelease] org.apache.http.wire  - http-outgoing-0 << "Expires: Sun, 19 Mar 2023 18:54:36 GMT[\r][\n]"
2023-03-23 08:51:52,049 DEBUG [CheckRelease] org.apache.http.wire  - http-outgoing-0 << "X-From: sfp-web-2[\r][\n]"
2023-03-23 08:51:52,049 DEBUG [CheckRelease] org.apache.http.wire  - http-outgoing-0 << "Accept-Ranges: bytes[\r][\n]"
2023-03-23 08:51:52,049 DEBUG [CheckRelease] org.apache.http.wire  - http-outgoing-0 << "CF-Cache-Status: DYNAMIC[\r][\n]"
2023-03-23 08:51:52,049 DEBUG [CheckRelease] org.apache.http.wire  - http-outgoing-0 << "Content-Security-Policy: upgrade-insecure-requests[\r][\n]"
2023-03-23 08:51:52,049 DEBUG [CheckRelease] org.apache.http.wire  - http-outgoing-0 << "Server: cloudflare[\r][\n]"
2023-03-23 08:51:52,049 DEBUG [CheckRelease] org.apache.http.wire  - http-outgoing-0 << "CF-RAY: 7ac258556ac625e4-NRT[\r][\n]"
2023-03-23 08:51:52,049 DEBUG [CheckRelease] org.apache.http.wire  - http-outgoing-0 << "alt-svc: h3=":443"; ma=86400, h3-29=":443"; ma=86400[\r][\n]"
2023-03-23 08:51:52,049 DEBUG [CheckRelease] org.apache.http.wire  - http-outgoing-0 << "[\r][\n]"
2023-03-23 08:51:52,049 DEBUG [CheckRelease] org.apache.http.wire  - http-outgoing-0 << "6.1.0-3422"
2023-03-23 08:51:52,099 DEBUG [CheckRelease] org.apache.http.headers  - http-outgoing-0 << HTTP/1.1 200 OK
2023-03-23 08:51:52,099 DEBUG [CheckRelease] org.apache.http.headers  - http-outgoing-0 << Date: Wed, 22 Mar 2023 23:51:52 GMT
2023-03-23 08:51:52,099 DEBUG [CheckRelease] org.apache.http.headers  - http-outgoing-0 << Content-Type: text/plain
2023-03-23 08:51:52,099 DEBUG [CheckRelease] org.apache.http.headers  - http-outgoing-0 << Content-Length: 10
2023-03-23 08:51:52,099 DEBUG [CheckRelease] org.apache.http.headers  - http-outgoing-0 << Connection: keep-alive
2023-03-23 08:51:52,099 DEBUG [CheckRelease] org.apache.http.headers  - http-outgoing-0 << Vary: Host
2023-03-23 08:51:52,099 DEBUG [CheckRelease] org.apache.http.headers  - http-outgoing-0 << Vary: Accept-Encoding
2023-03-23 08:51:52,099 DEBUG [CheckRelease] org.apache.http.headers  - http-outgoing-0 << Last-Modified: Sun, 19 Mar 2023 17:06:30 GMT
2023-03-23 08:51:52,099 DEBUG [CheckRelease] org.apache.http.headers  - http-outgoing-0 << ETag: "a-5f743d4e37fff"
2023-03-23 08:51:52,099 DEBUG [CheckRelease] org.apache.http.headers  - http-outgoing-0 << Cache-Control: max-age=3600
2023-03-23 08:51:52,099 DEBUG [CheckRelease] org.apache.http.headers  - http-outgoing-0 << Expires: Sun, 19 Mar 2023 18:54:36 GMT
2023-03-23 08:51:52,099 DEBUG [CheckRelease] org.apache.http.headers  - http-outgoing-0 << X-From: sfp-web-2
2023-03-23 08:51:52,099 DEBUG [CheckRelease] org.apache.http.headers  - http-outgoing-0 << Accept-Ranges: bytes
2023-03-23 08:51:52,099 DEBUG [CheckRelease] org.apache.http.headers  - http-outgoing-0 << CF-Cache-Status: DYNAMIC
2023-03-23 08:51:52,099 DEBUG [CheckRelease] org.apache.http.headers  - http-outgoing-0 << Content-Security-Policy: upgrade-insecure-requests
2023-03-23 08:51:52,099 DEBUG [CheckRelease] org.apache.http.headers  - http-outgoing-0 << Server: cloudflare
2023-03-23 08:51:52,099 DEBUG [CheckRelease] org.apache.http.headers  - http-outgoing-0 << CF-RAY: 7ac258556ac625e4-NRT
2023-03-23 08:51:52,099 DEBUG [CheckRelease] org.apache.http.headers  - http-outgoing-0 << alt-svc: h3=":443"; ma=86400, h3-29=":443"; ma=86400
2023-03-23 08:51:52,143 DEBUG [CheckRelease] org.apache.http.impl.execchain.MainClientExec  - Connection can be kept alive indefinitely
2023-03-23 08:51:52,195 DEBUG [CheckRelease] org.apache.http.impl.conn.BasicHttpClientConnectionManager  - Releasing connection xxx.xxx.xxx.xxx:51707<->xxx.xx.xxx.xxx:443
2023-03-23 08:51:52,195 DEBUG [CheckRelease] org.apache.http.impl.conn.DefaultManagedHttpClientConnection  - http-outgoing-0: set socket timeout to 0
2023-03-23 08:51:52,195 DEBUG [CheckRelease] org.apache.http.impl.conn.BasicHttpClientConnectionManager  - Connection can be kept alive indefinitely
2023-03-23 08:51:52,195 DEBUG [CheckRelease] davmail.DavGateway  - DavMail released version: 6.1.0-3422
2023-03-23 08:51:52,195 DEBUG [CheckRelease] org.apache.http.impl.conn.BasicHttpClientConnectionManager  - Closing connection
2023-03-23 08:51:52,195 DEBUG [CheckRelease] org.apache.http.impl.conn.DefaultManagedHttpClientConnection  - http-outgoing-0: Close connection
2023-03-23 08:51:57,551 DEBUG [davmail.pop.PopServer] davmail  - Connection from /0:0:0:0:0:0:0:1 on port 1110
2023-03-23 08:51:57,553 INFO  [davmail.pop.PopServer] davmail.connection  - CONNECT - 0:0:0:0:0:0:0:1:51730 
2023-03-23 08:51:57,612 DEBUG [PopConnection-51730] org.apache.http.client.protocol.RequestAddCookies  - CookieSpec selected: default
2023-03-23 08:51:57,612 DEBUG [PopConnection-51730] org.apache.http.client.protocol.RequestAuthCache  - Auth cache not set in the context
2023-03-23 08:51:57,612 DEBUG [PopConnection-51730] org.apache.http.impl.conn.BasicHttpClientConnectionManager  - Get connection for route {s}->https://outlook.office365.com:443
2023-03-23 08:51:57,612 DEBUG [PopConnection-51730] org.apache.http.impl.conn.DefaultManagedHttpClientConnection  - http-outgoing-1: set socket timeout to 0
2023-03-23 08:51:57,612 DEBUG [PopConnection-51730] org.apache.http.impl.execchain.MainClientExec  - Opening connection {s}->https://outlook.office365.com:443
2023-03-23 08:51:57,632 DEBUG [PopConnection-51730] org.apache.http.impl.conn.DefaultHttpClientConnectionOperator  - Connecting to outlook.office365.com/40.99.58.130:443
2023-03-23 08:51:57,632 DEBUG [PopConnection-51730] org.apache.http.conn.ssl.SSLConnectionSocketFactory  - Connecting socket to outlook.office365.com/40.99.58.130:443 with timeout 10000
2023-03-23 08:51:57,652 DEBUG [PopConnection-51730] davmail.http.DavGatewaySSLSocketFactory  - createSocket outlook.office365.com 443
2023-03-23 08:51:57,652 DEBUG [PopConnection-51730] org.apache.http.conn.ssl.SSLConnectionSocketFactory  - Enabled protocols: [TLSv1, TLSv1.1, TLSv1.2]
2023-03-23 08:51:57,652 DEBUG [PopConnection-51730] org.apache.http.conn.ssl.SSLConnectionSocketFactory  - Enabled cipher suites:[TLS_AES_256_GCM_SHA384, TLS_AES_128_GCM_SHA256, TLS_CHACHA20_POLY1305_SHA256, TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384, TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256, TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305_SHA256, TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384, TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256, TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256, TLS_DHE_RSA_WITH_AES_256_GCM_SHA384, TLS_DHE_RSA_WITH_CHACHA20_POLY1305_SHA256, TLS_DHE_DSS_WITH_AES_256_GCM_SHA384, TLS_DHE_RSA_WITH_AES_128_GCM_SHA256, TLS_DHE_DSS_WITH_AES_128_GCM_SHA256, TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA384, TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384, TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256, TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256, TLS_DHE_RSA_WITH_AES_256_CBC_SHA256, TLS_DHE_DSS_WITH_AES_256_CBC_SHA256, TLS_DHE_RSA_WITH_AES_128_CBC_SHA256, TLS_DHE_DSS_WITH_AES_128_CBC_SHA256, TLS_ECDH_ECDSA_WITH_AES_256_GCM_SHA384, TLS_ECDH_RSA_WITH_AES_256_GCM_SHA384, TLS_ECDH_ECDSA_WITH_AES_128_GCM_SHA256, TLS_ECDH_RSA_WITH_AES_128_GCM_SHA256, TLS_ECDH_ECDSA_WITH_AES_256_CBC_SHA384, TLS_ECDH_RSA_WITH_AES_256_CBC_SHA384, TLS_ECDH_ECDSA_WITH_AES_128_CBC_SHA256, TLS_ECDH_RSA_WITH_AES_128_CBC_SHA256, TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA, TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA, TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA, TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA, TLS_DHE_RSA_WITH_AES_256_CBC_SHA, TLS_DHE_DSS_WITH_AES_256_CBC_SHA, TLS_DHE_RSA_WITH_AES_128_CBC_SHA, TLS_DHE_DSS_WITH_AES_128_CBC_SHA, TLS_ECDH_ECDSA_WITH_AES_256_CBC_SHA, TLS_ECDH_RSA_WITH_AES_256_CBC_SHA, TLS_ECDH_ECDSA_WITH_AES_128_CBC_SHA, TLS_ECDH_RSA_WITH_AES_128_CBC_SHA, TLS_RSA_WITH_AES_256_GCM_SHA384, TLS_RSA_WITH_AES_128_GCM_SHA256, TLS_RSA_WITH_AES_256_CBC_SHA256, TLS_RSA_WITH_AES_128_CBC_SHA256, TLS_RSA_WITH_AES_256_CBC_SHA, TLS_RSA_WITH_AES_128_CBC_SHA, TLS_EMPTY_RENEGOTIATION_INFO_SCSV]
2023-03-23 08:51:57,653 DEBUG [PopConnection-51730] org.apache.http.conn.ssl.SSLConnectionSocketFactory  - Starting handshake
2023-03-23 08:51:57,747 DEBUG [PopConnection-51730] org.apache.http.conn.ssl.SSLConnectionSocketFactory  - Secure session established
2023-03-23 08:51:57,747 DEBUG [PopConnection-51730] org.apache.http.conn.ssl.SSLConnectionSocketFactory  -  negotiated protocol: TLSv1.2
2023-03-23 08:51:57,747 DEBUG [PopConnection-51730] org.apache.http.conn.ssl.SSLConnectionSocketFactory  -  negotiated cipher suite: TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384
2023-03-23 08:51:57,747 DEBUG [PopConnection-51730] org.apache.http.conn.ssl.SSLConnectionSocketFactory  -  peer principal: CN=outlook.com, O=Microsoft Corporation, L=Redmond, ST=Washington, C=US
2023-03-23 08:51:57,747 DEBUG [PopConnection-51730] org.apache.http.conn.ssl.SSLConnectionSocketFactory  -  peer alternative names: [*.clo.footprintdns.com, *.hotmail.com, *.internal.outlook.com, *.live.com, *.nrb.footprintdns.com, *.office.com, *.office365.com, *.outlook.com, *.outlook.office365.com, attachment.outlook.live.net, attachment.outlook.office.net, attachment.outlook.officeppe.net, attachments.office.net, attachments-sdf.office.net, ccs.login.microsoftonline.com, ccs-sdf.login.microsoftonline.com, hotmail.com, mail.services.live.com, office365.com, outlook.com, outlook.office.com, substrate.office.com, substrate-sdf.office.com]
2023-03-23 08:51:57,747 DEBUG [PopConnection-51730] org.apache.http.conn.ssl.SSLConnectionSocketFactory  -  issuer principal: CN=DigiCert Cloud Services CA-1, O=DigiCert Inc, C=US
2023-03-23 08:51:57,748 DEBUG [PopConnection-51730] org.apache.http.impl.conn.DefaultHttpClientConnectionOperator  - Connection established xxx.xxx.xxx.xxx:51731<->xxx.xxx.xxx.xxx:443
2023-03-23 08:51:57,748 DEBUG [PopConnection-51730] org.apache.http.impl.conn.DefaultManagedHttpClientConnection  - http-outgoing-1: set socket timeout to 120000
2023-03-23 08:51:57,748 DEBUG [PopConnection-51730] org.apache.http.impl.execchain.MainClientExec  - Executing request GET /EWS/Exchange.asmx HTTP/1.1
2023-03-23 08:51:57,748 DEBUG [PopConnection-51730] org.apache.http.impl.execchain.MainClientExec  - Target auth state: UNCHALLENGED
2023-03-23 08:51:57,748 DEBUG [PopConnection-51730] org.apache.http.impl.execchain.MainClientExec  - Proxy auth state: UNCHALLENGED
2023-03-23 08:51:57,748 DEBUG [PopConnection-51730] org.apache.http.headers  - http-outgoing-1 >> GET /EWS/Exchange.asmx HTTP/1.1
2023-03-23 08:51:57,748 DEBUG [PopConnection-51730] org.apache.http.headers  - http-outgoing-1 >> Host: outlook.office365.com
2023-03-23 08:51:57,748 DEBUG [PopConnection-51730] org.apache.http.headers  - http-outgoing-1 >> Connection: Keep-Alive
2023-03-23 08:51:57,748 DEBUG [PopConnection-51730] org.apache.http.headers  - http-outgoing-1 >> User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.93 Safari/537.36 Edg/90.0.818.49
2023-03-23 08:51:57,748 DEBUG [PopConnection-51730] org.apache.http.headers  - http-outgoing-1 >> Accept-Encoding: gzip,deflate
2023-03-23 08:51:57,748 DEBUG [PopConnection-51730] org.apache.http.wire  - http-outgoing-1 >> "GET /EWS/Exchange.asmx HTTP/1.1[\r][\n]"
2023-03-23 08:51:57,748 DEBUG [PopConnection-51730] org.apache.http.wire  - http-outgoing-1 >> "Host: outlook.office365.com[\r][\n]"
2023-03-23 08:51:57,748 DEBUG [PopConnection-51730] org.apache.http.wire  - http-outgoing-1 >> "Connection: Keep-Alive[\r][\n]"
2023-03-23 08:51:57,748 DEBUG [PopConnection-51730] org.apache.http.wire  - http-outgoing-1 >> "User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.93 Safari/537.36 Edg/90.0.818.49[\r][\n]"
2023-03-23 08:51:57,748 DEBUG [PopConnection-51730] org.apache.http.wire  - http-outgoing-1 >> "Accept-Encoding: gzip,deflate[\r][\n]"
2023-03-23 08:51:57,748 DEBUG [PopConnection-51730] org.apache.http.wire  - http-outgoing-1 >> "[\r][\n]"
2023-03-23 08:51:57,782 DEBUG [PopConnection-51730] org.apache.http.wire  - http-outgoing-1 << "HTTP/1.1 401 Unauthorized[\r][\n]"
2023-03-23 08:51:57,782 DEBUG [PopConnection-51730] org.apache.http.wire  - http-outgoing-1 << "Server: Microsoft-IIS/10.0[\r][\n]"
2023-03-23 08:51:57,782 DEBUG [PopConnection-51730] org.apache.http.wire  - http-outgoing-1 << "request-id: 505fb45d-de3b-fde5-70bd-1f59b791f37e[\r][\n]"
2023-03-23 08:51:57,782 DEBUG [PopConnection-51730] org.apache.http.wire  - http-outgoing-1 << "Alt-Svc: h3=":443",h3-29=":443"[\r][\n]"
2023-03-23 08:51:57,782 DEBUG [PopConnection-51730] org.apache.http.wire  - http-outgoing-1 << "X-WSSecurity-Enabled: True[\r][\n]"
2023-03-23 08:51:57,782 DEBUG [PopConnection-51730] org.apache.http.wire  - http-outgoing-1 << "X-WSSecurity-For: Logon[\r][\n]"
2023-03-23 08:51:57,782 DEBUG [PopConnection-51730] org.apache.http.wire  - http-outgoing-1 << "X-FederationTrustTokenIssuerUri: urn:federation:MicrosoftOnline[\r][\n]"
2023-03-23 08:51:57,782 DEBUG [PopConnection-51730] org.apache.http.wire  - http-outgoing-1 << "X-WSSecurity-SymmetricKey-Enabled: True[\r][\n]"
2023-03-23 08:51:57,782 DEBUG [PopConnection-51730] org.apache.http.wire  - http-outgoing-1 << "X-WSSecurity-X509Cert-Enabled: True[\r][\n]"
2023-03-23 08:51:57,782 DEBUG [PopConnection-51730] org.apache.http.wire  - http-outgoing-1 << "X-OAuth-Enabled: True[\r][\n]"
2023-03-23 08:51:57,782 DEBUG [PopConnection-51730] org.apache.http.wire  - http-outgoing-1 << "X-FirstHopCafeEFZ: HND[\r][\n]"
2023-03-23 08:51:57,782 DEBUG [PopConnection-51730] org.apache.http.wire  - http-outgoing-1 << "X-FEProxyInfo: TYCP286CA0168.JPNP286.PROD.OUTLOOK.COM[\r][\n]"
2023-03-23 08:51:57,782 DEBUG [PopConnection-51730] org.apache.http.wire  - http-outgoing-1 << "X-FEEFZInfo: HND[\r][\n]"
2023-03-23 08:51:57,782 DEBUG [PopConnection-51730] org.apache.http.wire  - http-outgoing-1 << "X-Powered-By: ASP.NET[\r][\n]"
2023-03-23 08:51:57,782 DEBUG [PopConnection-51730] org.apache.http.wire  - http-outgoing-1 << "X-FEServer: TYCP286CA0168[\r][\n]"
2023-03-23 08:51:57,782 DEBUG [PopConnection-51730] org.apache.http.wire  - http-outgoing-1 << "WWW-Authenticate: Basic Realm=""[\r][\n]"
2023-03-23 08:51:57,782 DEBUG [PopConnection-51730] org.apache.http.wire  - http-outgoing-1 << "Date: Wed, 22 Mar 2023 23:51:57 GMT[\r][\n]"
2023-03-23 08:51:57,782 DEBUG [PopConnection-51730] org.apache.http.wire  - http-outgoing-1 << "Content-Length: 0[\r][\n]"
2023-03-23 08:51:57,782 DEBUG [PopConnection-51730] org.apache.http.wire  - http-outgoing-1 << "[\r][\n]"
2023-03-23 08:51:57,783 DEBUG [PopConnection-51730] org.apache.http.headers  - http-outgoing-1 << HTTP/1.1 401 Unauthorized
2023-03-23 08:51:57,783 DEBUG [PopConnection-51730] org.apache.http.headers  - http-outgoing-1 << Server: Microsoft-IIS/10.0
2023-03-23 08:51:57,783 DEBUG [PopConnection-51730] org.apache.http.headers  - http-outgoing-1 << request-id: 505fb45d-de3b-fde5-70bd-1f59b791f37e
2023-03-23 08:51:57,783 DEBUG [PopConnection-51730] org.apache.http.headers  - http-outgoing-1 << Alt-Svc: h3=":443",h3-29=":443"
2023-03-23 08:51:57,783 DEBUG [PopConnection-51730] org.apache.http.headers  - http-outgoing-1 << X-WSSecurity-Enabled: True
2023-03-23 08:51:57,783 DEBUG [PopConnection-51730] org.apache.http.headers  - http-outgoing-1 << X-WSSecurity-For: Logon
2023-03-23 08:51:57,783 DEBUG [PopConnection-51730] org.apache.http.headers  - http-outgoing-1 << X-FederationTrustTokenIssuerUri: urn:federation:MicrosoftOnline
2023-03-23 08:51:57,783 DEBUG [PopConnection-51730] org.apache.http.headers  - http-outgoing-1 << X-WSSecurity-SymmetricKey-Enabled: True
2023-03-23 08:51:57,783 DEBUG [PopConnection-51730] org.apache.http.headers  - http-outgoing-1 << X-WSSecurity-X509Cert-Enabled: True
2023-03-23 08:51:57,783 DEBUG [PopConnection-51730] org.apache.http.headers  - http-outgoing-1 << X-OAuth-Enabled: True
2023-03-23 08:51:57,783 DEBUG [PopConnection-51730] org.apache.http.headers  - http-outgoing-1 << X-FirstHopCafeEFZ: HND
2023-03-23 08:51:57,783 DEBUG [PopConnection-51730] org.apache.http.headers  - http-outgoing-1 << X-FEProxyInfo: TYCP286CA0168.JPNP286.PROD.OUTLOOK.COM
2023-03-23 08:51:57,783 DEBUG [PopConnection-51730] org.apache.http.headers  - http-outgoing-1 << X-FEEFZInfo: HND
2023-03-23 08:51:57,783 DEBUG [PopConnection-51730] org.apache.http.headers  - http-outgoing-1 << X-Powered-By: ASP.NET
2023-03-23 08:51:57,783 DEBUG [PopConnection-51730] org.apache.http.headers  - http-outgoing-1 << X-FEServer: TYCP286CA0168
2023-03-23 08:51:57,783 DEBUG [PopConnection-51730] org.apache.http.headers  - http-outgoing-1 << WWW-Authenticate: Basic Realm=""
2023-03-23 08:51:57,783 DEBUG [PopConnection-51730] org.apache.http.headers  - http-outgoing-1 << Date: Wed, 22 Mar 2023 23:51:57 GMT
2023-03-23 08:51:57,783 DEBUG [PopConnection-51730] org.apache.http.headers  - http-outgoing-1 << Content-Length: 0
2023-03-23 08:51:57,783 DEBUG [PopConnection-51730] org.apache.http.impl.execchain.MainClientExec  - Connection can be kept alive indefinitely
2023-03-23 08:51:57,783 DEBUG [PopConnection-51730] org.apache.http.impl.auth.HttpAuthenticator  - Authentication required
2023-03-23 08:51:57,783 DEBUG [PopConnection-51730] org.apache.http.impl.auth.HttpAuthenticator  - outlook.office365.com:443 requested authentication
2023-03-23 08:51:57,783 DEBUG [PopConnection-51730] org.apache.http.impl.client.TargetAuthenticationStrategy  - Authentication schemes in the order of preference: [Basic, NTLM, Digest]
2023-03-23 08:51:57,820 DEBUG [PopConnection-51730] org.apache.http.impl.client.TargetAuthenticationStrategy  - Challenge for NTLM authentication scheme not available
2023-03-23 08:51:57,820 DEBUG [PopConnection-51730] org.apache.http.impl.client.TargetAuthenticationStrategy  - Challenge for Digest authentication scheme not available
2023-03-23 08:51:57,820 DEBUG [PopConnection-51730] org.apache.http.impl.conn.BasicHttpClientConnectionManager  - Releasing connection xxx.xxx.xxx.xxx:51731<->xxx.xxx.xxx.xxx:443
2023-03-23 08:51:57,820 DEBUG [PopConnection-51730] org.apache.http.impl.conn.DefaultManagedHttpClientConnection  - http-outgoing-1: set socket timeout to 0
2023-03-23 08:51:57,820 DEBUG [PopConnection-51730] org.apache.http.impl.conn.BasicHttpClientConnectionManager  - Connection can be kept alive indefinitely
2023-03-23 08:51:57,874 DEBUG [PopConnection-51730] davmail.exchange.ExchangeSession  - Test configuration status: 401
2023-03-23 08:51:57,874 DEBUG [PopConnection-51730] org.apache.http.impl.conn.BasicHttpClientConnectionManager  - Closing connection
2023-03-23 08:51:57,874 DEBUG [PopConnection-51730] org.apache.http.impl.conn.DefaultManagedHttpClientConnection  - http-outgoing-1: Close connection
2023-03-23 08:51:57,939 DEBUG [PopConnection-51730] davmail  - > +OK DavMail 6.1.0-3422 POP ready at Thu Mar 23 08:51:57 JST 2023
2023-03-23 08:51:57,939 DEBUG [PopConnection-51730] davmail  - < CAPA
2023-03-23 08:51:57,940 DEBUG [PopConnection-51730] davmail  - > +OK Capability list follows
2023-03-23 08:51:57,940 DEBUG [PopConnection-51730] davmail  - > TOP
2023-03-23 08:51:57,940 DEBUG [PopConnection-51730] davmail  - > USER
2023-03-23 08:51:57,940 DEBUG [PopConnection-51730] davmail  - > UIDL
2023-03-23 08:51:57,941 DEBUG [PopConnection-51730] davmail  - > .
2023-03-23 08:51:57,943 DEBUG [PopConnection-51730] davmail  - < USER xxx@yyy.go.jp
2023-03-23 08:51:57,943 DEBUG [PopConnection-51730] davmail  - > +OK USER : xxx@yyy.go.jp
2023-03-23 08:52:02,054 DEBUG [PopConnection-51730] davmail  - < PASS ********
2023-03-23 08:52:02,083 WARN  [PopConnection-51730] davmail.exchange.ExchangeSession  - All network interfaces down or host unreachable !
2023-03-23 08:52:02,104 DEBUG [PopConnection-51730] 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:636)
    at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:182)
    at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:519)
    at java.base/java.lang.Class.forName0(Native Method)
    at java.base/java.lang.Class.forName(Class.java:375)
    at davmail.exchange.ExchangeSessionFactory.getInstance(ExchangeSessionFactory.java:178)
    at davmail.exchange.ExchangeSessionFactory.getInstance(ExchangeSessionFactory.java:97)
    at davmail.pop.PopConnection.run(PopConnection.java:141)
2023-03-23 08:52:02,160 ERROR [PopConnection-51730] davmail  - All network interfaces down or host unreachable !
2023-03-23 08:52:02,160 DEBUG [PopConnection-51730] davmail  - > -ERR All network interfaces down or host unreachable !
2023-03-23 08:52:02,161 DEBUG [PopConnection-51730] davmail  - < QUIT
2023-03-23 08:52:02,161 DEBUG [PopConnection-51730] davmail  - > +OK Bye
2023-03-23 08:52:02,161 INFO  [PopConnection-51730] davmail.connection  - DISCONNECT - 0:0:0:0:0:0:0:1:51730 
s-p-turner commented 1 year ago

For completeness, here's my log file showing the failure when trying to connect Thunderbird via imap on Windows:

DEBUG [main] davmail  - OS Name: Windows 10 Java version: 1.8.0_361 64 System tray supported
INFO  [main] davmail  - O365Interactive is not compatible with SWT, do not try to create SWT tray
INFO  [main] davmail  - DavMail Gateway 6.1.0-3422 listening on SMTP port 1025 POP port 1110 IMAP port 1143 CALDAV port 1080 LDAP port 1389
DEBUG [CheckRelease] davmail.http.HttpClientAdapter  - GET https://davmail.sourceforge.net/version.txt
DEBUG [CheckRelease] davmail.http.DavGatewaySSLSocketFactory  - createSocket davmail.sourceforge.net 443
DEBUG [CheckRelease] davmail.DavGateway  - DavMail released version: 6.1.0-3422
DEBUG [davmail.imap.ImapServer] davmail  - Connection from /127.0.0.1 on port 1143
INFO  [davmail.imap.ImapServer] davmail.connection  - CONNECT - 127.0.0.1:62183
DEBUG [ImapConnection-62183] davmail.http.DavGatewaySSLSocketFactory  - createSocket outlook.office365.com 443
DEBUG [ImapConnection-62183] davmail.exchange.ExchangeSession  - Test configuration status: 401
DEBUG [ImapConnection-62183] davmail  - > * OK [CAPABILITY IMAP4REV1 AUTH=LOGIN MOVE SPECIAL-USE] IMAP4rev1 DavMail 6.1.0-3422 server ready
DEBUG [ImapConnection-62183] davmail  - < 35 authenticate LOGIN
DEBUG [ImapConnection-62183] davmail  - > + VXNlcm5hbWU6
DEBUG [ImapConnection-62183] davmail  - < c3RldmUudHVybmVyQGNvbW1zY29wZS5jb20=
DEBUG [ImapConnection-62183] davmail  - > + UGFzc3dvcmQ6
DEBUG [ImapConnection-62183] davmail  - < ********
WARN  [ImapConnection-62183] davmail.exchange.ExchangeSession  - All network interfaces down or host unreachable !
DEBUG [ImapConnection-62183] davmail.exchange.ExchangeSession  - java.lang.ClassNotFoundException: davmail.exchange.auth.O365InteractiveAuthenticator
java.lang.ClassNotFoundException: davmail.exchange.auth.O365InteractiveAuthenticator
    at java.net.URLClassLoader.findClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Unknown Source)
    at davmail.exchange.ExchangeSessionFactory.getInstance(ExchangeSessionFactory.java:178)
    at davmail.exchange.ExchangeSessionFactory.getInstance(ExchangeSessionFactory.java:97)
    at davmail.imap.ImapConnection.run(ImapConnection.java:155)
INFO  [ImapConnection-62183] davmail.connection  - FAILED - 127.0.0.1:62183 aaa.bbb@ccc.com
ERROR [ImapConnection-62183] davmail  - All network interfaces down or host unreachable !
DEBUG [ImapConnection-62183] davmail  - > 35 NO LOGIN failed
DEBUG [ImapConnection-62183] davmail  - < LOGIN ********
WARN  [ImapConnection-62183] davmail.exchange.ExchangeSession  - All network interfaces down or host unreachable !
DEBUG [ImapConnection-62183] davmail.exchange.ExchangeSession  - java.lang.ClassNotFoundException: davmail.exchange.auth.O365InteractiveAuthenticator
java.lang.ClassNotFoundException: davmail.exchange.auth.O365InteractiveAuthenticator
    at java.net.URLClassLoader.findClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Unknown Source)
    at davmail.exchange.ExchangeSessionFactory.getInstance(ExchangeSessionFactory.java:178)
    at davmail.exchange.ExchangeSessionFactory.getInstance(ExchangeSessionFactory.java:97)
    at davmail.imap.ImapConnection.run(ImapConnection.java:128)
INFO  [ImapConnection-62183] davmail.connection  - FAILED - 127.0.0.1:62183 aaa.bbb@ccc.com
ERROR [ImapConnection-62183] davmail  - All network interfaces down or host unreachable !
DEBUG [ImapConnection-62183] davmail  - > 37 NO LOGIN failed
INFO  [ImapConnection-62183] davmail.connection  - DISCONNECT - 127.0.0.1:62183
DEBUG [davmail.imap.ImapServer] davmail  - Connection from /127.0.0.1 on port 1143
INFO  [davmail.imap.ImapServer] davmail.connection  - CONNECT - 127.0.0.1:62188
DEBUG [ImapConnection-62188] davmail.http.DavGatewaySSLSocketFactory  - createSocket outlook.office365.com 443
DEBUG [ImapConnection-62188] davmail.exchange.ExchangeSession  - Test configuration status: 401
DEBUG [ImapConnection-62188] davmail  - > * OK [CAPABILITY IMAP4REV1 AUTH=LOGIN MOVE SPECIAL-USE] IMAP4rev1 DavMail 6.1.0-3422 server ready
DEBUG [ImapConnection-62188] davmail  - < 54 authenticate LOGIN
DEBUG [ImapConnection-62188] davmail  - > + VXNlcm5hbWU6
DEBUG [ImapConnection-62188] davmail  - < c3RldmUudHVybmVyQGNvbW1zY29wZS5jb20=
DEBUG [ImapConnection-62188] davmail  - > + UGFzc3dvcmQ6
DEBUG [ImapConnection-62188] davmail  - < ********
WARN  [ImapConnection-62188] davmail.exchange.ExchangeSession  - All network interfaces down or host unreachable !
DEBUG [ImapConnection-62188] davmail.exchange.ExchangeSession  - java.lang.ClassNotFoundException: davmail.exchange.auth.O365InteractiveAuthenticator
java.lang.ClassNotFoundException: davmail.exchange.auth.O365InteractiveAuthenticator
    at java.net.URLClassLoader.findClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Unknown Source)
    at davmail.exchange.ExchangeSessionFactory.getInstance(ExchangeSessionFactory.java:178)
    at davmail.exchange.ExchangeSessionFactory.getInstance(ExchangeSessionFactory.java:97)
    at davmail.imap.ImapConnection.run(ImapConnection.java:155)
INFO  [ImapConnection-62188] davmail.connection  - FAILED - 127.0.0.1:62188 aaa.bbb@ccc.com
ERROR [ImapConnection-62188] davmail  - All network interfaces down or host unreachable !
DEBUG [ImapConnection-62188] davmail  - > 54 NO LOGIN failed
DEBUG [ImapConnection-62188] davmail  - < LOGIN ********
WARN  [ImapConnection-62188] davmail.exchange.ExchangeSession  - All network interfaces down or host unreachable !
DEBUG [ImapConnection-62188] davmail.exchange.ExchangeSession  - java.lang.ClassNotFoundException: davmail.exchange.auth.O365InteractiveAuthenticator
java.lang.ClassNotFoundException: davmail.exchange.auth.O365InteractiveAuthenticator
    at java.net.URLClassLoader.findClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Unknown Source)
    at davmail.exchange.ExchangeSessionFactory.getInstance(ExchangeSessionFactory.java:178)
    at davmail.exchange.ExchangeSessionFactory.getInstance(ExchangeSessionFactory.java:97)
    at davmail.imap.ImapConnection.run(ImapConnection.java:128)
INFO  [ImapConnection-62188] davmail.connection  - FAILED - 127.0.0.1:62188 aaa.bbb@ccc.com
ERROR [ImapConnection-62188] davmail  - All network interfaces down or host unreachable !
DEBUG [ImapConnection-62188] davmail  - > 56 NO LOGIN failed
INFO  [ImapConnection-62188] davmail.connection  - DISCONNECT - 127.0.0.1:62188
INFO  [davmail.imap.ImapServer] davmail.connection  - DISCONNECT - 127.0.0.1:62188
INFO  [AWT-EventQueue-0] davmail  - DavMail gateway stopped
mguessan commented 1 year ago

Sorry a glitch in my release process, please download davmail-6.1.0-3423 for a fix

toomasaas commented 1 year ago

davmail-6.1.0-3423 fixed the problem for me, thanks!

esabol commented 9 months ago

@mguessan: A colleague of mine who insists on compiling DavMail from the source code is getting this error with 6.2.0. He does not get this error from the version 6.1.0 that he compiled. So something seems to have changed with the build process? Is there some argument you have to give to ant to get it to compile davmail.exchange.auth.O365InteractiveAuthenticator and include it in the jar files?

This is on RHEL 8.8, by the way.

mguessan commented 9 months ago

This is because you have a recent JDK without OpenJFX dependency => O365InteractiveAuthenticator is excluded at build time.

Have a look at latest spec file in trunk for a workaround: install openjfx package and grab jars from there. An alternative is to compile with latest Azul JDK with OpenJFX feature

esabol commented 9 months ago

@mguessan wrote:

Have a look at latest spec file in trunk for a workaround: install openjfx package and grab jars from there.

I'm not seeing the "workaround" in the spec file. I only see one reference to "openjfx" in the spec file, and it's just a "BuildRequires: openjfx" on Fedora > 38. But this is for RHEL 8.x, not Fedora. Red Hat doesn't seem to supply a openjfx package on RHEL (only on Fedora), but my googling did find this repository which does: https://github.com/jgneff/openjfx