ActiveSync Autodiscover

Patrick Ben Koetter p at state-of-mind.de
Tue May 29 21:22:59 CEST 2012


Hello Achim,

* Achim J. Latz <achim+automx at qustodium.net>:
> 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 at domain.tld.
> > 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 at qustodium.net</EMailAddress>
> <AcceptableResponseSchema>http://schemas.microsoft.com/exchange/autodiscover/mobilesync/responseschema/2006</AcceptableResponseSchema>
> </Request>
> </Autodiscover>
> 
> and the answer that the PHP script gives is this:
> 
> $protocol = "https";
> $asUrl = $protocol . "://" . "mail.domain.tld" .
> "/Microsoft-Server-ActiveSync";
> 
>     <Response xmlns="http://schemas.microsoft.com/exchange/autodiscover/mobilesync/responseschema/2006">
>     <Culture>en:en</Culture>
>     <User>
>     <DisplayName><?php echo $matches[1]; ?></DisplayName>
>     <EMailAddress><?php echo $matches[1]; ?></EMailAddress>
>     </User>
>     <Action>
>     <Settings>
>     <Server>
>     <Type>MobileSync</Type>
>     <Url><?php echo $asUrl; ?></Url>
>     <Name><?php echo $asUrl; ?></Name>
>     </Server>
>     </Settings>
>     </Action>
>     </Response>
> 
> With that (really simple) response, iOS is happy to autoconfigure
> for an (emulated) ActiveSync server with z-push, since we have all
> the information required:
> 
> DisplayName
> EMailAddress
> Url
> Name
> 
> Incorporating that type of response in automx should be straight
> forward, right?

Yes. I need to talk this over with Christian, because our initial goal was to
provide settings for SMTP/POP/IMAP and not HTTPS.

p at rick

-- 
state of mind ()

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



More information about the automx-users mailing list