问题描述
我从一个Exchange 2007服务器的地址开始:
I'm starting with an address for an Exchange 2007 server:
[email protected]
并且我尝试发送自动发现请求,如 MSDN .
And I attempted to send an autodiscover request, as documented at MSDN.
我试图使用 TechNet白皮书.
因此,在PHP上使用curl
,我发送了以下请求:
So, using curl
on PHP, I sent the following request:
<Autodiscover
xmlns="http://schemas.microsoft.com/exchange/autodiscover/outlook/requestschema/2006">
<Request>
<EMailAddress>[email protected]</EMailAddress>
<AcceptableResponseSchema>
http://schemas.microsoft.com/exchange/autodiscover/outlook/responseschema/2006a
</AcceptableResponseSchema>
</Request>
</Autodiscover>
到以下URL:
https://domain.exchangeserver.org/autodiscover/autodiscover.xml
但是没有反应,只是最终超时.
But got no response, just an eventual timeout.
我也尝试过:
https://autodiscover.domain.exchangeserver.org/autodiscover/autodiscover.xml
结果相同.
现在,由于我的更大目标是将自动发现与Exchange Web服务一起使用,并且由于所有EWS URL通常都使用与Outlook Web Access地址相同的子域,所以我想我可以看看是否同样如此自动发现网址.由于OWA URL为:
Now, since my larger goal is to use Autodiscover with Exchange Web Services, and since all of the EWS URLs typically use the same sub-domain as the Outlook Web Access address, I thought I'd see if the same were true for autodiscovery URLS. Since the OWA URL is:
OWA: https://wmail.domain.exchangeserver.org
我尝试过:
https://wmail.domain.exchangeserver.org/autodiscover/autodiscover.xml
当然,我得到了预期的答复.
And sure enough, I got back the expected response.
但是,我只知道OWA子域,因为它是我可以访问的服务器,并且我正在使用它来测试所有内容.如果这是一个实时应用程序,并且用户正在输入自己的Exchange电子邮件,我将无法确定或无法猜测.
However, I only knew the OWA sub-domain because it's the server I have access to and that I'm using to test everything. I would not know it for sure or be able to guess it if this were a live app and the user was entering in their own Exchange email.
我知道自动发现设置必须在不知道OWA URL的情况下可用,因为我可以输入:
I know that the autodiscover settings must be available without knowing the OWA URL, because I can enter:
[email protected]
进入Snow Leopard上的Apple Mail,它可以轻松找到所有内容.
into Apple Mail on Snow Leopard and it finds everything without trouble.
所以问题是...
-
https://domain.exchangeserver.org/autodiscover/autodiscover.xml
应该可以工作,而尝试连接它时我只错过了一步?或者,
Should
https://domain.exchangeserver.org/autodiscover/autodiscover.xml
have worked, and I just missed a step when trying to connect to it? Or,
Apple Mail和其他客户端在发送自动发现请求之前是否有一些技巧(也许涉及对电子邮件地址执行ping操作?)来将地址解析为OWA子域?
Is there some trick (maybe involving pinging the email address?) that Apple Mail and other clients use to resolve the address to the OWA subdomain before sending the autodiscover request?
感谢任何知道或可以大胆猜测的人.
Thanks to anyone who knows or can take a wild guess.
推荐答案
在对Google稍加抨击之后,我发现了以下 非常 有用的文章, MSDN:
After a bit more banging my head against the Google, I found the following very helpful article on MSDN:
http://msdn.microsoft.com/en-us/library/ee332364.aspx
特别是"Calling Autodiscover"
我仍在尝试通过LDAP进行Active Directory Service Connection Point search
的操作,但是至少对于我的服务器而言,第4步就像一个魅力一样工作:
I'm still trying to figure out how to do a Active Directory Service Connection Point search
via LDAP, but step 4, for my server at least, worked like a charm:
应用程序将未经身份验证的GET请求发送到 http://autodiscover.contoso.com/autodiscover/autodiscover.xml . (请注意,这是一个非SSL端点).
The application sends an unauthenticated GET request to http://autodiscover.contoso.com/autodiscover/autodiscover.xml. (Note that this is a non-SSL endpoint).
果然,请求已发送至:
http://domain.exchangeserver.org/autodiscover/autodiscover.xml
发回302重定向URL:
sent back a 302 redirect URL:
https://wmail.domain.exchangeserver.org/autodiscover/autodiscover.xml
但是本文提供了一系列步骤,因此,想要为Exchange客户端实现自动发现的任何人在放弃之前都可以尝试5件事情.
But this article gives a series of steps, so anyone wanting to implement autodiscover for an Exchange client has 5 things to try before giving up.
这篇关于从Exchange电子邮件地址获取自动发现URL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!