<?xml version="1.0" encoding="UTF-8"?> 
<?xml-stylesheet href="https://dev.horde.org/themes/horde//default/feed-rss.xsl" type="text/xsl"?> 
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"> 
 <channel> 
  <title>ActiveSync :: The Autodiscover URL must be configurable, not extracted from the email address performing the query.</title> 
  <pubDate>Sat, 04 Apr 2026 10:12:52 +0000</pubDate> 
  <link>https://bugs.horde.org/ticket/11638</link> 
  <atom:link rel="self" type="application/rss+xml" title="ActiveSync :: The Autodiscover URL must be configurable, not extracted from the email address performing the query." href="https://bugs.horde.org/ticket/11638/rss" /> 
  <description>ActiveSync :: The Autodiscover URL must be configurable, not extracted from the email address performing the query.</description> 
 
   
   
  <item> 
   <title>If you have a single horde installation serving a couple of </title> 
   <description>If you have a single horde installation serving a couple of domains, you oftne have only one SSL certificate covering the domain of your horde installation, not of all virtual domains the horde installation serves.

Because the AutoDiscover feature is usually performed via SSL and mosts clients quit autodiscovery if the find a untrusted or invalid SSL certificate, it is mandatory to return an ActiveSync URL covered with that SSL certificate, not with URL derived from the email Domain.

Example:
* Horde installation at https://www.my-horde.tld, covered with a valid and trusted SSL certificate.
* Virtual domain and email address user@virtual-customer.tld

The current implementation returns a ActiveSync URL which is:  https://virtual-customer.tld/Microsoft-Server-ActiveSync
--&gt; this URL is not covered by the SSL certificate of https://www.my-horde.tld -&gt; AutoDiscover fails.

The right implementation should be a ActiveSync URL which is configurable in the Administration/ActiveSync prefs.
In this example it should be configured as &quot;www.my-horde.tld&quot; which would return a URL &quot;https://www.dannhauer.de/Microsoft-Server-ActiveSync&quot; which is covered by the SSL certificate.


I&#039;m not totally aware of all pref-system details, so I cannot provide a working solution. Anyway, I&#039;m sure this is a 5 minutes task if someone is aware of the horde pref system.
The relevant function which requires adaption is: Horde/Core/ActiveSync/Driver.php :: autoDiscover()

Many thanks,
Torben Dannhauer</description> 
   <pubDate>Sun, 04 Nov 2012 16:53:14 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/11638#t74357</link> 
  </item> 
   
  <item> 
   <title>oops, there was a mistake in my text, it should be

[...]</title> 
   <description>oops, there was a mistake in my text, it should be

[...]
The right implementation should be a ActiveSync URL which is 
configurable in the Administration/ActiveSync prefs.
In this example it should be configured as &quot;www.my-horde.tld&quot; which 
would return a URL 
&quot;https://www.my-horde.tld/Microsoft-Server-ActiveSync&quot; which is 
covered by the SSL certificate.
[...]</description> 
   <pubDate>Sun, 04 Nov 2012 17:06:07 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/11638#t74358</link> 
  </item> 
   
  <item> 
   <title>&gt; If you have a single horde installation serving a couple o</title> 
   <description>&gt; If you have a single horde installation serving a couple of domains, 
&gt; you oftne have only one SSL certificate covering the domain of your 
&gt; horde installation, not of all virtual domains the horde installation 
&gt; serves.
&gt;
&gt; Because the AutoDiscover feature is usually performed via SSL and 
&gt; mosts clients quit autodiscovery if the find a untrusted or invalid 
&gt; SSL certificate, it is mandatory to return an ActiveSync URL covered 
&gt; with that SSL certificate, not with URL derived from the email Domain.

The host is NOT directly calculated on ther server from the email address provided by the user/client. It&#039;s parsed out of the result of Horde::url(), which returns a URL based on $conf[&#039;server&#039;][&#039;name&#039;].

Are you using virtual-domain specific configuration files?  If so, that might explain why this is happening since the *client* uses the email address to determine which server to query for the Autodiscovery.

Telling ActiveSync to use the one domain for all activesync requests will cause your custom domain specific configuration files to be ignored.

