在 SharePoint Server 中配置网站邮箱Configure site mailboxes in SharePoint Server

适用范围: yes2013 yes2016 yes2019 无SharePoint OnlineAPPLIES TO: yes2013 yes2016 yes2019 noSharePoint Online

本文介绍了如何在 SharePoint Server 和 Exchange Server 中配置网站邮箱。借助网站邮箱功能,SharePoint Server 用户可以在网站上访问团队电子邮件。网站邮箱还提供指向 Microsoft Outlook 中 SharePoint 文档库的链接,以便用户能够与处理联合项目的其他团队成员共享文件和电子邮件。This article describes how to configure Site Mailboxes in SharePoint Server and Exchange Server. The Site Mailboxes feature provides SharePoint Server users with team email on a site. Site Mailboxes also provides links to SharePoint document libraries in Microsoft Outlook, enabling users to share files and email messages with other members of a team that are working on a joint project.

准备工作Before you begin

开始此操作之前,请查看有关先决条件的以下信息:Before you begin this operation, review the following information about prerequisites:

  • 必须安装 Exchange Server 2016 或 Exchange Server 2013,才能配置网站邮箱。Site Mailboxes requires Exchange Server 2016 or Exchange Server 2013.

  • 需要从 SharePoint 服务器中卸载任何早期版本的 Exchange Web 服务 (EWS)。Any previous version of Exchange Web Services (EWS) will need to be uninstalled from the SharePoint servers.

    备注

    可能需要确定是否安装了旧版 EWS。如果已安装,请运行下面引用的 Check-SiteMailboxConfig 脚本。You may need to determine if a previous version of EWS is installed. If so, please run the Check-SiteMailboxConfig script referenced below.

  • 网站邮箱功能需要在服务器场中配置用户配置文件同步。有关配置用户配置文件同步的信息,请参阅计划用户配置文件和标识管理 SharePoint 服务器中的用户配置文件同步Site Mailboxes feature requires that user profile synchronization be configured in the farm. For information about configuring user profile synchronization, see User profiles and identities, and Manage user profile synchronization in SharePoint Server.

  • 网站邮箱功能需要在服务器场中配置 App Management Service 应用程序。有关配置 App Management Service 应用程序的信息,请参阅 New-SPAppManagementServiceApplicationSite Mailboxes feature requires that the app management service application be configured in the farm. For information about configuring the app management service application, see New-SPAppManagementServiceApplication.

  • 对于在支持服务器间身份验证和应用程序身份验证的方案中部署的 Web 应用程序,需要为默认区域配置安全套接字层 (SSL)。本文中的示例就属于此类方案。作为配置网站邮箱的先决条件,运行 SharePoint Server 的计算机必须已配置 SSL。有关详细信息,请参阅在 SharePoint 服务器中创建基于声明的 web 应用程序,并按照创建 SSL 网站集和服务器证书的步骤操作。Secure Sockets Layer (SSL) configured for the Default Zone is a requirement for web applications that are deployed in scenarios that support server-to-server authentication and app authentication. This is such a scenario. As a prerequisite for configuring Site Mailboxes, the computer that is running SharePoint Server must have SSL configured. For more information, see Create claims-based web applications in SharePoint Server and follow the steps for creating an SSL site collection and server certificate.

