設定連接器以在 Office 365 和您自己的電子郵件伺服器之間路由傳送郵件Set up connectors to route mail between Office 365 and your own email servers

本主題可協助您設定下列兩個案例所需的連接器:This topic helps you set up the connectors you need for the following two scenarios:

  • 您有自己的電子郵件伺服器 (也稱為內部部署伺服器),且您有訂閱 Exchange Online Protection (EOP) 做為您的電子郵件保護服務。You have your own email servers (also called on-premises servers), and you subscribe to Exchange Online Protection (EOP) for email protection services.

  • 您有 (或想要有) 多個信箱分佈於兩個地方;部分信箱位於 Office 365,而部分信箱位於組織的電子郵件伺服器 (也稱為內部部署伺服器) 上。You have (or intend to have) mailboxes in two places; some mailboxes in Office 365, and some of your mailboxes are on your organization email servers (also called on-premises servers).

注意

您開始之前,請確定您在您特定的案例中,檢查我有 EOP 或 Exchange Online 與我自己的電子郵件伺服器的怎麼辦吗?Before you get started, make sure you check on your specific scenario in What if I have EOP or Exchange Online and my own email servers?.

Office 365 連接器如何利用我自己的電子郵件伺服器 (也稱為「內部部署伺服器」) 運作?How do Office 365 connectors work with my own email servers (also called "on-premises servers")?

如果您有 EOP 和自己的電子郵件伺服器,或如果有部分信箱位於 Office 365 而部分信箱位於您的電子郵件伺服器,請設定連接器以啟用兩個方向的郵件流程。您可以啟用 Office 365 和任何 SMTP 型電子郵件伺服器之間的郵件流程,例如 Exchange 或協力廠商電子郵件伺服器。If you have EOP and your own email servers, or if some of your mailboxes are in Office 365 and some are on your email servers, set up connectors to enable mail flow in both directions. You can enable mail flow between Office 365 and any SMTP-based email server, such as Exchange or a third-party email server.

下方圖表顯示 Office 365 (包括 Exchange Online 或 EOP) 中的連接器如何利用您自己的電子郵件伺服器運作。The diagram below shows how connectors in Office 365 (including Exchange Online or EOP) work with your own email servers.

Office 365 與電子郵件伺服器之間的連接器

在這個範例中,John 和 Bob 是您的公司員工。John 在您管理的電子郵件伺服器上擁有信箱,而 Bob 在 Office 365 中擁有信箱。John 和 Bob 都和 Sun (擁有網際網路郵件帳戶的客戶) 交換郵件:In this example, John and Bob are both employees at your company. John has a mailbox on an email server that you manage, and Bob has a mailbox in Office 365. John and Bob both exchange mail with Sun, a customer with an Internet mail account:

  • 當電子郵件在 John 和 Bob 之間傳送時,需要連接器。When email is sent between John and Bob, connectors are needed.

  • 當電子郵件在 John 和 Sun 之間傳送時,需要連接器(所有的網際網路電子郵件都透過 Office 365 傳遞)。When email is sent between John and Sun, connectors are needed. (All Internet email is delivered via Office 365.)

  • 當電子郵件在 Bob 和 Sun 之間傳送時,不需要連接器。When email is sent between Bob and Sun, no connector is needed.

如果您有自己的電子郵件伺服器和 Office 365,您必須設定連接器。如果沒有連接器,電子郵件就不會在 Office 365 和您的組織電子郵件伺服器之間流動。If you have your own email servers and Office 365, you must set up connectors. Without connectors, email will not flow between Office 365 and your organization's email servers.

連接器如何在 Office 365 和我自己的電子郵件伺服器之間路由傳送郵件?How do connectors route mail between Office 365 and my own email server?

您需要兩個連接器以在 Office 365 和您的電子郵件伺服器之間路由傳送郵件,如下所示:You need two connectors to route email between Office 365 and your email servers, as follows:

  • 從 Office 365 到您自己的電子郵件伺服器的連接器A connector from Office 365 to your own email server

