Setting up ComArchive with Microsoft 365

ComArchive uses a special user in Microsoft 365 to connect and archive e-mails. This user is commonly called ComArchiveConnector or the Connector User. This user needs to have Full Access to all mailboxes and cannot have MFA enabled. 

Furthermore, a journal account needs to be set up. This is a special mailbox that uses mail flow rules to receive a copy of all incoming and outgoing mail. ComAchive then continuously empties this mailbox.

Active Directory setup

ComArchive fetches the list of users to archive from Active Directory. It is there very important that the e-mail address in AD matches the e-mail address of the user in Microsoft 365.

Creating the Connector User in Microsoft 365

  1. Create a new user in Microsoft 365. It can have any username you want, but we'll call it ComArchiveConnector here. 

    This user does not need to be assigned a license, unless you wish to be able to assign access rights to it using the graphical Exchange Admin Center and not just PowerShell.

    The Connector User must be excluded from any MFA policies.

  2. Giv Connector-brugeren adgang til alle mailbokse. Det kan f.eks. ske via følgende i PowerShell (via ExchangeOnlineManagement-modulet):

    Get-Mailbox | Add-MailboxPermission -User <connectoruser> -AccessRights FullAccess

    The Connector User will not automatically get access to new mailboxes

    When creating a new mailbox in Microsoft 365 (for example for a new employee), then Connector User will not automatically gain access to this mailbox. You need to manually assign Full Access permissions using either PowerShell or the Exchange Admin Center or set up an automated solution to run the above PowerShell script regularly. If you don't ensure that the Connector User has access, ComArchive will be unable to archive this new mailbox.

Setting up ComArchive

  1. Open ComArchive Admin Tool and go to Active Directory > Exchange servers. Right click in the empty area and select Add hosted domain.

  2. Check Office 365. In the Domain textbox write the domain in your e-mail addresses. Enter the e-mail address and password for the Connector User and press Test connection. ComArchive should now display a mesasge indicating it connected successfully.

    Check Enable for mailbox management to enable archiving for this Exchange Server.

    Multiple domains

    If you organization has multiple domains configured for the same tenant in Microsoft 365 each domain needs to be added separately in ComArchive. You can use the same Connector User for all of them. ComArchive uses the domain of the e-mail address to determine how to connect to Microsoft 365 and thus all domains need to be configured in ComArchive.