请注意,可能需要将 Exchange Server SSL 证书从 Exchange Server 导入 SharePoint Server,以及从 SharePoint Server 导入 Exchange Server。仅当 API 终结点不信任该证书时才需要执行此步骤(如实验室环境中的自签名 SSL 证书)。要将不受信任的 SSL 证书导入到新服务器,请执行以下操作:Note that you may need to import the Exchange Server SSL certificate from Exchange Server to SharePoint Server, and from SharePoint Server to Exchange Server. This is only necessary if the certificate is not trusted for the API endpoints (such as a Self-SSL Certificate in a lab environment). To import an untrusted SSL certificate to a new server:

  • 打开 Internet Explorer 并导航到 Outlook Web App(如果部署位于 SharePoint Server 中)或者 SSL SharePoint 网站(如果部署位于 Exchange Server 中):https://<ExServerName>/owa 或 https://<SP_FQDN>。Open Internet Explorer and navigate to Outlook Web App (if the deployment is on SharePoint Server) or the SSL SharePoint site (if the deployment is on Exchange Server): https://<ExServerName>/owa or https://<SP_FQDN>.

  • 单击“继续浏览网站”接受以信任该证书。****Accept to trust the certificate by clicking Continue to website.

  • 单击 Internet Explorer 中地址栏旁边的“证书错误”信息,然后单击“查看证书”。********Click Certificate Error info in Internet Explorer next to the Address bar, and then click View Certificates.

  • 选择“安装证书”,然后选择“将所有的证书放入下列存储”。********Select Install Certificate and then select Place all certificates in the following store.

  • 选中复选框以显示物理存储区。Select the checkbox to show physical stores.

  • 将证书安装到“受信任的根证书颁发机构”>“本地计算机”。Install the certificate to Trusted Root Certification Authorities > Local Computer.

  • 为了执行这些过程,您必须是 SharePoint 和 Exchange Server 管理员组的成员,并且有一个具有最终用户邮箱的可操作的 Exchange Server。In order to perform these procedures, you must be a member of the SharePoint and Exchange Server administrator groups and have an operational Exchange Server with end-user mailboxes.

  • SharePoint 备份解决方案不会合并 Exchange 网站邮箱。Exchange 管理员将需要确保及时备份网站邮箱。A SharePoint backup solution will not incorporate Exchange site mailboxes. An Exchange administrator will need to ensure timely backups of site mailboxes are taking place.

  • 从网站邮箱访问 SharePoint 文档库中文件的用户必须将文档库配置为浏览器受信任的网站,否则会出现警告,询问用户是否要信任该文件。Users who access files in a SharePoint document library from a Site Mailbox must have the document library configured as a trusted site in their browser or a warning will appear that asks the user if she or he wants to trust the file.

在 SharePoint Server 中为 SharePoint 配置网站邮箱Configure SharePoint for Site Mailboxes in SharePoint Server

配置网站邮箱的第一步是,在 SharePoint Server 场中每个 Web 服务器和应用程序服务器上安装 Exchange Server Web 服务 API。The first step in configuring Site Mailboxes is to install the Exchange Server Web Services API on each web and application server in the SharePoint Server farm.

在 SharePoint Server 上安装 Exchange Web 服务 APIInstall Exchange Web Services API on SharePoint Server

  1. Microsoft 下载中心下载 EWSManagedAPI.msi,并将它保存到每个 Web 服务器和应用程序服务器上的文件夹中。Download EWSManagedAPI.msi from the Microsoft Download Center and save it to a folder on each web and application server.

  2. 以管理员身份打开一个命令窗口,并导航到保存 EWSManagedAPI.msi 的文件夹。Open a command window as administrator and navigate to the folder where you saved EWSManagedAPI.msi.

  3. 运行以下命令:Run the following command:

    msiexec /I EwsManagedApi.msi addlocal="ExchangeWebServicesApi_Feature"
    
  4. 通过从命令行键入以下命令重置 IIS: IISReset.Reset IIS from the command line by typing IISReset.

在 SharePoint Server 上建立 OAuth 信任和服务权限Establish OAuth Trust and Service Permissions on SharePoint Server

下一步是复制以下两个脚本。应将第一个脚本另存为 Set-SiteMailboxConfig.ps1,将第二个另存为 Check-SiteMailboxConfig.ps1。The next step is to copy the following two scripts. The first should be saved as Set-SiteMailboxConfig.ps1 and the second should be saved as Check-SiteMailboxConfig.ps1.

Set-SiteMailboxConfig.ps1:Set-SiteMailboxConfig.ps1:

