https://login.veeam.com/en/oauth?client_id=nXojRrypJ8&redirect_uri=https%3A%2F%2Fwww.veeam.com%2Fservices%2Fauthentication%2Fredirect_url&response_type=code&scope=profile&state=eyJmaW5hbFJlZGlyZWN0TG9jYXRpb24iOiJodHRwczovL3d3dy52ZWVhbS5jb20va2I0MDMzIiwiaGFzaCI6IjczOTc1ZGRjLWZkZjgtNDljNy1iNmIzLWE2MmM4NjY4NTFiNiJ9
1-800-691-1991 | 9am - 8pm ET
EN

Error: “Failed to access public folders. An internal server error occurred”

Challenge

Public folder mailbox backup fails with the following error:
Error Example
Processing mailbox Mailbox1_########@.onmicrosoft.com failed with error: Failed to access public folders.. An internal server error occurred. The operation failed., Mailbox must be accessed as owner. Owner: ####; Accessing user: /o=ExchangeLabs/ou=Exchange Administrative Group (####)/cn=Recipients/cn=-Mailbox1

Cause

Due to the recent changes in the Office 365 backend, public folder mailbox backup fails with the "The operation failed. Mailbox must be accessed as owner" error. This issue affects those Veeam Backup for Microsoft Office 365 users who back up public folder mailboxes with the default settings and have not applied the workaround provided in the KB3093.

Veeam Backup for Microsoft Office 365 uses impersonation to back up public folder mailboxes. The user account who accesses a public folder mailbox during backup is the Default user account. Before the recent changes in the Office 365 backend, the Default user assigned with the Owner or Reviewer roles was able to access public folder mailboxes. However, currently, even if the Owner role is assigned, the access is blocked, and the abovementioned error occurs.

Solution

The solution is to disable impersonation for public folder mailbox backup and provide the Veeam service account with direct access to the mailbox.

Before you apply the solution, make sure that two prerequisites are met:

  1. Veeam service account has an Exchange Online license and an active mailbox within the organization.
  2. Veeam service account has the Owner role to access a Public Folders mailbox and all of its subfolders.

To disable impersonation, do the following:

  1. Open the Veeam Backup for Microsoft Office 365 console and stop active backup jobs (if any).
  2. Open the Services.msc console on a proxy server that is responsible for processing public folders.
    To find out which proxy server is used, in the Veeam Backup for Microsoft Office 365 console, right-click a backup job, select Edit and go to the Specify Backup Proxy and Repository step of the wizard.
  3.  In the Services.msc console, stop the Veeam Backup Proxy for Microsoft Office 365 Service.
  4. Create a backup copy of the C:\ProgramData\Veeam\Backup365\Proxy.xml file by copying it to another location.
  5. Run Notepad as Administrator and click File > Open.
  6. Navigate to the C:\ProgramData\Veeam\Backup365 folder and change the view from Text Documents (*.txt) to All Files (*.*) .
  7. Open the original Proxy.xml file and add the <Source EwsImpersonatePublics="False" /> line below the <Archiver> line (As shown below). If the <Source/> line is already present and has some parameters added, add only the EwsImpersonatePublics="False" parameter there. 
Example:
<Veeam>
    <Archiver>
        <Source EwsImpersonatePublics="False" />
       .....
       .....
     </Archiver>
</Veeam>
  1. Save the Proxy.xml file.
  2. Start the Veeam Backup Proxy for Microsoft Office 365 Service.
  3. Open the Veeam Backup for Microsoft Office 365 console and run backup jobs with public folders.
KB ID:
4033
Product:
Veeam Backup for Microsoft Office 365
Published:
2020-10-20
Last Modified:
2020-12-08
Please rate how helpful this article was to you:
2.8 out of 5 based on 44 ratings
Thank you for helping us improve!
An error occurred during voting. Please try again later.

Couldn't find what you were looking for?

Below you can submit an idea for a new knowledge base article.
Report a typo on this page:

Please select a spelling error or a typo on this page with your mouse and press CTRL + Enter to report this mistake to us. Thank you!

Spelling error in text

Knowledge base content request
By submitting, you agree that your personal data will be managed by Veeam in accordance with the Privacy Policy.

ty icon

Thank you!

We have received your request and our team will reach out to you shortly.

OK

error icon

Oops! Something went wrong.

Please go back try again later.