共用方式為


自動設定 Office Outlook 2007 使用者帳戶

更新日期: 2009年4月

適用於: Office Resource Kit

 

上次修改主題的時間: 2015-03-09

本文內容:


  • 搭配使用自動探索與 DNS 的概觀


  • 在公司網路上的自動探索運作方式


  • 自動探索交易摘要


  • 自動探索 XML 結構描述


  • 一般設定探索的概觀

Microsoft Office Outlook 2007 包括自動設定使用者帳戶的功能。Office Outlook 2007 會使用其中一種探索機制,自動設定帳戶:自動探索和一般設定探索。

自動探索是標準的 XML 檔案,可由系統管理員針對網際網路服務提供者 (ISP) 或公司加以設定,或是透過服務動態產生,例如,Microsoft Exchange 2007 中的 Client Access Server role。這是設定探索的慣用機制,因為它會提供最佳效能。它也可以在用戶端電腦上將設定錯誤的可能性最小化,因為設定是由郵件伺服器的系統管理員明確且刻意定義的。

一般設定探索較少設定且較不複雜,但可根據通用設定來設定世界各地大部分的郵件伺服器。它會先嘗試加密的連線。如果連線失敗,便會提示使用者嘗試未加密的連線,並在不加密的情況下嘗試再次連接相同伺服器。目前許多 ISP 都不需加密,但會加以啟用,讓使用者可以加密方式設定他們的帳戶。

搭配使用自動探索與 DNS 的概觀

Microsoft Office Outlook 2007 中的自動探索是一個 XML 檔案,會根據使用者所提供的網域名稱放置於下列兩個位置之一。針對網際網路,自動探索會倚賴網域名稱系統 (DNS) 來尋找 XML 檔案。XML 檔案位置會根據使用者所提供的電子郵件地址而定。例如,如果輸入 barbara@contoso.com 做為使用者的電子郵件地址,則 Office Outlook 2007 會在下列位置,依照下列順序來尋找 XML 檔案:

  1. https://contoso.com/autodiscover/autodiscover.xml

  2. https://autodiscover.contoso.com/autodiscover/autodiscover.xml

如果貴公司在根網域 (例如,contoso.com) 上也有一個網站,第二個選項 (自動探索「主機 (A) 資源記錄」解決方案) 可讓您在不同伺服器上執行 Web 伺服器和自動探索檔案或服務。對於較小的公司,擁有個別 DNS 記錄的其他管理可加以忽略,而且單一伺服器可同時執行網站和自動探索服務 (例如,先前列出的選項 1)。

您必須使用安全通訊端階層 (SSL) 來建立連線,並具備有效的 SSL 憑證。因為公司或網際網路服務提供者 (ISP) 可以選擇只對其郵件伺服器提供加密存取,所以需要有 SSL。在此情況中,如果 Office Outlook 2007 會先檢查非 SSL 位置或允許容錯移轉至非 SSL 位置,而且使用者會在有弱點的安全性狀況 (例如,中間攻擊) 中輸入電子郵件地址和密碼,則 Office Outlook 2007 中的自動設定服務會使用連線鏈結中最弱的連結 (如果不允許非 SSL 連線) 來削弱安全性。自動設定服務不需使用加密的連線,即可允許未加密的網站設定郵件伺服器設定,並允許使用使用者名稱和密碼來驗證未加密的網站。或者,自動探索通訊協定需要有 SSL,才能維護與需要安全設定例行工作之公司和 ISP 的相容性。

不過,如果公司或 ISP 選擇架設多個電子郵件網域,Office Outlook 2007 可遵循未加密的 HTTP 重新導向或 DNS SRV 資源記錄 (這項 DNS SRV 記錄查閱功能隨附於 Office Outlook 2007 Service Pack 1 中) 到儲存設定的安全網站。例如,假設 contoso.com 是架設的電子郵件網域,而且架設的服務會在 hoster.com 上執行自動探索檔案。在這種情況下,架設的公司可以使用 autodiscover 前置詞,將 Office Outlook 2007 引導至包含自動探索設定的安全網站。

在這兩個範例中,使用者將會在 Office Outlook 2007 中看見一個警告對話方塊,指出系統正在將他們重新導向至 autodiscover.hoster.com,以進行伺服器設定。對話方塊會提供允許重新導向的選項,並允許使用者忽略有關重新導向網站 (在這個範例中,為 autodiscover.hoster.com) 的進一步提示。

自動探索通訊協定詳細資料

第一次連線嘗試一律會是對於 domain 的 HTTPS POST 動詞,使用者可以在其中輸入電子郵件地址 e-mail@domain。如果已成功擷取設定,便不會進行任何其他的網路呼叫。如果無法擷取設定,則會針對 autodiscover.domain 執行 HTTPS POST 動詞。如果無法從此網站擷取設定,便只會針對 autodiscover.domain 網站執行最終的 HTTP GET 和 DNS SRV 記錄查閱。這個 HTTP GET 和 DNS SRV 記錄查閱僅會重新導向至安全網站 (如果設定會在 HTTP 位置上出現,則 Office Outlook 2007 將不會設定他們,因為連線並未加密)。

