Achim J. Latz | 29 May 2012 16:54
Favicon

ActiveSync Autodiscover

Hello list:

Autodiscover seems to work fine for Outlook and Thunderbird! I haven't 
yet tried with a Outlook itself (implementation details ;-), but the MS 
tests seem to work fine (see below [0]) and return a valid XML response 
with the correct settings.

Unfortunately, it appears that "MS ActiveSync Autodiscover" [1] is not 
working, and perhaps that is the reason why neither iOS nor Mail.app 
seem to be able to autoconfigure in my tests:

* * * * * Exchange ActiveSync Autodiscover (not working)
ExRCA is attempting to retrieve an XML Autodiscover response from URL 
https://autodiscover.domain.tld/AutoDiscover/AutoDiscover.xml for user 
joe@...
  	ExRCA failed to obtain an Autodiscover XML response.
  	
	Additional Details
  	The Response element in the payload was null.

XML response:

<?xml version="1.0"?>
<Autodiscover xmlns:xsd="http://www.w3.org/2001/XMLSchema" 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
xmlns="http://schemas.microsoft.com/exchange/autodiscover/responseschema/2006" 
/>

apache2 log:

(Continue reading)

Patrick Ben Koetter | 29 May 2012 17:00
Picon

Re: ActiveSync Autodiscover

Achim,

* Achim J. Latz <achim+automx@...>:
> Autodiscover seems to work fine for Outlook and Thunderbird! I
> haven't yet tried with a Outlook itself (implementation details ;-),
> but the MS tests seem to work fine (see below [0]) and return a
> valid XML response with the correct settings.
> 
> Unfortunately, it appears that "MS ActiveSync Autodiscover" [1] is
> not working, and perhaps that is the reason why neither iOS nor
> Mail.app seem to be able to autoconfigure in my tests:

MS ActiveSync Autodiscover has not been implemented yet. We want to do it, but
lack proper documentation/understanding of the protocol at the moment. We wish
to do it for 1.0.

p <at> rick

--

-- 
state of mind ()
Digitale Kommunikation

http://www.state-of-mind.de

Franziskanerstraße 15      Telefon +49 89 3090 4664
81669 München              Telefax +49 89 3090 4666

Amtsgericht München        Partnerschaftsregister PR 563

(Continue reading)

Achim J. Latz | 29 May 2012 19:29
Favicon

Re: ActiveSync Autodiscover

Hello Patrick:

On 29/05/2012 17:00, Patrick Ben Koetter wrote:
> MS ActiveSync Autodiscover has not been implemented yet. We want to do it, but
> lack proper documentation/understanding of the protocol at the moment. We wish
> to do it for 1.0.

Combining bits and pieces from z-push [0], I created a "definitive" 
version for a PHP autodiscovery script [1] that

a) works for Outlook Autodiscover test:
 > Attempting the Autodiscover and Exchange ActiveSync test
 > Autodiscover was successfully tested for Exchange ActiveSync.

b) works for ActiveSync Autodiscover test:
 > ExRCA is attempting to test Autodiscover for joe@...
 > Autodiscover was tested successfully.

I used a simple case insensitive AliasMatch for the Apache vhost:

AliasMatch (?i)/Autodiscover/Autodiscover.xml 
"/var/www/autodiscover/auto.php"

The POST request that MS sends to discover *ActiveSync* is the following:

<?xml version="1.0" encoding="utf-8"?>
<Autodiscover 
xmlns="http://schemas.microsoft.com/exchange/autodiscover/mobilesync/requestschema/2006">
<Request>
<EMailAddress>achim@...</EMailAddress>
(Continue reading)

Patrick Ben Koetter | 29 May 2012 21:22
Picon

Re: ActiveSync Autodiscover

Hello Achim,

* Achim J. Latz <achim+automx@...>:
> On 29/05/2012 17:00, Patrick Ben Koetter wrote:
> >MS ActiveSync Autodiscover has not been implemented yet. We want to do it, but
> >lack proper documentation/understanding of the protocol at the moment. We wish
> >to do it for 1.0.
> 
> Combining bits and pieces from z-push [0], I created a "definitive"
> version for a PHP autodiscovery script [1] that
> 
> a) works for Outlook Autodiscover test:
> > Attempting the Autodiscover and Exchange ActiveSync test
> > Autodiscover was successfully tested for Exchange ActiveSync.
> 
> b) works for ActiveSync Autodiscover test:
> > ExRCA is attempting to test Autodiscover for joe@...
> > Autodiscover was tested successfully.
> 
> I used a simple case insensitive AliasMatch for the Apache vhost:
> 
> AliasMatch (?i)/Autodiscover/Autodiscover.xml
> "/var/www/autodiscover/auto.php"
> 
> The POST request that MS sends to discover *ActiveSync* is the following:
> 
> <?xml version="1.0" encoding="utf-8"?>
> <Autodiscover xmlns="http://schemas.microsoft.com/exchange/autodiscover/mobilesync/requestschema/2006">
> <Request>
> <EMailAddress>achim@...</EMailAddress>
(Continue reading)

Achim J. Latz | 29 May 2012 21:33
Favicon

Re: ActiveSync Autodiscover

Hello Patrick:

On 29/05/2012 21:22, Patrick Ben Koetter wrote:
> Yes. I need to talk this over with Christian, because our initial goal was to
> provide settings for SMTP/POP/IMAP and not HTTPS.

Sure, this is for the special case of using AutoMX + z-push.

Z-Push is a free ActiveSync implementation that uses IMAP/SMTP, CalDAV 
and LDAP to "simulate" a level of Exchange server functionality [1], 
namely mail, calendars, tasks and contacts.

In order for this to work under iOS, the end-user has to choose 
"Exchange" as the type of account, and from there everything "just 
works" with my php script. Would be great if this could be included in 
AutoMX.

If there is an additional way to use autodiscover for mobile devices 
*without* active sync, that would also be nice. However, when I add an 
email account of type "Other" in iOS, the autodiscover server is not 
even consulted. Do you know how/where what it does when it says "Looking 
up account"?

The server specified in the DNS/SRV entry for autodiscover it consults 
not...

Best regards, Achim

[1] <http://z-push.sourceforge.net/soswp/>

(Continue reading)


Gmane