Atlassian uses cookies to improve your browsing experience, perform analytics and research, and conduct advertising. Accept all cookies to indicate that you agree to our use of cookies on your device.
Atlassian cookies and tracking notice, (opens new window)
Atlassian uses cookies to improve your browsing experience, perform analytics and research, and conduct advertising. Accept all cookies to indicate that you agree to our use of cookies on your device. Atlassian cookies and tracking notice, (opens new window)
🔍 Discover Our Product Documentation

Barracuda Message Archiver
Results will update as you type.
  • How to Update Your Notification Email Addresses
  • Release Notes
  • Exchange Web Services (EWS) Deprecation and Barracuda Message Archiver
  • Cloud Storage Discontinuation
  • Understanding Message Archiving Concepts
  • Getting Started
  • 30 Day Evaluation Guide
  • Deployment Options
    • Virtual Deployment
    • Public Cloud Hosting
    • Barracuda Appliance Control Deployment
    • Understanding the Migration Process from On-Premise to Pure Cloud Archiving
    • Microsoft Exchange Server Deployment
    • Mirroring Configuration
    • CommuniGate Pro E-Mail Server Deployment
    • Microsoft 365 Deployment
      • Microsoft 365 Journaling
      • How to Configure Microsoft Exchange Online Email Import with EWS
      • How to Update Microsoft Exchange Online Existing Nightly Actions with EWS
      • How to Create an Application ID and Application Secret for Barracuda Message Archiver in Microsoft 365
      • How to Configure Microsoft Graph API Permissions for Barracuda Message Archiver 5.5.4
    • Entra ID
    • Google Workspace Deployment
    • Barracuda Message Archiver Cloud Relay Shutdown
    • GroupWise Deployment
    • Kerio Connect Mail Server Deployment
    • IBM Notes/IBM Domino IMAP Deployment
    • MailEnable Deployment
    • MailSite Server Deployment
    • MDaemon Messaging Server Deployment
    • Unix Mail Server Deployment
    • Barracuda Message Archiver and the Barracuda Email Security Gateway
    • Zimbra Mail Server Deployment
    • MDaemon Messaging Server SMTP Gateway Journaling
    • Barracuda PST Enterprise Deployment
    • Microsoft Lync Server
    • IBM Notes/IBM Domino SMTP Routing Deployment
    • Deployment Archives
  • Security
  • Backup and Storage
  • Accounts, Roles, and Email Aliases
  • Exchange Integration
  • Configuration Options
  • Search Options and Configuration
  • Federated Search
  • Monitoring and System Management
  • Maintenance
  • Tools and Add-Ins
  • Troubleshooting
  • Online Service Terms

    You‘re viewing this with anonymous access, so some content might be blocked.
    /
    How to Configure Microsoft Exchange Online Email Import with EWS
    Published Sep 03

    How to Configure Microsoft Exchange Online Email Import with EWS

    Sep 03, 2026
    Subscribe

    This article refers to Barracuda Message Archiver firmware release version 5.3.0.009 through 5.5.3, and Microsoft Exchange Online. For more information on how to update to the latest firmware, see Updating Your Firmware and Definitions.

    Note: If you are running firmware version 5.5.4 or higher, see How to Configure Microsoft Graph API Permissions for Barracuda Message Archiver 5.5.4.

    Exchange Integration connects to Exchange Online by using EWS (Exchange Web Services) with Microsoft-authorized application permissions. This streamlines the configuration process, eliminates the need for a dedicated service account, and removes the extra step of updating permissions when adding new mailboxes.

    Note that EWS sources do not support Email Stubbing actions.

    Requirements

    • You must have a Microsoft 365 account with administrator privileges. 

    • An Application Id and secret from Microsoft 365. See How to Create an Application ID and Application Secret for Barracuda Message Archiver in Microsoft 365.

    For firmware version 5.5.4 or higher, use Microsoft Graph API instead of EWS. See How to Configure Microsoft Graph API Permissions for Barracuda Message Archiver 5.5.4.

    • Your Tenant Name and Primary domain name from Microsoft 365. See How to Find Your Tenant and Primary Domain.

    • Ensure outbound connections to port 443 are open and use the MAS hostname mas.barracudanetworks.com  to allow the Barracuda Message Archiver outbound connection to the Barracuda Cloud Archiving Service (BCAS). This is required to authorize a new source and to run each action.

    Note that you will no longer need a service account to set up an Exchange Online source.

    Add a New Exchange Online Source

    These instructions will set up a new Exchange Online source. To add a new Exchange Server source, see Microsoft Exchange Server Deployment.

    1. Log into the Barracuda Message Archiver as the admin, and go to MAIL SOURCE > Exchange Integration.

    2. Click Start New Action. In the Select Action page, click Email Import.

    3. In the Select Source page, click Add New Source.

    4. Select Exchange Online.

    5. Enter a Configuration Name, App Id, Secret Key, Tenant Name, and O365 Domain Name.

      • For more information on how to create an App Id and Secret, see How to Create an Application ID and Application Secret for Barracuda Message Archiver in Microsoft 365. 
        Note: For firmware version 5.5.4 or higher, use Microsoft Graph API instead of EWS. See How to Configure Microsoft Graph API Permissions for Barracuda Message Archiver 5.5.4.

      • For more information on where to find your Tenant Name and O365 Domain Name, see How to Find Your Tenant and Primary Domain.

    6. Click Authorize.

    7. After the authorization tab or window closes, switch back to the Select Source page. You should now see the new source in the list. Select the new source and click Continue.

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

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

    How to Find your Tenant and Primary Domain
    1. Log into the Microsoft 365 Admin center as a global admin https://admin.microsoft.com/.

    2. On the left-hand menu, select Overview and copy down the Name and Primary domain.

    The Name and Primary domain you copied down can now be used to authorize the Barracuda Message Archiver permissions to import data from Exchange Online.

    Edit an Exchange Online Source

    You can revoke access to the Barracuda Cloud Archiving Service application by removing it from your organization's Enterprise Applications in Microsoft's Admin interface. To restore access, you can add a new source and authorize the application again. If you have not removed the Exchange Online source on the Exchange Integration page, you can edit the source and click Re-authorize. This takes you back to Microsoft's site to log in and consent to the required application permissions again.

    1. Log into the Barracuda Message Archiver as the admin, and go to MAIL SOURCE > Exchange Integration.

    2. Click Start New Action. In the Select Action page, click Email Import.

    3. In the Select Source page, click Edit next to the source you want to change.

    4. If needed, change the configuration name and click Save. Click Re-authorize to re-authorize consent to the Barracuda Cloud Archiving Service application.


    We value your feedback.
    If you have questions, suggestions, or feedback on our documentation, contact the Campus Product Documentation team.
    For general product inquiries or technical support, please contact the global Barracuda Support team.

    {"serverDuration": 11, "requestCorrelationId": "ecf280faf8e14c1d88a6616bdc1ec6f8"}