# .SYNOPSIS
#
# Set-SiteMailboxConfig helps configure Site Mailboxes for a SharePoint farm
#
# .DESCRIPTION
#
# Establishes trust with an Exchange Server, sets Site Mailbox settings and enables Site Mailboxes for a farm.
#
# .PARAMETER ExchangeSiteMailboxDomain
#
# The FQDN of the Exchange Organization where Site Mailboxes will be created
#
# .PARAMETER ExchangeAutodiscoverDomain
#
# [Optional] The FQDN of an Exchange Autodiscover Virtual Directory
#
# .PARAMETER WebApplicationUrl
#
# [Optional] The URL of a specific web application to configure. If not specified all Web Applications will be configured
#
# .PARAMETER Force
#
# [Optional] Indicate that the script should ignore any configuration issues and enable Site Mailboxes anyway
#
Param
(
   [Parameter(Mandatory=$true)]
   [ValidateNotNullOrEmpty()]   
   [string]$ExchangeSiteMailboxDomain,
   [Parameter(Mandatory=$false)]
   [ValidateNotNullOrEmpty()]   
   [string]$ExchangeAutodiscoverDomain,
   [Parameter(Mandatory=$false)]
   [ValidateNotNullOrEmpty()]   
   [string]$WebApplicationUrl,
   [Parameter(Mandatory=$false)]
   [switch]$Force
)
$script:currentDirectory = Split-Path $MyInvocation.MyCommand.Path
if($WebApplicationUrl -ne $NULL -and $WebApplicationUrl -ne "")
{
    $webapps = Get-SPWebApplication $WebApplicationUrl
}
else
{
    $webapps = Get-SPWebApplication
}
if($webapps -eq $NULL)
{
    if($WebApplicationUrl -ne $NULL)
    {
        Write-Warning "No Web Application Found at $($WebApplicationUrl). Please create a web application and re-run Set-SiteMailboxConfig"
    }
    else
    {
        Write-Warning "No Web Applications Found. Please create a web application and re-run Set-SiteMailboxConfig"
    }
    
    return
}
$rootWeb = $NULL
foreach($webapp in $webapps)
{
    if($rootWeb -eq $NULL)
    {
        $rootWeb = Get-SPWeb $webApp.Url -EA SilentlyContinue
    }
}
if($rootWeb -eq $NULL)
{
    Write-Warning "Unable to find a root site collection. Please create a root site collection on a web application and re-run Set-SiteMailboxConfig"
    return
}
$exchangeServer = $ExchangeAutodiscoverDomain
if($exchangeServer -eq $NULL -or $exchangeServer -eq "")
{
    $exchangeServer = "autodiscover.$($ExchangeSiteMailboxDomain)"
}
Write-Host "Establishing Trust with Exchange Server: $($exchangeServer)"
$metadataEndpoint = "https://$($exchangeServer)/autodiscover/metadata/json/1"
$exchange = Get-SPTrustedSecurityTokenIssuer | Where-Object { $_.MetadataEndpoint -eq $metadataEndpoint }
if($exchange -eq $NULL)  
{
    $exchange = New-SPTrustedSecurityTokenIssuer -Name $exchangeServer -MetadataEndPoint $metadataEndpoint
}
if($exchange -eq $NULL)
{
    Write-Warning "Unable to establish trust with Exchange Server $($exchangeServer). Ensure that $($metadataEndpoint) is accessible."
    if($ExchangeAutodiscoverDomain -eq $NULL -or $ExchangeAutodiscoverDomain -eq "")
    {
        Write-Warning "If $($metadataEndpoint) does not exist you may specify an alternate FQDN using ExchangeAutodiscoverDomain."
    }
    return
}
Write-Host "Granting Permissions to Exchange Server: $($exchangeServer)"
$appPrincipal = Get-SPAppPrincipal -Site $rootWeb.Url -NameIdentifier $exchange.NameId
Set-SPAppPrincipalPermission -AppPrincipal $appPrincipal -Site $rootWeb -Scope SiteSubscription -Right FullControl -EnableAppOnlyPolicy
Write-Host
Write-Host
Write-Host "Verifying Site Mailbox Configuration"
$warnings = & $script:currentDirectory\Check-SiteMailboxConfig.ps1 -ReturnWarningState
if($warnings -and -not $Force)
{
    Write-Warning "Pre-requisites not satisfied. Stopping Set-SiteMailboxConfig. Use -Force to override"
    return
}
elseif($warnings)
{
    Write-Warning "Pre-requisites not satisfied. -Force used to override"
}
foreach($webapp in $webapps)
{
    Write-Host "Configuring Web Application: $($webapp.Url)"
    Write-Host "Setting Exchange Site Mailbox Domain to $($ExchangeSiteMailboxDomain)"
    $webapp.Properties["ExchangeTeamMailboxDomain"] = $ExchangeSiteMailboxDomain
        
    if($ExchangeAutodiscoverDomain -ne $NULL -and $ExchangeAutodiscoverDomain -ne "")
    {
        Write-Host "Setting Exchange Autodiscover Domain to $($ExchangeAutodiscoverDomain)"
        $webapp.Properties["ExchangeAutodiscoverDomain"] = $ExchangeAutodiscoverDomain;
    }
    $webapp.Update()
}
$feature = Get-SPFeature CollaborationMailboxFarm -Farm -ErrorAction Ignore
if($feature -eq $NULL)
{
    Write-Host "Enabling Site Mailboxes for Farm"
    Enable-SPFeature CollaborationMailboxFarm
}
else
{
    Write-Host "Site Mailboxes already enabled for Farm"
}

