DavMail + Office365
Asked Answered
E

11

24

Does anyone know what Exchange OWA URL I should use for connecting to Office 365 via DavMail? Tried:

https://portal.microsoftonline.com/
https://pod51013.outlook.com/ews/exchange.asmx
https://pod51013.outlook.com/owa/

Many thanks

Evita answered 23/7, 2011 at 14:53 Comment(1)
Note that at least currently you can probably connect to office 365 over IMAPGuillory
B
24

https://outlook.office365.com/EWS/Exchange.asmx is working for me after a frustrating few hours.

DavMail 4.7.2-2427, with "Exchange protocol" set to EWS.

A "/owa/" URL was in place up until I was forced to change my domain password yesterday. (We've got our domain server up in Azure and integrated with our 365 AD and get redirected to our own ADFS for authentication.... or something.)

Using the /owa/ url I was getting a "554 Authenticated failed All network interfaces down or host unreachable !" error out of DavMail which seemed to have been the result of the underlying Apache HTTP classes not liking the web-page it was getting back. ("Unrecognized cookie attribute: name=HttpOnly, value=null")

Bounds answered 29/4, 2016 at 17:44 Comment(6)
Thanks for this. For my information, how did you guess this URL?Amadoamador
@Amadoamador Googling + the recollection of maybe having used it (the /EWS/Exchange.asmx bit) for an on-premise Exchange in the past.Bounds
I can concur that this works with a recent (up-to-date as of September 2016) version of DavMail and an Office365 account provided by my academic institution. Immediately prior, as this answer notes, just the /owa/ URL was working fine, and before that, the podXXXXX.outlook.com host was what I had been using successfully for several years. Neither of those other options seem to function anymore, and the DavMail ticket mentioned below has some context on that.Grind
This worked for me, though I also had to change my thunderbird username from DOMAIN\username to DOMAIN\[email protected]. Thanks!Pyroclastic
Unfortunately using outlook.office365.com/EWS/Exchange.asmx does not work for me - no matter how I play around with the username. My company has a two factor auth in place that requires verification via a mobile phone code. I assume that is the reason. Is there any way to deal with that in conjunction with Davmail?Mcmillon
@Mcmillon If I understand correctly, you can create an app password here (when you're logged in to Office 365) for applications that cannot handle two-factor authentication. Write it down immediately, because you won't be able to see it again, and use that password instead of the one you got from your employer.Broker
L
14

Go to mail.office365.com and you should be redirected to a [host].outlook.com/owa/ address. Use that as your OWA URL in DavMail and also be sure that "Enable EWS" is selected in the Advanced tab of DavMail settings. Use your full OWA domain as your username to log in (i.e. [email protected]) and you should be in there like a dirty shirt.

Luanaluanda answered 24/2, 2012 at 3:59 Comment(0)
F
10

I got this from https://sourceforge.net/p/davmail/support-requests/236/.

davmail.url=https://outlook.office365.com/EWS/Exchange.asmx

davmail.enableEws=true

then update Thunderbird/OUTLOOK to have yourusername@yourcompany, for both incoming and smtp and you should be good.

Floorwalker answered 4/5, 2016 at 19:41 Comment(1)
This appears to have fixed it for me. Thanks.Tanny
G
9

After testing several other possibilities, the value which was for working for me in property "OWA (Exchange) URL" was :

https://outlook.office365.com/owa/?realm=mycompany.com

Edit : This URL does not work anymore for me since 29/04/2016 (StringIndexOutOfBoundsException in cookie handling). Maybe it still works for some setups ?

Gunstock answered 24/3, 2015 at 13:57 Comment(1)
I have also started to face same issues for the last one week. I see StringIndx**Exception and my calendar is not syncing. I get this error in my log and it stops fetching calendar. davmail.exchange.ExchangeSession - Connect exception: java.lang.StringIndexOutOfBoundsException String index out of range: -1Osteo
C
3

This is now covered in the DavMail FAQ:

Office 365

Office 365 EWS endpoint is now standard for all customers: https://outlook.office365.com/EWS/Exchange.asmx

Also make sure you set mode to EWS in settings

Is Office 365 modern authentication / MFA supported ?

Office 365 modern authentication is available with the following modes:

  • O365Interactive: will open an authentication window to let you enter your credentials and go through MFA check and
  • O365Modern: same logic as O365Interactive, but use client provided credentials for Oauth negotiation, trigger PhoneApp MFA check transparently

Personally I didn't have any joy with O365Modern, but O365Interactive worked perfectly.

Che answered 27/6, 2020 at 9:25 Comment(0)
S
2

At http://help.outlook.com/en-us/beta/dd936216.aspx you'll find instructions on how to determine the name of your Office365 server under the question "How do I find the server settings?"

For example, your connection details might look like this:

Your Name

Help

Use these settings to access your email using POP, IMAP or SMTP.

POP setting Server name: xyz.outlook.com Port: 99999 Encryption method: SSL

IMAP setting Server name: xyz.outlook.com Port: 99999 Encryption method: SSL

SMTP setting Server name: xyz.outlook.com Port: 99999 Encryption method: TLS

Using the name of the server, you can form the name of the Exchange OWA server.

In this case:

 https://xyz.outlook.com/owa/

There are also hints at http://help.outlook.com/en-au/140/dd125429.aspx

Scan answered 18/10, 2011 at 19:30 Comment(0)
S
2

You can find your own URL by testing your account in https://testconnectivity.microsoft.com Then, search in the bunch of information to find it.

Sometimes, your company has its own servers and address and outlook.office365.com is not the way to go !

Sugihara answered 7/6, 2018 at 9:43 Comment(0)
F
1

if you have a working Outlook setup you can CTRL-Right-Click on the Outlook Icon in the notification part of the task bar (system tray) and you will get an option called "Test E-mail auto configuration".

If you run that with your email address (password is not required) it will take a while and a report is shown. Look for a line that ends on exchanges.asmx and that is likely to be the URL you need.

I setup davmail wiht Office 365 this way and it works.

Flatways answered 22/4, 2013 at 14:40 Comment(0)
T
0

No, it's something with outlook.com... you can find the url within your administrative console.

Taenia answered 1/8, 2011 at 12:27 Comment(0)
T
0

Should be just the OWA URL like this: https://amsprd0302.outlook.com/owa/

Torsi answered 7/8, 2011 at 12:47 Comment(0)
T
0

If you always get error message like "authentication failed All network interface down davmail", maybe u should login https://outlook.office365.com/EWS/Exchange.asmx firstly, and it will tell you that:

You have created a service.

To test this service, you will need to create a client and use it to call the service. You can do this using the svcutil.exe tool from the command line with the following syntax:


svcutil.exe https://ch2pr19mb4024.namprd19.prod.outlook.com:444/EWS/Services.wsdl
This will generate a configuration file and a code file that contains the client class. Add the two files to your client application and use the generated client class to call the Service. For example:

C#

class Test
{
    static void Main()
    {
        HelloClient client = new HelloClient();

        // Use the 'client' variable to call operations on the service.

        // Always close the client.
        client.Close();
    }
}

Visual Basic

Class Test
    Shared Sub Main()
        Dim client As HelloClient = New HelloClient()
        ' Use the 'client' variable to call operations on the service.

        ' Always close the client.
        client.Close()
    End Sub
End Class

Then you can send mail with smtp without problems!

Trice answered 26/9, 2021 at 6:56 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.