Autodiscover | MDaemon Technologies, Ltd.

Autodiscover


  • Hello!

    Server 2016 + Mdaemon 22.0.3. Built-in Web Server, Turned on AutoDiscovery Service. Trying open in browser  https://autodiscover.mydomain.com/autodiscover/autodiscover.xml - all good, i see page with AutoDiscovery Services Build : 22.0.3.2 and server uptime. Trying with client (android or outlook) use autodiscovery, but nothing happens.

    In log AutoDiscovery:

    Debug, [0B610494] 0x41380168 Contacting MDDP Server: autodiscover.mydomian.com
    Warning, [0B610494] 0x81380185 Error communicating with the MDaemon Discovery Protocol Service: https://autodiscover.mydomain.com:443/Mddp/

    If open link in browaser with /mddp/ - Internal Server Error

    What information should the service provide? XML with paramtrese with connection parameters?  I can't find the details of the service. SRV records in DNS are all configured

     



  • What does the MDDP log show is happening?   The log should be in the MDaemon\logs directory and be named MDDP-$DATE$.log.

    Is MDaemon using a trusted 3rd party certificate?  

    Does the certificate support using autodiscover.mydomain.com?


  • No such log files

    We have trusted (globalsign) wildcard cert *.mydomail.com


  • Is webmail running?

    If you open a browser on the MDaemon server and go to http://autodiscover.mydomain.com, do you get webmail?  What if you go to https://autodiscover.mydomain.com?

    What do you get when you go to http://autodiscover.mydomain.com/mddp?

     

    In the [WebServer] section of the MDaemon\WorldClient\WorldClient.ini file, do you have any entry like the following:

    CgiBase11=/Mddp

    CgiFile11=C:\MDaemon\ISAPI\MDDP\MDDP.dll

    The numbers (11) may be different for your CgiBase and CgiFile directory, but they need to match each other.  So mine are both 11.  if your entry is CgiBase3 then the CgiFile entry should be CgiFile3.

    Does, mddp.dll exist on disk in the path specified by the CgiFile entry?  

    Does the user that is running the MDaemon service have full control of the mddp.dll?

     


  • Webmail is running.

    http://autodiscover.mydomain.com,do you get webmail?

    Yes, it's redirect to https version

    What if you go to https://autodiscover.mydomain.com?

    I get Webmail

    What do you get when you go to http://autodiscover.mydomain.com/mddp?

    it's redirect to https version https://autodiscover.mydomain.com/mddp and i get Error 500 Internal Server Error

    In the [WebServer] section of the MDaemon\WorldClient\WorldClient.ini file, do you have any entry like the following

    [WebServer]
    BindAddress=
    CgiBase1=/WorldClient.dll
    CgiBase10=/WorldClientAPI
    CgiBase11=/Mddp
    CgiBase3=/Microsoft-Server-ActiveSync
    CgiBase5=/AutoDiscover/AutoDiscover.xml
    CgiBase7=/webdav
    CgiBase8=/.well-known/caldav
    CgiBase9=/.well-known/carddav
    CgiFile1=C:\MDaemon\WorldClient\HTML\WorldClient.dll
    CgiFile10=C:\MDaemon\WorldClient\HTML\WorldClient.dll
    CgiFile11=C:\MDaemon\App\MDDP.dll
    CgiFile3=C:\MDaemon\WorldClient\HTML\MDAirSync.dll
    CgiFile5=C:\MDaemon\WorldClient\HTML\MDAutoDiscover.dll
    CgiFile7=C:\MDaemon\WebDAV\MDWebDAV.dll
    CgiFile8=C:\MDaemon\WebDAV\MDWebDav.dll
    CgiFile9=C:\MDaemon\WebDAV\MDWebDav.dll

    CgiFile11 get wrong path, right pass is ‪C:\MDaemon\ISAPI\MDDP\MDDP.dll

    How I can edit this path?

    Does the user that is running the MDaemon service have full control of the mddp.dll?

    MDaemon running under Local System account and have full access to C:\MDaemon\ISAPI\MDDP\MDDP.dll

     


  • Fixed path in WorldClient.ini, restarted web server and all worked. But now another question, how i can edit list of parameters in autodiscover.xml, e.g. to use TLS instaead of SSL or using port 587 instead of 465?


  • At this time, the Autoiscovery service simply responds with the settings it finds in MDaemon and applies them to the AutoDiscovery specification. There is currently no way to alter or customize the output aside from the _srv entries to define host names for each protocol/domain combination. We could look into adding some ability to customize the output in the future.


  • That said, if you dont' mind disabling the SSLPorts (MDaemon.ini [SSL] EnableSSLPorts=No ) then it will favor TLS over SSL. This will also affect IMAP4 and POP3.


Please login to reply this topic!