Office Outlook 2007 最多可以遵循10 個任何類型的重新導向。也就是說,您可以遵循 HTTPS POST 重新導向、HTTP GET 重新導向,或者使用本文稍後所詳述的自動探索重新導向 XML 結構描述標記。在 10 個重新導向取得設定失敗之後,設定探索便會失敗。

靜態 XML 對 Web 服務 XML

您可以使用 POST 動詞,讓 Office Outlook 2007 可以將要求發行至動態 Web 服務,例如,Microsoft Exchange 2007 中的 Client Access server role。不過,如果靜態的 XML 檔案即已足夠,或者您並未執行自動探索 Web 服務,則從任何 Web 服務之自訂 405 (不支援 POST 動詞) 回應中傳回的 XML 回應也會當成 Office Outlook 2007 所使用的設定 XML 來運作。

在本機使用自動探索

在電腦上設定登錄以尋找定義伺服器設定的本機 XML 檔案是可行的。不過,我們強烈建議您將設定架設於 Live 伺服器上,這麼一來就可以輕易地更新他們。基於測試目的,將項目加入登錄會強制 Office Outlook 2007 使用本機 XML 檔案來設定未在伺服器上設定的電子郵件網域。伺服器一律會覆寫本機 XML,以取得更好的安全性與設定控制。

例如,若要從本機 XML 檔案提供 contoso.com 電子郵件地址設定,您可以設定下列登錄值:

[HKEY_CURRENT_USER\Software\Microsoft\Office\12.0\Outlook\Autodiscover]
"contoso.com"="%PROGRAMFILES%\Microsoft Office\Office12\contoso.xml"

在這個範例中,XML 設定檔會位於此處:%PROGRAMFILES%\Microsoft Office\Office12\contoso.xml。本文稍後將提供一個 XML 設定檔範例。

XML 設定的優先順序

Office Outlook 2007 會根據自動探索 XML 設定檔中定義的伺服器順序來設定伺服器類型。例如,如果郵件服務提供者可讓使用者同時使用 POP3 通訊協定和 IMAP 通訊協定登入,但是比較想讓使用者使用 POP3 通訊協定,則應在自動探索檔案中先列出 POP3 設定。

在公司網路上的自動探索運作方式

在企業環境中,網域名稱系統 (DNS) 不是用以找出伺服器,例如執行 Microsoft Exchange 2007、Microsoft Office Outlook 2007 的大型公司可以找到「自動探索」服務,而不必使用 DNS。如果在已加入網域的電腦上執行 Office Outlook 2007,Office Outlook 2007 會先查詢 Active Directory 目錄服務是否有服務連線點 (SCP) 物件。這個物件是由 Exchange 系統管理員所建立,或在簡單的拓撲中,當安裝 Exchange 2007 時會建立它。SCP 物件會定義 Office Outlook 2007 應該參考的「自動探索」伺服器,以擷取公司防火牆內的使用者設定。

因為 Active Directory 查閱都是使用 Windows API 來執行,所以 Active Directory 查閱有可能會失敗,除非 Office Outlook 2007 是在連線到有 Active Directory 伺服器存取權的網路之電腦上執行。

SCP 物件可以是下列其中一種:

  • 服務連線定義物件

  • 服務轉介物件

服務連線定義物件

服務連線定義物件是由 Exchange 2007 Client Access 伺服器角色在安裝期間所建立。Client Access 伺服器會執行「自動探索」Web 服務。如果 Client Access 伺服器的名稱是 “CASserver”,則會在 Active Directory 中建立服務連線定義物件,以指示 Office Outlook 2007 使用 https://CASserver/autodiscover/autodiscover.xml 做為公司網路中自動探索資訊的來源。

如果已安裝多個 Client Access 伺服器,Office Outlook 2007 會隨機選擇並連線到其中一個服務連線定義物件來協助網路負載平衡。

服務轉介物件

在某些網路環境中,用戶端電腦未加入已安裝 Exchange 2007 的網域。在這種情況下,可以在 Office Outlook 2007 電腦的網路網域中建立服務轉介物件,以便將 Office Outlook 2007 指向正確的 Exchange 環境中。例如,如果所有的電腦都已加入 User 網域,但是使用者信箱是包含在不同的資源 Exchange 網域中,則會在 Exchange 網域中建立服務連線定義物件。不過,Office Outlook 2007 要尋找 Exchange 網域時,則必須在將 Office Outlook 2007 指向 Exchange 網域的 User 網域中建立服務轉介物件。服務轉介物件是根據使用者的 SMTP 位址。因此,組織可能包括多個資源樹系以處理眾多的 SMTP 位址尾碼,而且可以從單一主機網域中將位址全部適當地轉介到正確的網域。

自動探索 Exchange 電子郵件地址

如果 Office Outlook 2007 是在已加入網域的電腦上執行,Office Outlook 2007 可以自動探索使用者的電子郵件地址。Office Outlook 2007 會為已登入的使用者查詢 Active Directory 連絡人物件,然後擷取主要的 SMTP 位址。這項資訊 (若有的話) 會預先填入 Office Outlook 2007 的 [新增電子郵件帳戶] 對話方塊中。

系統管理員可以要求 Office Outlook 2007 自動設定的帳戶,方法是在「Office 自訂工具」(OCT) 中設定選項,或是使用 [群組原則] 來鎖定設定。

