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
580 stars 86 forks source link

davmail - > ?y[7~iEW:!^[:8,0̨̩̪+/$(k#'g BAD missing command #185

Open jeis4wpi opened 2 years ago

jeis4wpi commented 2 years ago

Hi Mickaël

I would really like to use davmail as our college is now configured MFA with MS authenticator.

I have been attempting various configurations on OSX and Ubuntu and clearly I don’t get something.

From mbsync I see:

mbsync -a
C: 0/1  B: 0/0  F: +0/0 *0/0 #0/0  N: +0/0 *0/0 #0/0
Socket error: secure connect to 127.0.0.1 (127.0.0.1:11143): error:1408F10B:SSL routines:ssl3_get_record:wrong version number

And davmail logs are:

davmail
2021-12-03 17:13:41,098 DEBUG [main] davmail.DavGateway  - Start DavMail in server mode
2021-12-03 17:13:41,181 INFO  [main] davmail  - DavMail Gateway 6.0.0-3375 listening on SMTP port 1026 IMAP port 11143 CALDAV port 1082 LDAP port 636 
2021-12-03 17:13:41,296 DEBUG [CheckRelease] davmail.http.HttpClientAdapter  - GET http://davmail.sourceforge.net/version.txt
2021-12-03 17:13:41,499 DEBUG [CheckRelease] org.apache.http.wire  - http-outgoing-0 >> "GET /version.txt HTTP/1.1[\r][\n]"
2021-12-03 17:13:41,500 DEBUG [CheckRelease] org.apache.http.wire  - http-outgoing-0 >> "Host: davmail.sourceforge.net[\r][\n]"
2021-12-03 17:13:41,500 DEBUG [CheckRelease] org.apache.http.wire  - http-outgoing-0 >> "Connection: Keep-Alive[\r][\n]"
2021-12-03 17:13:41,500 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]"
2021-12-03 17:13:41,500 DEBUG [CheckRelease] org.apache.http.wire  - http-outgoing-0 >> "Accept-Encoding: gzip,deflate[\r][\n]"
2021-12-03 17:13:41,500 DEBUG [CheckRelease] org.apache.http.wire  - http-outgoing-0 >> "[\r][\n]"
2021-12-03 17:13:41,691 DEBUG [CheckRelease] org.apache.http.wire  - http-outgoing-0 << "HTTP/1.1 200 OK[\r][\n]"
2021-12-03 17:13:41,692 DEBUG [CheckRelease] org.apache.http.wire  - http-outgoing-0 << "Server: nginx[\r][\n]"
2021-12-03 17:13:41,692 DEBUG [CheckRelease] org.apache.http.wire  - http-outgoing-0 << "Date: Fri, 03 Dec 2021 22:13:41 GMT[\r][\n]"
2021-12-03 17:13:41,692 DEBUG [CheckRelease] org.apache.http.wire  - http-outgoing-0 << "Content-Type: text/plain[\r][\n]"
2021-12-03 17:13:41,692 DEBUG [CheckRelease] org.apache.http.wire  - http-outgoing-0 << "Content-Length: 10[\r][\n]"
2021-12-03 17:13:41,692 DEBUG [CheckRelease] org.apache.http.wire  - http-outgoing-0 << "Connection: keep-alive[\r][\n]"
2021-12-03 17:13:41,692 DEBUG [CheckRelease] org.apache.http.wire  - http-outgoing-0 << "Vary: Host[\r][\n]"
2021-12-03 17:13:41,692 DEBUG [CheckRelease] org.apache.http.wire  - http-outgoing-0 << "Last-Modified: Mon, 05 Jul 2021 15:12:37 GMT[\r][\n]"
2021-12-03 17:13:41,693 DEBUG [CheckRelease] org.apache.http.wire  - http-outgoing-0 << "ETag: "a-5c661bc59f9d8"[\r][\n]"
2021-12-03 17:13:41,693 DEBUG [CheckRelease] org.apache.http.wire  - http-outgoing-0 << "Cache-Control: max-age=3600[\r][\n]"
2021-12-03 17:13:41,693 DEBUG [CheckRelease] org.apache.http.wire  - http-outgoing-0 << "Expires: Fri, 03 Dec 2021 22:52:50 GMT[\r][\n]"
2021-12-03 17:13:41,693 DEBUG [CheckRelease] org.apache.http.wire  - http-outgoing-0 << "X-From: sfp-web-8[\r][\n]"
2021-12-03 17:13:41,693 DEBUG [CheckRelease] org.apache.http.wire  - http-outgoing-0 << "Vary: Accept-Encoding[\r][\n]"
2021-12-03 17:13:41,693 DEBUG [CheckRelease] org.apache.http.wire  - http-outgoing-0 << "Accept-Ranges: bytes[\r][\n]"
2021-12-03 17:13:41,693 DEBUG [CheckRelease] org.apache.http.wire  - http-outgoing-0 << "[\r][\n]"
2021-12-03 17:13:41,693 DEBUG [CheckRelease] org.apache.http.wire  - http-outgoing-0 << "6.0.0-3375"
2021-12-03 17:13:41,704 DEBUG [CheckRelease] davmail.DavGateway  - DavMail released version: 6.0.0-3375
2021-12-03 17:14:24,155 DEBUG [davmail.imap.ImapServer] davmail  - Connection from /127.0.0.1 on port 11143
2021-12-03 17:14:24,164 INFO  [davmail.imap.ImapServer] davmail.connection  - CONNECT - 127.0.0.1:65051 
2021-12-03 17:14:24,217 DEBUG [ImapConnection-65051] org.apache.http.conn.ssl.SSLConnectionSocketFactory  - Connecting socket to outlook.office365.com/52.96.109.130:443 with timeout 10000
2021-12-03 17:14:24,266 DEBUG [ImapConnection-65051] davmail.http.DavGatewaySSLSocketFactory  - createSocket outlook.office365.com 443
2021-12-03 17:14:24,528 DEBUG [ImapConnection-65051] org.apache.http.conn.ssl.SSLConnectionSocketFactory  - Enabled protocols: [TLSv1, TLSv1.1, TLSv1.2]
2021-12-03 17:14:24,529 DEBUG [ImapConnection-65051] 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]
2021-12-03 17:14:24,529 DEBUG [ImapConnection-65051] org.apache.http.conn.ssl.SSLConnectionSocketFactory  - Starting handshake
2021-12-03 17:14:24,774 DEBUG [ImapConnection-65051] org.apache.http.conn.ssl.SSLConnectionSocketFactory  - Secure session established
2021-12-03 17:14:24,775 DEBUG [ImapConnection-65051] org.apache.http.conn.ssl.SSLConnectionSocketFactory  -  negotiated protocol: TLSv1.2
2021-12-03 17:14:24,775 DEBUG [ImapConnection-65051] org.apache.http.conn.ssl.SSLConnectionSocketFactory  -  negotiated cipher suite: TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384
2021-12-03 17:14:24,775 DEBUG [ImapConnection-65051] org.apache.http.conn.ssl.SSLConnectionSocketFactory  -  peer principal: CN=outlook.com, O=Microsoft Corporation, L=Redmond, ST=Washington, C=US
2021-12-03 17:14:24,775 DEBUG [ImapConnection-65051] org.apache.http.conn.ssl.SSLConnectionSocketFactory  -  peer alternative names: [*.internal.outlook.com, *.outlook.com, outlook.com, office365.com, *.office365.com, *.outlook.office365.com, *.office.com, outlook.office.com, substrate.office.com, attachment.outlook.live.net, attachment.outlook.office.net, attachment.outlook.officeppe.net, attachments.office.net, *.clo.footprintdns.com, *.nrb.footprintdns.com, ccs.login.microsoftonline.com, ccs-sdf.login.microsoftonline.com, substrate-sdf.office.com, attachments-sdf.office.net, *.live.com, mail.services.live.com, hotmail.com, *.hotmail.com]
2021-12-03 17:14:24,776 DEBUG [ImapConnection-65051] org.apache.http.conn.ssl.SSLConnectionSocketFactory  -  issuer principal: CN=DigiCert Cloud Services CA-1, O=DigiCert Inc, C=US
2021-12-03 17:14:24,778 DEBUG [ImapConnection-65051] org.apache.http.wire  - http-outgoing-1 >> "GET / HTTP/1.1[\r][\n]"
2021-12-03 17:14:24,779 DEBUG [ImapConnection-65051] org.apache.http.wire  - http-outgoing-1 >> "Host: outlook.office365.com[\r][\n]"
2021-12-03 17:14:24,779 DEBUG [ImapConnection-65051] org.apache.http.wire  - http-outgoing-1 >> "Connection: Keep-Alive[\r][\n]"
2021-12-03 17:14:24,779 DEBUG [ImapConnection-65051] 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]"
2021-12-03 17:14:24,779 DEBUG [ImapConnection-65051] org.apache.http.wire  - http-outgoing-1 >> "Accept-Encoding: gzip,deflate[\r][\n]"
2021-12-03 17:14:24,779 DEBUG [ImapConnection-65051] org.apache.http.wire  - http-outgoing-1 >> "[\r][\n]"
2021-12-03 17:14:24,830 DEBUG [ImapConnection-65051] org.apache.http.wire  - http-outgoing-1 << "HTTP/1.1 302 Moved Temporarily[\r][\n]"
2021-12-03 17:14:24,830 DEBUG [ImapConnection-65051] org.apache.http.wire  - http-outgoing-1 << "Cache-Control: no-cache[\r][\n]"
2021-12-03 17:14:24,830 DEBUG [ImapConnection-65051] org.apache.http.wire  - http-outgoing-1 << "Pragma: no-cache[\r][\n]"
2021-12-03 17:14:24,831 DEBUG [ImapConnection-65051] org.apache.http.wire  - http-outgoing-1 << "Location: https://outlook.office365.com/owa/[\r][\n]"
2021-12-03 17:14:24,831 DEBUG [ImapConnection-65051] org.apache.http.wire  - http-outgoing-1 << "Server: Microsoft-IIS/10.0[\r][\n]"
2021-12-03 17:14:24,831 DEBUG [ImapConnection-65051] org.apache.http.wire  - http-outgoing-1 << "request-id: ab37a366-e803-b083-24b1-bc00bb7805a6[\r][\n]"
2021-12-03 17:14:24,831 DEBUG [ImapConnection-65051] org.apache.http.wire  - http-outgoing-1 << "Strict-Transport-Security: max-age=31536000; includeSubDomains; preload[\r][\n]"
2021-12-03 17:14:24,831 DEBUG [ImapConnection-65051] org.apache.http.wire  - http-outgoing-1 << "X-FEServer: BL1PR13CA0068[\r][\n]"
2021-12-03 17:14:24,831 DEBUG [ImapConnection-65051] org.apache.http.wire  - http-outgoing-1 << "X-RequestId: 8ceb385f-f838-444f-9509-e6242c48b63a[\r][\n]"
2021-12-03 17:14:24,831 DEBUG [ImapConnection-65051] org.apache.http.wire  - http-outgoing-1 << "MS-CV: ZqM3qwPog7AksbwAu3gFpg.0[\r][\n]"
2021-12-03 17:14:24,831 DEBUG [ImapConnection-65051] org.apache.http.wire  - http-outgoing-1 << "X-Powered-By: ASP.NET[\r][\n]"
2021-12-03 17:14:24,831 DEBUG [ImapConnection-65051] org.apache.http.wire  - http-outgoing-1 << "X-FEServer: BL1PR13CA0068[\r][\n]"
2021-12-03 17:14:24,832 DEBUG [ImapConnection-65051] org.apache.http.wire  - http-outgoing-1 << "Date: Fri, 03 Dec 2021 22:14:24 GMT[\r][\n]"
2021-12-03 17:14:24,832 DEBUG [ImapConnection-65051] org.apache.http.wire  - http-outgoing-1 << "Connection: close[\r][\n]"
2021-12-03 17:14:24,832 DEBUG [ImapConnection-65051] org.apache.http.wire  - http-outgoing-1 << "Content-Length: 0[\r][\n]"
2021-12-03 17:14:24,832 DEBUG [ImapConnection-65051] org.apache.http.wire  - http-outgoing-1 << "[\r][\n]"
2021-12-03 17:14:24,840 DEBUG [ImapConnection-65051] davmail.exchange.ExchangeSession  - Test configuration status: 302
2021-12-03 17:14:24,841 DEBUG [ImapConnection-65051] davmail  - > * OK [CAPABILITY IMAP4REV1 AUTH=LOGIN MOVE SPECIAL-USE] IMAP4rev1 DavMail 6.0.0-3375 server ready
2021-12-03 17:14:24,842 DEBUG [ImapConnection-65051] davmail  - < ?y[7~iEW:!^[:8,0̨̩̪+/$(k#'g
2021-12-03 17:14:24,844 DEBUG [ImapConnection-65051] davmail  - > ?y[7~iEW:!^[:8,0̨̩̪+/$(k#'g BAD missing command
2021-12-03 17:14:24,844 WARN  [ImapConnection-65051] davmail.imap.ImapConnection  - Client closed connection
2021-12-03 17:14:24,844 INFO  [ImapConnection-65051] davmail.connection  - DISCONNECT - 127.0.0.1:65051

On the page:

http://davmail.sourceforge.net/faq.html

I hope to use:

· O365Modern: same logic as O365Interactive, but use client provided credentials for Oauth negotiation, trigger PhoneApp MFA check transparently

The “The required scopes are: “

Does that mean I create a config.json file somewhere for davmail to read?

Do I register davmail in Azure and use the client ID or the client ID I see from the web URL for webmail?

Thank you for making your code so easy to build from source.

When I used O365Interactive I didn’t see a URL in the logs to ask Azure to approve.

https://github.com/mguessan/davmail/issues/157

davmail.allowRemote=false
davmail.bindAddress=
davmail.caldavAlarmSound=
davmail.caldavAutoSchedule=true
davmail.caldavEditNotifications=false
davmail.caldavPastDelay=0
davmail.caldavPort=1082
davmail.carddavReadPhoto=true
davmail.clientSoTimeout=
davmail.defaultDomain=wpi.edu
davmail.disableGuiNotifications=false
davmail.disableTrayActivitySwitch=false
davmail.disableUpdateCheck=false
davmail.enableEws=auto
davmail.enableKeepAlive=true
davmail.enableKerberos=false
davmail.enableOauth2=true
davmail.enableProxy=false
davmail.folderSizeLimit=
davmail.forceActiveSyncUpdate=false
davmail.imapAlwaysApproxMsgSize=true
davmail.imapAutoExpunge=true
davmail.imapIdleDelay=
davmail.imapPort=11143
davmail.keepDelay=30
davmail.ldapPort=636
davmail.logFilePath=/var/tmp/.davmail.office365.log
davmail.logFileSize=4MB
davmail.mode=O365Modern
davmail.noProxyFor=
davmail.oauth.clientId=165259b3-2df8-4743-b483-72b0611e9b57
#davmail.oauth.clientId=00000002-0000-0ff1-ce00-000000000000
#davmail.oauth.clientId=0000001a-0000-0000-c000-000000000000
#davmail.oauth.redirectUri=urn:ietf:wg:oauth:2.0:oob
#davmail.oauth.redirectUri=https\://outlook.office365.com/owa/?realm=wpi.edu
davmail.oauth.redirectUri=https://login.microsoftonline.com/common/oauth2/nativeclient
davmail.oauth.resource=00000002-0000-0ff1-ce00-000000000000
davmail.oauth.response_mode=form_post
davmail.oauth.response_type=code+id_token
davmail.oauth.scope=openid
davmail.oauth.msafed=1
davmail.oauth.protectedtoken=true
davmail.oauth.tenantId=589c76f5-ca15-41f9-884b-55ec15a0672a
davmail.oauth.persistToken=true
davmail.oauth.tokenFilePath=
davmail.popMarkReadOnRetr=false
davmail.popPort=
davmail.proxyHost=
davmail.proxyPassword=
davmail.proxyPort=
davmail.proxyUser=
davmail.sentKeepDelay=0
davmail.server.certificate.hash=
davmail.server=false
davmail.showStartupBanner=true
davmail.smtpPort=1026
davmail.smtpSaveInSent=true
davmail.ssl.clientKeystoreFile=
davmail.ssl.clientKeystorePass=
davmail.ssl.clientKeystoreType=PKCS12
davmail.ssl.keystoreType=PKCS12
davmail.ssl.keyPass=
davmail.ssl.keystoreFile=
davmail.ssl.keystorePass=
davmail.ssl.nosecurecaldav=false
davmail.ssl.nosecureimap=false
davmail.ssl.nosecureldap=false
davmail.ssl.nosecurepop=false
davmail.ssl.nosecuresmtp=false
davmail.ssl.pkcs11Config=
davmail.ssl.pkcs11Library=
davmail.url=https://outlook.office365.com/
davmail.useSystemProxies=false
log4j.logger.davmail=DEBUG
log4j.logger.httpclient.wire=DEBUG
log4j.logger.httpclient=WARN
log4j.logger.org.apache.http.conn.ssl=WARN
log4j.logger.org.apache.http.wire=WARN
log4j.logger.org.apache.http=WARN
log4j.rootLogger=WARN

was very helpful to focus on oauth authentication as a starting template. Any suggestions to enable me are greatly appreciated.
Thank you.

John

mguessan commented 2 years ago

You are trying to connect in SSL mode to a cleartext DavMail listener. If your IMAP client requires SSL/TLS, try to create a self signed certificate and enable it in DavMail configuration, see: http://davmail.sourceforge.net/sslsetup.html

jeis4wpi commented 2 years ago

much better regarding the SSL/TLS, thank you.

still a little stuck with:


its-nb21:~ jpeismeier$ davmail 
2021-12-07 08:47:56,886 DEBUG [main] davmail.DavGateway  - Start DavMail in server mode
2021-12-07 08:47:58,094 INFO  [main] davmail  - DavMail Gateway 6.0.0-3375 listening on SMTP port 1026 IMAP port 11143 CALDAV port 1082 LDAP port 636 
2021-12-07 08:47:58,178 DEBUG [CheckRelease] davmail.http.HttpClientAdapter  - GET http://davmail.sourceforge.net/version.txt
2021-12-07 08:47:58,314 DEBUG [CheckRelease] org.apache.http.wire  - http-outgoing-0 >> "GET /version.txt HTTP/1.1[\r][\n]"
2021-12-07 08:47:58,314 DEBUG [CheckRelease] org.apache.http.wire  - http-outgoing-0 >> "Host: davmail.sourceforge.net[\r][\n]"
2021-12-07 08:47:58,314 DEBUG [CheckRelease] org.apache.http.wire  - http-outgoing-0 >> "Connection: Keep-Alive[\r][\n]"
2021-12-07 08:47:58,314 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]"
2021-12-07 08:47:58,314 DEBUG [CheckRelease] org.apache.http.wire  - http-outgoing-0 >> "Accept-Encoding: gzip,deflate[\r][\n]"
2021-12-07 08:47:58,314 DEBUG [CheckRelease] org.apache.http.wire  - http-outgoing-0 >> "[\r][\n]"
2021-12-07 08:47:58,436 DEBUG [CheckRelease] org.apache.http.wire  - http-outgoing-0 << "HTTP/1.1 200 OK[\r][\n]"
2021-12-07 08:47:58,437 DEBUG [CheckRelease] org.apache.http.wire  - http-outgoing-0 << "Server: nginx[\r][\n]"
2021-12-07 08:47:58,437 DEBUG [CheckRelease] org.apache.http.wire  - http-outgoing-0 << "Date: Tue, 07 Dec 2021 13:47:58 GMT[\r][\n]"
2021-12-07 08:47:58,437 DEBUG [CheckRelease] org.apache.http.wire  - http-outgoing-0 << "Content-Type: text/plain[\r][\n]"
2021-12-07 08:47:58,437 DEBUG [CheckRelease] org.apache.http.wire  - http-outgoing-0 << "Content-Length: 10[\r][\n]"
2021-12-07 08:47:58,437 DEBUG [CheckRelease] org.apache.http.wire  - http-outgoing-0 << "Connection: keep-alive[\r][\n]"
2021-12-07 08:47:58,437 DEBUG [CheckRelease] org.apache.http.wire  - http-outgoing-0 << "Vary: Host[\r][\n]"
2021-12-07 08:47:58,437 DEBUG [CheckRelease] org.apache.http.wire  - http-outgoing-0 << "Last-Modified: Mon, 05 Jul 2021 15:12:37 GMT[\r][\n]"
2021-12-07 08:47:58,437 DEBUG [CheckRelease] org.apache.http.wire  - http-outgoing-0 << "ETag: "a-5c661bc59f9d8"[\r][\n]"
2021-12-07 08:47:58,437 DEBUG [CheckRelease] org.apache.http.wire  - http-outgoing-0 << "Cache-Control: max-age=3600[\r][\n]"
2021-12-07 08:47:58,437 DEBUG [CheckRelease] org.apache.http.wire  - http-outgoing-0 << "Expires: Sat, 04 Dec 2021 05:51:04 GMT[\r][\n]"
2021-12-07 08:47:58,437 DEBUG [CheckRelease] org.apache.http.wire  - http-outgoing-0 << "X-From: sfp-web-1[\r][\n]"
2021-12-07 08:47:58,437 DEBUG [CheckRelease] org.apache.http.wire  - http-outgoing-0 << "Vary: Accept-Encoding[\r][\n]"
2021-12-07 08:47:58,437 DEBUG [CheckRelease] org.apache.http.wire  - http-outgoing-0 << "Accept-Ranges: bytes[\r][\n]"
2021-12-07 08:47:58,438 DEBUG [CheckRelease] org.apache.http.wire  - http-outgoing-0 << "[\r][\n]"
2021-12-07 08:47:58,438 DEBUG [CheckRelease] org.apache.http.wire  - http-outgoing-0 << "6.0.0-3375"
2021-12-07 08:47:58,443 DEBUG [CheckRelease] davmail.DavGateway  - DavMail released version: 6.0.0-3375
2021-12-07 08:48:02,832 DEBUG [davmail.imap.ImapServer] davmail  - Connection from /127.0.0.1 on port 11143
2021-12-07 08:48:02,842 INFO  [davmail.imap.ImapServer] davmail.connection  - CONNECT - 127.0.0.1:50630 
2021-12-07 08:48:02,896 DEBUG [ImapConnection-50630] org.apache.http.conn.ssl.SSLConnectionSocketFactory  - Connecting socket to outlook.office365.com/52.96.88.2:443 with timeout 10000
2021-12-07 08:48:02,959 DEBUG [ImapConnection-50630] davmail.http.DavGatewaySSLSocketFactory  - createSocket outlook.office365.com 443
2021-12-07 08:48:02,970 DEBUG [ImapConnection-50630] org.apache.http.conn.ssl.SSLConnectionSocketFactory  - Enabled protocols: [TLSv1, TLSv1.1, TLSv1.2]
2021-12-07 08:48:02,971 DEBUG [ImapConnection-50630] 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]
2021-12-07 08:48:02,971 DEBUG [ImapConnection-50630] org.apache.http.conn.ssl.SSLConnectionSocketFactory  - Starting handshake
2021-12-07 08:48:03,147 DEBUG [ImapConnection-50630] org.apache.http.conn.ssl.SSLConnectionSocketFactory  - Secure session established
2021-12-07 08:48:03,147 DEBUG [ImapConnection-50630] org.apache.http.conn.ssl.SSLConnectionSocketFactory  -  negotiated protocol: TLSv1.2
2021-12-07 08:48:03,147 DEBUG [ImapConnection-50630] org.apache.http.conn.ssl.SSLConnectionSocketFactory  -  negotiated cipher suite: TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384
2021-12-07 08:48:03,148 DEBUG [ImapConnection-50630] org.apache.http.conn.ssl.SSLConnectionSocketFactory  -  peer principal: CN=outlook.com, O=Microsoft Corporation, L=Redmond, ST=Washington, C=US
2021-12-07 08:48:03,148 DEBUG [ImapConnection-50630] org.apache.http.conn.ssl.SSLConnectionSocketFactory  -  peer alternative names: [*.internal.outlook.com, *.outlook.com, outlook.com, office365.com, *.office365.com, *.outlook.office365.com, *.office.com, outlook.office.com, substrate.office.com, attachment.outlook.live.net, attachment.outlook.office.net, attachment.outlook.officeppe.net, attachments.office.net, *.clo.footprintdns.com, *.nrb.footprintdns.com, ccs.login.microsoftonline.com, ccs-sdf.login.microsoftonline.com, substrate-sdf.office.com, attachments-sdf.office.net, *.live.com, mail.services.live.com, hotmail.com, *.hotmail.com]
2021-12-07 08:48:03,148 DEBUG [ImapConnection-50630] org.apache.http.conn.ssl.SSLConnectionSocketFactory  -  issuer principal: CN=DigiCert Cloud Services CA-1, O=DigiCert Inc, C=US
2021-12-07 08:48:03,149 DEBUG [ImapConnection-50630] org.apache.http.wire  - http-outgoing-1 >> "GET / HTTP/1.1[\r][\n]"
2021-12-07 08:48:03,149 DEBUG [ImapConnection-50630] org.apache.http.wire  - http-outgoing-1 >> "Host: outlook.office365.com[\r][\n]"
2021-12-07 08:48:03,149 DEBUG [ImapConnection-50630] org.apache.http.wire  - http-outgoing-1 >> "Connection: Keep-Alive[\r][\n]"
2021-12-07 08:48:03,149 DEBUG [ImapConnection-50630] 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]"
2021-12-07 08:48:03,150 DEBUG [ImapConnection-50630] org.apache.http.wire  - http-outgoing-1 >> "Accept-Encoding: gzip,deflate[\r][\n]"
2021-12-07 08:48:03,150 DEBUG [ImapConnection-50630] org.apache.http.wire  - http-outgoing-1 >> "[\r][\n]"
2021-12-07 08:48:03,206 DEBUG [ImapConnection-50630] org.apache.http.wire  - http-outgoing-1 << "HTTP/1.1 302 Moved Temporarily[\r][\n]"
2021-12-07 08:48:03,207 DEBUG [ImapConnection-50630] org.apache.http.wire  - http-outgoing-1 << "Cache-Control: no-cache[\r][\n]"
2021-12-07 08:48:03,207 DEBUG [ImapConnection-50630] org.apache.http.wire  - http-outgoing-1 << "Pragma: no-cache[\r][\n]"
2021-12-07 08:48:03,207 DEBUG [ImapConnection-50630] org.apache.http.wire  - http-outgoing-1 << "Location: https://outlook.office365.com/owa/[\r][\n]"
2021-12-07 08:48:03,207 DEBUG [ImapConnection-50630] org.apache.http.wire  - http-outgoing-1 << "Server: Microsoft-IIS/10.0[\r][\n]"
2021-12-07 08:48:03,207 DEBUG [ImapConnection-50630] org.apache.http.wire  - http-outgoing-1 << "request-id: eddb09f3-dcdb-019c-931d-34734ed10e97[\r][\n]"
2021-12-07 08:48:03,207 DEBUG [ImapConnection-50630] org.apache.http.wire  - http-outgoing-1 << "Strict-Transport-Security: max-age=31536000; includeSubDomains; preload[\r][\n]"
2021-12-07 08:48:03,207 DEBUG [ImapConnection-50630] org.apache.http.wire  - http-outgoing-1 << "X-FEServer: MN2PR22CA0001[\r][\n]"
2021-12-07 08:48:03,207 DEBUG [ImapConnection-50630] org.apache.http.wire  - http-outgoing-1 << "X-RequestId: f4580028-00cf-42e1-85b7-7732552c811d[\r][\n]"
2021-12-07 08:48:03,207 DEBUG [ImapConnection-50630] org.apache.http.wire  - http-outgoing-1 << "MS-CV: 8wnb7dvcnAGTHTRzTtEOlw.0[\r][\n]"
2021-12-07 08:48:03,208 DEBUG [ImapConnection-50630] org.apache.http.wire  - http-outgoing-1 << "X-Powered-By: ASP.NET[\r][\n]"
2021-12-07 08:48:03,208 DEBUG [ImapConnection-50630] org.apache.http.wire  - http-outgoing-1 << "X-FEServer: MN2PR22CA0001[\r][\n]"
2021-12-07 08:48:03,209 DEBUG [ImapConnection-50630] org.apache.http.wire  - http-outgoing-1 << "Date: Tue, 07 Dec 2021 13:48:02 GMT[\r][\n]"
2021-12-07 08:48:03,209 DEBUG [ImapConnection-50630] org.apache.http.wire  - http-outgoing-1 << "Connection: close[\r][\n]"
2021-12-07 08:48:03,209 DEBUG [ImapConnection-50630] org.apache.http.wire  - http-outgoing-1 << "Content-Length: 0[\r][\n]"
2021-12-07 08:48:03,209 DEBUG [ImapConnection-50630] org.apache.http.wire  - http-outgoing-1 << "[\r][\n]"
2021-12-07 08:48:03,213 DEBUG [ImapConnection-50630] davmail.exchange.ExchangeSession  - Test configuration status: 302
2021-12-07 08:48:03,214 DEBUG [ImapConnection-50630] davmail  - > * OK [CAPABILITY IMAP4REV1 AUTH=LOGIN MOVE SPECIAL-USE] IMAP4rev1 DavMail 6.0.0-3375 server ready
2021-12-07 08:48:03,258 WARN  [ImapConnection-50630] davmail.imap.ImapConnection  - Client closed connection
2021-12-07 08:48:03,258 INFO  [ImapConnection-50630] davmail.connection  - DISCONNECT - 127.0.0.1:50630 

is below correct for my .davmail.properties file?

. . .

davmail.mode=O365Modern
davmail.noProxyFor=
davmail.oauth.clientId=00000002-0000-0ff1-ce00-000000000000
davmail.oauth.redirectUri=urn:ietf:wg:oauth:2.0:oob

for web mail authentication and use the phone app to MFA ?

mguessan commented 2 years ago

No this clientId is for web access, will not work as we don't have client_secret

Try Outlook desktop instead:

davmail.oauth.clientId=d3590ed6-52b3-4102-aeff-aad2292ab01c
davmail.oauth.redirectUri=urn:ietf:wg:oauth:2.0:oob
jeis4wpi commented 2 years ago

sorry but I still have a gap in my understanding:


its-nb21:~ jpeismeier$ davmail 
2021-12-07 09:06:58,288 DEBUG [main] davmail.DavGateway  - Start DavMail in server mode
2021-12-07 09:06:59,450 INFO  [main] davmail  - DavMail Gateway 6.0.0-3375 listening on SMTP port 1026 IMAP port 11143 CALDAV port 1082 LDAP port 636 
2021-12-07 09:06:59,527 DEBUG [CheckRelease] davmail.http.HttpClientAdapter  - GET http://davmail.sourceforge.net/version.txt
2021-12-07 09:06:59,712 DEBUG [CheckRelease] org.apache.http.wire  - http-outgoing-0 >> "GET /version.txt HTTP/1.1[\r][\n]"
2021-12-07 09:06:59,712 DEBUG [CheckRelease] org.apache.http.wire  - http-outgoing-0 >> "Host: davmail.sourceforge.net[\r][\n]"
2021-12-07 09:06:59,712 DEBUG [CheckRelease] org.apache.http.wire  - http-outgoing-0 >> "Connection: Keep-Alive[\r][\n]"
2021-12-07 09:06:59,712 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]"
2021-12-07 09:06:59,712 DEBUG [CheckRelease] org.apache.http.wire  - http-outgoing-0 >> "Accept-Encoding: gzip,deflate[\r][\n]"
2021-12-07 09:06:59,712 DEBUG [CheckRelease] org.apache.http.wire  - http-outgoing-0 >> "[\r][\n]"
2021-12-07 09:06:59,825 DEBUG [CheckRelease] org.apache.http.wire  - http-outgoing-0 << "HTTP/1.1 200 OK[\r][\n]"
2021-12-07 09:06:59,825 DEBUG [CheckRelease] org.apache.http.wire  - http-outgoing-0 << "Server: nginx[\r][\n]"
2021-12-07 09:06:59,825 DEBUG [CheckRelease] org.apache.http.wire  - http-outgoing-0 << "Date: Tue, 07 Dec 2021 14:06:59 GMT[\r][\n]"
2021-12-07 09:06:59,825 DEBUG [CheckRelease] org.apache.http.wire  - http-outgoing-0 << "Content-Type: text/plain[\r][\n]"
2021-12-07 09:06:59,825 DEBUG [CheckRelease] org.apache.http.wire  - http-outgoing-0 << "Content-Length: 10[\r][\n]"
2021-12-07 09:06:59,825 DEBUG [CheckRelease] org.apache.http.wire  - http-outgoing-0 << "Connection: keep-alive[\r][\n]"
2021-12-07 09:06:59,825 DEBUG [CheckRelease] org.apache.http.wire  - http-outgoing-0 << "Vary: Host[\r][\n]"
2021-12-07 09:06:59,825 DEBUG [CheckRelease] org.apache.http.wire  - http-outgoing-0 << "Last-Modified: Mon, 05 Jul 2021 15:12:37 GMT[\r][\n]"
2021-12-07 09:06:59,825 DEBUG [CheckRelease] org.apache.http.wire  - http-outgoing-0 << "ETag: "a-5c661bc59f9d8"[\r][\n]"
2021-12-07 09:06:59,825 DEBUG [CheckRelease] org.apache.http.wire  - http-outgoing-0 << "Cache-Control: max-age=3600[\r][\n]"
2021-12-07 09:06:59,826 DEBUG [CheckRelease] org.apache.http.wire  - http-outgoing-0 << "Expires: Sat, 04 Dec 2021 05:51:04 GMT[\r][\n]"
2021-12-07 09:06:59,826 DEBUG [CheckRelease] org.apache.http.wire  - http-outgoing-0 << "X-From: sfp-web-1[\r][\n]"
2021-12-07 09:06:59,826 DEBUG [CheckRelease] org.apache.http.wire  - http-outgoing-0 << "Vary: Accept-Encoding[\r][\n]"
2021-12-07 09:06:59,826 DEBUG [CheckRelease] org.apache.http.wire  - http-outgoing-0 << "Accept-Ranges: bytes[\r][\n]"
2021-12-07 09:06:59,826 DEBUG [CheckRelease] org.apache.http.wire  - http-outgoing-0 << "[\r][\n]"
2021-12-07 09:06:59,826 DEBUG [CheckRelease] org.apache.http.wire  - http-outgoing-0 << "6.0.0-3375"
2021-12-07 09:06:59,832 DEBUG [CheckRelease] davmail.DavGateway  - DavMail released version: 6.0.0-3375
2021-12-07 09:07:09,546 DEBUG [davmail.imap.ImapServer] davmail  - Connection from /127.0.0.1 on port 11143
2021-12-07 09:07:09,553 INFO  [davmail.imap.ImapServer] davmail.connection  - CONNECT - 127.0.0.1:50869 
2021-12-07 09:07:09,596 DEBUG [ImapConnection-50869] org.apache.http.conn.ssl.SSLConnectionSocketFactory  - Connecting socket to outlook.office365.com/52.96.15.178:443 with timeout 10000
2021-12-07 09:07:09,648 DEBUG [ImapConnection-50869] davmail.http.DavGatewaySSLSocketFactory  - createSocket outlook.office365.com 443
2021-12-07 09:07:09,661 DEBUG [ImapConnection-50869] org.apache.http.conn.ssl.SSLConnectionSocketFactory  - Enabled protocols: [TLSv1, TLSv1.1, TLSv1.2]
2021-12-07 09:07:09,661 DEBUG [ImapConnection-50869] 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]
2021-12-07 09:07:09,661 DEBUG [ImapConnection-50869] org.apache.http.conn.ssl.SSLConnectionSocketFactory  - Starting handshake
2021-12-07 09:07:09,844 DEBUG [ImapConnection-50869] org.apache.http.conn.ssl.SSLConnectionSocketFactory  - Secure session established
2021-12-07 09:07:09,844 DEBUG [ImapConnection-50869] org.apache.http.conn.ssl.SSLConnectionSocketFactory  -  negotiated protocol: TLSv1.2
2021-12-07 09:07:09,845 DEBUG [ImapConnection-50869] org.apache.http.conn.ssl.SSLConnectionSocketFactory  -  negotiated cipher suite: TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384
2021-12-07 09:07:09,845 DEBUG [ImapConnection-50869] org.apache.http.conn.ssl.SSLConnectionSocketFactory  -  peer principal: CN=outlook.com, O=Microsoft Corporation, L=Redmond, ST=Washington, C=US
2021-12-07 09:07:09,845 DEBUG [ImapConnection-50869] org.apache.http.conn.ssl.SSLConnectionSocketFactory  -  peer alternative names: [*.internal.outlook.com, *.outlook.com, outlook.com, office365.com, *.office365.com, *.outlook.office365.com, *.office.com, outlook.office.com, substrate.office.com, attachment.outlook.live.net, attachment.outlook.office.net, attachment.outlook.officeppe.net, attachments.office.net, *.clo.footprintdns.com, *.nrb.footprintdns.com, ccs.login.microsoftonline.com, ccs-sdf.login.microsoftonline.com, substrate-sdf.office.com, attachments-sdf.office.net, *.live.com, mail.services.live.com, hotmail.com, *.hotmail.com]
2021-12-07 09:07:09,845 DEBUG [ImapConnection-50869] org.apache.http.conn.ssl.SSLConnectionSocketFactory  -  issuer principal: CN=DigiCert Cloud Services CA-1, O=DigiCert Inc, C=US
2021-12-07 09:07:09,848 DEBUG [ImapConnection-50869] org.apache.http.wire  - http-outgoing-1 >> "GET / HTTP/1.1[\r][\n]"
2021-12-07 09:07:09,848 DEBUG [ImapConnection-50869] org.apache.http.wire  - http-outgoing-1 >> "Host: outlook.office365.com[\r][\n]"
2021-12-07 09:07:09,848 DEBUG [ImapConnection-50869] org.apache.http.wire  - http-outgoing-1 >> "Connection: Keep-Alive[\r][\n]"
2021-12-07 09:07:09,848 DEBUG [ImapConnection-50869] 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]"
2021-12-07 09:07:09,849 DEBUG [ImapConnection-50869] org.apache.http.wire  - http-outgoing-1 >> "Accept-Encoding: gzip,deflate[\r][\n]"
2021-12-07 09:07:09,849 DEBUG [ImapConnection-50869] org.apache.http.wire  - http-outgoing-1 >> "[\r][\n]"
2021-12-07 09:07:09,906 DEBUG [ImapConnection-50869] org.apache.http.wire  - http-outgoing-1 << "HTTP/1.1 302 Moved Temporarily[\r][\n]"
2021-12-07 09:07:09,907 DEBUG [ImapConnection-50869] org.apache.http.wire  - http-outgoing-1 << "Cache-Control: no-cache[\r][\n]"
2021-12-07 09:07:09,907 DEBUG [ImapConnection-50869] org.apache.http.wire  - http-outgoing-1 << "Pragma: no-cache[\r][\n]"
2021-12-07 09:07:09,907 DEBUG [ImapConnection-50869] org.apache.http.wire  - http-outgoing-1 << "Location: https://outlook.office365.com/owa/[\r][\n]"
2021-12-07 09:07:09,907 DEBUG [ImapConnection-50869] org.apache.http.wire  - http-outgoing-1 << "Server: Microsoft-IIS/10.0[\r][\n]"
2021-12-07 09:07:09,907 DEBUG [ImapConnection-50869] org.apache.http.wire  - http-outgoing-1 << "request-id: f0ee8af9-74ac-a926-e3bf-e8ee7c95add3[\r][\n]"
2021-12-07 09:07:09,907 DEBUG [ImapConnection-50869] org.apache.http.wire  - http-outgoing-1 << "Strict-Transport-Security: max-age=31536000; includeSubDomains; preload[\r][\n]"
2021-12-07 09:07:09,907 DEBUG [ImapConnection-50869] org.apache.http.wire  - http-outgoing-1 << "X-FEServer: BL0PR02CA0129[\r][\n]"
2021-12-07 09:07:09,907 DEBUG [ImapConnection-50869] org.apache.http.wire  - http-outgoing-1 << "X-RequestId: 812f052b-2e7c-4824-a489-ed1856b68d97[\r][\n]"
2021-12-07 09:07:09,908 DEBUG [ImapConnection-50869] org.apache.http.wire  - http-outgoing-1 << "MS-CV: +Yru8Kx0Jqnjv+jufJWt0w.0[\r][\n]"
2021-12-07 09:07:09,908 DEBUG [ImapConnection-50869] org.apache.http.wire  - http-outgoing-1 << "X-Powered-By: ASP.NET[\r][\n]"
2021-12-07 09:07:09,908 DEBUG [ImapConnection-50869] org.apache.http.wire  - http-outgoing-1 << "X-FEServer: BL0PR02CA0129[\r][\n]"
2021-12-07 09:07:09,908 DEBUG [ImapConnection-50869] org.apache.http.wire  - http-outgoing-1 << "Date: Tue, 07 Dec 2021 14:07:09 GMT[\r][\n]"
2021-12-07 09:07:09,908 DEBUG [ImapConnection-50869] org.apache.http.wire  - http-outgoing-1 << "Connection: close[\r][\n]"
2021-12-07 09:07:09,908 DEBUG [ImapConnection-50869] org.apache.http.wire  - http-outgoing-1 << "Content-Length: 0[\r][\n]"
2021-12-07 09:07:09,908 DEBUG [ImapConnection-50869] org.apache.http.wire  - http-outgoing-1 << "[\r][\n]"
2021-12-07 09:07:09,912 DEBUG [ImapConnection-50869] davmail.exchange.ExchangeSession  - Test configuration status: 302
2021-12-07 09:07:09,912 DEBUG [ImapConnection-50869] davmail  - > * OK [CAPABILITY IMAP4REV1 AUTH=LOGIN MOVE SPECIAL-USE] IMAP4rev1 DavMail 6.0.0-3375 server ready
2021-12-07 09:07:09,956 WARN  [ImapConnection-50869] davmail.imap.ImapConnection  - Client closed connection
2021-12-07 09:07:09,956 INFO  [ImapConnection-50869] davmail.connection  - DISCONNECT - 127.0.0.1:50869 
2021-12-07 09:07:38,869 DEBUG [davmail.imap.ImapServer] davmail  - Connection from /127.0.0.1 on port 11143
2021-12-07 09:07:38,869 INFO  [davmail.imap.ImapServer] davmail.connection  - CONNECT - 127.0.0.1:50874 
2021-12-07 09:07:38,871 DEBUG [ImapConnection-50874] org.apache.http.conn.ssl.SSLConnectionSocketFactory  - Connecting socket to outlook.office365.com/52.96.15.178:443 with timeout 10000
2021-12-07 09:07:38,926 DEBUG [ImapConnection-50874] davmail.http.DavGatewaySSLSocketFactory  - createSocket outlook.office365.com 443
2021-12-07 09:07:38,926 DEBUG [ImapConnection-50874] org.apache.http.conn.ssl.SSLConnectionSocketFactory  - Enabled protocols: [TLSv1, TLSv1.1, TLSv1.2]
2021-12-07 09:07:38,926 DEBUG [ImapConnection-50874] 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]
2021-12-07 09:07:38,926 DEBUG [ImapConnection-50874] org.apache.http.conn.ssl.SSLConnectionSocketFactory  - Starting handshake
2021-12-07 09:07:39,059 DEBUG [ImapConnection-50874] org.apache.http.conn.ssl.SSLConnectionSocketFactory  - Secure session established
2021-12-07 09:07:39,059 DEBUG [ImapConnection-50874] org.apache.http.conn.ssl.SSLConnectionSocketFactory  -  negotiated protocol: TLSv1.2
2021-12-07 09:07:39,059 DEBUG [ImapConnection-50874] org.apache.http.conn.ssl.SSLConnectionSocketFactory  -  negotiated cipher suite: TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384
2021-12-07 09:07:39,059 DEBUG [ImapConnection-50874] org.apache.http.conn.ssl.SSLConnectionSocketFactory  -  peer principal: CN=outlook.com, O=Microsoft Corporation, L=Redmond, ST=Washington, C=US
2021-12-07 09:07:39,059 DEBUG [ImapConnection-50874] org.apache.http.conn.ssl.SSLConnectionSocketFactory  -  peer alternative names: [*.internal.outlook.com, *.outlook.com, outlook.com, office365.com, *.office365.com, *.outlook.office365.com, *.office.com, outlook.office.com, substrate.office.com, attachment.outlook.live.net, attachment.outlook.office.net, attachment.outlook.officeppe.net, attachments.office.net, *.clo.footprintdns.com, *.nrb.footprintdns.com, ccs.login.microsoftonline.com, ccs-sdf.login.microsoftonline.com, substrate-sdf.office.com, attachments-sdf.office.net, *.live.com, mail.services.live.com, hotmail.com, *.hotmail.com]
2021-12-07 09:07:39,059 DEBUG [ImapConnection-50874] org.apache.http.conn.ssl.SSLConnectionSocketFactory  -  issuer principal: CN=DigiCert Cloud Services CA-1, O=DigiCert Inc, C=US
2021-12-07 09:07:39,059 DEBUG [ImapConnection-50874] org.apache.http.wire  - http-outgoing-2 >> "GET / HTTP/1.1[\r][\n]"
2021-12-07 09:07:39,059 DEBUG [ImapConnection-50874] org.apache.http.wire  - http-outgoing-2 >> "Host: outlook.office365.com[\r][\n]"
2021-12-07 09:07:39,059 DEBUG [ImapConnection-50874] org.apache.http.wire  - http-outgoing-2 >> "Connection: Keep-Alive[\r][\n]"
2021-12-07 09:07:39,059 DEBUG [ImapConnection-50874] org.apache.http.wire  - http-outgoing-2 >> "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]"
2021-12-07 09:07:39,059 DEBUG [ImapConnection-50874] org.apache.http.wire  - http-outgoing-2 >> "Accept-Encoding: gzip,deflate[\r][\n]"
2021-12-07 09:07:39,059 DEBUG [ImapConnection-50874] org.apache.http.wire  - http-outgoing-2 >> "[\r][\n]"
2021-12-07 09:07:39,111 DEBUG [ImapConnection-50874] org.apache.http.wire  - http-outgoing-2 << "HTTP/1.1 302 Moved Temporarily[\r][\n]"
2021-12-07 09:07:39,111 DEBUG [ImapConnection-50874] org.apache.http.wire  - http-outgoing-2 << "Cache-Control: no-cache[\r][\n]"
2021-12-07 09:07:39,112 DEBUG [ImapConnection-50874] org.apache.http.wire  - http-outgoing-2 << "Pragma: no-cache[\r][\n]"
2021-12-07 09:07:39,112 DEBUG [ImapConnection-50874] org.apache.http.wire  - http-outgoing-2 << "Location: https://outlook.office365.com/owa/[\r][\n]"
2021-12-07 09:07:39,112 DEBUG [ImapConnection-50874] org.apache.http.wire  - http-outgoing-2 << "Server: Microsoft-IIS/10.0[\r][\n]"
2021-12-07 09:07:39,112 DEBUG [ImapConnection-50874] org.apache.http.wire  - http-outgoing-2 << "request-id: 16488437-e914-4086-d6c6-d6c4e432e00a[\r][\n]"
2021-12-07 09:07:39,112 DEBUG [ImapConnection-50874] org.apache.http.wire  - http-outgoing-2 << "Strict-Transport-Security: max-age=31536000; includeSubDomains; preload[\r][\n]"
2021-12-07 09:07:39,112 DEBUG [ImapConnection-50874] org.apache.http.wire  - http-outgoing-2 << "X-FEServer: BL0PR02CA0115[\r][\n]"
2021-12-07 09:07:39,112 DEBUG [ImapConnection-50874] org.apache.http.wire  - http-outgoing-2 << "X-RequestId: 1c613b5f-0a9f-4bdc-8238-a221c7fd3cc1[\r][\n]"
2021-12-07 09:07:39,112 DEBUG [ImapConnection-50874] org.apache.http.wire  - http-outgoing-2 << "MS-CV: N4RIFhTphkDWxtbE5DLgCg.0[\r][\n]"
2021-12-07 09:07:39,112 DEBUG [ImapConnection-50874] org.apache.http.wire  - http-outgoing-2 << "X-Powered-By: ASP.NET[\r][\n]"
2021-12-07 09:07:39,112 DEBUG [ImapConnection-50874] org.apache.http.wire  - http-outgoing-2 << "X-FEServer: BL0PR02CA0115[\r][\n]"
2021-12-07 09:07:39,112 DEBUG [ImapConnection-50874] org.apache.http.wire  - http-outgoing-2 << "Date: Tue, 07 Dec 2021 14:07:38 GMT[\r][\n]"
2021-12-07 09:07:39,112 DEBUG [ImapConnection-50874] org.apache.http.wire  - http-outgoing-2 << "Connection: close[\r][\n]"
2021-12-07 09:07:39,112 DEBUG [ImapConnection-50874] org.apache.http.wire  - http-outgoing-2 << "Content-Length: 0[\r][\n]"
2021-12-07 09:07:39,112 DEBUG [ImapConnection-50874] org.apache.http.wire  - http-outgoing-2 << "[\r][\n]"
2021-12-07 09:07:39,113 DEBUG [ImapConnection-50874] davmail.exchange.ExchangeSession  - Test configuration status: 302
2021-12-07 09:07:39,113 DEBUG [ImapConnection-50874] davmail  - > * OK [CAPABILITY IMAP4REV1 AUTH=LOGIN MOVE SPECIAL-USE] IMAP4rev1 DavMail 6.0.0-3375 server ready
2021-12-07 09:07:39,136 WARN  [ImapConnection-50874] davmail.imap.ImapConnection  - Client closed connection
2021-12-07 09:07:39,136 INFO  [ImapConnection-50874] davmail.connection  - DISCONNECT - 127.0.0.1:50874 

