Re: [Evolution] Host URL for EWS ?

2021-02-12 Thread Joakim Tjernlund via evolution-list
On Fri, 2021-02-12 at 14:15 +0100, Joakim Tjernlund wrote:
> On Fri, 2021-02-12 at 13:53 +0100, Milan Crha via evolution-list wrote:
> > On Fri, 2021-02-12 at 13:14 +0100, Joakim Tjernlund via evolution-list
> > wrote:
> > > Where does Evo get the 
> > > https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Fexchange.infinera.com%2F&data=04%7C01%7Cjoakim.tjernlund%40infinera.com%7C4bad53fdf0574798d79908d8cf55b6ef%7C285643de5f5b4b03a1530ae2dc8aaf77%7C1%7C0%7C637487314335877952%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=LAtDBFZndYOqPBsBKbuPUK8qW64cqamQxUWSJLMiIV4%3D&reserved=0
> > >  URL from?
> > > I would like to change this default to O365 instead
> > 
> > Hi,
> > that URL is not meant to match anything, it's (almost) always wrong, it
> > only takes the domain part of the Email address you entered and
> > prepends to it "exchange." and shows the path as it usually (almost
> > always) is. It's not possible to change it. The URL is meant as a hint.
> > You know the server address, but it's possible you do not know
> > the path - who would like to remember /EWS/Exchange.asmx?
> 
> If I change exchange to autodiscover, it starts working.
> Can Evo change to autodiscover instead?

hmm, autodiscover.infinera.com only got me past "check for supported types"
Fetch URL will prompt me for my OAuth2 password but never completes the OAB URL 

I had to change Host URL to outlook.office365.com to get an OAB URL

I also note that Evo 3.39.2 can hang(a minute or forever) when going through
the add a new account, odd.

> 
> Earlier it work fine with exchaneg, evo would find where to redirect.
> I guess Evo get upset now since there is just a connection refused on 
> https://exchange.infinera.com now.
> I think there where some redirect there before.
> 
> > 
> > The Fetch URL runs autodiscovery on multiple domains. Having your
> > server redirect autodiscover.infinera.com to outlook.com or eventually
> > to autodiscover.outlook.com, you may get a better user experience.
> > The SRV records for that domain can also help. [1]
> 
> I don't see where it gets the name exchange from?

Found it
___
evolution-list mailing list
evolution-list@gnome.org
To change your list options or unsubscribe, visit ...
https://mail.gnome.org/mailman/listinfo/evolution-list


Re: [Evolution] Host URL for EWS ?

2021-02-12 Thread Joakim Tjernlund via evolution-list
On Fri, 2021-02-12 at 13:53 +0100, Milan Crha via evolution-list wrote:
> On Fri, 2021-02-12 at 13:14 +0100, Joakim Tjernlund via evolution-list
> wrote:
> > Where does Evo get the 
> > https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Fexchange.infinera.com%2F&data=04%7C01%7Cjoakim.tjernlund%40infinera.com%7C4bad53fdf0574798d79908d8cf55b6ef%7C285643de5f5b4b03a1530ae2dc8aaf77%7C1%7C0%7C637487314335877952%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=LAtDBFZndYOqPBsBKbuPUK8qW64cqamQxUWSJLMiIV4%3D&reserved=0
> >  URL from?
> > I would like to change this default to O365 instead
> 
>   Hi,
> that URL is not meant to match anything, it's (almost) always wrong, it
> only takes the domain part of the Email address you entered and
> prepends to it "exchange." and shows the path as it usually (almost
> always) is. It's not possible to change it. The URL is meant as a hint.
> You know the server address, but it's possible you do not know
> the path - who would like to remember /EWS/Exchange.asmx?

If I change exchange to autodiscover, it starts working.
Can Evo change to autodiscover instead?

Earlier it work fine with exchaneg, evo would find where to redirect.
I guess Evo get upset now since there is just a connection refused on 
https://exchange.infinera.com now.
I think there where some redirect there before.

> 
> The Fetch URL runs autodiscovery on multiple domains. Having your
> server redirect autodiscover.infinera.com to outlook.com or eventually
> to autodiscover.outlook.com, you may get a better user experience.
> The SRV records for that domain can also help. [1]

