Re: [Davmail-users] 2 minute delay when sending mail after network change
Brought to you by:
mguessan
From: Dan C. <jd...@uw...> - 2022-07-30 14:11:43
|
The problem happens if I switch to a different wifi network in my home. So I still have the same external IP address, but a different LAN IP address (192.168.x.y). It also happens when I switch from home to work, in which case I of course have a different external IP address. I don't think either situation should affect how I connect to the remote O365 server. I don't use any HTTP proxies, VPNs, etc. Note that the log shows that after the network change, davmail is still able to talk to the server: the EHLO gets a response. It's the authentication step that seems to block. If it would help, I can send more logs, e.g. for a fast connection when the network hasn't changed. Dan On Jul 30, 2022, Mickaël Guessant <mgu...@fr...> wrote: > When you say switch wifi network, do you mean your network location IP address, ... also changes ? > > I had issues a long time ago with company Exchange that had a > different IP between external and internal facing frontend => had to > wait for DNS > resolution to expire. > > However you seem to access O365 so shouldn't be an issue. > > The 2 minute delay suggest that cached connections in DavMail fail > after you switch, and we have an background thread to close idle > connections. > > Another question: do you have HTTP proxies on one side ? > > Regards, > > > On 28/07/2022 22:38, Dan Christensen wrote: >> I can reproduce the issue with davmail_5.5.1-3299-1_all.deb available >> at https://sourceforge.net/projects/davmail/files/davmail/5.5.1/ , >> so the upgrade to davmail doesn't explain the change. Not sure what >> else to suggest. >> >> Dan >> >> On Jul 28, 2022, Dan Christensen <jd...@uw...> wrote: >> >>> If I send an email message through davmail, then switch wifi networks, >>> and then try to send a second message, there is a delay of two minutes. >>> I have included a debug log below, from the start of the second >>> connection until just after the 2 minute delay. (The last two >>> timestamps differ by 2 minutes.) I've used davmail for over a year, but >>> this only started happening recently. It's possible it started when I >>> upgraded my system from Ubuntu 21.10 to 22.04, which upgraded davmail >>> from 5.5.1.3299-5 to 6.0.1.3390-1. I see that there were O365 changes >>> there, so maybe they are related? >>> >>> I have also included my .davmail.properties (minus the refresh token). >>> >>> Any advice? >>> >>> Thanks, >>> >>> Dan >>> >>> 2022-07-28 16:04:39,795 DEBUG [davmail.smtp.SmtpServer] davmail - >>> Connection from /127.0.0.1 on port 1025 >>> 2022-07-28 16:04:39,795 INFO [davmail.smtp.SmtpServer] >>> davmail.connection - CONNECT - 127.0.0.1:53760 >>> 2022-07-28 16:04:39,873 DEBUG [SmtpConnection-53760] >>> davmail.http.DavGatewaySSLSocketFactory - createSocket >>> outlook.office365.com 443 >>> 2022-07-28 16:04:40,207 DEBUG [SmtpConnection-53760] >>> davmail.exchange.ExchangeSession - Test configuration status: 401 >>> 2022-07-28 16:04:40,208 DEBUG [SmtpConnection-53760] davmail - > >>> 220 DavMail 6.0.1-trunk SMTP ready at Thu Jul 28 16:04:40 EDT 2022 >>> 2022-07-28 16:04:40,208 DEBUG [SmtpConnection-53760] davmail - < EHLO snowy >>> 2022-07-28 16:04:40,208 DEBUG [SmtpConnection-53760] davmail - > 250-snowy >>> 2022-07-28 16:04:40,208 DEBUG [SmtpConnection-53760] davmail - > 250-AUTH LOGIN PLAIN >>> 2022-07-28 16:04:40,209 DEBUG [SmtpConnection-53760] davmail - > 250-8BITMIME >>> 2022-07-28 16:04:40,209 DEBUG [SmtpConnection-53760] davmail - > 250 Hello >>> 2022-07-28 16:04:40,209 DEBUG [SmtpConnection-53760] davmail - < AUTH PLAIN ******** >>> 2022-07-28 16:04:40,209 DEBUG [SmtpConnection-53760] >>> davmail.exchange.ExchangeSession - Got session >>> davmail.exchange.ews.EwsExchangeSession@50e0b9aa from cache >>> 2022-07-28 16:06:40,234 DEBUG [SmtpConnection-53760] >>> davmail.exchange.ExchangeSession - Session >>> davmail.exchange.ews.EwsExchangeSession@50e0b9aa for user >>> jd...@uw... expired >>> >>> >>> davmail.ssl.keystoreType= >>> davmail.ssl.keystorePass= >>> davmail.proxyPassword= >>> davmail.oauth.tenantId= >>> davmail.oauth.clientId= >>> davmail.smtpPort=1025 >>> davmail.enableKerberos=false >>> davmail.folderSizeLimit= >>> davmail.forceActiveSyncUpdate=false >>> davmail.imapAutoExpunge=false >>> davmail.useSystemProxies=false >>> davmail.proxyUser= >>> davmail.caldavEditNotifications=false >>> davmail.ssl.nosecuresmtp=false >>> davmail.caldavPastDelay=0 >>> davmail.ssl.keyPass= >>> log4j.logger.httpclient.wire=WARN >>> davmail.noProxyFor= >>> davmail.server=true >>> log4j.logger.org.apache.commons.httpclient=WARN >>> davmail.popMarkReadOnRetr=false >>> davmail.ssl.nosecureimap=false >>> davmail.disableTrayActivitySwitch=false >>> davmail.caldavAutoSchedule=true >>> davmail.enableProxy=false >>> davmail.proxyPort= >>> davmail.logFileSize=10MB >>> davmail.mode=O365Manual >>> davmail.smtpSaveInSent=false >>> davmail.bindAddress= >>> davmail.ssl.nosecurepop=false >>> davmail.ssl.pkcs11Library= >>> log4j.rootLogger=WARN >>> davmail.ssl.keystoreFile= >>> log4j.logger.davmail=DEBUG >>> #log4j.logger.davmail=INFO >>> davmail.ssl.clientKeystoreType= >>> davmail.clientSoTimeout= >>> davmail.ssl.pkcs11Config= >>> davmail.imapPort= >>> davmail.ssl.clientKeystorePass= >>> davmail.url=https://outlook.office365.com/EWS/Exchange.asmx >>> davmail.sentKeepDelay=0 >>> davmail.ssl.nosecureldap=false >>> davmail.imapAlwaysApproxMsgSize=false >>> davmail.ssl.nosecurecaldav=false >>> davmail.popPort= >>> davmail.defaultDomain= >>> davmail.showStartupBanner=false >>> davmail.proxyHost= >>> davmail.oauth.persistToken=true >>> davmail.ldapPort= >>> davmail.server.certificate.hash= >>> log4j.logger.org.apache.http.wire=WARN >>> davmail.disableGuiNotifications=false >>> davmail.imapIdleDelay= >>> davmail.allowRemote=false >>> davmail.disableUpdateCheck=false >>> log4j.logger.org.apache.http=WARN >>> davmail.caldavPort= >>> davmail.enableKeepAlive=true >>> davmail.ssl.clientKeystoreFile= >>> davmail.logFilePath=/scratch/davmail.log >>> davmail.carddavReadPhoto=true >>> davmail.keepDelay=30 >>> davmail.oauth.redirectUri= >>> davmail.caldavAlarmSound= >> >> >> _______________________________________________ >> Davmail-users mailing list >> Dav...@li... >> https://lists.sourceforge.net/lists/listinfo/davmail-users |