來源一:由於 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 可能會執行多項作業,例如:
- 日記
- 歸檔
- 捷徑活動
- 捷徑解析度
- 搜尋還原到郵箱
這些可能會同時從不同的伺服器發生,導致服務帳戶達到此限制。
解析度
如需 Microsoft Exchange 2010 或更早版本,請參閱 SourceOne 支援文章「SourceOne 歷史歸檔活動失敗,因為 SourceOne 服務帳戶超過 Microsoft Exchange 允許的最大工作階段數量」。
若 為 Microsoft Exchange 2013 或更新版本,請升級至 SourceOne Email Management 版本 7.2.6.6201 (7.2.6 + Hot Fix Bundle 3)。
熱修正套裝 (HFB) 必須全部安裝,且安裝順序正確,才能正確套用所有修正程式。
上述版本的代碼變更需要三個信箱權限「接收為」、「ms-Exch-Store-Visible」和「ms-Exch-Store-admin」(適用於 SourceOne 服務帳戶)。
下面是 Exchange 命令行管理程式命令的範例,用於在郵箱資料庫級別設置對 Exchange Microsoft權限:
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 伺服器的限制(請參閱 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 Worker 上建立登錄機碼 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