當您設定 Office 365 以代表組織接受所有電子郵件時,您會將網域的 MX (郵件交換) 記錄指向 Office 365。您必須設定替代伺服器 (稱為「智慧主機」),讓 Office 365 可以傳送電子郵件給您的組織電子郵件伺服器 (也稱為「內部部署伺服器」),做為這種郵件傳遞案例的預備工作。您可能還需要將您的電子郵件伺服器設定為可接受 Office 365 傳遞的郵件,才能完備這個案例。When you set up Office 365 to accept all email on behalf of your organization, you will point your domain's MX (mail exchange) record to Office 365. To prepare for this mail delivery scenario, you must set up an alternative server (called a "smart host") so that Office 365 can send email to your organization's email server (also called "on-premises server"). To complete the scenario, you might need to configure your email server to accept messages delivered by Office 365.

  • 從您自己的電子郵件伺服器到 Office 365 的連接器A connector from your own email server to Office 365

當設定此連接器之後,Office 365 會從您的組織電子郵件伺服器接受郵件並代表您傳送郵件給收件者。此收件者可以是您的組織在 Office 365 中的信箱,也可以是網際網路上的收件者。您還需要將您的電子郵件伺服器設定為直接傳送電子郵件給 Office 365,才能完備這個案例。When this connector is set up, Office 365 will accept messages from your organization's email server and send the messages to recipients on your behalf. This recipient could be a mailbox for your organization in Office 365, or it could be a recipient on the Internet. To complete this scenario, you'll also need to configure your email server to send email messages directly to Office 365.

此連接器可讓 Office 365 掃描您的電子郵件的垃圾郵件與惡意程式碼,並強制執行規範的需求,例如執行資料遺失防止原則。當您的電子郵件伺服器直接傳送所有電子郵件給 Office 365,您自己的 IP 位址會受到防護,不會加入垃圾郵件封鎖清單。 您可能還需要將您的電子郵件伺服器設定為可傳送 Office 365 傳遞的郵件,才能完備這個案例。This connector enables Office 365 to scan your email for spam and malware, and to enforce compliance requirements such as running data loss prevention policies. When your email server sends all email messages directly to Office 365, your own IP addresses are shielded from being added to a spam block list. To complete the scenario, you might need to configure your email server to send messages to Office 365.

注意

此案例需要兩個連接器:一個從 Office 365 到您的郵件伺服器,而另一個可管理相反方向的郵件流程。在開始之前,請確定您擁有所有的必要資訊,並繼續依指示進行,直到您設定並驗證過這兩個連接器。This scenario requires two connectors: one from Office 365 to your mail servers, and one to manage mail flow in the opposite direction. Before you start, make sure you have all the information you need, and continue with the instructions until you have set up and validated both connectors.

步驟概觀Overview of the steps

以下為步驟概觀:Here is an overview of the steps:

  • 請完成電子郵件伺服器環境的先決條件Complete the prerequisites for your email server environment.

  • 第 1 部分: 將郵件設定為從 Office 365 流向您的電子郵件伺服器。Part 1: Configure mail to flow from Office 365 to your email server.

  • 第 2 部分: 將郵件設定為從您的電子郵件伺服器流向 Office 365。Part 2: Configure mail to flow from your email server to Office 365.

電子郵件伺服器環境的先決條件Prerequisites for your email server environment