Check-SiteMailboxConfig.ps1:Check-SiteMailboxConfig.ps1:

Param
(
   [Parameter(Mandatory=$false)]
   [ValidateNotNullOrEmpty()]   
   [switch]$ReturnWarningState
)
Add-PSSnapin Microsoft.SharePoint.Powershell
$anyWarnings = $false
Write-Host "Step 1: Checking for Exchange Web Services"
try
{
    $assm = [System.Reflection.Assembly]::Load("Microsoft.Exchange.WebServices, Version=15.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35")
    if($assm.GlobalAssemblyCache)
    {
        Write-Host -Foreground Green "Found Exchange Web Services in Global Assembly Cache"
        Write-Host "Exchange Web Services Version: $([System.Diagnostics.FileVersionInfo]::GetVersionInfo($assm.Location).FileVersion)"
    }
    else
    {
        Write-Warning "Unable to find Exchange Web Services in Global Assembly Cache"
        $anyWarnings = $true
    }
}
catch
{
    Write-Warning "Unable to find Exchange Web Services in Global Assembly Cache"
    $anyWarnings = $true
}
Write-Host
Write-Host
Write-Host "Step 2: Checking for https web application"
$webapps = Get-SPWebApplication -EA SilentlyContinue
$rootWeb = $NULL
if($webapps -ne $NULL)
{
    $sslWebAppExists = $false
    foreach($webapp in $webapps)
    {
        if($rootWeb -eq $NULL)
        {
            $rootWeb = Get-SPWeb $webApp.Url -EA SilentlyContinue
        }
        if(-not $webapp.Url.StartsWith("https://"))
        {
            Write-Warning "Web Application at $($webapp.Url) does not use HTTPS. Site Mailboxes will not work on this Web Application."
        }
        else
        {
            $sslWebAppExists = $true
            Write-Host -Foreground Green "Found Web Application at $($webapp.Url) that uses HTTPS"
        }
    }
    if(-not $sslWebAppExists)
    {
        Write-Warning "At least one Web Application must be configured for HTTPS in the default zone."
        $anyWarnings = $true
    }
}
else
{
    Write-Warning "No Web Applications Found. Please create a web application and re-run Check-SiteMailboxConfig"
    $anyWarnings = $true
    if($ReturnWarningState)
    {
        return $anyWarnings
    }
    return;
}
if($rootWeb -eq $NULL)
{
    Write-Warning "Unable to find any Sites. Please create a root site collection on a web application and re-run Check-SiteMailboxConfig"
    $anyWarnings = $true
    if($ReturnWarningState)
    {
        return $anyWarnings
    }
    return;
}
# Get App Permissions Management Objects
$appPrincipalManager = [Microsoft.SharePoint.SPAppPrincipalManager]::GetManager($rootWeb)
$appPrincipalPermissionsManager = New-Object -TypeName Microsoft.SharePoint.SPAppPrincipalPermissionsManager -ArgumentList $rootWeb        
Write-Host
Write-Host
Write-Host "Step 3: Checking for trusted Exchange Servers"
$trustedIssuers = Get-SPTrustedSecurityTokenIssuer
$trustedIssuerHosts = @()
if($trustedIssuers -ne $NULL)
{
    $foundTrustedIssuer = $false
    foreach($trustedIssuer in $trustedIssuers)
    {
        if($trustedIssuer.RegisteredIssuerName.StartsWith("00000002-0000-0ff1-ce00-000000000000@"))
        {
            if($trustedIssuer.IsSelfIssuer)
            {
                $foundTrustedIssuer = $true
                $uri = New-Object -TypeName System.Uri -ArgumentList $trustedIssuer.MetadataEndPoint
                
                Write-Host -Foreground Green "Found trusted Exchange Server at $($uri.Host)"
                $appPrincipalName = [Microsoft.SharePoint.SPAppPrincipalName]::CreateFromNameIdentifier($trustedIssuer.RegisteredIssuerName)
                $appPrincipal = $appPrincipalManager.LookupAppPrincipal([Microsoft.SharePoint.SPAppPrincipalIdentityProvider]::External, $appPrincipalName);
                
                if($appPrincipal -ne $NULL)
                {
                    $isValidAppPrincipal = $true;
                    if($appPrincipalPermissionsManager.GetAppPrincipalSiteSubscriptionContentPermission($appPrincipal) -eq [Microsoft.SharePoint.SPAppPrincipalPermissionKind]::FullControl)
                    {
                        Write-Host -Foreground Green "Exchange Server at $($uri.Host) has Full Control permissions"
                        
                    }
                    else
                    {
                        Write-Warning "Exchange Server at $($uri.Host) does not have Full Control permissions"
                        $isValidAppPrincipal = $false;
                        $anyWarnings = $true
                    }
                    if($appPrincipalPermissionsManager.IsAppOnlyPolicyAllowed($appPrincipal))
                    {
                        Write-Host -Foreground Green "Exchange Server at $($uri.Host) has App Only Permissions"
                    }
                    else
                    {
                        Write-Warning "Exchange Server at $($uri.Host) does not have App Only Permissions"
                        $isValidAppPrincipal = $false;
                        $anyWarnings = $true
                    }
                    
                    if($isValidAppPrincipal)
                    {
                        $trustedIssuerHosts += $uri.Host
                    }
                }
                else
                {
                    Write-Warning "Unable to get App Principal for $($uri.Host). Unable to check permissions for this Exchange Server"
                    $anyWarnings = $true
                }
            }
            else
            {
                Write-Warning "Found trusted Exchange Server at $($uri.Host) but it is not a Self Issuer"
                $anyWarnings = $true
            }
        }
    }
    if(-not $foundTrustedIssuer)
    {
        Write-Warning "Unable to find any trusted Exchange Servers"
        $anyWarnings = $true
    }
}
else
{
    Write-Warning "Unable to find any trusted Exchange Servers"
    $anyWarnings = $true
}
Write-Host
Write-Host
Write-Host "Step 4: Report current Site Mailbox Configuration"
if($webapps -ne $NULL)
{
    foreach($webapp in $webapps)
    {
        Write-Host
        Write-Host "Web Application Site Mailbox Configuration: $($webapp.Url)"
        Write-Host "Exchange Site Mailbox Domain: $($webapp.Properties["ExchangeTeamMailboxDomain"])"
        
        if($webapp.Properties["ExchangeAutodiscoverDomain"] -ne $NULL)
        {
            Write-Host "Exchange Autodiscover Domain: $($webapp.Properties["ExchangeAutodiscoverDomain"])"
        }
    }
}
Write-Host
Write-Host "Trusted Exchange Services: $([String]::Join(", ", $trustedIssuerHosts))"
$feature = Get-SPFeature CollaborationMailboxFarm -Farm -ErrorAction Ignore
if($feature -eq $NULL)
{
    Write-Host -ForegroundColor Red "Site Mailboxes are NOT enabled for Farm"
}
else
{
    Write-Host -ForegroundColor Green "Site Mailboxes are enabled for Farm"
}
if($ReturnWarningState)
{
    return $anyWarnings
}