若要在 [群組原則] 中設定選項,請載入 Microsoft Office Outlook 2007 範本 (Outlk12.adm)。在「使用者設定\系統管理範本\Microsoft Office Outlook 2007\工具 | 帳戶設定\Exchange」之下,按兩下 [根據 Active Directory 主要 SMTP 位址自動設定設定檔],按一下 [啟用],然後按一下 [確定]。

若要將選項設定為使用者可以變更的預設設定,請使用 OCT。此選項是位於 OCT 之 [修改使用者設定] 頁面上的對應位置中。

如需如何將 [群組原則] 與 Office Outlook 2007 設定搭配使用,以及如何下載「Office 群組原則」範本的詳細資訊,請參閱使用 2007 Office system 中的群組原則來強制設定。如需如何使用 OCT 的詳細資訊,請參閱設定 2007 Office system 的使用者設定

將 Office Outlook 2007 設定為自動設定使用者設定檔時,在 Office Outlook 2007 啟動時,不會提示使用者輸入電子郵件地址。Office Outlook 2007 會不提示即設定帳戶並連線至該信箱。這個自動設定將適用於許多公司案例;在新電腦上啟動 Office Outlook 2007 會自動啟動到每個使用者的正確信箱,而不會有使用者互動。

較舊的 Exchange Server 電腦的自動設定

在不包含 Exchange 2007 的 Exchange 環境中,Office Outlook 2007 仍會嘗試找出 Exchange 信箱。Active Directory 包含可以為每個使用者設定的信箱伺服器屬性。如果標準的「自動探索」嘗試失敗,Office Outlook 2007 會試著使用 Exchange 信箱伺服器屬性,來設定連至舊版 Exchange Server 之簡單的 Exchange 連線。對於簡單的伺服器拓撲與一個網域及所有加入網域的 Office Outlook 2007 電腦,Office Outlook 2007 會查詢 Active Directory 是否有為登入電腦的使用者定義 Exchange Server 電腦。

自動探索交易摘要

Microsoft Office Outlook 2007 中的「自動探索」設定探索作業順序 (請參閱<搭配使用自動探索與 DNS 的概觀>與<在公司網路上的自動探索運作方式>) 重點摘要如下:

  1. 如果電腦加入網域,該作業就會從 Active Directory 目錄服務自動擷取電子郵件地址。

  2. 找到後則擷取 Exchange Server 電腦的名稱,並儲存該名稱,以供日後使用。

  3. 尋找服務連線點 (SCP) 物件或與使用者電子郵件地址對應的 SCP 指標物件,然後尋找正確的「自動探索」伺服器以進行連線;接著連線到伺服器,並擷取設定。

  4. 如果上述步驟失敗,請嘗試執行 Autodiscover XML 的 DNS 探索 (允許 10 次重新導向)。

    1. HTTPS POST:https://domain/autodiscover/autodiscover.xml

    2. HTTPS POST:https://autodiscover.domain/autodiscover/autodiscover.xml

    3. HTTP GET:http://autodiscover.domain/autodiscover/autodiscover.xml (只能遵循重新導向的位置,而非取得設定)

    4. DNS SRV 查閱:_autodiscover._tcp.domain (只能遵循 SRV 資源記錄所指向的重新導向位置)

  5. 如果上述步驟失敗,請嘗試執行本機 XML 探索,並使用本機電腦所找到的 XML (如果有的話)。

  6. 如果上述步驟失敗,但是在步驟 2 找到 Exchange Server 電腦的名稱,請根據 Exchange Server 電腦名稱來設定 Exchange 帳戶。

  7. 如果上述步驟不適用,請嘗試執行「一般設定探索」(請參閱<一般設定探索的概觀>)。

自動探索 XML 結構描述

Microsoft Office Outlook 2007 中自動探索的 XML 結構描述將在下列各節中說明。

Outlook 所傳送的 POST 要求

當擷取 XML 設定來設定電子郵件帳戶時,Office Outlook 2007 永遠會使用 POST 動詞。HTTP POST 如下列程式碼範例所示。

P POST is as follows:
<!-- REQUEST TO SERVER. In HTTP POST DATA -->
<?xml version="1.0" encoding="utf-8" ?>
<Autodiscover xmlns="https://schemas.microsoft.com/exchange/autodiscover/outlook/requestschema/2006">
<Request>
<AcceptableResponseSchema>https://schemas.microsoft.com/exchange/autodiscover/outlook/responseschema/2006a</AcceptableResponseSchema>

<!-- EMailAddress: Optional
This tag indicates the user's email address.
-->
<EMailAddress>JohnDoe@sample.com</EMailAddress>
</Request>
</Autodiscover>

XML 回應結構描述

伺服器可能會以數種方式來回應 Office Outlook 2007 POST。如果一個靜態 XML 檔案便已足夠,例如網際網路服務提供者 (ISP) 所提供的 POP3 服務,其中所有使用者的伺服器名稱都是相同的,則含有 XML 內容的自訂 405 POST 錯誤訊息便已足夠。如果正在執行「自動探索」服務,回應可能會根據前一節所顯示的使用者 POST 來動態計算。無論如何,回應結構描述如下列程式碼範例所示。