I don't see where it gets the name exchange from?

> 
> You can setup also autoconfig for your users, supposing they can access
> a place where you'd have saved the account configurations. I plan to
> write a Wiki page with the instructions how to do it, possibly during
> the hard code freeze, which is near the end of the next month.
>   Bye,
>   Milan
> 
> [1] the URLs being constructed here:
> 
> https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgitlab.gnome.org%2FGNOME%2Fevolution-ews%2F-%2Fblob%2Fmaster%2Fsrc%2FEWS%2Fcommon%2Fe-ews-connection.c%23L3657&data=04%7C01%7Cjoakim.tjernlund%40infinera.com%7C4bad53fdf0574798d79908d8cf55b6ef%7C285643de5f5b4b03a1530ae2dc8aaf77%7C1%7C0%7C637487314335877952%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=bbg3LNH9lWVNwQqz4VtegsuZErWzg%2F1hf2CMLdu7c94%3D&reserved=0
> the SRV lookup here:
> 
> https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgitlab.gnome.org%2FGNOME%2Fevolution-ews%2F-%2Fblob%2Fmaster%2Fsrc%2FEWS%2Fcommon%2Fe-ews-connection.c%23L3715&data=04%7C01%7Cjoakim.tjernlund%40infinera.com%7C4bad53fdf0574798d79908d8cf55b6ef%7C285643de5f5b4b03a1530ae2dc8aaf77%7C1%7C0%7C637487314335877952%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=SP5Z9RTVlCRCI0C5SozdsQEZ31RniOeCZuKuzbbP33E%3D&reserved=0
> 
> ___
> evolution-list mailing list
> evolution-list@gnome.org
> To change your list options or unsubscribe, visit ...
> https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Fmail.gnome.org%2Fmailman%2Flistinfo%2Fevolution-list&data=04%7C01%7Cjoakim.tjernlund%40infinera.com%7C4bad53fdf0574798d79908d8cf55b6ef%7C285643de5f5b4b03a1530ae2dc8aaf77%7C1%7C0%7C637487314335882945%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=V7hKAoMAM29lUBcrEWVfvqZvVO6xw5JiqOcI9%2FrUeEw%3D&reserved=0

___
evolution-list mailing list
evolution-list@gnome.org
To change your list options or unsubscribe, visit ...
https://mail.gnome.org/mailman/listinfo/evolution-list


Re: [Evolution] Host URL for EWS ?

2021-02-12 Thread Milan Crha via evolution-list
On Fri, 2021-02-12 at 13:14 +0100, Joakim Tjernlund via evolution-list
wrote:
> Where does Evo get the https://exchange.infinera.com URL from?
> I would like to change this default to O365 instead

Hi,
that URL is not meant to match anything, it's (almost) always wrong, it
only takes the domain part of the Email address you entered and
prepends to it "exchange." and shows the path as it usually (almost
always) is. It's not possible to change it. The URL is meant as a hint.
You know the server address, but it's possible you do not know
the path - who would like to remember /EWS/Exchange.asmx?

The Fetch URL runs autodiscovery on multiple domains. Having your
server redirect autodiscover.infinera.com to outlook.com or eventually
to autodiscover.outlook.com, you may get a better user experience.
The SRV records for that domain can also help. [1]

You can setup also autoconfig for your users, supposing they can access
a place where you'd have saved the account configurations. I plan to
write a Wiki page with the instructions how to do it, possibly during
the hard code freeze, which is near the end of the next month.
Bye,
Milan

[1] the URLs being constructed here:

https://gitlab.gnome.org/GNOME/evolution-ews/-/blob/master/src/EWS/common/e-ews-connection.c#L3657
the SRV lookup here:

https://gitlab.gnome.org/GNOME/evolution-ews/-/blob/master/src/EWS/common/e-ews-connection.c#L3715

___
evolution-list mailing list
evolution-list@gnome.org
To change your list options or unsubscribe, visit ...
https://mail.gnome.org/mailman/listinfo/evolution-list