準備您的伺服器環境 (也就是您的內部部署環境),使它準備好和 Office 365 連線。請遵循下列步驟:Prepare your server environment (also known as your on-premises environment) so that it's ready to connect with Office 365. Follow these steps:

  1. 請確定已設定您的電子郵件伺服器 (也稱為「內部部署郵件伺服器」),並且能夠和網際網路相互傳送和接收郵件。Make sure that your email server (also called "on-premises mail server") is set up and capable of sending and receiving mail to and from the Internet.

  2. 請檢查您的內部部署電子郵件伺服器已啟用傳輸層安全性 (TLS),並具備憑證授權單位簽署 (CA 簽署) 的有效憑證。建議憑證主體名稱要包含符合您組織中主要電子郵件伺服器的網域名稱。如有必要,請購買符合此描述的 CA 簽署數位憑證。Check that your on-premises email server has Transport Layer Security (TLS) enabled, with a valid certification authority-signed (CA-signed) certificate. We recommend that the certificate subject name includes the domain name that matches the primary email server in your organization. Buy a CA-signed digital certificate that matches this description, if necessary.

  3. 如果您想要使用憑證在 Office 365 和您的電子郵件伺服器之間進行安全通訊,請更新您的電子郵件伺服器用來接收郵件的連接器。此連接器必須在 Office 365 嘗試與您的伺服器連線時辨識正確憑證。如果您正在使用 Exchange,請參閱Receive Connectors以取得詳細資訊。在 Edge Transport Server 或用戶端存取伺服器 (CAS) 上,設定接收連接器的預設憑證。在 Exchange Management Shell 上更新 Set-ReceiveConnector Cmdlet 上的 TlsCertificateName 參數。若要了解如何在內部部署 Exchange 組織中開啟 Exchange 管理命令介面,請參閱 Open the ShellIf you want to use certificates for secure communication between Office 365 and your email server, update the connector your email server uses to receive mail. This connector must recognize the right certificate when Office 365 attempts a connection with your server. If you're using Exchange, see Receive Connectors for more information. On the Edge Transport Server or Client Access Server (CAS), configure the default certificate for the Receive connector. Update the TlsCertificateName parameter on the Set-ReceiveConnector cmdlet in the Exchange Management Shell. To learn how to open the Exchange Management Shell in your on-premises Exchange organization, see Open the Shell.

  4. 請記下對外電子郵件伺服器的名稱或 IP 位址。如果您使用 Exchange,就是從 Office 365 接收電子郵件之 Edge Transport Server 或 CAS 的完整網域名稱 (FQDN)。Make a note of the name or IP address of your external-facing email server. If you're using Exchange, this will be the Fully Qualified Domain Name (FQDN) of your Edge Transport server or CAS that will receive email from Office 365.

  5. 開啟防火牆上的連接埠 25,讓 Office 365 可以連線到您的電子郵件伺服器。Open port 25 on your firewall so that Office 365 can connect to your email servers.

  6. 請確定您的防火牆會接受來自所有 Office 365 IP 位址的連線。請參閱 Exchange Online Protection IP addresses 以了解已發佈的 IP 位址範圍。Make sure your firewall accepts connections from all Office 365 IP addresses. See Exchange Online Protection IP addresses for the published IP address range.

  7. 請記下組織中每個網域的電子郵件地址。稍後您將需要這個資訊來測試您的連接器是否正常運作。Make a note of an email address for each domain in your organization. You'll need this later to test that your connector is working properly.

第 1 部分:將郵件設定為從 Office 365 流向您的電子郵件伺服器Part 1: Configure mail to flow from Office 365 to your email server

要執行此作業有三個步驟:There are three steps for this:

  1. 設定您的 Office 365 環境。Configure your Office 365 environment.

  2. 設定從 Office 365 到您的電子郵件伺服器的連接器。Set up a connector from Office 365 to your email server.

  3. 變更您的 MX 記錄以將您的郵件流程從網際網路重新導向至 Office 365。Change your MX record to redirect your mail flow from the Internet to Office 365.

1.設定您的 Office 365 環境1. Configure your Office 365 environment