<!-- RESPONSE FROM THE SERVER -->
<?xml version="1.0" encoding="utf-8" ?>
<Autodiscover xmlns="https://schemas.microsoft.com/exchange/autodiscover/responseschema/2006">
<!-- Response: Required
This tag serves as an indication that the retrieved XML is an Autodiscovery Response
-->
<Response xmlns="https://schemas.microsoft.com/exchange/autodiscover/outlook/responseschema/2006a">
<!-- User: Optional
This tag gives user-specific information.  Autodiscover must be UTF-8 encoded.
-->
<User>
<!-- DisplayName: Optional
The server may have a good formal display name.  The client can decide to accept it or change it.  This will save the user time in the default case.
-->
<DisplayName>John Doe</DisplayName>
</User>

<!-- Account: Required
This tag specifies the type of account, such as Email vs Newsgroups, vs SIP server, etc.
-->
<Account>
<!-- AccountType: Required
This value indicates the type of the account.
VALUES:
email: The values under this Account tag indicate configuration settings for an email server.
nntp: The values under this Account tag indicate configuration settings for a NNTP server. (not used by Outlook 2007)
-->
<AccountType>email | nntp</AccountType>

<!-- Action: Required
This value indicates if the goal of this account results is to provide the settings or redirect to another web server that can provide results.
VALUES:
redirectUrl: If this value is specified, then the URL tag will specify the http: or https: URL containing the Autodiscover results to be used.  In order to prevent the server from being able to send the client into an infinite loop, the client should stop redirecting after 10 redirects.
redirectAddr: If this value is specified, then the XML tag will specify the e-mail address that Outlook should use to execute Autodiscover again.  In other words, the server is telling the client that the e-mail address the client should really be using for Autodiscover is not the one that was posted, but the one specified in this tag. 
settings: If this value is specified, then the XML will contain the settings needed to configure the account.  The settings will primarily be under the PROTOCOL tag.
-->
<Action>redirectUrl | redirectAddr | settings</Action>

<!-- RedirectUrl: Required if ACTION tag has value of 'redirectUrl'. Otherwise this tag must not exist.
The value will be a https: URL that the client should use to obtain the Autodiscover settings or a http: URL that the client should use for further redirection.
-->
<RedirectUrl>redirect.URL</RedirectUrl>

<!-- RedirectAddr: Required if ACTION tag has value of 'redirectAddr'. Otherwise this tag must not exist.
The value will be an email address that the client should use to rediscover settings using the Autodiscover protocol.
-->
<RedirectAddr>email@address</RedirectAddr>

<!-- Image: Optional
This is a JPG picture to brand the ISP configuration experience with. The client can choose whether or not they download this picture to display. (not used by Outlook 2007)
-->
<Image>http://path.to.image.com/image.jpg</Image>

<!-- ServiceHome: Optional
This is a link to the ISP's Home Page. The client can choose whether or not they expose this link to the user. (not used by Outlook 2007)
-->
<ServiceHome>http://web.page.com</ServiceHome>

<!-- Protocol: Required if ACTION tag has value of 'settings'. Otherwise, this tag must not exist.
The tag encloses the specifications for a single account type.  The list of Protocol tags are in order of preference of the server.  The client may over ride the preference.
-->
<Protocol>
<!-- TYPE: Required.
The value here specifies what kind of mail account is being configured.
POP3: The protocol to connect to this server is POP3. Only applicable for AccountType=email.
SMTP: The protocol to connect to this server is SMTP. Only applicable for AccountType=email.
IMAP: The protocol to connect to this server is IMAP. Only applicable for AccountType=email.
DAV: The protocol to connect to this server is DAV. Only applicable for AccountType=email.
WEB: Email is accessed from a web browser using an URL from the SERVER tag. Only applicable for AccountType=email. (not used by Outlook 2007)
NNTP: The protocol to connect to this server is NNTP. Only applicable for AccountType=nntp. (not used by Outlook 2007)
-->
<Type>POP3 | SMTP | IMAP | DAV | WEB | NNTP</Type>

<!-- ExpirationDate: Optional.
The value here specifies the last date which these settings should be used. After that date, the settings should be rediscovered via Autodiscover again. If no value is specified, the default will be no expiration.
-->
<ExpirationDate>YYYYMMDD</ExpirationDate>

<!-- TTL: Optional.
The value here specifies the time to live in hours that these settings are valid for. After that time has elapsed (from the time the settings were retrieved), the settings should be rediscovered via Autodiscovery again. A value of 0 indicates that no rediscovery will be required. If no value is specified, the default will be a TTL of 1 hour.
-->
<TTL>168</TTL>

<!-- Server: Required.
The value here specifies the name of the mail server corresponding to the server type specified above.
For protocols such as POP3, SMTP, IMAP, or NNTP, this value will be either a hostname or an IP address.
For protocols such as DAV or WEB, this will be an URL.
-->
<Server>mail.server.com</Server> <!--IP Addr or DNS name of server-->

<!-- Port: Optional.
The value specifies the Port number to use.  If no value is specified, the default settings will be used depending on the mail server type.  This value is not used if the SERVER tag contains an URL.
-->
<Port>110</Port>