将这两个 .ps1 文件保存到 SharePoint Server 前端服务器或应用程序服务器上的同一文件夹中,因为在执行期间一个脚本会调用另一个脚本。在 Microsoft PowerShell 窗口(右键单击 PowerShell 图标,并选择“以管理员身份运行”即可打开)中,转到包含 .ps1 文件的文件夹,并运行 Set-SiteMailboxConfig.ps1 脚本。这样一来,用户可以执行下列操作:****Save the two .ps1 files to the same folder on a SharePoint Server Front-end or Application server, as one script calls the other during execution. In a Microsoft PowerShell window (right-click the PowerShell icon and choose Run As Administrator to open), navigate to the folder containing the .ps1 files and run the Set-SiteMailboxConfig.ps1 script. This allows users to do the following:

  • 检索和安装 Exchange 元数据以便为 Exchange 服务主体提供对 SharePoint 网站订阅的完全控制权Retrieve and install the Exchange metadata, giving the Exchange service principal full control permissions to the SharePoint site subscription

  • 在 SharePoint 环境中启用网站邮箱功能Enable the site mailbox feature in the SharePoint environment

  • (可选)设置 Exchange 网站邮箱目标域(如果尚未为域 DNS 配置自动发现的话)(optional) Set the Exchange site mailbox target domain, if DNS for the domain hasn't been configured for AutoDiscover

