We use cookies on our website to ensure we provide you with the best experience on our website. By using our website, you agree to the use of cookies for analytics and personalized content.This website uses cookies. More Information
It seems like your browser didn't download the required fonts. Please revise your security settings and try again.

How to Configure Microsoft Exchange Online Email Import

  • Last updated on

An Office 365 Exchange Online service account provides Exchange Server directory permissions to grant the Barracuda Cloud Archiving Service read access to all mailboxes.

Use the steps in this article to import email from Exchange Online, that meets the specified criteria, to the Barracuda Cloud Archiving Service. Use autodiscover to automatically populate your Exchange settings using the steps in the section Automatically Discover Settings. If, however, autodiscover is unable to identify your Exchange settings, you can manually enter the details as described in the section Manually Configure Settings.

Requirements

Microsoft Exchange Online

Microsoft Exchange Online message throttling policies set bandwidth limits and restrict the number of processed messages. Throttling is enabled by default in Microsoft Exchange Online. Currently you cannot set policies to disable throttling in Exchange Online; for details, refer to the Microsoft Outlook dev blog. Barracuda is working on a solution to provide this option in the future.

To import archive mailbox/personal archives, click Advanced Options during configuration, and select Process Personal Archives:
PersonalArchive.png

Step 1. Connect to Office 365 Exchange Online

  1. Open Windows PowerShell, enter the following command, and then press Enter:
    $UserCredential = Get-Credential
  2. In the Windows PowerShell Credential Request dialog box, enter your Exchange Online user name and password, and then click OK.
  3. Enter the following command, and then press Enter:
    $Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://outlook.office365.com/powershell-liveid/ -Credential $UserCredential -Authentication Basic -AllowRedirection

    For more information, refer to the Microsoft TechNet article Connect to Exchange Online using remote PowerShell.

  4. Enter the following command, and then press Enter:
    Import-PSSession $Session
  5. Enter the following command, and then press Enter:
    Get-Mailbox -ResultSize unlimited | Add-MailboxPermission -User ServiceAccount@domain.com -AccessRights fullaccess -InheritanceType all -Automapping $false

    Permissions are assigned on existing mailboxes only; if additional mailboxes are added to your organization, you must rerun this command.

    For more information on adding mailbox permissions, see Add-MailboxPermission in Microsoft TechNet. For information on testing mailbox rights, see Get-MailboxPermission in Microsoft TechNet.

Step 2. Import from Office 365 Exchange Online

Automatically Discover Settings
  1. Log into the Barracuda Cloud Archiving Service as the admin, and go to Mail Sources > Exchange Integration.

  2. Click Start New Action. In the Select Action page, click Email Import.
  3. In the Select Server page, click Add New Server.
  4. In the Add New Server dialog, enter a name to identify the configuration as well as the service account Username/Password

  5. Click Autodiscover; when the details display, click Save to add it to the Server table. Click Continue.

  6. In the Configure Action page, select All Users from the drop-down menu, and specify the desired Date and Schedule settings. Click Continue.

  7. Verify the configuration settings in the View Summary page, and then click Submit to add the Email Import to the Scheduled Actions table.
Manually Configure Settings

Use the steps in this section only if autodiscover is unable to identify your settings as described above in the section Automatically Discover Settings.

Step 1. Manually Obtain Exchange Hostname Using PowerShell
  1. Open Windows PowerShell, and connect to Office 365 Exchange Online.
  2. Enter the following command, and then press Enter:
    $UserCredential = Get-Credential
  3. In the Windows PowerShell Credential Request dialog box, enter your Exchange Online admin username and password, and then click OK.
  4. Enter the following command, and then press Enter:
    $Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://outlook.office365.com/powershell-liveid/ -Credential $UserCredential -Authentication Basic -AllowRedirection

    For more information, refer to the Microsoft TechNet article Connect to Exchange Online using remote PowerShell.

  5. Enter the following command, and then press Enter:
    Import-PSSession $Session  

  6. Enter the following command, and then press Enter:
    Get-Mailbox -Identity <username for service account> | Format-List ExchangeGuid, PrimarySMTPAddress

  7. To determine the Exchange Hostname, combine the ExchangeGuid with the domain portion of the PrimarySMTPAddress to form ExchangeGuid@domain.com.powershell_cmd01.png
  8. To close out the remote PowerShell session, enter the following command, and then press Enter:
    Remove-PSSession $Session
Step 2. Manually Configure Server Settings for Email Import
  1. Log into the Barracuda Cloud Archiving Service as the admin, and go to Mail Sources > Exchange Integration.
  2. Click Start New Action. In the Select Action page, click Email Import.
  3. In the Select Server page, click Add New Server.
  4. In the Add New Server dialog, click Configure Manually; enter the Exchange details:
    1. Configuration Name – Enter a name to identify the configuration.
    2. Exchange Hostname – Enter the Exchange hostname from Step 1 Manually Obtain Exchange Hostname Using PowerShell.
    3. Username/Password – Enter the credentials associated with the service account.
    4. Exchange 2013 – Select Yes.
    5. Advanced Options – In the Proxy Server field type outlook.office365.com and leave the Global Catalog Server field blank.
  5. Click Save. Once the Exchange settings are verified, the Server table is updated. Click Continue.
  6. In the Configure Action page, select All Users from the drop-down menu, and specify the desired Date and Schedule settings. Click Continue.
  7. Verify the configuration settings in the View Summary page, and then click Submit to add the Email Import to the Scheduled Actions table.
Last updated on