<!-- LoginName: Optional.
This value specifies the user's login.  If no value is specified, the default will be set to the string preceding the '@' in the email address.  If the Login name contains a domain, the format should be <Username>@<Domain>.  Such as JoeUser@SalesDomain.
-->
<LoginName>johndoe</LoginName>

<!-- DomainRequired: Optional.  Default is off.
If this value is true, then a domain is required during authentication.  If the domain is not specified in the LOGINNAME tag, or the LOGINNAME tag was not specified, the user will need to enter the domain before authentication will succeed.
-->
<DomainRequired>on | off</DomainRequired>

<!-- DomainName: Optional.
This value specifies the user's domain. If no value is specified, the default authentication will be to use the e-mail address as a UPN format <Username>@<Domain>. Such as JoeUser@SalesDomain.
-->
<DomainName></DomainName>

<!-- SPA: (Secure Password Authentication) Optional.
This value specifies whether or not secure password authentication is needed.
If unspecified, the default is set to on.
-->
<SPA>on | off</SPA>

<!-- SSL: Optional.
This value specifies whether secure login is needed.
If unspecified, the default is set to on.
-->
<SSL>on | off</SSL>

<!-- AuthRequired: Optional.
This value specifies whether authentication is needed (password).
If unspecified, the default is set to on.
-->
<AuthRequired>on | off</AuthRequired> <!-- Optional: Is Authentication required? -->

<!-- UsePOPAuth: Optional.
This value can only be used for SMTP types.
If specified, then the authentication information provided for the POP3 type account will also be used for SMTP.
-->
<UsePOPAuth>on | off</UsePOPAuth>

<!-- SMTPLast: Optional.  Default is off.
If this value is true, then the SMTP server requires that email be downloaded before sending email via the SMTP server.  This is often required because the SMTP server verifies that the authentication succeeded when downloading email.
-->
<SMTPLast>on | off</SMTPLast>
</Protocol>
</Account>
</Response>
</Autodiscover>

範例 XML 回應

傳回的 XML 回應取決於 ISP 所定義的設定。

具有 POP3 和 SMTP 服務的 ISP

下列 XML 檔案會在 https://server.com/autodiscover/autodiscover.xmlhttps://autodiscover.server.com/autodiscover/autodiscover.xml 設定成自訂 405 錯誤回應。

<?xml version="1.0" encoding="utf-8" ?>
<Autodiscover xmlns="https://schemas.microsoft.com/exchange/autodiscover/responseschema/2006">
<Response xmlns="https://schemas.microsoft.com/exchange/autodiscover/outlook/responseschema/2006a">
<Account>
<AccountType>email</AccountType>
<Action>settings</Action>
<Protocol>
<Type>POP3</Type>
<Server>mail.server.com</Server>
<Port>995</Port>
<DomainRequired>off</DomainRequired>
<SPA>off</SPA>
<SSL>on</SSL>
<AuthRequired>on</AuthRequired>
</Protocol>
<Protocol>
<Type>SMTP</Type>
<Server>mail.server.com</Server>
<Port>587</Port>
<DomainRequired>off</DomainRequired>
<SPA>off</SPA>
<SSL>on</SSL>
<AuthRequired>on</AuthRequired>
<UsePOPAuth>on</UsePOPAuth>
<SMTPLast>on</SMTPLast>
</Protocol>
</Account>
</Response>
</Autodiscover>

具有 POP3、IMAP 和 SMTP 服務的 ISP,以及用於用戶端的 POP3 喜好設定

下列 XML 檔案會精確地設定成如上一節中所述。

<?xml version="1.0" encoding="utf-8" ?>
<Autodiscover xmlns="https://schemas.microsoft.com/exchange/autodiscover/responseschema/2006">
<Response xmlns="https://schemas.microsoft.com/exchange/autodiscover/outlook/responseschema/2006a">
<Account>
<AccountType>email</AccountType>
<Action>settings</Action>
<Protocol>
<Type>POP3</Type>
<Server>mail.server.com</Server>
<Port>995</Port>
<DomainRequired>off</DomainRequired>
<SPA>off</SPA>
<SSL>on</SSL>
<AuthRequired>on</AuthRequired>
</Protocol>
<Protocol>
<Type>IMAP</Type>
<Server>mail.server.com</Server>
<Port>993</Port>
<DomainRequired>off</DomainRequired>
<SPA>off</SPA>
<SSL>on</SSL>
<AuthRequired>on</AuthRequired>
</Protocol>
<Protocol>
<Type>SMTP</Type>
<Server>mail.server.com</Server>
<Port>587</Port>
<DomainRequired>off</DomainRequired>
<SPA>off</SPA>
<SSL>on</SSL>
<AuthRequired>on</AuthRequired>
<UsePOPAuth>on</UsePOPAuth>
<SMTPLast>on</SMTPLast>
</Protocol>
</Account>
</Response>
</Autodiscover>

XML 重新導向至一般 XML 檔案位置

若要將使用者重新導向至一般 XML 檔案位置,下列 XML 檔應該設定在架設的網域位置且為未加密的 URL。使用此 XML 檔案會導致對使用者顯示訊息,以說明正在將他們重新導向到另一個自動探索設定的站台。

