Authentication errors
Brought to you by:
mguessan
I\'m getting authentication errors from DavMail from time to time. I have the impression that DavMail mixes up my accounts (even though both have an identical password). The username is similar for both of them, the second account has the same username as the first but with a 1 added.
When I restart DavMail, the problems are always fixed for the first account that I then try to access. The second account (often) fails then. I have attached a log file. After a while, both accounts tend to fail. A restart of DavMail (not Thunderbird) immediately fixes this.
Using Windows 7, Java 1.6u35 (64-bit) and Thunderbird version 16.0.2.
Log file containing multiple authentication failures
I don't think this is a mixed account information issue. It's probably some kind of session timeout that is not detected correctly by DavMail
=> session reopen fails
That's quite possible actually. I also have the impression that over time (matter of days) the problems seem to mostly disappear.
Is there anything else I could provide to help solve this problem?
You could try to set WIRE logging category to DEBUG to get more details. Warning; this will slow down DavMail a little bit.
I've enabled the WIRE logging now. I'll upload a new log when the problem occurs again.
Another realization I just had though, the hostname I've set up in DavMail is load-balanced through DNS (it returns two IP addresses in random order). Maybe DavMail thinks it can reuse sessions to one host with another while this is not the case?
Log file containing WIRE DEBUG log
I just uploaded a second file with WIRE logging set to debug at a moment there was a login issue.
I also changed my DavMail settings to use one of the two mailservers directly (this is not in the log file), this seems to work without problems so far, so I guess the problem is indeed related to the load balancing.
There may be a difference between the two Exchange servers: one answers redirect at /exchange, the other one directly 401.
You should probably try to force DavMail in EWS mode and use the following url:
https://webmail.nl.hr.group/owa/
Log file containing WIRE DEBUG log with suggestion to use /owa + force EWS
It seems that's not just it. I've attached another log with your suggested settings.
I just tested the URLs in a webbrowser. Seems the setup here is just completely broken. One server has /exchange and /exchweb and the other has /owa. When the other is in a different mood, it seems to have /owa as well, but this is not reliable.
I'll just hardcode one of the servers in my settings, I don't think this is something that DavMail can solve. Otherwise I'll try to provide more information.
Thanks a lot for your help!
Server side issue