Autodiscover Proxy on a Per Domain Basis
We used to have enabled:
WHM > Tweak Settings > Domains > Thunderbird and Outlook autodiscover and autoconfig support
Today I had to disable this because of one customer with an Exchange server whose Outlook was connecting to https://CustomerDomain.TLD/autodiscover/autodiscover.xml
which was returning 200 OK which was required to be returning a 4xx
error so that their Outlook could continue on to try the
autodiscover.CustomerDomain.TLD CNAME that exists. Having autodiscover proxy on
the webserver globally, was breaking their ability to auto-discover
email settings. I am not sure if this is only because they have an SSL
website. The below two Apache logs show the different return codes,
before and after I disabled the setting.
x.x.x.x - - [24/Feb/2015:12:01:46 -0800] "POST
/autodiscover/autodiscover.xml HTTP/1.1" 200 1233 "-" "Microsoft
Office/15.0 (Windows NT 6.1; Microsoft Outlook 15.0.4675; Pro)"
x.x.x.x - - [24/Feb/2015:12:03:02 -0800] "POST
/autodiscover/autodiscover.xml HTTP/1.1" 400 48 "-" "Microsoft
Office/15.0 (Windows NT 6.1; Microsoft Outlook 15.0.4675; Pro)"
My question is, do you plan to change the behavior of cPanel/WHM so it
will be possible to use cPanel's autodiscover proxy with some domains
and not others? I imagine I could do this myself if there was some way
to override the global lines cPanel creates on httpd.conf:
ScriptAliasMatch ^/autodiscover/autodiscover.xml /usr/local/cpanel/cgi-sys/autodiscover.cgi
ScriptAliasMatch ^/Autodiscover/Autodiscover.xml /usr/local/cpanel/cgi-sys/autodiscover.cgi
within an individual VirtualHost section. But I don't know how to do that. The only option right now is to disable autodiscover.
Replies have been locked on this page!