Cannot open your default email folders. The attempt to log on to Microsoft Exchange has failed.

环境变迁:

把DC上的CAS卸载并转移到另外一台Exchange Server上之后,Outlook便不能正常打开,会出现如下错误:

Cannot open your default e-mail folders. The attempt to log on to Microsoft Exchange has failed.

image

质问MSDN得到原因如下:

当满足下列条件之一为真时,会出现此问题:

  • 在同一台服务器上安装了 Exchange Server 2010 邮箱角色和 Exchange 服务器 2010年客户端访问服务器 (CAS) 角色。因此,RpcClientAccessServer 邮箱数据库属性的引用此服务器的地址。当您从该服务器上卸载 Exchange 服务器服务器 2010 CAS 角色时,RpcClientAccessServer 属性不会更改。邮箱数据库属性仍引用该原始 Exchange 服务器 2010年服务器地址,即使该服务器上未安装 Exchange 服务器 2010 CAS。
  • 您从服务器上卸载 Exchange 2010 CAS 角色。但是,卸载进程并不会完全删除的所有设置。RpcClientAccessServer 邮箱数据库属性仍引用此服务器地址。
  • LegacyExchangeDN 属性在数据库中的更改了不正确的值。

kb:http://support.microsoft.com/kb/982678

解决方案:

若要解决此问题并将 RpcClientAccessServer 邮箱数据库属性值更改为正确的值,请按照下列步骤操作:
注意在此过程 LegacyExchangDN 属性将更新为在 Exchange Server 服务器的正确值。

  1. 单击 开始

    start button

    ,指向 所有程序、 都指向 Exchange Server 2010,然后单击 Exchange 管理外壳程序

  2. 命令提示符键入以下的 cmdlet,然后按 ENTER 键:

    get MailboxDatabase database_name | fl 名称,RpcClientAccessServer

  3. 返回的值不能在完全限定域名 (FQDN) 或 Exchange 服务器 2010 CAS 数组的 Exchange 服务器 2010 CAS 服务器。如果发生这种情况键入下面的 cmdlet,然后按 ENTER 键:

    集 MailboxDatabase database_name-RpcClientAccessServer FQDN_of_CAS

    注意FQDN_of_CAS 占位符是 Exchange 服务器 2010 CAS 数组或 Exchange 服务器 2010 CAS 服务器的 FQDN。

注:文中某些命令因翻译产生错误,原文如下:

To resolve this issue and to change the RpcClientAccessServer mailbox database property to the correct value, follow these steps:
NoteDuring this process, the LegacyExchangDN attribute is updated to the correct value for the Exchange Server server.

  1. Click Start

    start button

    , point to All Programs, point to Exchange Server 2010, and then click Exchange Management Shell.

  2. At the command prompt, type the following cmdlet and then press ENTER:

    Get-MailboxDatabase database_name | fl Name, RpcClientAccessServer

  3. The returned value may not be the Full Qualified Domain Name (FQDN) of the Exchange Server 2010 CAS server or of the Exchange Server 2010 CAS array. If this behavior occurs, type the following cmdlet and then press ENTER:

    Set-MailboxDatabase database_name -RpcClientAccessServer FQDN_of_CAS

    Note The FQDN_of_CAS placeholder is the FQDN of either the Exchange Server 2010 CAS server or of the Exchange Server 2010 CAS array.

在我的环境里,因为所有的database都需要重设属性,所以可以用下面的命令批处理操作了:

Get-Mailboxdatabase | Set-MailboxDatabase –RpcClientAccessServer FQDN_of_CAS

原文地址:https://www.cnblogs.com/dancewithautomation/p/2453791.html