An Office 365 Exchange Online service account provides Exchange Server directory permissions to grant the Barracuda Cloud Archiving Service read access to all mailboxes.
Requirements
Microsoft .NET Framework 4.5 or 4.5.1 and either the Windows Management Framework 3.0 or the Windows Management Framework 4.0.
A mailbox that is not hidden in the Global Address list.
- A license that supports Outlook (i.e., not a kiosk license).
Verify the service account has the following:
- Enable RPC over HTTP (RoH) for the mailbox. See also How to Enable RPC over HTTP Connectivity.
Step 1. Connect to Office 365 Exchange Online
- Open Windows PowerShell, enter the following command, and then press Enter:
$UserCredential = Get-Credential
- In the Windows PowerShell Credential Request dialog box, enter your Exchange Online user name and password, and then click OK.
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
- Enter the following command, and then press Enter:
Import-PSSession $Session
Enter the following command, and then press Enter:
Get-Mailbox -ResultSize unlimited | Add-MailboxPermission -User ServiceAccount@domain.com -AccessRights fullaccess -InheritanceType all -Automapping $false
Step 2. Import from Office 365 Exchange Online
Automatically Discover Settings
Log into the Barracuda Cloud Archiving Service as the admin, and go to Mail Sources > Exchange Integration.
- Click Start New Action. In the Select Action page, click Email Import.
- In the Select Server page, click Add New Server.
- In the Add New Server dialog box, enter a Configuration Name, the email address for the service account and the service account password.
- Click Autodiscover.
- If autodiscover is unable to identify your settings, use the steps in the section that follows, Manually Configure Settings.
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
Open Windows PowerShell, and connect to Office 365 Exchange Online.
- Enter the following command, and then press Enter:
$UserCredential = Get-Credential
- In the Windows PowerShell Credential Request dialog box, enter your Exchange Online admin username and password, and then click OK.
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
Enter the following command, and then press Enter:
Import-PSSession $Session
Enter the following command, and then press Enter:
Get-Mailbox -Identity <username for service account> | Format-List ExchangeGuid, PrimarySMTPAddress
- To determine the Exchange Hostname, combine the
ExchangeGuid
with the domain portion of thePrimarySMTPAddress
to form ExchangeGuid@domain.com. - 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
Log into the Barracuda Cloud Archiving Service as the admin, and go to Mail Sources > Exchange Integration.
- Click Start New Action. In the Select Action page, click Email Import.
- In the Select Server page, click Add New Server.
- In the Add New Server dialog, click Configure Manually; enter the Exchange details:
- Configuration Name – Enter a name to identify the configuration.
- Exchange Hostname – Enter the Exchange hostname from Step 1 Manually Obtain Exchange Hostname Using PowerShell.
- Username – Enter the service account username.
- Password – Enter the password associated with the username.
- Exchange 2013 – Select Yes.
- Advanced Options – In the Proxy Server field type
outlook.office365.com
and leave the Global Catalog Server field blank.
- Click Save to add your configuration and close the dialog box.
In the Configure Action page, click Continue.
In the View Summary page, select All Users from the Source drop-down menu.
Specify the desired Date and Schedule settings. Click Continue.
- Verify the configuration settings in the View Summary page, and then click Submit to add the Email Import to the Scheduled Actions table.