Check-SiteMailboxConfig.ps1 是作为 Set-SiteMailboxConfig 脚本的一部分调用的,它将确认配置是否成功(还可以单独运行该脚本)。The Check-SiteMailboxConfig.ps1 is called as part of the Set-SiteMailboxConfig script, and it confirms that the configuration has been successful (it can also be run separately).

格式应如下所示:The format should be as follows:

   .\Set-SiteMailboxConfig.ps1 -ExchangeSiteMailboxDomain \<Domain\> -ExchangeAutodiscoverDomain [Exchange Server] -WebApplicationUrl [URL]

其中,<Domain> 将为您的 Exchange Server 所在的域的 FQDN,<Exchange Server> 为要连接到的 Exchange Server。这是必需参数。Where <Domain> equals the FQDN of the domain your Exchange Server is in, and <Exchange Server> is the Exchange Server that you intend to connect to. This is a required parameter.

可选参数是 [Exchange Server] 和 [URL]。前者是要连接到的 Exchange Server(如果未启用或未正确配置自动发现,则需要此参数),后者是可能要配置的特定 URL(通常用于包含 SSL 和非 SSL Web 应用程序的环境)。Optional parameters are [Exchange Server], which is the Exchange Server you intend to connect to (this is needed if Autodiscover is not enabled or properly configured) and [URL], which would be a specific URL that you may be configuring (typically used in an environment with SSL and non-SSL web applications).