is the results from a config repair and restart.

jeis4wpi commented 2 years ago

when I view my azure profile I have an object id? is that my client id as well ?

jeis4wpi commented 2 years ago

will davmail authenticate with office 365 before a client connect prompting phone MFA?

jeis4wpi commented 2 years ago

Helpful reference

but I am still struggling for a basic authenticator prompt for approval ?


jpeismeier@its-nb21 ~ % davmail
2021-12-15 13:54:44,831 DEBUG [main] davmail.DavGateway  - Start DavMail in server mode
2021-12-15 13:54:46,039 INFO  [main] davmail  - DavMail Gateway 6.0.1-3390 listening on SMTP port 1025 POP port 1110 IMAP port 11143 CALDAV port 1080 LDAP port 1389 
2021-12-15 13:54:46,137 DEBUG [CheckRelease] davmail.http.HttpClientAdapter  - GET http://davmail.sourceforge.net/version.txt
2021-12-15 13:54:46,283 DEBUG [CheckRelease] org.apache.http.wire  - http-outgoing-0 >> "GET /version.txt HTTP/1.1[\r][\n]"
2021-12-15 13:54:46,283 DEBUG [CheckRelease] org.apache.http.wire  - http-outgoing-0 >> "Host: davmail.sourceforge.net[\r][\n]"
2021-12-15 13:54:46,283 DEBUG [CheckRelease] org.apache.http.wire  - http-outgoing-0 >> "Connection: Keep-Alive[\r][\n]"
2021-12-15 13:54:46,283 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]"
2021-12-15 13:54:46,283 DEBUG [CheckRelease] org.apache.http.wire  - http-outgoing-0 >> "Accept-Encoding: gzip,deflate[\r][\n]"
2021-12-15 13:54:46,283 DEBUG [CheckRelease] org.apache.http.wire  - http-outgoing-0 >> "[\r][\n]"
2021-12-15 13:54:46,397 DEBUG [CheckRelease] org.apache.http.wire  - http-outgoing-0 << "HTTP/1.1 200 OK[\r][\n]"
2021-12-15 13:54:46,397 DEBUG [CheckRelease] org.apache.http.wire  - http-outgoing-0 << "Server: nginx[\r][\n]"
2021-12-15 13:54:46,397 DEBUG [CheckRelease] org.apache.http.wire  - http-outgoing-0 << "Date: Wed, 15 Dec 2021 18:54:46 GMT[\r][\n]"
2021-12-15 13:54:46,397 DEBUG [CheckRelease] org.apache.http.wire  - http-outgoing-0 << "Content-Type: text/plain[\r][\n]"
2021-12-15 13:54:46,397 DEBUG [CheckRelease] org.apache.http.wire  - http-outgoing-0 << "Content-Length: 10[\r][\n]"
2021-12-15 13:54:46,397 DEBUG [CheckRelease] org.apache.http.wire  - http-outgoing-0 << "Connection: keep-alive[\r][\n]"
2021-12-15 13:54:46,397 DEBUG [CheckRelease] org.apache.http.wire  - http-outgoing-0 << "Vary: Host[\r][\n]"
2021-12-15 13:54:46,398 DEBUG [CheckRelease] org.apache.http.wire  - http-outgoing-0 << "Last-Modified: Mon, 05 Jul 2021 15:12:37 GMT[\r][\n]"
2021-12-15 13:54:46,398 DEBUG [CheckRelease] org.apache.http.wire  - http-outgoing-0 << "ETag: "a-5c661bc59f9d8"[\r][\n]"
2021-12-15 13:54:46,398 DEBUG [CheckRelease] org.apache.http.wire  - http-outgoing-0 << "Cache-Control: max-age=3600[\r][\n]"
2021-12-15 13:54:46,398 DEBUG [CheckRelease] org.apache.http.wire  - http-outgoing-0 << "Expires: Sun, 12 Dec 2021 05:48:02 GMT[\r][\n]"
2021-12-15 13:54:46,398 DEBUG [CheckRelease] org.apache.http.wire  - http-outgoing-0 << "X-From: sfp-web-3[\r][\n]"
2021-12-15 13:54:46,398 DEBUG [CheckRelease] org.apache.http.wire  - http-outgoing-0 << "Vary: Accept-Encoding[\r][\n]"
2021-12-15 13:54:46,398 DEBUG [CheckRelease] org.apache.http.wire  - http-outgoing-0 << "Accept-Ranges: bytes[\r][\n]"
2021-12-15 13:54:46,398 DEBUG [CheckRelease] org.apache.http.wire  - http-outgoing-0 << "[\r][\n]"
2021-12-15 13:54:46,398 DEBUG [CheckRelease] org.apache.http.wire  - http-outgoing-0 << "6.0.0-3375"
2021-12-15 13:54:46,407 DEBUG [CheckRelease] davmail.DavGateway  - DavMail released version: 6.0.0-3375
2021-12-15 13:55:14,262 DEBUG [davmail.imap.ImapServer] davmail  - Connection from /127.0.0.1 on port 11143
2021-12-15 13:55:14,270 INFO  [davmail.imap.ImapServer] davmail.connection  - CONNECT - 127.0.0.1:57012 
2021-12-15 13:55:14,318 DEBUG [ImapConnection-57012] org.apache.http.conn.ssl.SSLConnectionSocketFactory  - Connecting socket to outlook.office365.com/52.96.179.226:443 with timeout 10000
2021-12-15 13:55:14,367 DEBUG [ImapConnection-57012] davmail.http.DavGatewaySSLSocketFactory  - createSocket outlook.office365.com 443
2021-12-15 13:55:14,384 DEBUG [ImapConnection-57012] org.apache.http.conn.ssl.SSLConnectionSocketFactory  - Enabled protocols: [TLSv1, TLSv1.1, TLSv1.2]
2021-12-15 13:55:14,384 DEBUG [ImapConnection-57012] 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]
2021-12-15 13:55:14,385 DEBUG [ImapConnection-57012] org.apache.http.conn.ssl.SSLConnectionSocketFactory  - Starting handshake
2021-12-15 13:55:14,597 DEBUG [ImapConnection-57012] org.apache.http.conn.ssl.SSLConnectionSocketFactory  - Secure session established
2021-12-15 13:55:14,597 DEBUG [ImapConnection-57012] org.apache.http.conn.ssl.SSLConnectionSocketFactory  -  negotiated protocol: TLSv1.2
2021-12-15 13:55:14,597 DEBUG [ImapConnection-57012] org.apache.http.conn.ssl.SSLConnectionSocketFactory  -  negotiated cipher suite: TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384
2021-12-15 13:55:14,598 DEBUG [ImapConnection-57012] org.apache.http.conn.ssl.SSLConnectionSocketFactory  -  peer principal: CN=outlook.com, O=Microsoft Corporation, L=Redmond, ST=Washington, C=US
2021-12-15 13:55:14,598 DEBUG [ImapConnection-57012] org.apache.http.conn.ssl.SSLConnectionSocketFactory  -  peer alternative names: [*.internal.outlook.com, *.outlook.com, outlook.com, office365.com, *.office365.com, *.outlook.office365.com, *.office.com, outlook.office.com, substrate.office.com, attachment.outlook.live.net, attachment.outlook.office.net, attachment.outlook.officeppe.net, attachments.office.net, *.clo.footprintdns.com, *.nrb.footprintdns.com, ccs.login.microsoftonline.com, ccs-sdf.login.microsoftonline.com, substrate-sdf.office.com, attachments-sdf.office.net, *.live.com, mail.services.live.com, hotmail.com, *.hotmail.com]
2021-12-15 13:55:14,598 DEBUG [ImapConnection-57012] org.apache.http.conn.ssl.SSLConnectionSocketFactory  -  issuer principal: CN=DigiCert Cloud Services CA-1, O=DigiCert Inc, C=US
2021-12-15 13:55:14,601 DEBUG [ImapConnection-57012] org.apache.http.wire  - http-outgoing-1 >> "GET /EWS/Exchange.asmx HTTP/1.1[\r][\n]"
2021-12-15 13:55:14,601 DEBUG [ImapConnection-57012] org.apache.http.wire  - http-outgoing-1 >> "Host: outlook.office365.com[\r][\n]"
2021-12-15 13:55:14,601 DEBUG [ImapConnection-57012] org.apache.http.wire  - http-outgoing-1 >> "Connection: Keep-Alive[\r][\n]"
2021-12-15 13:55:14,601 DEBUG [ImapConnection-57012] 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]"
2021-12-15 13:55:14,601 DEBUG [ImapConnection-57012] org.apache.http.wire  - http-outgoing-1 >> "Accept-Encoding: gzip,deflate[\r][\n]"
2021-12-15 13:55:14,602 DEBUG [ImapConnection-57012] org.apache.http.wire  - http-outgoing-1 >> "[\r][\n]"
2021-12-15 13:55:14,654 DEBUG [ImapConnection-57012] org.apache.http.wire  - http-outgoing-1 << "HTTP/1.1 401 Unauthorized[\r][\n]"
2021-12-15 13:55:14,654 DEBUG [ImapConnection-57012] org.apache.http.wire  - http-outgoing-1 << "Server: Microsoft-IIS/10.0[\r][\n]"
2021-12-15 13:55:14,654 DEBUG [ImapConnection-57012] org.apache.http.wire  - http-outgoing-1 << "request-id: fcc7dd45-0d07-73a7-0161-7bb9b72b503e[\r][\n]"
2021-12-15 13:55:14,654 DEBUG [ImapConnection-57012] org.apache.http.wire  - http-outgoing-1 << "Alt-Svc: h3=":443",h3-29=":443"[\r][\n]"
2021-12-15 13:55:14,654 DEBUG [ImapConnection-57012] org.apache.http.wire  - http-outgoing-1 << "X-WSSecurity-Enabled: True[\r][\n]"
2021-12-15 13:55:14,654 DEBUG [ImapConnection-57012] org.apache.http.wire  - http-outgoing-1 << "X-WSSecurity-For: Logon[\r][\n]"
2021-12-15 13:55:14,654 DEBUG [ImapConnection-57012] org.apache.http.wire  - http-outgoing-1 << "X-FederationTrustTokenIssuerUri: urn:federation:MicrosoftOnline[\r][\n]"
2021-12-15 13:55:14,654 DEBUG [ImapConnection-57012] org.apache.http.wire  - http-outgoing-1 << "X-WSSecurity-SymmetricKey-Enabled: True[\r][\n]"
2021-12-15 13:55:14,655 DEBUG [ImapConnection-57012] org.apache.http.wire  - http-outgoing-1 << "X-WSSecurity-X509Cert-Enabled: True[\r][\n]"
2021-12-15 13:55:14,655 DEBUG [ImapConnection-57012] org.apache.http.wire  - http-outgoing-1 << "X-OAuth-Enabled: True[\r][\n]"
2021-12-15 13:55:14,655 DEBUG [ImapConnection-57012] org.apache.http.wire  - http-outgoing-1 << "X-FirstHopCafeEFZ: MNZ[\r][\n]"
2021-12-15 13:55:14,655 DEBUG [ImapConnection-57012] org.apache.http.wire  - http-outgoing-1 << "X-Powered-By: ASP.NET[\r][\n]"
2021-12-15 13:55:14,655 DEBUG [ImapConnection-57012] org.apache.http.wire  - http-outgoing-1 << "X-FEServer: BLAPR03CA0132[\r][\n]"
2021-12-15 13:55:14,655 DEBUG [ImapConnection-57012] org.apache.http.wire  - http-outgoing-1 << "WWW-Authenticate: Basic Realm=""[\r][\n]"
2021-12-15 13:55:14,655 DEBUG [ImapConnection-57012] org.apache.http.wire  - http-outgoing-1 << "Date: Wed, 15 Dec 2021 18:55:14 GMT[\r][\n]"
2021-12-15 13:55:14,655 DEBUG [ImapConnection-57012] org.apache.http.wire  - http-outgoing-1 << "Content-Length: 0[\r][\n]"
2021-12-15 13:55:14,655 DEBUG [ImapConnection-57012] org.apache.http.wire  - http-outgoing-1 << "[\r][\n]"
2021-12-15 13:55:14,661 DEBUG [ImapConnection-57012] davmail.exchange.ExchangeSession  - Test configuration status: 401
2021-12-15 13:55:14,663 DEBUG [ImapConnection-57012] davmail  - > * OK [CAPABILITY IMAP4REV1 AUTH=LOGIN MOVE SPECIAL-USE] IMAP4rev1 DavMail 6.0.1-3390 server ready
2021-12-15 13:55:14,703 WARN  [ImapConnection-57012] davmail.imap.ImapConnection  - Client closed connection
2021-12-15 13:55:14,703 INFO  [ImapConnection-57012] davmail.connection  - DISCONNECT - 127.0.0.1:57012 
^C2021-12-15 13:56:06,597 DEBUG [Shutdown] davmail  - Stopping DavMail gateway
2021-12-15 13:56:06,599 INFO  [davmail.imap.ImapServer] davmail.connection  - DISCONNECT - 127.0.0.1:57012 
2021-12-15 13:56:06,600 INFO  [Shutdown] davmail  - DavMail gateway stopped
jpeismeier@its-nb21 ~ % davmail 
2021-12-15 13:57:32,650 DEBUG [main] davmail.DavGateway  - Start DavMail in server mode
2021-12-15 13:57:33,792 INFO  [main] davmail  - DavMail Gateway 6.0.1-3390 listening on SMTP port 1025 POP port 1110 IMAP port 11143 CALDAV port 1080 LDAP port 1389 
2021-12-15 13:57:33,870 DEBUG [CheckRelease] davmail.http.HttpClientAdapter  - GET http://davmail.sourceforge.net/version.txt
2021-12-15 13:57:34,009 DEBUG [CheckRelease] org.apache.http.wire  - http-outgoing-0 >> "GET /version.txt HTTP/1.1[\r][\n]"
2021-12-15 13:57:34,009 DEBUG [CheckRelease] org.apache.http.wire  - http-outgoing-0 >> "Host: davmail.sourceforge.net[\r][\n]"
2021-12-15 13:57:34,010 DEBUG [CheckRelease] org.apache.http.wire  - http-outgoing-0 >> "Connection: Keep-Alive[\r][\n]"
2021-12-15 13:57:34,010 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]"
2021-12-15 13:57:34,010 DEBUG [CheckRelease] org.apache.http.wire  - http-outgoing-0 >> "Accept-Encoding: gzip,deflate[\r][\n]"
2021-12-15 13:57:34,010 DEBUG [CheckRelease] org.apache.http.wire  - http-outgoing-0 >> "[\r][\n]"
2021-12-15 13:57:34,134 DEBUG [CheckRelease] org.apache.http.wire  - http-outgoing-0 << "HTTP/1.1 200 OK[\r][\n]"
2021-12-15 13:57:34,134 DEBUG [CheckRelease] org.apache.http.wire  - http-outgoing-0 << "Server: nginx[\r][\n]"
2021-12-15 13:57:34,134 DEBUG [CheckRelease] org.apache.http.wire  - http-outgoing-0 << "Date: Wed, 15 Dec 2021 18:57:34 GMT[\r][\n]"
2021-12-15 13:57:34,134 DEBUG [CheckRelease] org.apache.http.wire  - http-outgoing-0 << "Content-Type: text/plain[\r][\n]"
2021-12-15 13:57:34,134 DEBUG [CheckRelease] org.apache.http.wire  - http-outgoing-0 << "Content-Length: 10[\r][\n]"
2021-12-15 13:57:34,134 DEBUG [CheckRelease] org.apache.http.wire  - http-outgoing-0 << "Connection: keep-alive[\r][\n]"
2021-12-15 13:57:34,134 DEBUG [CheckRelease] org.apache.http.wire  - http-outgoing-0 << "Vary: Host[\r][\n]"
2021-12-15 13:57:34,134 DEBUG [CheckRelease] org.apache.http.wire  - http-outgoing-0 << "Last-Modified: Mon, 05 Jul 2021 15:12:37 GMT[\r][\n]"
2021-12-15 13:57:34,134 DEBUG [CheckRelease] org.apache.http.wire  - http-outgoing-0 << "ETag: "a-5c661bc59f9d8"[\r][\n]"
2021-12-15 13:57:34,134 DEBUG [CheckRelease] org.apache.http.wire  - http-outgoing-0 << "Cache-Control: max-age=3600[\r][\n]"
2021-12-15 13:57:34,134 DEBUG [CheckRelease] org.apache.http.wire  - http-outgoing-0 << "Expires: Sun, 12 Dec 2021 05:48:02 GMT[\r][\n]"
2021-12-15 13:57:34,135 DEBUG [CheckRelease] org.apache.http.wire  - http-outgoing-0 << "X-From: sfp-web-3[\r][\n]"
2021-12-15 13:57:34,135 DEBUG [CheckRelease] org.apache.http.wire  - http-outgoing-0 << "Vary: Accept-Encoding[\r][\n]"
2021-12-15 13:57:34,135 DEBUG [CheckRelease] org.apache.http.wire  - http-outgoing-0 << "Accept-Ranges: bytes[\r][\n]"
2021-12-15 13:57:34,135 DEBUG [CheckRelease] org.apache.http.wire  - http-outgoing-0 << "[\r][\n]"
2021-12-15 13:57:34,135 DEBUG [CheckRelease] org.apache.http.wire  - http-outgoing-0 << "6.0.0-3375"
2021-12-15 13:57:34,141 DEBUG [CheckRelease] davmail.DavGateway  - DavMail released version: 6.0.0-3375
2021-12-15 14:02:24,756 DEBUG [davmail.imap.ImapServer] davmail  - Connection from /127.0.0.1 on port 11143
2021-12-15 14:02:24,765 INFO  [davmail.imap.ImapServer] davmail.connection  - CONNECT - 127.0.0.1:57132 
2021-12-15 14:02:24,821 DEBUG [ImapConnection-57132] org.apache.http.conn.ssl.SSLConnectionSocketFactory  - Connecting socket to outlook.office.com/40.97.190.18:443 with timeout 10000
2021-12-15 14:02:24,871 DEBUG [ImapConnection-57132] davmail.http.DavGatewaySSLSocketFactory  - createSocket outlook.office.com 443
2021-12-15 14:02:24,885 DEBUG [ImapConnection-57132] org.apache.http.conn.ssl.SSLConnectionSocketFactory  - Enabled protocols: [TLSv1, TLSv1.1, TLSv1.2]
2021-12-15 14:02:24,885 DEBUG [ImapConnection-57132] 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]
2021-12-15 14:02:24,886 DEBUG [ImapConnection-57132] org.apache.http.conn.ssl.SSLConnectionSocketFactory  - Starting handshake
2021-12-15 14:02:25,061 DEBUG [ImapConnection-57132] org.apache.http.conn.ssl.SSLConnectionSocketFactory  - Secure session established
2021-12-15 14:02:25,061 DEBUG [ImapConnection-57132] org.apache.http.conn.ssl.SSLConnectionSocketFactory  -  negotiated protocol: TLSv1.2
2021-12-15 14:02:25,061 DEBUG [ImapConnection-57132] org.apache.http.conn.ssl.SSLConnectionSocketFactory  -  negotiated cipher suite: TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384
2021-12-15 14:02:25,062 DEBUG [ImapConnection-57132] org.apache.http.conn.ssl.SSLConnectionSocketFactory  -  peer principal: CN=outlook.com, O=Microsoft Corporation, L=Redmond, ST=Washington, C=US
2021-12-15 14:02:25,062 DEBUG [ImapConnection-57132] org.apache.http.conn.ssl.SSLConnectionSocketFactory  -  peer alternative names: [*.internal.outlook.com, *.outlook.com, outlook.com, office365.com, *.office365.com, *.outlook.office365.com, *.office.com, outlook.office.com, substrate.office.com, attachment.outlook.live.net, attachment.outlook.office.net, attachment.outlook.officeppe.net, attachments.office.net, *.clo.footprintdns.com, *.nrb.footprintdns.com, ccs.login.microsoftonline.com, ccs-sdf.login.microsoftonline.com, substrate-sdf.office.com, attachments-sdf.office.net, *.live.com, mail.services.live.com, hotmail.com, *.hotmail.com]
2021-12-15 14:02:25,062 DEBUG [ImapConnection-57132] org.apache.http.conn.ssl.SSLConnectionSocketFactory  -  issuer principal: CN=DigiCert Cloud Services CA-1, O=DigiCert Inc, C=US
2021-12-15 14:02:25,066 DEBUG [ImapConnection-57132] org.apache.http.wire  - http-outgoing-1 >> "GET /owa/?realm=wpi.edu&exsvurl=1&ll-cc=1033&modurl=0&login_hint=jpeismeier@wpi.edu HTTP/1.1[\r][\n]"
2021-12-15 14:02:25,066 DEBUG [ImapConnection-57132] org.apache.http.wire  - http-outgoing-1 >> "Host: outlook.office.com[\r][\n]"
2021-12-15 14:02:25,066 DEBUG [ImapConnection-57132] org.apache.http.wire  - http-outgoing-1 >> "Connection: Keep-Alive[\r][\n]"
2021-12-15 14:02:25,066 DEBUG [ImapConnection-57132] 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]"
2021-12-15 14:02:25,066 DEBUG [ImapConnection-57132] org.apache.http.wire  - http-outgoing-1 >> "Accept-Encoding: gzip,deflate[\r][\n]"
2021-12-15 14:02:25,066 DEBUG [ImapConnection-57132] org.apache.http.wire  - http-outgoing-1 >> "[\r][\n]"
2021-12-15 14:02:25,128 DEBUG [ImapConnection-57132] org.apache.http.wire  - http-outgoing-1 << "HTTP/1.1 302 Found[\r][\n]"
2021-12-15 14:02:25,129 DEBUG [ImapConnection-57132] org.apache.http.wire  - http-outgoing-1 << "Content-Length: 927[\r][\n]"
2021-12-15 14:02:25,129 DEBUG [ImapConnection-57132] org.apache.http.wire  - http-outgoing-1 << "Content-Type: text/html; charset=utf-8[\r][\n]"
2021-12-15 14:02:25,129 DEBUG [ImapConnection-57132] org.apache.http.wire  - http-outgoing-1 << "Location: https://login.microsoftonline.com/common/oauth2/authorize?client_id=00000002-0000-0ff1-ce00-000000000000&redirect_uri=https%3a%2f%2foutlook.office.com%2fowa%2f&resource=00000002-0000-0ff1-ce00-000000000000&response_mode=form_post&response_type=code+id_token&scope=openid&msafed=1&msaredir=1&login_hint=jpeismeier%40wpi.edu&client-request-id=71096d63-4422-f1fe-eac0-7604ad921f3f&protectedtoken=true&claims=%7b%22id_token%22%3a%7b%22xms_cc%22%3a%7b%22values%22%3a%5b%22CP1%22%5d%7d%7d%7d&domain_hint=wpi.edu&nonce=637751917452084267.016d18ba-bb7e-4024-b5dc-45be83fbd932&state=LYtLDsIgFACp3oUdLd9CF0Rv4BFMKU_FQGmotR5fTFzMLCaZBiF0rBwqDa1CuhdaKzYwLRWnRvJet5T1nhk3Euc0EEm5JE75iUjlwIib84PgTX0vXd7H7lRgjMnuS2jBbxg-63sr0TIcI5kmy6gQOGX_axTHfA_z9RHml30uENYEAcr5_34B[\r][\n]"
2021-12-15 14:02:25,129 DEBUG [ImapConnection-57132] org.apache.http.wire  - http-outgoing-1 << "Server: Microsoft-IIS/10.0[\r][\n]"
2021-12-15 14:02:25,129 DEBUG [ImapConnection-57132] org.apache.http.wire  - http-outgoing-1 << "request-id: 71096d63-4422-f1fe-eac0-7604ad921f3f[\r][\n]"
2021-12-15 14:02:25,129 DEBUG [ImapConnection-57132] org.apache.http.wire  - http-outgoing-1 << "Strict-Transport-Security: max-age=31536000; includeSubDomains; preload[\r][\n]"
2021-12-15 14:02:25,129 DEBUG [ImapConnection-57132] org.apache.http.wire  - http-outgoing-1 << "Alt-Svc: h3=":443",h3-29=":443"[\r][\n]"
2021-12-15 14:02:25,129 DEBUG [ImapConnection-57132] org.apache.http.wire  - http-outgoing-1 << "X-CalculatedBETarget: BL0PR02MB4596.namprd02.prod.outlook.com[\r][\n]"
2021-12-15 14:02:25,129 DEBUG [ImapConnection-57132] org.apache.http.wire  - http-outgoing-1 << "X-BackEndHttpStatus: 302[\r][\n]"
2021-12-15 14:02:25,129 DEBUG [ImapConnection-57132] org.apache.http.wire  - http-outgoing-1 << "P3P: CP="ALL IND DSP COR ADM CONo CUR CUSo IVAo IVDo PSA PSD TAI TELo OUR SAMo CNT COM INT NAV ONL PHY PRE PUR UNI"[\r][\n]"
2021-12-15 14:02:25,129 DEBUG [ImapConnection-57132] org.apache.http.wire  - http-outgoing-1 << "Set-Cookie: ClientId=EB7C0FCD9FDF40B1ACBA9929E63E325C; expires=Thu, 15-Dec-2022 19:02:25 GMT; path=/;SameSite=None; secure[\r][\n]"
2021-12-15 14:02:25,129 DEBUG [ImapConnection-57132] org.apache.http.wire  - http-outgoing-1 << "Set-Cookie: ClientId=EB7C0FCD9FDF40B1ACBA9929E63E325C; expires=Thu, 15-Dec-2022 19:02:25 GMT; path=/;SameSite=None; secure[\r][\n]"
2021-12-15 14:02:25,130 DEBUG [ImapConnection-57132] org.apache.http.wire  - http-outgoing-1 << "Set-Cookie: OIDC=1; expires=Wed, 15-Jun-2022 19:02:25 GMT; path=/;SameSite=None; secure; HttpOnly[\r][\n]"
2021-12-15 14:02:25,130 DEBUG [ImapConnection-57132] org.apache.http.wire  - http-outgoing-1 << "Set-Cookie: domainName=wpi.edu; path=/;SameSite=None; secure; HttpOnly[\r][\n]"
2021-12-15 14:02:25,130 DEBUG [ImapConnection-57132] org.apache.http.wire  - http-outgoing-1 << "Set-Cookie: RoutingKeyCookie=; expires=Sun, 15-Dec-1991 19:02:25 GMT; path=/; secure[\r][\n]"
2021-12-15 14:02:25,130 DEBUG [ImapConnection-57132] org.apache.http.wire  - http-outgoing-1 << "Set-Cookie: OpenIdConnect.token.v1=; expires=Sun, 15-Dec-1991 19:02:25 GMT; path=/; secure[\r][\n]"
2021-12-15 14:02:25,130 DEBUG [ImapConnection-57132] org.apache.http.wire  - http-outgoing-1 << "Set-Cookie: OpenIdConnect.token.v1=; domain=outlook.office.com; expires=Sun, 15-Dec-1991 19:02:25 GMT; path=/; secure[\r][\n]"
2021-12-15 14:02:25,130 DEBUG [ImapConnection-57132] org.apache.http.wire  - http-outgoing-1 << "Set-Cookie: OpenIdConnect.id_token.v1=; expires=Sun, 15-Dec-1991 19:02:25 GMT; path=/; secure[\r][\n]"
2021-12-15 14:02:25,130 DEBUG [ImapConnection-57132] org.apache.http.wire  - http-outgoing-1 << "Set-Cookie: OpenIdConnect.code.v1=; expires=Sun, 15-Dec-1991 19:02:25 GMT; path=/; secure[\r][\n]"
2021-12-15 14:02:25,130 DEBUG [ImapConnection-57132] org.apache.http.wire  - http-outgoing-1 << "Set-Cookie: OpenIdConnect.idp_nonce.v1=; expires=Sun, 15-Dec-1991 19:02:25 GMT; path=/; secure[\r][\n]"
2021-12-15 14:02:25,130 DEBUG [ImapConnection-57132] org.apache.http.wire  - http-outgoing-1 << "Set-Cookie: OpenIdConnect.idp_correlation_id=; expires=Sun, 15-Dec-1991 19:02:25 GMT; path=/; secure[\r][\n]"
2021-12-15 14:02:25,130 DEBUG [ImapConnection-57132] org.apache.http.wire  - http-outgoing-1 << "Set-Cookie: OpenIdConnect.tokenPostPath=; expires=Sun, 15-Dec-1991 19:02:25 GMT; path=/; secure[\r][\n]"
2021-12-15 14:02:25,130 DEBUG [ImapConnection-57132] org.apache.http.wire  - http-outgoing-1 << "Set-Cookie: OpenIdConnect.id_token.v1=; domain=outlook.office.com; expires=Sun, 15-Dec-1991 19:02:25 GMT; path=/; secure[\r][\n]"
2021-12-15 14:02:25,130 DEBUG [ImapConnection-57132] org.apache.http.wire  - http-outgoing-1 << "Set-Cookie: OpenIdConnect.code.v1=; domain=outlook.office.com; expires=Sun, 15-Dec-1991 19:02:25 GMT; path=/; secure[\r][\n]"
2021-12-15 14:02:25,130 DEBUG [ImapConnection-57132] org.apache.http.wire  - http-outgoing-1 << "Set-Cookie: OpenIdConnect.idp_nonce.v1=; domain=outlook.office.com; expires=Sun, 15-Dec-1991 19:02:25 GMT; path=/; secure[\r][\n]"
2021-12-15 14:02:25,131 DEBUG [ImapConnection-57132] org.apache.http.wire  - http-outgoing-1 << "Set-Cookie: OpenIdConnect.idp_correlation_id=; domain=outlook.office.com; expires=Sun, 15-Dec-1991 19:02:25 GMT; path=/; secure[\r][\n]"
2021-12-15 14:02:25,131 DEBUG [ImapConnection-57132] org.apache.http.wire  - http-outgoing-1 << "Set-Cookie: OpenIdConnect.tokenPostPath=; domain=outlook.office.com; expires=Sun, 15-Dec-1991 19:02:25 GMT; path=/; secure[\r][\n]"
2021-12-15 14:02:25,131 DEBUG [ImapConnection-57132] org.apache.http.wire  - http-outgoing-1 << "Set-Cookie: OpenIdConnect.nonce.v3.8rmoUMY99LSPVvWGqlXQBcl8RJ8NUB8vlHJ204Pj9xM=637751917452084267.016d18ba-bb7e-4024-b5dc-45be83fbd932; expires=Wed, 15-Dec-2021 20:02:25 GMT; path=/;SameSite=None; secure; HttpOnly[\r][\n]"
2021-12-15 14:02:25,131 DEBUG [ImapConnection-57132] org.apache.http.wire  - http-outgoing-1 << "Set-Cookie: HostSwitchPrg=; expires=Sun, 15-Dec-1991 19:02:25 GMT; path=/; secure[\r][\n]"
2021-12-15 14:02:25,131 DEBUG [ImapConnection-57132] org.apache.http.wire  - http-outgoing-1 << "Set-Cookie: OptInPrg=; expires=Sun, 15-Dec-1991 19:02:25 GMT; path=/; secure[\r][\n]"
2021-12-15 14:02:25,131 DEBUG [ImapConnection-57132] org.apache.http.wire  - http-outgoing-1 << "Set-Cookie: SuiteServiceProxyKey=; expires=Sun, 15-Dec-1991 19:02:25 GMT; path=/; secure[\r][\n]"
2021-12-15 14:02:25,131 DEBUG [ImapConnection-57132] org.apache.http.wire  - http-outgoing-1 << "Set-Cookie: ClientId=EB7C0FCD9FDF40B1ACBA9929E63E325C; expires=Thu, 15-Dec-2022 19:02:25 GMT; path=/;SameSite=None; secure[\r][\n]"
2021-12-15 14:02:25,131 DEBUG [ImapConnection-57132] org.apache.http.wire  - http-outgoing-1 << "Set-Cookie: OIDC=1; expires=Wed, 15-Jun-2022 19:02:25 GMT; path=/;SameSite=None; secure; HttpOnly[\r][\n]"
2021-12-15 14:02:25,131 DEBUG [ImapConnection-57132] org.apache.http.wire  - http-outgoing-1 << "Set-Cookie: domainName=wpi.edu; path=/;SameSite=None; secure; HttpOnly[\r][\n]"
2021-12-15 14:02:25,131 DEBUG [ImapConnection-57132] org.apache.http.wire  - http-outgoing-1 << "Set-Cookie: RoutingKeyCookie=; expires=Sun, 15-Dec-1991 19:02:25 GMT; path=/; secure[\r][\n]"
2021-12-15 14:02:25,131 DEBUG [ImapConnection-57132] org.apache.http.wire  - http-outgoing-1 << "Set-Cookie: OpenIdConnect.token.v1=; expires=Sun, 15-Dec-1991 19:02:25 GMT; path=/; secure[\r][\n]"
2021-12-15 14:02:25,131 DEBUG [ImapConnection-57132] org.apache.http.wire  - http-outgoing-1 << "Set-Cookie: OpenIdConnect.token.v1=; domain=outlook.office.com; expires=Sun, 15-Dec-1991 19:02:25 GMT; path=/; secure[\r][\n]"
2021-12-15 14:02:25,131 DEBUG [ImapConnection-57132] org.apache.http.wire  - http-outgoing-1 << "Set-Cookie: OpenIdConnect.id_token.v1=; expires=Sun, 15-Dec-1991 19:02:25 GMT; path=/; secure[\r][\n]"
2021-12-15 14:02:25,131 DEBUG [ImapConnection-57132] org.apache.http.wire  - http-outgoing-1 << "Set-Cookie: OpenIdConnect.code.v1=; expires=Sun, 15-Dec-1991 19:02:25 GMT; path=/; secure[\r][\n]"
2021-12-15 14:02:25,131 DEBUG [ImapConnection-57132] org.apache.http.wire  - http-outgoing-1 << "Set-Cookie: OpenIdConnect.idp_nonce.v1=; expires=Sun, 15-Dec-1991 19:02:25 GMT; path=/; secure[\r][\n]"
2021-12-15 14:02:25,131 DEBUG [ImapConnection-57132] org.apache.http.wire  - http-outgoing-1 << "Set-Cookie: OpenIdConnect.idp_correlation_id=; expires=Sun, 15-Dec-1991 19:02:25 GMT; path=/; secure[\r][\n]"
2021-12-15 14:02:25,131 DEBUG [ImapConnection-57132] org.apache.http.wire  - http-outgoing-1 << "Set-Cookie: OpenIdConnect.tokenPostPath=; expires=Sun, 15-Dec-1991 19:02:25 GMT; path=/; secure[\r][\n]"
2021-12-15 14:02:25,132 DEBUG [ImapConnection-57132] org.apache.http.wire  - http-outgoing-1 << "Set-Cookie: OpenIdConnect.id_token.v1=; domain=outlook.office.com; expires=Sun, 15-Dec-1991 19:02:25 GMT; path=/; secure[\r][\n]"
2021-12-15 14:02:25,132 DEBUG [ImapConnection-57132] org.apache.http.wire  - http-outgoing-1 << "Set-Cookie: OpenIdConnect.code.v1=; domain=outlook.office.com; expires=Sun, 15-Dec-1991 19:02:25 GMT; path=/; secure[\r][\n]"
2021-12-15 14:02:25,132 DEBUG [ImapConnection-57132] org.apache.http.wire  - http-outgoing-1 << "Set-Cookie: OpenIdConnect.idp_nonce.v1=; domain=outlook.office.com; expires=Sun, 15-Dec-1991 19:02:25 GMT; path=/; secure[\r][\n]"
2021-12-15 14:02:25,132 DEBUG [ImapConnection-57132] org.apache.http.wire  - http-outgoing-1 << "Set-Cookie: OpenIdConnect.idp_correlation_id=; domain=outlook.office.com; expires=Sun, 15-Dec-1991 19:02:25 GMT; path=/; secure[\r][\n]"
2021-12-15 14:02:25,132 DEBUG [ImapConnection-57132] org.apache.http.wire  - http-outgoing-1 << "Set-Cookie: OpenIdConnect.tokenPostPath=; domain=outlook.office.com; expires=Sun, 15-Dec-1991 19:02:25 GMT; path=/; secure[\r][\n]"
2021-12-15 14:02:25,132 DEBUG [ImapConnection-57132] org.apache.http.wire  - http-outgoing-1 << "Set-Cookie: OpenIdConnect.nonce.v3.8rmoUMY99LSPVvWGqlXQBcl8RJ8NUB8vlHJ204Pj9xM=637751917452084267.016d18ba-bb7e-4024-b5dc-45be83fbd932; expires=Wed, 15-Dec-2021 20:02:25 GMT; path=/;SameSite=None; secure; HttpOnly[\r][\n]"
2021-12-15 14:02:25,132 DEBUG [ImapConnection-57132] org.apache.http.wire  - http-outgoing-1 << "Set-Cookie: HostSwitchPrg=; expires=Sun, 15-Dec-1991 19:02:25 GMT; path=/; secure[\r][\n]"
2021-12-15 14:02:25,132 DEBUG [ImapConnection-57132] org.apache.http.wire  - http-outgoing-1 << "Set-Cookie: OptInPrg=; expires=Sun, 15-Dec-1991 19:02:25 GMT; path=/; secure[\r][\n]"
2021-12-15 14:02:25,132 DEBUG [ImapConnection-57132] org.apache.http.wire  - http-outgoing-1 << "Set-Cookie: SuiteServiceProxyKey=; expires=Sun, 15-Dec-1991 19:02:25 GMT; path=/; secure[\r][\n]"
2021-12-15 14:02:25,132 DEBUG [ImapConnection-57132] org.apache.http.wire  - http-outgoing-1 << "Set-Cookie: X-OWA-RedirectHistory=ArLym14BK0SObv2_2Qg; expires=Thu, 16-Dec-2021 01:04:25 GMT; path=/;SameSite=None; secure; HttpOnly[\r][\n]"
2021-12-15 14:02:25,132 DEBUG [ImapConnection-57132] org.apache.http.wire  - http-outgoing-1 << "X-RUM-Validated: 1[\r][\n]"
2021-12-15 14:02:25,132 DEBUG [ImapConnection-57132] org.apache.http.wire  - http-outgoing-1 << "X-Content-Type-Options: nosniff[\r][\n]"
2021-12-15 14:02:25,132 DEBUG [ImapConnection-57132] org.apache.http.wire  - http-outgoing-1 << "X-BeSku: WCS5[\r][\n]"
2021-12-15 14:02:25,132 DEBUG [ImapConnection-57132] org.apache.http.wire  - http-outgoing-1 << "X-OWA-DiagnosticsInfo: 1;0;0[\r][\n]"
2021-12-15 14:02:25,132 DEBUG [ImapConnection-57132] org.apache.http.wire  - http-outgoing-1 << "X-IIDs: 0[\r][\n]"
2021-12-15 14:02:25,132 DEBUG [ImapConnection-57132] org.apache.http.wire  - http-outgoing-1 << "X-BackEnd-Begin: 2021-12-15T19:02:25.192[\r][\n]"
2021-12-15 14:02:25,132 DEBUG [ImapConnection-57132] org.apache.http.wire  - http-outgoing-1 << "X-BackEnd-End: 2021-12-15T19:02:25.208[\r][\n]"
2021-12-15 14:02:25,132 DEBUG [ImapConnection-57132] org.apache.http.wire  - http-outgoing-1 << "X-DiagInfo: BL0PR02MB4596[\r][\n]"
2021-12-15 14:02:25,132 DEBUG [ImapConnection-57132] org.apache.http.wire  - http-outgoing-1 << "X-BEServer: BL0PR02MB4596[\r][\n]"
2021-12-15 14:02:25,132 DEBUG [ImapConnection-57132] org.apache.http.wire  - http-outgoing-1 << "X-UA-Compatible: IE=EmulateIE7[\r][\n]"
2021-12-15 14:02:25,133 DEBUG [ImapConnection-57132] org.apache.http.wire  - http-outgoing-1 << "X-Proxy-RoutingCorrectness: 1[\r][\n]"
2021-12-15 14:02:25,133 DEBUG [ImapConnection-57132] org.apache.http.wire  - http-outgoing-1 << "Report-To: {"group":"NelOfficeUpload1","max_age":7200,"endpoints":[{"url":"https://exo.nel.measure.office.net/api/report?TenantId=&FrontEnd=Cafe&DestinationEndpoint=MNZ"}],"include_subdomains":true}[\r][\n]"
2021-12-15 14:02:25,133 DEBUG [ImapConnection-57132] org.apache.http.wire  - http-outgoing-1 << "NEL: {"report_to":"NelOfficeUpload1","max_age":7200,"include_subdomains":true,"failure_fraction":1.0,"success_fraction":0.01}[\r][\n]"
2021-12-15 14:02:25,133 DEBUG [ImapConnection-57132] org.apache.http.wire  - http-outgoing-1 << "X-Proxy-BackendServerStatus: 302[\r][\n]"
2021-12-15 14:02:25,133 DEBUG [ImapConnection-57132] org.apache.http.wire  - http-outgoing-1 << "X-FirstHopCafeEFZ: MNZ[\r][\n]"
2021-12-15 14:02:25,133 DEBUG [ImapConnection-57132] org.apache.http.wire  - http-outgoing-1 << "X-FEServer: BL0PR02CA0058[\r][\n]"
2021-12-15 14:02:25,133 DEBUG [ImapConnection-57132] org.apache.http.wire  - http-outgoing-1 << "Date: Wed, 15 Dec 2021 19:02:24 GMT[\r][\n]"
2021-12-15 14:02:25,133 DEBUG [ImapConnection-57132] org.apache.http.wire  - http-outgoing-1 << "[\r][\n]"
2021-12-15 14:02:25,133 DEBUG [ImapConnection-57132] org.apache.http.wire  - http-outgoing-1 << "<html><head><title>Object moved</title></head><body>[\r][\n]"
2021-12-15 14:02:25,133 DEBUG [ImapConnection-57132] org.apache.http.wire  - http-outgoing-1 << "<h2>Object moved to <a href="https://login.microsoftonline.com/common/oauth2/authorize?client_id=00000002-0000-0ff1-ce00-000000000000&amp;redirect_uri=https%3a%2f%2foutlook.office.com%2fowa%2f&amp;resource=00000002-0000-0ff1-ce00-000000000000&amp;response_mode=form_post&amp;response_type=code+id_token&amp;scope=openid&amp;msafed=1&amp;msaredir=1&amp;login_hint=jpeismeier%40wpi.edu&amp;client-request-id=71096d63-4422-f1fe-eac0-7604ad921f3f&amp;protectedtoken=true&amp;claims=%7b%22id_token%22%3a%7b%22xms_cc%22%3a%7b%22values%22%3a%5b%22CP1%22%5d%7d%7d%7d&amp;domain_hint=wpi.edu&amp;nonce=637751917452084267.016d18ba-bb7e-4024-b5dc-45be83fbd932&amp;state=LYtLDsIgFACp3oUdLd9CF0Rv4BFMKU_FQGmotR5fTFzMLCaZBiF0rBwqDa1CuhdaKzYwLRWnRvJet5T1nhk3Euc0EEm5JE75iUjlwIib84PgTX0vXd7H7lRgjMnuS2jBbxg-63sr0TIcI5kmy6gQOGX_axTHfA_z9RHml30uENYEAcr5_34B">here</a>.</h2>[\r][\n]"
2021-12-15 14:02:25,133 DEBUG [ImapConnection-57132] org.apache.http.wire  - http-outgoing-1 << "</body></html>[\r][\n]"
2021-12-15 14:02:25,148 DEBUG [ImapConnection-57132] davmail.http.HttpClientAdapter  - Add cookie [version: 0][name: ClientId][value: EB7C0FCD9FDF40B1ACBA9929E63E325C][domain: outlook.office.com][path: /][expiry: Thu Dec 15 14:02:25 EST 2022]
2021-12-15 14:02:25,148 DEBUG [ImapConnection-57132] davmail.http.HttpClientAdapter  - Add cookie [version: 0][name: ClientId][value: EB7C0FCD9FDF40B1ACBA9929E63E325C][domain: outlook.office.com][path: /][expiry: Thu Dec 15 14:02:25 EST 2022]
2021-12-15 14:02:25,149 DEBUG [ImapConnection-57132] davmail.http.HttpClientAdapter  - Add cookie [version: 0][name: OIDC][value: 1][domain: outlook.office.com][path: /][expiry: Wed Jun 15 15:02:25 EDT 2022]
2021-12-15 14:02:25,149 DEBUG [ImapConnection-57132] davmail.http.HttpClientAdapter  - Add cookie [version: 0][name: domainName][value: wpi.edu][domain: outlook.office.com][path: /][expiry: null]
2021-12-15 14:02:25,149 DEBUG [ImapConnection-57132] davmail.http.HttpClientAdapter  - Add cookie [version: 0][name: RoutingKeyCookie][value: ][domain: outlook.office.com][path: /][expiry: Sun Dec 15 14:02:25 EST 1991]
2021-12-15 14:02:25,149 DEBUG [ImapConnection-57132] davmail.http.HttpClientAdapter  - Add cookie [version: 0][name: OpenIdConnect.token.v1][value: ][domain: outlook.office.com][path: /][expiry: Sun Dec 15 14:02:25 EST 1991]
2021-12-15 14:02:25,150 DEBUG [ImapConnection-57132] davmail.http.HttpClientAdapter  - Add cookie [version: 0][name: OpenIdConnect.token.v1][value: ][domain: outlook.office.com][path: /][expiry: Sun Dec 15 14:02:25 EST 1991]
2021-12-15 14:02:25,150 DEBUG [ImapConnection-57132] davmail.http.HttpClientAdapter  - Add cookie [version: 0][name: OpenIdConnect.id_token.v1][value: ][domain: outlook.office.com][path: /][expiry: Sun Dec 15 14:02:25 EST 1991]
2021-12-15 14:02:25,150 DEBUG [ImapConnection-57132] davmail.http.HttpClientAdapter  - Add cookie [version: 0][name: OpenIdConnect.code.v1][value: ][domain: outlook.office.com][path: /][expiry: Sun Dec 15 14:02:25 EST 1991]
2021-12-15 14:02:25,151 DEBUG [ImapConnection-57132] davmail.http.HttpClientAdapter  - Add cookie [version: 0][name: OpenIdConnect.idp_nonce.v1][value: ][domain: outlook.office.com][path: /][expiry: Sun Dec 15 14:02:25 EST 1991]
2021-12-15 14:02:25,151 DEBUG [ImapConnection-57132] davmail.http.HttpClientAdapter  - Add cookie [version: 0][name: OpenIdConnect.idp_correlation_id][value: ][domain: outlook.office.com][path: /][expiry: Sun Dec 15 14:02:25 EST 1991]
2021-12-15 14:02:25,151 DEBUG [ImapConnection-57132] davmail.http.HttpClientAdapter  - Add cookie [version: 0][name: OpenIdConnect.tokenPostPath][value: ][domain: outlook.office.com][path: /][expiry: Sun Dec 15 14:02:25 EST 1991]
2021-12-15 14:02:25,152 DEBUG [ImapConnection-57132] davmail.http.HttpClientAdapter  - Add cookie [version: 0][name: OpenIdConnect.id_token.v1][value: ][domain: outlook.office.com][path: /][expiry: Sun Dec 15 14:02:25 EST 1991]
2021-12-15 14:02:25,152 DEBUG [ImapConnection-57132] davmail.http.HttpClientAdapter  - Add cookie [version: 0][name: OpenIdConnect.code.v1][value: ][domain: outlook.office.com][path: /][expiry: Sun Dec 15 14:02:25 EST 1991]
2021-12-15 14:02:25,152 DEBUG [ImapConnection-57132] davmail.http.HttpClientAdapter  - Add cookie [version: 0][name: OpenIdConnect.idp_nonce.v1][value: ][domain: outlook.office.com][path: /][expiry: Sun Dec 15 14:02:25 EST 1991]
2021-12-15 14:02:25,152 DEBUG [ImapConnection-57132] davmail.http.HttpClientAdapter  - Add cookie [version: 0][name: OpenIdConnect.idp_correlation_id][value: ][domain: outlook.office.com][path: /][expiry: Sun Dec 15 14:02:25 EST 1991]
2021-12-15 14:02:25,153 DEBUG [ImapConnection-57132] davmail.http.HttpClientAdapter  - Add cookie [version: 0][name: OpenIdConnect.tokenPostPath][value: ][domain: outlook.office.com][path: /][expiry: Sun Dec 15 14:02:25 EST 1991]
2021-12-15 14:02:25,153 DEBUG [ImapConnection-57132] davmail.http.HttpClientAdapter  - Add cookie [version: 0][name: OpenIdConnect.nonce.v3.8rmoUMY99LSPVvWGqlXQBcl8RJ8NUB8vlHJ204Pj9xM][value: 637751917452084267.016d18ba-bb7e-4024-b5dc-45be83fbd932][domain: outlook.office.com][path: /][expiry: Wed Dec 15 15:02:25 EST 2021]
2021-12-15 14:02:25,153 DEBUG [ImapConnection-57132] davmail.http.HttpClientAdapter  - Add cookie [version: 0][name: HostSwitchPrg][value: ][domain: outlook.office.com][path: /][expiry: Sun Dec 15 14:02:25 EST 1991]
2021-12-15 14:02:25,154 DEBUG [ImapConnection-57132] davmail.http.HttpClientAdapter  - Add cookie [version: 0][name: OptInPrg][value: ][domain: outlook.office.com][path: /][expiry: Sun Dec 15 14:02:25 EST 1991]
2021-12-15 14:02:25,154 DEBUG [ImapConnection-57132] davmail.http.HttpClientAdapter  - Add cookie [version: 0][name: SuiteServiceProxyKey][value: ][domain: outlook.office.com][path: /][expiry: Sun Dec 15 14:02:25 EST 1991]
2021-12-15 14:02:25,154 DEBUG [ImapConnection-57132] davmail.http.HttpClientAdapter  - Add cookie [version: 0][name: ClientId][value: EB7C0FCD9FDF40B1ACBA9929E63E325C][domain: outlook.office.com][path: /][expiry: Thu Dec 15 14:02:25 EST 2022]
2021-12-15 14:02:25,155 DEBUG [ImapConnection-57132] davmail.http.HttpClientAdapter  - Add cookie [version: 0][name: OIDC][value: 1][domain: outlook.office.com][path: /][expiry: Wed Jun 15 15:02:25 EDT 2022]
2021-12-15 14:02:25,155 DEBUG [ImapConnection-57132] davmail.http.HttpClientAdapter  - Add cookie [version: 0][name: domainName][value: wpi.edu][domain: outlook.office.com][path: /][expiry: null]
2021-12-15 14:02:25,155 DEBUG [ImapConnection-57132] davmail.http.HttpClientAdapter  - Add cookie [version: 0][name: RoutingKeyCookie][value: ][domain: outlook.office.com][path: /][expiry: Sun Dec 15 14:02:25 EST 1991]
2021-12-15 14:02:25,155 DEBUG [ImapConnection-57132] davmail.http.HttpClientAdapter  - Add cookie [version: 0][name: OpenIdConnect.token.v1][value: ][domain: outlook.office.com][path: /][expiry: Sun Dec 15 14:02:25 EST 1991]
2021-12-15 14:02:25,155 DEBUG [ImapConnection-57132] davmail.http.HttpClientAdapter  - Add cookie [version: 0][name: OpenIdConnect.token.v1][value: ][domain: outlook.office.com][path: /][expiry: Sun Dec 15 14:02:25 EST 1991]
2021-12-15 14:02:25,156 DEBUG [ImapConnection-57132] davmail.http.HttpClientAdapter  - Add cookie [version: 0][name: OpenIdConnect.id_token.v1][value: ][domain: outlook.office.com][path: /][expiry: Sun Dec 15 14:02:25 EST 1991]
2021-12-15 14:02:25,156 DEBUG [ImapConnection-57132] davmail.http.HttpClientAdapter  - Add cookie [version: 0][name: OpenIdConnect.code.v1][value: ][domain: outlook.office.com][path: /][expiry: Sun Dec 15 14:02:25 EST 1991]
2021-12-15 14:02:25,156 DEBUG [ImapConnection-57132] davmail.http.HttpClientAdapter  - Add cookie [version: 0][name: OpenIdConnect.idp_nonce.v1][value: ][domain: outlook.office.com][path: /][expiry: Sun Dec 15 14:02:25 EST 1991]
2021-12-15 14:02:25,156 DEBUG [ImapConnection-57132] davmail.http.HttpClientAdapter  - Add cookie [version: 0][name: OpenIdConnect.idp_correlation_id][value: ][domain: outlook.office.com][path: /][expiry: Sun Dec 15 14:02:25 EST 1991]
2021-12-15 14:02:25,157 DEBUG [ImapConnection-57132] davmail.http.HttpClientAdapter  - Add cookie [version: 0][name: OpenIdConnect.tokenPostPath][value: ][domain: outlook.office.com][path: /][expiry: Sun Dec 15 14:02:25 EST 1991]
2021-12-15 14:02:25,157 DEBUG [ImapConnection-57132] davmail.http.HttpClientAdapter  - Add cookie [version: 0][name: OpenIdConnect.id_token.v1][value: ][domain: outlook.office.com][path: /][expiry: Sun Dec 15 14:02:25 EST 1991]
2021-12-15 14:02:25,157 DEBUG [ImapConnection-57132] davmail.http.HttpClientAdapter  - Add cookie [version: 0][name: OpenIdConnect.code.v1][value: ][domain: outlook.office.com][path: /][expiry: Sun Dec 15 14:02:25 EST 1991]
2021-12-15 14:02:25,157 DEBUG [ImapConnection-57132] davmail.http.HttpClientAdapter  - Add cookie [version: 0][name: OpenIdConnect.idp_nonce.v1][value: ][domain: outlook.office.com][path: /][expiry: Sun Dec 15 14:02:25 EST 1991]
2021-12-15 14:02:25,158 DEBUG [ImapConnection-57132] davmail.http.HttpClientAdapter  - Add cookie [version: 0][name: OpenIdConnect.idp_correlation_id][value: ][domain: outlook.office.com][path: /][expiry: Sun Dec 15 14:02:25 EST 1991]
2021-12-15 14:02:25,158 DEBUG [ImapConnection-57132] davmail.http.HttpClientAdapter  - Add cookie [version: 0][name: OpenIdConnect.tokenPostPath][value: ][domain: outlook.office.com][path: /][expiry: Sun Dec 15 14:02:25 EST 1991]
2021-12-15 14:02:25,158 DEBUG [ImapConnection-57132] davmail.http.HttpClientAdapter  - Add cookie [version: 0][name: OpenIdConnect.nonce.v3.8rmoUMY99LSPVvWGqlXQBcl8RJ8NUB8vlHJ204Pj9xM][value: 637751917452084267.016d18ba-bb7e-4024-b5dc-45be83fbd932][domain: outlook.office.com][path: /][expiry: Wed Dec 15 15:02:25 EST 2021]
2021-12-15 14:02:25,158 DEBUG [ImapConnection-57132] davmail.http.HttpClientAdapter  - Add cookie [version: 0][name: HostSwitchPrg][value: ][domain: outlook.office.com][path: /][expiry: Sun Dec 15 14:02:25 EST 1991]
2021-12-15 14:02:25,159 DEBUG [ImapConnection-57132] davmail.http.HttpClientAdapter  - Add cookie [version: 0][name: OptInPrg][value: ][domain: outlook.office.com][path: /][expiry: Sun Dec 15 14:02:25 EST 1991]
2021-12-15 14:02:25,159 DEBUG [ImapConnection-57132] davmail.http.HttpClientAdapter  - Add cookie [version: 0][name: SuiteServiceProxyKey][value: ][domain: outlook.office.com][path: /][expiry: Sun Dec 15 14:02:25 EST 1991]
2021-12-15 14:02:25,159 DEBUG [ImapConnection-57132] davmail.http.HttpClientAdapter  - Add cookie [version: 0][name: X-OWA-RedirectHistory][value: ArLym14BK0SObv2_2Qg][domain: outlook.office.com][path: /][expiry: Wed Dec 15 20:04:25 EST 2021]
2021-12-15 14:02:25,161 DEBUG [ImapConnection-57132] davmail.exchange.ExchangeSession  - Test configuration status: 302
2021-12-15 14:02:25,163 DEBUG [ImapConnection-57132] davmail  - > * OK [CAPABILITY IMAP4REV1 AUTH=LOGIN MOVE SPECIAL-USE] IMAP4rev1 DavMail 6.0.1-3390 server ready
2021-12-15 14:02:25,198 WARN  [ImapConnection-57132] davmail.imap.ImapConnection  - Client closed connection
2021-12-15 14:02:25,198 INFO  [ImapConnection-57132] davmail.connection  - DISCONNECT - 127.0.0.1:57132 

