[logonSession] “XXXX” might have insufficient permissions to the mailbox ERROR=MAPI_E_LOGON_FAILED, Detail=ClassFactory cannot supply requested class

Error

[logonSession] “XXXX” might have insufficient permissions to the mailbox ERROR=MAPI_E_LOGON_FAILED, Detail=ClassFactory cannot supply requested class

Cause

The domain account used to take the backup:

  1. Does not have an exchange mailbox
    OR
  2. Does not have the required permissions on the exchange mailboxes.

Resolution

  1. Make sure the account has an active exchange mailbox
  2. Close down CyberSecure Advanced
  3. Ensure that the domain account is a member of the following groups:
    1. Domain Administrators
    2. Exchange Servers
    3. Exchange Windows Permissions
    4. Exchange All Hosted Organisations
  4. Grant full privileges to the exchange mailboxes using the following exchange management shell command (substitute $DomainAccount for the actual domain account user name):
    1. Get-Mailbox | Add-MailboxPermission -User “$DomainAccount” -AccessRights FullAccess
  5. Restart the “Microsoft Information Store” Service
  6. Log off and log back on again
  7. Run RunOBC32.bat
  8. Try to create the mail-level set