Re: [Evolution] evolution ews cannot follow our autodiscovery
- From: Joakim Tjernlund <Joakim Tjernlund infinera com>
- To: "mcrha redhat com" <mcrha redhat com>, "evolution-list gnome org" <evolution-list gnome org>
- Subject: Re: [Evolution] evolution ews cannot follow our autodiscovery
- Date: Tue, 2 Jul 2019 11:16:37 +0000
On Tue, 2019-07-02 at 08:39 +0200, Milan Crha via evolution-list wrote:
CAUTION: This email originated from outside of the organization. Do not click links or open attachments
unless you recognize the sender and know the content is safe.
On Mon, 2019-07-01 at 16:35 +0000, Joakim Tjernlund via evolution-list
wrote:
Any idea why?
Hi,
not really, as it can be a server configuration thing too. You can try
to run evolution from a terminal with EWS debugging on:
$ EWS_DEBUG=2 evolution
then open the EWS account Properties (or add a new user) and when you
click "Fetch URL" at the Receiving Email tab, then you'll see what
evolution-ews tried to use and what the server returned. You should be
asked for credentials, if not stored anywhere already.
The actual autodiscover URL is derived from the email address domain
and from the current Host URL.
Did a manual autodisovery req using curl:
#! /bin/bash
function print_usage()
{
echo "Usage: `basename $0` [options]"
echo "Options:"
echo " -e Autodiscover Endpoint URL"
echo " -a SMTP address of account to perform autodiscover"
echo " -u user ID used when logging into the specified Autodiscover Endpoint"
exit 2
}
function parse_args()
{
args=`getopt u:e:a: $*`
if [ $? != 0 ]; then
print_usage
fi
autod_url="https://autodiscover.infinera.com/autodiscover/autodiscover.xml"
autod_email="joakim tjernlund infinera com"
set -- $args
for i
do
case "$1" in
-e)
autod_url="$2"; shift
shift
;;
-a)
autod_email="$2"; shift
shift
;;
-u)
autod_id="$2"; shift
shift
;;
--)
shift
break
;;
esac
done
if [ -z "$autod_url" ] || [ -z "$autod_email" ]; then
print_usage
fi
}
function generate_autod_request_xml()
{
_email_address=$1
autod_xml=""
autod_xml+='<?xml version="1.0" encoding="UTF-8"?>'
autod_xml+='<Autodiscover
xmlns="http://schemas.microsoft.com/exchange/autodiscover/outlook/requestschema/2006">'
autod_xml+=' <Request>'
autod_xml+=' <EMailAddress>'$_email_address'</EMailAddress>'
autod_xml+='
<AcceptableResponseSchema>http://schemas.microsoft.com/exchange/autodiscover/outlook/responseschema/2006a</AcceptableResponseSchema>'
autod_xml+=' </Request>'
autod_xml+='</Autodiscover>'
}
parse_args $*
generate_autod_request_xml $autod_email
xml="$autod_xml"
curl --silent -v -k --header 'Content-Type: text/xml' --user "$autod_id" "$autod_url" --data "$xml"
where $auto_id is my domain user, I get this answer:
....
POST /autodiscover/autodiscover.xml HTTP/1.1
Host: autodiscover.infinera.com
Authorization: Basic am9ja2VAaW5maW5lcmEuY29tOkt1cnRhbjgu
User-Agent: curl/7.65.0
Accept: */*
Content-Type: text/xml
Content-Length: 380
* upload completely sent off: 380 out of 380 bytes
* Mark bundle as not supporting multiuse
< HTTP/1.1 200 OK
< Cache-Control: private
< Content-Type: text/xml; charset=utf-8
< Server: Microsoft-IIS/8.0
< request-id: e9a4d88f-7e0d-405d-8767-eefae6cadbca
< Set-Cookie: ClientId=GLSJLS0BYUUHVVZQYCBQ; expires=Wed, 01-Jul-2020 11:07:38 GMT; path=/; HttpOnly
< X-CalculatedBETarget: sv-ex13-prd1.infinera.com
< X-DiagInfo: SV-EX13-PRD1
< X-BEServer: SV-EX13-PRD1
< X-AspNet-Version: 4.0.30319
< Set-Cookie:
X-BackEndCookie=S-1-5-21-1757981266-1085031214-682003330-51010=u56Lnp2ejJqBm5nKyp7NxsjSmZzOz9LLypvL0p3JmczSxsrJm8nGzsaey82cgYHNz87G0s/H0s/Oq87Oxc/IxczH;
expires=Thu, 01-Aug-2019 11:07:38 GMT; path=/autodiscover; secure; HttpOnly
< X-Powered-By: ASP.NET
< X-FEServer: SV-EX13-PRD1
< Date: Tue, 02 Jul 2019 11:07:38 GMT
< Content-Length: 407
<
<?xml version="1.0" encoding="utf-8"?>
<Autodiscover xmlns="http://schemas.microsoft.com/exchange/autodiscover/responseschema/2006">
<Response xmlns="http://schemas.microsoft.com/exchange/autodiscover/outlook/responseschema/2006a">
<Account>
<Action>redirectAddr</Action>
<RedirectAddr>my_user_id infinera mail onmicrosoft com</RedirectAddr>
</Account>
</Response>
* Connection #0 to host autodiscover.infinera.com left intact
Does this <Action>redirectAddr</Action> address make sense to Evolution?
Jocke
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]