例如,如果架設的網域位置是 hoster.com,以提供 contoso.com 的電子郵件地址,檔案應該位於 http://autodiscover.contoso.com/autodiscover/autodiscover.xml。在這個範例中,檔案的內容將如下列程式碼範例所示。

<?xml version="1.0" encoding="utf-8" ?>
<Autodiscover xmlns="https://schemas.microsoft.com/exchange/autodiscover/responseschema/2006">
<Response xmlns="https://schemas.microsoft.com/exchange/autodiscover/outlook/responseschema/2006a">
<Account>
<AccountType>email</AccountType>
<Action>redirectUrl</Action>
<RedirectUrl>https://autodiscover.hoster.com/autodiscover/autodiscover.xml</RedirectUrl>
</Account>
</Response>
</Autodiscover>

藉由在來源位置設定一般 HTTP 302 重新導向,可以將使用者改重新導向。Office Outlook 2007 會遵循 XML 回應內的 302 重新導向和 redirectUrl 標籤。

請注意所有自動探索回應的 XML 檔案內容都必須命名為 Autodiscover.xml。

一般設定探索的概觀

如果前述<自動探索>一節中所描述的方法,找不到在 Microsoft Office Outlook 2007 中自動設定使用者帳戶所需的設定,會藉由一般名稱和已知的連接埠來使用後援演算法以偵測伺服器。

全世界較常見的內送通訊協定是 POP3 通訊協定。因此,若 POP3 設定無誤,則會針對使用者而設定。如果使用者偏好 IMAP 設定,可以在 Office Outlook 2007 決定設定之後,以手動方式調整通訊協定設定。若要讓使用者可直接選取,則提供 POP3 和 IMAP 通訊協定的郵件服務提供者,應該針對每個通訊協定使用相同的伺服器名稱。如此一來,使用者只需要變更選取方塊,即可從 POP3 切換到 IMAP。

Office Outlook 2007 以平行方式嘗試各種內送和外寄伺服器設定,以發揮最大的效能和最小化使用者的等待時間。在下表中列出 Office Outlook 2007 嘗試為使用者所進行的設定。所有的加密設定會優先嘗試,而且它們是互斥的。然後,如果使用者同意,才會嘗試未加密的設定。

POP3 設定

首先,會嘗試加密設定。對於 POP3 伺服器,連線排列如下表所示。

伺服器 使用者名稱 連接埠 TLS/SSL SPA

mail.domain

email@domain

995

SSL

SPA

與上述相同

與上述相同

與上述相同

沒有 SPA

與上述相同

與上述相同

TLS

SPA

與上述相同

與上述相同

與上述相同

沒有 SPA

與上述相同

110

SSL

SPA

與上述相同

與上述相同

與上述相同

沒有 SPA

與上述相同

與上述相同

TLS

SPA

與上述相同

與上述相同

與上述相同

沒有 SPA

email

995

SSL

SPA

與上述相同

與上述相同

與上述相同

沒有 SPA

與上述相同

與上述相同

TLS

SPA

與上述相同

與上述相同

與上述相同

沒有 SPA

與上述相同

110

SSL

SPA

與上述相同

與上述相同

與上述相同

沒有 SPA

與上述相同

與上述相同

TLS

SPA

與上述相同

與上述相同

與上述相同

沒有 SPA

pop3.domain

email@domain

995

SSL

SPA

與上述相同

與上述相同

與上述相同

沒有 SPA

與上述相同

與上述相同

TLS

SPA

與上述相同

與上述相同

與上述相同

沒有 SPA

與上述相同

110

SSL

SPA

與上述相同

與上述相同

與上述相同

沒有 SPA

與上述相同

與上述相同

TLS

SPA

與上述相同

與上述相同

與上述相同

沒有 SPA

email

995

SSL

SPA

與上述相同

與上述相同

與上述相同

沒有 SPA

與上述相同

與上述相同

TLS

SPA

與上述相同

與上述相同

與上述相同

沒有 SPA

與上述相同

110

SSL

SPA

與上述相同

與上述相同

與上述相同

沒有 SPA

與上述相同

與上述相同

TLS

SPA

與上述相同

與上述相同

與上述相同

沒有 SPA

pop.domain

email@domain

995

SSL

SPA

與上述相同

與上述相同

與上述相同

沒有 SPA

與上述相同

與上述相同

TLS

SPA

與上述相同

與上述相同

與上述相同

沒有 SPA

與上述相同

110

SSL

SPA

與上述相同

與上述相同

與上述相同

沒有 SPA

與上述相同

與上述相同

TLS

SPA

與上述相同

與上述相同

與上述相同

沒有 SPA

email

995

SSL

SPA

與上述相同

與上述相同

與上述相同

沒有 SPA

與上述相同

與上述相同

TLS

SPA

與上述相同

與上述相同

與上述相同

沒有 SPA

與上述相同

110

SSL

SPA

與上述相同

與上述相同

與上述相同

沒有 SPA

與上述相同

與上述相同

TLS

SPA

與上述相同

與上述相同

與上述相同

沒有 SPA

domain

email@domain

995

SSL

SPA

與上述相同

與上述相同

與上述相同

沒有 SPA