Instead of adding this as a configuration option, I&#039;m going to add a new hook. I&#039;ve had various hooks planned for autodiscover but were pretty low priority for me.</description> 
   <pubDate>Mon, 05 Nov 2012 15:08:13 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/11638#t74393</link> 
  </item> 
   
  <item> 
   <title>&gt;&gt; If you have a single horde installation serving a couple </title> 
   <description>&gt;&gt; If you have a single horde installation serving a couple of domains,
&gt;&gt; you oftne have only one SSL certificate covering the domain of your
&gt;&gt; horde installation, not of all virtual domains the horde installation
&gt;&gt; serves.
&gt;&gt;
&gt;&gt; Because the AutoDiscover feature is usually performed via SSL and
&gt;&gt; mosts clients quit autodiscovery if the find a untrusted or invalid
&gt;&gt; SSL certificate, it is mandatory to return an ActiveSync URL covered
&gt;&gt; with that SSL certificate, not with URL derived from the email Domain.
&gt;
&gt; The host is NOT directly calculated on ther server from the email 
&gt; address provided by the user/client. It&#039;s parsed out of the result of 
&gt; Horde::url(), which returns a URL based on $conf[&#039;server&#039;][&#039;name&#039;].
&gt;
&gt; Are you using virtual-domain specific configuration files?  If so, 
&gt; that might explain why this is happening since the *client* uses the 
&gt; email address to determine which server to query for the 
&gt; Autodiscovery.
&gt;
&gt; Telling ActiveSync to use the one domain for all activesync requests 
&gt; will cause your custom domain specific configuration files to be 
&gt; ignored.
&gt;
&gt; Instead of adding this as a configuration option, I&#039;m going to add a 
&gt; new hook. I&#039;ve had various hooks planned for autodiscover but were 
&gt; pretty low priority for me.

Hmm, that sounds horde has already the right behaviour I need. Maybe I&#039;ve mixed something up, I was hunting several horde problems in the last days.

I&#039;ll check this again after work and will comment this bug again.

Yeah hooks sounds great, this would allow to modify the autodiscover behavior without adding lots of new options to the configuration.

Torben</description> 
   <pubDate>Mon, 05 Nov 2012 15:22:15 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/11638#t74395</link> 
  </item> 
   
  <item> 
   <title>&gt;&gt;&gt; If you have a single horde installation serving a couple</title> 
   <description>&gt;&gt;&gt; If you have a single horde installation serving a couple of domains,
&gt;&gt;&gt; you oftne have only one SSL certificate covering the domain of your
&gt;&gt;&gt; horde installation, not of all virtual domains the horde installation
&gt;&gt;&gt; serves.
&gt;&gt;&gt;
&gt;&gt;&gt; Because the AutoDiscover feature is usually performed via SSL and
&gt;&gt;&gt; mosts clients quit autodiscovery if the find a untrusted or invalid
&gt;&gt;&gt; SSL certificate, it is mandatory to return an ActiveSync URL covered
&gt;&gt;&gt; with that SSL certificate, not with URL derived from the email Domain.
&gt;&gt;
&gt;&gt; The host is NOT directly calculated on ther server from the email
&gt;&gt; address provided by the user/client. It&#039;s parsed out of the result of
&gt;&gt; Horde::url(), which returns a URL based on $conf[&#039;server&#039;][&#039;name&#039;].
&gt;&gt;
&gt;&gt; Are you using virtual-domain specific configuration files?  If so,
&gt;&gt; that might explain why this is happening since the *client* uses the
&gt;&gt; email address to determine which server to query for the
&gt;&gt; Autodiscovery.
&gt;&gt;
&gt;&gt; Telling ActiveSync to use the one domain for all activesync requests
&gt;&gt; will cause your custom domain specific configuration files to be
&gt;&gt; ignored.
&gt;&gt;
&gt;&gt; Instead of adding this as a configuration option, I&#039;m going to add a
&gt;&gt; new hook. I&#039;ve had various hooks planned for autodiscover but were
&gt;&gt; pretty low priority for me.
&gt;
&gt; Hmm, that sounds horde has already the right behaviour I need. Maybe 
&gt; I&#039;ve mixed something up, I was hunting several horde problems in the 
&gt; last days.
&gt;
&gt; I&#039;ll check this again after work and will comment this bug again.
&gt;
&gt; Yeah hooks sounds great, this would allow to modify the autodiscover 
&gt; behavior without adding lots of new options to the configuration.
&gt;
&gt; Torben

Hi,
I have no vhost configs, I have a single horde installation for multiple domains..

Of course the client uses the email address to determine the url to query for autodetection, but each of my virtual domains has a DNS redirect entry and horde is only availableto redirect autodiscover queries to www.my-host.tld - and it works with outlook. So according to the specs, each client device should restart the autodiscover at www.my-host.tld.

I have verified the problem: 
My horde is located at &#039;www.my-host.tld&#039; while to have only a single SSL certificate to buy. 
emailadresses with user@virtual-domain.tld get a ActiveSync URL &#039;https://virtual-domain.tld/Microsoft-Server-ActiveSync&#039; but not &#039;https://www.my-host.tld/Microsoft-Server-ActiveSync&#039;
Even when I use an email-address user@my-host.tld it uses &#039;https://my-host.tld/Microsoft-Server-ActiveSync&#039; and not &#039;https://www.my-host.tld/Microsoft-Server-ActiveSync&#039;
-- is that the correct behaviour?

Anyway, the tip to specify my correct horde URL in $conf[&#039;server&#039;][&#039;name&#039;] as $conf[&#039;server&#039;][&#039;name&#039;] = &#039;www.my-host.tld&#039; instead of using SERVER_NAME did the trick, now it works correctly.
For me this issue is closed...

Many thanks,
Torben

By the way: the interesting question is why my webserver delivers horde querys vor http://virtual.tld but the apaceh vhost is configured only for https://www.my-host.tld .... THAT seems to  be a true bug ;)</description> 
   <pubDate>Mon, 05 Nov 2012 20:02:43 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/11638#t74434</link> 
  </item> 
   
  <item> 
   <title>&gt; Hi,
&gt; I have no vhost configs, I have a single horde inst</title> 
   <description>&gt; Hi,
&gt; I have no vhost configs, I have a single horde installation for 
&gt; multiple domains..
&gt;
&gt; Of course the client uses the email address to determine the url to 
&gt; query for autodetection, but each of my virtual domains has a DNS 
&gt; redirect entry and horde is only availableto redirect autodiscover 
&gt; queries to www.my-host.tld - and it works with outlook. So according 
&gt; to the specs, each client device should restart the autodiscover at 
&gt; www.my-host.tld.
&gt;
&gt; I have verified the problem:
&gt; My horde is located at &#039;www.my-host.tld&#039; while to have only a single 
&gt; SSL certificate to buy.
&gt; emailadresses with user@virtual-domain.tld get a ActiveSync URL 
&gt; &#039;https://virtual-domain.tld/Microsoft-Server-ActiveSync&#039; but not 
&gt; &#039;https://www.my-host.tld/Microsoft-Server-ActiveSync&#039;
&gt; Even when I use an email-address user@my-host.tld it uses 
&gt; &#039;https://my-host.tld/Microsoft-Server-ActiveSync&#039; and not 
&gt; &#039;https://www.my-host.tld/Microsoft-Server-ActiveSync&#039;
&gt; -- is that the correct behaviour?

Yes. Probably because Apache is returning my-host.tld as $_SERVER[&#039;SERVER_NAME&#039;] because that is what it is answering the request as (since this is what the client is requesting based on the email address).  This is what the $conf[&#039;server&#039;][&#039;name&#039;] configuration is designed to override.

For more detailed information on the AUTOCONFIGURE process you can read http://blogs.msdn.com/b/exchangedev/archive/2011/07/08/autodiscover-for-exchange-activesync-developers.aspx

&gt; By the way: the interesting question is why my webserver delivers 
&gt; horde querys vor http://virtual.tld but the apaceh vhost is 
&gt; configured only for https://www.my-host.tld .... THAT seems to  be a 
&gt; true bug ;)

Maybe because your my-host.tld server is the default virtual domain?
</description> 
   <pubDate>Mon, 05 Nov 2012 21:01:07 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/11638#t74438</link> 
  </item> 
   
   
 
 </channel> 
</rss> 