示例:Example:

   .\Set-SiteMailboxConfig.ps1 -ExchangeSiteMailboxDomain tailspintoys.com -ExchangeAutodiscoverDomain exchange1.tailspintoys.com -WebApplicationUrl https://tailspintoys.com

如果在运行脚本时遇到错误,请参阅本文中的“疑难解答”部分,以获得相应指导。If you encounter an error while running the script, refer to the "Troubleshooting" section in this article for guidance.

为 Exchange Server 配置网站邮箱Configure Exchange Server for Site Mailboxes

最后一步是,在 Exchange 服务器上建立 OAuth 信任和服务权限。The final step is to establish OAuth trust, and service permissions, on the Exchange server.

在 Exchange 上建立 OAuth 信任和服务权限Establish OAuth Trust and Service Permission on Exchange

  1. 在 Exchange Server 实例中,以管理员身份打开 Exchange Management PowerShell 窗口,并更改为“C:\Program Files\Microsoft\Exchange Server\V15\Scripts”目录。On your instance of Exchange Server open the Exchange Management PowerShell window as Administrator and change to the "C:\Program Files\Microsoft\Exchange Server\V15\Scripts" directory .

  2. 运行以下命令:Run the following command:

    .\Configure-EnterprisePartnerApplication.ps1 -ApplicationType Sharepoint -AuthMetadataUrl https://<SP_FQDN>/_layouts/15/metadata/json/1
    

    其中<SP_FQDN> 是要配置的 SharePoint SSL 根网站集的 URL。Where <SP_FQDN> is the URL to the SharePoint SSL root site collection that you want to configure.

问题排查Troubleshooting

请如果您遇到问题,查看下表。Please review the following table if you encounter issues.

运行配置检查表脚本时的错误代码参考表Table of error codes for reference when you run a configuration checklist script