with several iterations of a config file below:


#DavMail settings
calendar.debug.log=true
calendar.debug.log.verbose=true
davmail.allowRemote=false
davmail.bindAddress=
davmail.caldavAlarmSound=
davmail.caldavAutoSchedule=false
davmail.caldavEditNotifications=false
davmail.caldavPastDelay=90
davmail.caldavPort=1080
davmail.clientSoTimeout=
davmail.defaultDomain=wpi.edu
davmail.disableGuiNotifications=false
davmail.disableUpdateCheck=false
davmail.enableEws=auto
davmail.enableKeepAlive=true
davmail.enableKerberos=false
davmail.enableOauth2=true
davmail.enableProxy=false
davmail.folderSizeLimit=
davmail.forceActiveSyncUpdate=false
davmail.imapAlwaysApproxMsgSize=true
davmail.imapAutoExpunge=true
davmail.imapIdleDelay=
davmail.imapPort=11143
davmail.keepDelay=30
davmail.ldapPort=1389
davmail.logFilePath=/var/tmp/davmail.log
davmail.logFileSize=
davmail.mode=O365Modern
davmail.noProxyFor=
davmail.oauth.clientId=0738689d-6431-4d21-ac0d-a2ff0bc2527b
davmail.oauth.persistToken=true
#davmail.oauth.tokenFilePath=
#davmail.oauth.redirectUri=urn:ietf:wg:oauth:2.0:oob
davmail.oauth.redirectUri=https://login.microsoftonline.com/common/oauth2/nativeclient
davmail.popMarkReadOnRetr=false
davmail.popPort=1110
davmail.proxyHost=
davmail.proxyPassword=
davmail.proxyPort=
davmail.proxyUser=
davmail.sentKeepDelay=90
davmail.server=false
davmail.server.certificate.hash=02\:5d\:e9\:86\:1c\:f8\:f1\:d4\:de\:46\:e9\:16\:6e\:1f\:9d\:2e
davmail.showStartupBanner=true
davmail.smtpPort=1025
davmail.smtpSaveInSent=false
davmail.ssl.clientKeystoreFile=
davmail.ssl.clientKeystorePass=
davmail.ssl.clientKeystoreType=PKCS12
davmail.ssl.keyPass=password
davmail.ssl.keystoreFile=davmail.p12
davmail.ssl.keystorePass=password
davmail.ssl.keystoreType=PKCS12
davmail.ssl.nosecurecaldav=false
davmail.ssl.nosecureimap=false
davmail.ssl.nosecureldap=false
davmail.ssl.nosecurepop=false
davmail.ssl.nosecuresmtp=false
davmail.ssl.pkcs11Config=
davmail.ssl.pkcs11Library=
davmail.url=https://outlook.office.com/owa/?realm=wpi.edu&exsvurl=1&ll-cc=1033&modurl=0&login_hint=jpeismeier@wpi.edu
#davmail.url=https\://outlook.office365.com/EWS/Exchange.asmx
davmail.useSystemProxies=false
log4j.logger.davmail=DEBUG
log4j.logger.httpclient.wire=DEBUG
log4j.logger.org.apache.commons.httpclient=INFO
log4j.rootLogger=DEBUG
sun.net.http.allowRestrictedHeaders=true
# https://divansantana.com/mfa-outlook-for-linux-email/

Is anything with my config jumping out as to why I can't get davmail to use call Authenticator? I have cli that can generate a token? Can the token be read by davmail ?

Thank you.

-- John