Autodiscover not working
-
I have Z-Push with a combined backed (IMAP,CalDAV,CardDAV) running on CentOS 7.9. ActiveSync works when I manually configure Outlook however I can’t get AutoDiscover to work. This is the error I get on the server:
18/08/2021 04:21:00 [ 1151] [ INFO] [#unknown] Z-Push version='2.6.4+0' 18/08/2021 04:21:00 [ 1151] [ INFO] [#unknown] ZPushAutodiscover::DoZPushAutodiscover(): GET request for autodiscover. 18/08/2021 04:21:00 [ 1151] [ INFO] [#unknown] AuthenticationRequiredException: Access denied. No username or password provided. - code: 0 - file: /usr/share/z-push/autodiscover/autodiscover.php:301 18/08/2021 04:21:01 [ 1152] [ INFO] [#unknown] Z-Push version='2.6.4+0' 18/08/2021 04:21:01 [ 1152] [ INFO] [#unknown] AuthenticationRequiredException: Unauthorized - code: 0 - file: /usr/share/z-push/autodiscover/autodiscover.php:149 18/08/2021 04:21:01 [ 1152] [FATAL] [#unknown] Exception: (AuthenticationRequiredException) - Unauthorized 18/08/2021 04:21:01 [ 1152] [ERROR] [#unknown] Unable to complete autodiscover incorrect request: 'Unauthorized' 18/08/2021 04:21:01 [ 1152] [ INFO] [#unknown] Z-Push version='2.6.4+0' 18/08/2021 04:21:01 [ 1152] [WARN] [#unknown] BadRequestException: Request for a responseschema that is not supported (only mobilesync is supported): http://schemas.microsoft.com/exchange/autodiscover/outlook/responseschema/2006a - code: 0 - file: /usr/share/z-push/autodiscover/autodiscover.php:177 18/08/2021 04:21:01 [ 1152] [FATAL] [#unknown] Exception: (BadRequestException) - Request for a responseschema that is not supported (only mobilesync is supported): http://schemas.microsoft.com/exchange/autodiscover/outlook/responseschema/2006a 18/08/2021 04:21:01 [ 1152] [ERROR] [#unknown] Unable to complete autodiscover because of ZPushException. Error: Request for a responseschema that is not supported (only mobilesync is supported): http://schemas.microsoft.com/exchange/autodiscover/outlook/responseschema/2006a
I’m able to browse to https://mydomain.com/Autodiscover/Autodiscover.xml and I get the message “GET not supported”.
However, when I run the Outlook Test Email AutoConfiguration tool, I get this error:
(I’m using an SRV record on my domain to tell AutoDiscover where to find the XML file. That’s why the first few attempts fail before it finally tries the SRV record.)
Any advice is appreciated.
Thanks
Kent -
Hi @fkoyer,
generally Outlook does not support autodiscover for ActiveSync account. It wants to configure an Exchange account instead.
-
@fbartels Thanks for the quick reply. In case it helps anyone else, I discovered that the autodiscover POST request coming from Outlook contains the following data:
<AcceptableResponseSchema> http://schemas.microsoft.com/exchange/autodiscover/outlook/responseschema/2006a </AcceptableResponseSchema>
So you are right, it only accepts an
outlook
response and not amobilesync
response. That is very unfortunate.