確認您已在 Office 365 中完成下列作業:Make sure you have completed the following in Office 365:

  1. 您需要指派的權限才可以開始設定連接器。若要檢查您需要哪些權限,請參閱 Feature permissions in EOP 主題中的「Office 365 連接器」內容。To set up connectors, you need permissions assigned before you can begin. To check what permissions you need, see the "Office 365 connectors" entry in the Feature permissions in EOP topic.

  2. 如果您想要 EOP 或 Exchange Online,將您電子郵件伺服器的電子郵件轉送至網際網路,請執行下列其中一項:If you want EOP or Exchange Online to relay email from your email servers to the Internet, either:

  3. 決定您是否要使用傳輸規則或網域名稱來將郵件從 Office 365 傳遞到您的電子郵件伺服器。大部分的公司會選擇將郵件傳遞給所有公認的網域。如需詳細資訊,請參閱 Using a connector with a transport ruleDecide whether you want to use transport rules or domain names to deliver mail from Office 365 to your email servers. Most businesses will choose to deliver mail for all accepted domains. For more information, see Using a connector with a transport rule.

注意

您可以設定傳輸規則Mail flow 規則動作在 Exchange Online所述。例如,您可能要如果您的信箱目前導向至多個站台的通訊群組清單透過傳輸規則搭配連接器。You can set up transport rules as described in Mail flow rule actions in Exchange Online. For example, you might want to use transport rules with connectors if your mail is currently directed via distribution lists to multiple sites.

2.設定從 Office 365 到您的電子郵件伺服器的連接器。2. Set up a connector from Office 365 to your email server

若要在 Office 365 中建立的連接器,請按一下系統,然後按一下 [ Exchange移至 Exchange 系統管理中心。下一步]、 [郵件流程,然後按一下 [連接器To create a connector in Office 365, click Admin, and then click Exchange to go to the Exchange admin center. Next, click mail flow, and click connectors.

如果您的組織已有任何連接器,則您可以看到它們在此列出。If any connectors already exist for your organization, you can see them listed here.

進出電子郵件伺服器的 Office 365 範例連接器

設定新的連接器之前,請檢查您的組織已以下列出任何連接器。例如,如果您執行 Exchange混合組態] 精靈,傳遞郵件 Office 365 與 Exchange Server 之間的連接器可以已經設定好以及此處所列。您不需要設定這些一次,但您可以編輯這些以下如果您需要。如果您不打算使用混合組態] 精靈中,如果您正在執行 Exchange Server 2007 或更早版本,或如果您正在執行連接器使用精靈設定非 Microsoft SMTP 郵件伺服器。Before you set up a new connector, check any connectors that are already listed here for your organization. For example, if you ran the Exchange Hybrid Configuration wizard, connectors that deliver mail between Office 365 and Exchange Server will be set up already and listed here. You don't need to set them up again, but you can edit them here if you need to. If you don't plan to use the hybrid configuration wizard, or if you're running Exchange Server 2007 or earlier, or if you're running a non-Microsoft SMTP mail server, set up connectors using the wizard.

若要啟動精靈,請按一下加號 +。 在第一個畫面中,選擇下列螢幕擷取畫面中所描述的選項:To start the wizard, click the plus symbol +. On the first screen, choose the options that are depicted in the following screenshot:

Office 365 到您的郵件伺服器

按 [ 下一步],並遵循精靈中的指示。如果需要詳細資訊,請按一下 [ 說明] 或 [ 深入了解] 連結。精靈會引導您完成設定。結束時,請確定您的連接器通過驗證。如果連接器沒有通過驗證,請按兩下顯示的訊息以取得詳細資訊,並參閱About fixing connector validation errors來協助解決問題。Click Next, and follow the instructions in the wizard. Click the Help or Learn More links if you need more information. The wizard will guide you through setup. At the end, make sure your connector validates. If the connector does not validate, double-click the message displayed to get more information, and see About fixing connector validation errors for help resolving issues.

3.變更您的 MX 記錄以將您的郵件流程從網際網路重新導向至 Office 3653. Change your MX record to redirect your mail flow from the Internet to Office 365

若要將電子郵件流程重新導向至 Office 365,請變更網域的 MX (郵件交換) 記錄。如需關於如何執行這項操作的指示,請參閱新增 MX 記錄以路由傳送電子郵件To redirect email flow to Office 365, change the MX (mail exchange) record for your domain. For instructions on how to do this, see Add MX record to route email.

