Outlook无法连接到Exchange Server(MAPI模式)

发布时间 2023-06-08 09:59:50作者: 遇见阿杜

问题现象:
组织中有一个邮箱账户无法连接至exchange(MAPI)模式,其他邮箱账户正常。
尝试在outlook”发送/接收“菜单点击”更新文件夹“出现下图报错:

我做了一些尝试:

1. 使用Foxmail的exchange模式连接exchange server一切正常

2. 使用imap/pop配置该邮箱,一切正常

3. 用outlook测试账户的autodiscover,一切正常

4. 使用其他计算机的outlook mapi方式配置该邮箱,问题依然存在

5. 修复office,问题依然存在

6. 删除outlook 配置文件,重新配置账户,问题依然存在

答案:这个邮箱的问题目前看来是MAPI over HTTP的活动连接数到达了阈值,导致Outlook无法连接到Exchange Server,经检查发现这个账户在多个Outlook上登陆(大概5-6个,而且还有委托邮箱。)。这一结果也很好的解释了“故障的这个邮箱账户的outlook会在我重启Exchange Server IIS服务(iisrest)后正常连接,然而将outlook关闭重新打开后问题复现。”

我调整了这个故障账户的MAPI并发活动连接数。这里我以“user@contoso.com”邮箱为例。具体步骤如下:

1、查看当前全局和默认活动连接并发数

[PS] C:\Windows\system32>Get-ThrottlingPolicy | ft Name,ThrottlingPolicyScope,RCAMaxConcurrency -auto
正在创建新会话来隐式远程处理“Get-ThrottlingPolicy”命令...
Name                                                         ThrottlingPolicyScope RcaMaxConcurrency
DefaultThrottlingPolicy_856bb0ab-03b5-4754-b3bb-2c5539a3e2c4               Regular 40
GlobalThrottlingPolicy_24d37f2f-ac82-4621-8c5f-9ab30c892b3b                 Global 40

2、创建一个新的 ThrottlingPolicy,RcaMaxConcurrency 设置为 200

New-ThrottlingPolicy -Name "MAPIThrottlingPolicy" -RCAMaxConcurrency 200

3、查看当前这个账户是否应用了ThrottlingPolicy(默认是none)

Get-mailbox -Identity 'user@contoso.com' | ft name,ThrottlingPolicy

4、将新的 ThrottlingPolicy 分配给特定的邮箱

 Set-Mailbox -Identity 'user@contoso.com' -ThrottlingPolicy "MAPIThrottlingPolicy"

5、查看特定用的MAPI活动连接并发数

Get-Mailbox -Identity 'user@contoso.com' | ft Name,ThrottlingPolicyScope,RCAMaxConcurrency -auto

做完这些操作后,目前观察了两天。没再出现故障,关闭重新打开Outlook也没问题。