Re: [Davmail-users] Davmail suddenly fails login with All network interfaces down or host unreachab
Brought to you by:
mguessan
|
From: Mickaël G. <mgu...@fr...> - 2016-05-05 17:01:13
|
Le 05/05/2016 15:13, Steinar Bang a écrit : >>>>>> "Sylvan, Kayvan"<Kay...@di...>: >> >I got my setup to work by changing the URL from the owa version to the EWS endpoint: >> >Original setting: davmail.url=https://outlook.office365.com/owa >> >New setting: davmail.url=https://outlook.office.com/EWS/Exchange.asmx > Thanks! This worked for me as well. > > I could use the new setting as written above. I did not have to add > /?realm=xxxx.yyy > like David Wells did. => Ok, a little more on this: Office365 sends a cookie with a weird domain: Set-Cookie: esctx=********; domain=.login.microsoftonline.com; path=/; secure; HttpOnly => domain name is .login.microsoftonline.com, actual host is login.microsoftonline.com => failure I implemented a workaround in DavMailCookieSpec Anyway, accessing the EWS endpoint directly is probably the best approach with Office365: https://outlook.office.com/EWS/Exchange.asmx Best regards, -- Mickael Guessant mailto:mgu...@fr... |