Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#187 Cannot get Davmail working with custom OWA page

open
nobody
None
5
2013-08-25
2013-02-26
Anonymous
No

I have a customer who i am trying to get Davmail working for but they have a custom OWA login page and it seems Davmail does not like it. This is the OWA page:
https://email.advocatehealth.com

It will redirect a few times and eventually get you to the login page. If i login with the credentials on the custom page it works fine, but i cannot get Davmail to work with it.

Discussion

  • David
    David
    2013-08-14

    This is the same issue that I've been faced with. So this authentication is via AD FS (Active Directory Federated Services), and it seems from my logs that Davmail, when trying to authenticate, gets redirected to the ADFS page and errors out afterwards, not being able to find a user identity on the resulting page.

    The good news is that the ADFS pages appear to be consistent - in terms of the form element on the page, and the input elements having the same names. The only thing that appears different is that the form's action contains the domain name for the different OWA service. If Davmail were able to authenticate to this form, then this might solve the issue.

     
  • David
    David
    2013-08-14

    I should mention that this was a for a Microsoft-hosted Office 365 instance and using the original URL that I had (eg the one that shows up when I access OWA), was erroring in the above fashion. Curiously, I could authenticate successfully via basic auth to the /EWS/Exchange.asmx URL -- no ADFS requested or required.

    As it transpires, by switching my URL over to another, similar Microsoft-hosted URL, the issue has resolved itself and Davmail is now working. No idea why this might be the case. If others are having this trouble and there are other OWA URLs you can try, try that first.

     
  • Note that the url provided in initial report is the authentication form server, not the target Exchange (Office 365) server.
    See http://stackoverflow.com/questions/6801174/davmail-office365 for some clues on how to find real OWA address.