第 2 部分:將郵件設定為從您的電子郵件伺服器流向 Office 365Part 2: Configure mail to flow from your email server to Office 365

要執行此作業有兩個步驟:There are two steps for this:

  1. 設定從您的電子郵件伺服器到 Office 365 的連接器。Set up a connector from your email server to Office 365.

  2. 設定您的電子郵件伺服器,以透過 Office 365 將郵件轉送到網際網路。Set up your email server to relay mail to the Internet via Office 365.

完成第 2 部分之後,請參閱結尾的指示,檢查您的組態是否運作。Once you have completed Part 2, see the instructions at the end to check that your configuration works.

1.設定從您的電子郵件伺服器到 Office 365 的連接器1. Set up a connector from your email server to Office 365

Office 365 中建立的連接器、 按一下 [管理,並按一下 [ Exchange],然後移至 Exchange 系統管理中心。下一步]、 [郵件流程,然後按一下 [連接器。如果任何連接器已經存在於您的組織,您可以看到它們此處所列。To create a connector in Office 365, click Admin, click Exchange, and then to go to the Exchange admin center. Next, click mail flow, and click connectors. If any connectors already exist for your organization, you can see them listed here.

若要啟動精靈,請按一下加號 +。 在第一個畫面中,選擇下列螢幕擷取畫面中所描述的選項:To start the wizard, click the plus symbol +. On the first screen, choose the options that are depicted in the following screenshot:

從貴組織的郵件伺服器到 Office 365 選擇

按 [ 下一步],並遵循精靈中的指示。如果需要詳細資訊,請按一下 [ 說明] 或 [ 深入了解] 連結。尤其,請參閱Identifying email from your email server以取得為此連接器設定憑證或 IP 位址設定的說明。精靈會引導您完成設定。結束時,請儲存您的連接器。Click Next, and follow the instructions in the wizard. Click the Help or Learn More links if you need more information. In particular, see Identifying email from your email server for help configuring certificate or IP address settings for this connector. The wizard will guide you through setup. At the end, save your connector.

2.設定您的電子郵件伺服器,以透過 Office 365 將郵件轉送到網際網路2. Set up your email server to relay mail to the Internet via Office 365

接下來,您必須準備您的電子郵件伺服器以傳送郵件給 Office 365。這樣可以透過 Office 365 啟動從您的電子郵件伺服器到網際網路的郵件流程。Next, you must prepare your email server to send mail to Office 365. This enables mail flow from your email servers to the Internet via Office 365.

在 Exchange 伺服器上,設定 [傳送至 Office 365 智慧主機透過電子郵件的傳送連接器。如需如何執行這項作業與 Exchange Server 的指示,請參閱 < Create 來路由傳送到智慧主機的外寄電子郵件的傳送連接器。如需如何執行這項作業與 Exchange Server 2010 的指示,請參閱 <建立 SMTP 傳送連接器On your Exchange server, configure a Send connector to send email via a smart host to Office 365. For instructions on how to do this with Exchange Server, see Create a Send connector to route outbound email through a smart host . For instructions on how to do this with Exchange Server 2010, see Create an SMTP Send Connector.

在 Exchange Server 中建立的傳送連接器,請在 Exchange 管理命令介面中使用下列語法。若要了解如何在內部部署 Exchange 組織中開啟 Exchange 管理命令介面,請參閱開啟命令介面To create the Send connector in Exchange Server, use the following syntax in the Exchange Management Shell. To learn how to open the Exchange Management Shell in your on-premises Exchange organization, see Open the Shell.

New-SendConnector -Name <DescriptiveName> -AddressSpaces * -CloudServicesMailEnabled $true -Fqdn <CertificateHostNameValue> -RequireTLS $true -DNSRoutingEnabled $false -SmartHosts  <YourDomain>-com.mail.protection.outlook.com -TlsAuthLevel  CertificateValidation

此範例會建立具有下列內容的新傳送連接器:This example creates a new Send Connector with the following properties:

  • 名稱 我的公司到 Office 365Name My company to Office 365

  • FQDN mail.contoso.comFQDN mail.contoso.com

  • SmartHosts contoso-com.mail.protection.outlook.comSmartHosts contoso-com.mail.protection.outlook.com

New-SendConnector -Name "My company to Office 365" -AddressSpaces * -CloudServicesMailEnabled $true -Fqdn mail.contoso.com -RequireTLS $true -DNSRoutingEnabled $false -SmartHosts  contoso-com.mail.protection.outlook.com -TlsAuthLevel  CertificateValidation

以下是範例PowerShell指令程式可協助您在 Exchange Server 中設定的傳送連接器:Here is an example PowerShell cmdlet to help you configure the Send connector in Exchange Server:

New-SendConnector -Name "My company to Office 365" -AddressSpaces * -CloudServicesMailEnabled $true -Fqdn "cert domain name, such as mail.contoso.com" -RequireTLS $true -SmartHosts yourdomain-com.mail.protection.outlook.com -TlsAuthLevel CertificateValidation

如何知道連接器是否正確地路由傳送組織郵件?How do I know connectors will route my organization mail correctly?

如果您已正確完成上述所有步驟,您的所有郵件現在會透過 Office 365 傳遞。If you have completed all of these steps correctly, all your mail will now be delivered via Office 365.

檢查是否正常運作:To check that this is working:

  1. 從電子郵件伺服器上的信箱傳送電子郵件給網際網路信箱。Send email from a mailbox on your email server to an Internet mailbox.

  2. 從網際網路信箱傳送電子郵件到電子郵件伺服器上的信箱。Send email from an Internet mailbox to a mailbox on your email server.

請確定已接收這兩封電子郵件。Make sure both emails are received.

變更 Office 365 用於郵件流程的連接器時會發生什麼事Change a connector that Office 365 is using for mail flow

若要變更連接器設定,請選取您要編輯的連接器,接著選取如以下螢幕擷取畫面所顯示的編輯圖示。To change settings for a connector, select the connector you want to edit and then select the edit icon as shown in the following screen shot.

顯示已選取連接器並反白顯示編輯 (鉛筆) 圖示的螢幕擷取畫面。

連接器精靈即會開啟,而您即可變更現有的連接器設定。在您變更連接器設定時,Office 365 會先對郵件流程繼續使用現有的連接器設定。當您儲存變更到連接器時,Office 365 便會開始使用新設定。The connector wizard opens, and you can make changes to the existing connector settings. While you change the connector settings, Office 365 continues to use the existing connector settings for mail flow. When you save changes to the connector, Office 365 starts using the new settings.

我在相同的案例上使用多個連接器時,會發生什麼事?What happens when I have multiple connectors for the same scenario?

大部分的客戶不需要設定連接器。對需要設定的客戶而言,通常每單一郵件流程方向設定一個連接器就已足夠。但是您也可以為單一郵件流程方向建立多個連接器,例如從 Office 365 到您的電子郵件伺服器 (也稱為內部部署伺服器)。Most customers don't need to set up connectors. For those that do, one connector per single mail flow direction is usually enough. But you can also create multiple connectors for a single mail flow direction, such as from Office 365 to your email server (also called on-premises server).

當存在多個連接器時,解決郵件流程問題的第一個步驟就是了解哪些連接器 Office 365 正在使用。Office 365When there are multiple connectors, the first step to resolving mail flow issues is to know which connector Office 365 is using. Office 365 uses the following order to choose a connector to apply to an email:

  1. 使用與收件者網域完全符合的連接器。Use a connector that exactly matches the recipient domain.

  2. 使用可套用到所有公認網域的連接器。Use a connector that applies to all accepted domains.

  3. 使用萬用字元模式比對。例如,*.contoso.com 會符合 mail.contoso.com 以及 sales.contoso.com。Use wildcard pattern matching. For example, *.contoso.com would match mail.contoso.com as well as sales.contoso.com.

Office 365 如何套用多個連接器的範例Example of how Office 365 applies multiple connectors

在這個範例中,您的組織有四個公認的網域:contoso.com、sales.contoso.com、fabrikam.com 及 contoso.onmicrosoft.com。您有從 Office 365 設定到您組織電子郵件伺服器的三個連接器。對此範例而言,這些連接器稱為 連接器 1連接器 2連接器 3In this example, your organization has four accepted domains, contoso.com, sales.contoso.com, fabrikam.com, and contoso.onmicrosoft.com. You have three connectors configured from Office 365 to your organization's email server. For this example, these connectors are known as Connector 1, Connector 2, and Connector 3.

連接器 1 是為您組織中所有公認的網域所設定。下列螢幕擷取畫面顯示連接器精靈畫面,您可在其中定義連接器會套用到哪個網域。在此狀況下,所選擇的設定是 針對傳送至您組織中所有公認網域的電子郵件訊息Connector 1 is configured for all accepted domains in your organization. The following screen shot shows the connectors wizard screen where you define which domains the connector applies to. In this case, the setting chosen is For email messages sent to all accepted domains in your organization.

顯示連接器精靈頁面:您何時要使用此連接器?已選取第二個選項。此選項為:針對傳送至您組織中所有公認網域的電子郵件訊息。

連接器 2 特別為您的公司網域 Contoso.com 設定。下列螢幕擷取畫面顯示連接器精靈畫面,您可在其中定義連接器會套用到哪個網域。在此狀況下,所選擇的設定是 僅當電子郵件訊息傳送至這些網域時。對於 連接器 2 ,您公司的網域 Contoso.com 已指定。Connector 2 is set up specifically for your company domain Contoso.com. The following screen shot shows the connectors wizard screen where you define which domains the connector applies to. In this case, the setting chosen is Only when email messages are sent to these domains. For Connector 2, your company domain Contoso.com is specified.

顯示連接器精靈頁面:您何時要使用此連接器?已選取第三個選項。此選項為:僅當電子郵件訊息傳送至這些網域時。已新增 contoso.com 網域。

連接器 3 同樣也設定為使用選項 僅當電子郵件訊息傳送至這些網域時。但是,連接器會使用萬用字元:*.Contoso.com,而不是特定的網域 Contoso.com,如下列螢幕擷取畫面所示。Connector 3 is also set up by using the option Only when email messages are sent to these domains. But, instead of the specific domain Contoso.com, the connector uses a wildcard: *.Contoso.com as shown in the following screen shot.

顯示連接器精靈頁面:您何時要使用此連接器?已選取第三個選項。此選項為:僅當電子郵件訊息傳送至這些網域時。指定的網域包含萬用字元。已加入 *.contoso.com。

針對由 Office 365 傳送到您電子郵件伺服器上信箱的每封電子郵件,Office 365 會盡可能選取最明確的連接器。針對傳送到下列位置的電子郵件:For each email sent from Office 365 to mailboxes on your email server, Office 365 selects the most specific connector possible. For email sent to:

  • john@fabrikam.com,Office 365 會選取 連接器 1john@fabrikam.com, Office 365 selects Connector 1.

  • john@contoso.com,Office 365 會選取 連接器 2john@contoso.com, Office 365 selects Connector 2.

  • john@sales.contoso.com,Office 365 會選取 連接器 3john@sales.contoso.com, Office 365 selects Connector 3.

See alsoSee also

Configure mail flow using connectors in Office 365Configure mail flow using connectors in Office 365

郵件流程的最佳作法 Exchange Online 與 Office 365 (概觀)Mail flow best practices for Exchange Online and Office 365 (overview)

在 Office 365 驗證連接器Validate connectors in Office 365

為夥伴組織的安全郵件流程設定連接器Set up connectors for secure mail flow with a partner organization