與上述相同

與上述相同

TLS

SPA

與上述相同

與上述相同

與上述相同

沒有 SPA

與上述相同

110

SSL

SPA

與上述相同

與上述相同

與上述相同

沒有 SPA

與上述相同

與上述相同

TLS

SPA

與上述相同

與上述相同

與上述相同

沒有 SPA

email

995

SSL

SPA

與上述相同

與上述相同

與上述相同

沒有 SPA

與上述相同

與上述相同

TLS

SPA

與上述相同

與上述相同

與上述相同

沒有 SPA

與上述相同

110

SSL

SPA

與上述相同

與上述相同

與上述相同

沒有 SPA

與上述相同

與上述相同

TLS

SPA

與上述相同

與上述相同

與上述相同

沒有 SPA

接下來,會在要求使用者繼續進行未加密的連線嘗試之後,嘗試未加密的排列。Office Outlook 2007 嘗試設定的未加密 POP3 設定如下表所示。

伺服器 使用者名稱 連接埠 TLS/SSL SPA

mail.domain

email@domain

110

清除

SPA

與上述相同

與上述相同

與上述相同

沒有 SPA

email

與上述相同

與上述相同

SPA

與上述相同

與上述相同

與上述相同

沒有 SPA

pop3.domain

email@domain

與上述相同

與上述相同

SPA

與上述相同

與上述相同

與上述相同

沒有 SPA

email

與上述相同

與上述相同

SPA

與上述相同

與上述相同

與上述相同

沒有 SPA

pop.domain

email@domain

與上述相同

與上述相同

SPA

與上述相同

與上述相同

與上述相同

沒有 SPA

email

與上述相同

與上述相同

SPA

與上述相同

與上述相同

與上述相同

沒有 SPA

domain

email@domain

與上述相同

與上述相同

SPA

與上述相同

與上述相同

與上述相同

沒有 SPA

email

與上述相同

與上述相同

SPA

與上述相同

與上述相同

與上述相同

沒有 SPA

IMAP 設定

首先,會嘗試加密設定。對於 IMAP 伺服器,連線排列如下表所示。

伺服器 使用者名稱 連接埠 TLS/SSL SPA

mail.domain

email@domain

993

SSL

SPA

與上述相同

與上述相同

與上述相同

沒有 SPA

與上述相同

與上述相同

TLS

SPA

與上述相同

與上述相同

與上述相同

沒有 SPA

與上述相同

143

SSL

SPA

與上述相同

與上述相同

與上述相同

沒有 SPA

與上述相同

與上述相同

TLS

SPA

與上述相同

與上述相同

與上述相同

沒有 SPA

email

993

SSL

SPA

與上述相同

與上述相同

與上述相同

沒有 SPA

與上述相同

與上述相同

TLS

SPA

與上述相同

與上述相同

與上述相同

沒有 SPA

與上述相同

143

SSL

SPA

與上述相同

與上述相同

與上述相同

沒有 SPA

與上述相同

與上述相同

TLS

SPA

與上述相同

與上述相同

與上述相同

沒有 SPA

imap.domain

email@domain

993

SSL

SPA

與上述相同

與上述相同

與上述相同

沒有 SPA

與上述相同

與上述相同

TLS

SPA

與上述相同

與上述相同

與上述相同

沒有 SPA

與上述相同

143

SSL

SPA

與上述相同

與上述相同

與上述相同

沒有 SPA

與上述相同

與上述相同

TLS

SPA

與上述相同

與上述相同

與上述相同

沒有 SPA

email

993

SSL

SPA

與上述相同

與上述相同

與上述相同

沒有 SPA

與上述相同

與上述相同

TLS

SPA

與上述相同

與上述相同

與上述相同

沒有 SPA

與上述相同

143

SSL

SPA

與上述相同

與上述相同

與上述相同

沒有 SPA

與上述相同

與上述相同

TLS

SPA

與上述相同

與上述相同

與上述相同

沒有 SPA

domain

email@domain

993

SSL

SPA

與上述相同

與上述相同

與上述相同

沒有 SPA

與上述相同

與上述相同

TLS

SPA

與上述相同

與上述相同

與上述相同

沒有 SPA

與上述相同

143

SSL

SPA

與上述相同

與上述相同

與上述相同

沒有 SPA

與上述相同

與上述相同

TLS

SPA

與上述相同

與上述相同

與上述相同

沒有 SPA

email

993

SSL

SPA

與上述相同

與上述相同

與上述相同

沒有 SPA

與上述相同

與上述相同

TLS

SPA

與上述相同

與上述相同

與上述相同

沒有 SPA

與上述相同

143

SSL

SPA

與上述相同

與上述相同

與上述相同

沒有 SPA

與上述相同

與上述相同

TLS

SPA

與上述相同

與上述相同

與上述相同

沒有 SPA

接下來,會在要求使用者繼續進行未加密的連線嘗試之後,嘗試未加密的排列。Office Outlook 2007 嘗試設定的未加密 IMAP 設定如下表所示。

伺服器 使用者名稱 連接埠 TLS/SSL SPA

mail.domain

email@domain

143

清除

SPA

與上述相同

與上述相同

與上述相同

沒有 SPA

email

與上述相同