错误代码Error Code 错误Error 注释Notes
00
NoErrorNoError
查看先决条件。Review Prerequisites.
11
ExchangeClientNotAvailableExchangeClientNotAvailable
在 SharePoint WFE 上找不到 EWS 客户端。运行 Check 脚本并确保 GAC 中的条目正确无误;您可能需要重新安装 EWS 客户端。EWS client was not found on the SharePoint WFE. Run the Check script and ensure the entries are properly in the GAC; you may need to reinstall the EWS client.
双面2
UnsupportedVersionUnsupportedVersion
EWS 客户端版本与 SharePoint 不兼容。运行 Check 脚本以确保版本满足最低要求。或者,Exchange Server 可能是 2010 或较低版本。EWS client version is incompatible with SharePoint. Run the Check script to ensure the version meets minimum requirements. Alternatively, the Exchange server may be 2010 or earlier.
第三章3
InvalidUserInvalidUser
TeamMailboxDomain 参数不是有效的 FQDN 或 SMTP 地址。The TeamMailboxDomain parameter is not a valid FQDN or SMTP address.
44
UnauthorizedUserUnauthorizedUser
该脚本从 Exchange Server 收到 401 消息,请查看 Exchange 安装步骤。The script received a 401 from the Exchange Server, review the Exchange setup steps.
55
ServerBusyServerBusy
Exchange 在自动发现期间超时。它应是间歇性的,请重试,但如果它是持续性的,请咨询 Exchange 管理员。Exchange timed out during AutoDiscovery. It should be intermittent, please retry, but if it is persistent, follow-up with the Exchange Administrator.
6
URLNotAvailableURLNotAvailable
自动发现未能返回 ECP/OWA 的 URL,这通常意味着 EWS 客户端版本与 SharePoint 不兼容。它还可能意味着未在 Exchange 上启用网站邮箱,这将需要咨询 Exchange 管理员。AutoDiscovery failed to return a URL for ECP/OWA, which means typically that the EWS client version is incompatible with SharePoint. It may also mean Site Mailboxes are not enabled on Exchange, which would require follow-up with the Exchange Administrator.
7
OAuthNotSupportedOAuthNotSupported
代表 SharePoint 生成 OAuth 令牌不成功。这通常是由要在 SharePoint Web 应用程序中禁用的基于声明的身份验证引起的。Unsuccessful in generating an OAuth token on behalf of SharePoint. This is typically caused by claims-based authentication being disabled on the SharePoint web application.
utf-88
OAuthExceptionOAuthException
OAuth 在 SharePoint 与 Exchange 之间握手期间出现错误。这通常是由服务器到服务器配置问题(例如任何一端的领域值不匹配、Exchange 或 SharePoint 存在证书问题等)引起的。请检查证书并尝试建立或重新建立信任。An error occurred during the OAuth handshake between SharePoint and Exchange. This is typically caused by server to server configuration issues, such as a realm value mismatch on either side, certificate issues for Exchange or SharePoint, etc. Review certificates and attempt to establish or reestablish trust.
9
InvalidAutodiscoverDomainInvalidAutodiscoverDomain
自动发现域属性未设置为有效的 FQDN。The AutoDiscover domain property is not set to a valid FQDN.
1010
UnknownErrorUnknownError
发生未知错误情况。请运行 Check 脚本并确认可以使用有效且受信任的 SharePoint 实例,查看先决条件,确认 Exchange 管理员已正确设置自动发现。An unknown error condition has occurred. Run the Check script and confirm that a valid, trusted instance of SharePoint is available, review prerequisites, confirm AutoDiscover has been set-up properly with the Exchange Administrator.
101101
OAuthNotSupportedOverHttpOAuthNotSupportedOverHttp
如果引发此错误,表明 Web 应用程序的默认区域未设置为 SSL,并且 AllowOauthoverHttp 设置为 False。请按照先决条件中所述运行 Check 脚本以确保要承载网站邮箱的所有 Web 应用程序已在默认区域中设置了 SSL。If this error is thrown, your web application's default zone is not set to SSL, and AllowOauthoverHttp is also set to false. Run the Check script to ensure that any web application you intend to host site mailboxes are set with SSL in the default zone, as outlined in the prerequisites.
102102
AssociatedOwnersGroupNullAssociatedOwnersGroupNull
已删除网站的默认 Owners 组和/或 Members 组。这两个默认组均必须位于用户用于安装网站邮箱的网站上。网站管理员应该能够将网站所有者定向到这些重新创建的必需组。One or both of the default Owners and Members groups for the site have been deleted. Each of these two default groups are required to exist on any site where users install site mailboxes. A site administrator should be able to direct a site owner to recreated these required groups.
103103
ExchangeTeamMailboxDomainNotSetExchangeTeamMailboxDomainNotSet
尚未设置 ExchangeTeamMailboxDomain 属性。The ExchangeTeamMailboxDomain property has not been set.
104104
ExchangeAppPrincipalNotFoundExchangeAppPrincipalNotFound
未发现要信任的 Exchange 应用程序主体。这通常意味着遗漏了 New-SPTrustedSecureTokenService 步骤。请运行 Check 脚本并确保输出的应用程序主体 URL 正确无误。No Exchange app principals were found to be trusted. Typically, this means the New-SPTrustedSecureTokenService step was missed. Run the Check script and ensure that the app principal URL(s) outputted are the correct one(s).
105105
ExchangeAppPrincipalMissingPermissionsExchangeAppPrincipalMissingPermissions
要连接到的 Exchange 应用程序主体不具有 SharePoint 场的适当权限。请运行 Check 脚本并确保 Exchange 应用程序主体具有服务器场的必需权限。The Exchange app principal being connected to doesn't have the right permissions on the SharePoint farm. Run the Check script and ensure that the Exchange app principal has the required permissions on the farm.

另请参阅See also

概念Concepts

Plan email integration for a SharePoint Server farmPlan email integration for a SharePoint Server farm

Configure email integration for a SharePoint Server farmConfigure email integration for a SharePoint Server farm

其他资源Other Resources

网站邮箱Site mailboxes

协作Collaboration