Hey everyone,
I’m currently trying to make Autodiscover work. Since my Outlook client had issues I started debugging the Autodiscover.xml endpoint.
When curling it (as post, with auth header and XML body) I get proper XML responses like this for imap:
<Autodiscover xmlns="http://schemas.microsoft.com/exchange/autodiscover/responseschema/2006">
<Response xmlns="http://schemas.microsoft.com/exchange/autodiscover/outlook/responseschema/2006a">
<User>
<DisplayName/>
</User>
<Account>
<AccountType>email</AccountType>
<Action>settings</Action>
<Protocol>
<Type>IMAP</Type>
<Server>mail.exampledomain.de</Server>
<Port>993</Port>
<DomainRequired>off</DomainRequired>
<LoginName/>
<SPA>off</SPA>
<SSL>on</SSL>
<AuthRequired>on</AuthRequired>
</Protocol>
<Protocol>
<Type>SMTP</Type>
<Server>mail.exampledomain.de</Server>
<Port>465</Port>
<DomainRequired>off</DomainRequired>
<LoginName/>
<SPA>off</SPA>
<SSL>on</SSL>
<AuthRequired>on</AuthRequired>
<UsePOPAuth>on</UsePOPAuth>
<SMTPLast>off</SMTPLast>
</Protocol>
<Protocol>
<Type>CalDAV</Type>
<Server>https://mail.exampledomain.de/SOGo/dav//</Server>
<DomainRequired>off</DomainRequired>
<LoginName/>
</Protocol>
<Protocol>
<Type>CardDAV</Type>
<Server>https://mail.exampledomain.de/SOGo/dav//</Server>
<DomainRequired>off</DomainRequired>
<LoginName/>
</Protocol>
</Account>
</Response>
</Autodiscover>
Or this for activesync:
<Autodiscover xmlns="http://schemas.microsoft.com/exchange/autodiscover/responseschema/2006">
<Response xmlns="http://schemas.microsoft.com/exchange/autodiscover/mobilesync/responseschema/2006">
<Culture>en:en</Culture>
<User>
<DisplayName/>
<EMailAddress/>
</User>
<Action>
<Settings>
<Server>
<Type>MobileSync</Type>
<Url>https://mail.exampledomain.de/Microsoft-Server-ActiveSync</Url>
<Name>https://mail.exampledomain.de/Microsoft-Server-ActiveSync</Name>
</Server>
</Settings>
</Action>
</Response>
</Autodiscover>
But the Outlook Connectivity check here (https://testconnectivity.microsoft.com/tests/Ola/input) still returns the following error: “None of the expected XML elements were found in the XML response.”.
Does anyone know why this check fails and what XML elements it expects? 🤔