SourceOne:由于 SourceOne 服务帐户,历史归档/快捷方式作业失败
摘要: SourceOne Email Management:由于 SourceOne 服务帐户超过 Microsoft Exchange 2013 或更高版本上允许的最大会话数,历史存档/快捷方式作业失败。
症状
SourceOne 历史归档/快捷方式作业具有较高的失败率。在作业详细日志中找到类似于以下内容的错误消息:
Failed to log on to mail source: UserDisplay Name (/o=<Org name>/ou=Org Unit name>/cn=Recipients/cn=<common name with exchangeSID>)
SourceOne 服务帐户可以打开用户邮箱。这将确认服务帐户具有必要的权限。
如果在单个存档或快捷方式作业中处理同一邮箱,则会正确完成。
Log Name: Application
Source: MSExchangeIS
Date: 3/14/2017 11:20:43 AM
Event ID: 9646
Task Category: MAPI
Level: Error
Keywords: Classic
User: N/A
Computer: ExchangeServer
Description:
Mapi session /o=<Org name>/ou=Org Unit name>/cn=Recipients/cn=<common name with exchangeSID> with client type MoMT exceeded the maximum of 32 objects of type Session.
原因
默认情况下,Microsoft Exchange Server 上任何用户的打开会话的最大数量为 32。
超过此限制时,Microsoft Exchange Server 可能会停止连接。
这是因为 SourceOne 可能正在执行多个作,例如:
- 杂志
- Archive
- 快捷方式活动
- 快捷方式解决方案
- 搜索还原到邮箱
这些作可能同时发生在不同的服务器上,从而导致服务帐户达到此限制。
解决方案
对于 Microsoft Exchange 2010 或更早版本,请参阅 SourceOne 支持文章“SourceOne 服务帐户超过 Microsoft Exchange 上允许的最大会话数,SourceOne 历史归档活动失败”。
对于 Microsoft Exchange 2013 或更高版本,请升级到 SourceOne Email Management 版本 7.2.6.6201 (7.2.6 + 热修复程序包 3)。
热修复程序捆绑包 (HFB) 必须全部安装,并以正确的顺序安装,才能正确应用所有修复程序。
上述版本的代码更改需要 SourceOne 服务帐户的三个邮箱权限:“Receive-as”、“ms-Exch-Store-Visible”和“ms-Exch-Store-admin”。
下面是用于在邮箱数据库级别设置 Microsoft Exchange 权限的 Exchange 命令行管理程序命令的示例:
Get-MailboxDatabase | Add-ADPermission -User "<SourceOne Service Account>" -AccessRights ExtendedRight -ExtendedRights Receive-As, ms-Exch-Store-Admin, ms-Exch-Store-Visible
Where <SourceOne Service Account> is your SourceOne Service Account.
The permissions can be checked using the following Exchange Management Shall command:
Get-MailboxDatabase -Identity "<MailBoxDatabase>"| Get-ADPermission -User SOne_Service |fl Identity,user,extendedrights
Where <MailBoxDatabase> is the name(s) of your Mailbox Databases.
Microsoft Exchange 2013 documents that service account should be passing admin flags while performing operations as service account to make sure those operations are not counted towards the defined limits for user mailboxes. Following is the blog post from MSDN which explains it: https://blogs.msdn.microsoft.com/dvespa/2014/01/06/9646-still-seen-on-exchange-2013-even-after-applying-view-information-store-status/
尽管代码修复缓解了许多交换限制,但如果许多作业同时运行,则还必须增加对 Microsoft Exchange Server 的限制(请参阅 https://technet.microsoft.com/en-us/library/mt741981(v=exchg.150).aspx)。增加每个 Microsoft Exchange Server 上的会话限制的步骤:注册表编辑不当可能会导致严重问题,可能需要重新安装作系统。注册表编辑不当导致的问题可能无法解决。在编辑注册表之前,请备份所有有价值的数据。
1) On the Microsoft Exchange Mailbox Server exhibiting the error, open the Registry Editor. 2) Go to HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\MSExchangeIS\ParametersSystem 3) Right-click ParametersSystem, point to New, and then click DWORD (32-bit) Value. 4) Type Maximum Allowed Sessions Per User as the key name 5) In the Value data box, type the number of objects to limit this entry to (e.g. 200 decimal), and then click OK. 6) Close Registry editor 7) Restart Microsoft Exchange Information Store service for change take effect.
然后在 SourceOne Workers 上,创建注册表项 MAPISESSUSEADMIN。
请按照下列步骤创建所需的注册表项:
1) Open Registry and navigate to HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\EMC\SourceOne 2) Right-click on top of SourceOne and Create a new DWORD named MAPISESSUSEADMIN 3) Set the decimal value to be 1