與上述相同

SPA

與上述相同

與上述相同

與上述相同

沒有 SPA

imap.domain

email@domain

與上述相同

與上述相同

SPA

與上述相同

與上述相同

與上述相同

沒有 SPA

email

與上述相同

與上述相同

SPA

與上述相同

與上述相同

與上述相同

沒有 SPA

domain

email@domain

與上述相同

與上述相同

SPA

與上述相同

與上述相同

與上述相同

沒有 SPA

email

與上述相同

與上述相同

SPA

與上述相同

與上述相同

與上述相同

沒有 SPA

SMTP 設定

首先,會嘗試加密設定。對於 SMTP 伺服器,連線排列如下表所示。

伺服器 使用者名稱 連接埠 TLS/SSL SPA

mail.domain

email@domain

587

SSL

SPA

與上述相同

與上述相同

與上述相同

沒有 SPA

與上述相同

與上述相同

TLS

SPA

與上述相同

與上述相同

與上述相同

沒有 SPA

與上述相同

25

SSL

SPA

與上述相同

與上述相同

與上述相同

沒有 SPA

與上述相同

與上述相同

TLS

SPA

與上述相同

與上述相同

與上述相同

沒有 SPA

email

587

SSL

SPA

與上述相同

與上述相同

與上述相同

沒有 SPA

與上述相同

與上述相同

TLS

SPA

與上述相同

與上述相同

與上述相同

沒有 SPA

與上述相同

25

SSL

SPA

與上述相同

與上述相同

與上述相同

沒有 SPA

與上述相同

與上述相同

TLS

SPA

與上述相同

與上述相同

與上述相同

沒有 SPA

匿名

587

SSL

n/a

與上述相同

與上述相同

TLS

n/a

與上述相同

25

SSL

n/a

與上述相同

與上述相同

TLS

n/a

smtp.domain

email@domain

587

SSL

SPA

與上述相同

與上述相同

與上述相同

沒有 SPA

與上述相同

與上述相同

TLS

SPA

與上述相同

與上述相同

與上述相同

沒有 SPA

與上述相同

25

SSL

SPA

與上述相同

與上述相同

與上述相同

沒有 SPA

與上述相同

與上述相同

TLS

SPA

與上述相同

與上述相同

與上述相同

沒有 SPA

email

587

SSL

SPA

與上述相同

與上述相同

與上述相同

沒有 SPA

與上述相同

與上述相同

TLS

SPA

與上述相同

與上述相同

與上述相同

沒有 SPA

與上述相同

25

SSL

SPA

與上述相同

與上述相同

與上述相同

沒有 SPA

與上述相同

與上述相同

TLS

SPA

與上述相同

與上述相同

與上述相同

沒有 SPA

匿名

587

SSL

n/a

與上述相同

與上述相同

TLS

n/a

與上述相同

25

SSL

n/a

與上述相同

與上述相同

TLS

n/a

domain

email@domain

587

SSL

SPA

與上述相同

與上述相同

與上述相同

沒有 SPA

與上述相同

與上述相同

TLS

SPA

與上述相同

與上述相同

與上述相同

沒有 SPA

與上述相同

25

SSL

SPA

與上述相同

與上述相同

與上述相同

沒有 SPA

與上述相同

與上述相同

TLS

SPA

與上述相同

與上述相同

與上述相同

沒有 SPA

email

587

SSL

SPA

與上述相同

與上述相同

與上述相同

沒有 SPA

與上述相同

與上述相同

TLS

SPA

與上述相同

與上述相同

與上述相同

沒有 SPA

與上述相同

25

SSL

SPA

與上述相同

與上述相同

與上述相同

沒有 SPA

與上述相同

與上述相同

TLS

SPA

與上述相同

與上述相同

與上述相同

沒有 SPA

匿名

587

SSL

n/a

與上述相同

與上述相同

TLS

n/a

與上述相同

25

SSL

n/a

與上述相同

與上述相同

TLS

n/a

接下來,會在要求使用者繼續進行未加密的連線嘗試之後,嘗試未加密的排列。Office Outlook 2007 嘗試設定的未加密 SMTP 設定如下表所示。

伺服器 使用者名稱 連接埠 TLS/SSL SPA

mail.domain

email@domain

25

與上述相同

SPA

與上述相同

與上述相同

與上述相同

沒有 SPA

email

與上述相同

與上述相同

SPA

與上述相同

與上述相同

與上述相同

沒有 SPA

匿名

與上述相同

與上述相同

n/a

smtp.domain

email@domain

25

與上述相同

SPA

與上述相同

與上述相同

與上述相同

沒有 SPA

email

與上述相同

與上述相同

SPA

與上述相同

與上述相同

與上述相同

沒有 SPA

匿名

與上述相同

與上述相同

n/a

domain

email@domain

25

與上述相同

SPA

與上述相同

與上述相同

與上述相同

沒有 SPA

email

與上述相同

與上述相同

SPA

與上述相同

與上述相同

與上述相同

沒有 SPA

匿名

與上述相同

與上述相同

n/a

下載本書

本主題隨附於下列可下載的叢書中,以便於閱讀與列印:

請參閱 Office Resource Kit 資訊 上提供的完整叢書清單。