Archive Microsoft 365 and Exchange Online continuously

Two parts

  • Transport rule: archives every new message. Required.
  • Microsoft 365 connector: syncs users, groups and domains and imports existing mailboxes. Optional. It does not replace the rule.

You need an Exchange administrator for the rule and a Global Administrator for the connector.

1. Copy the relay address

  1. Open the user menu (top right) and choose Administration.
  2. In the sidebar, under Setup, click Integrations.
  3. On the SMTP BCC relay card, click Set up.
  4. Under Your relay address, click Copy. It looks like [email protected].
  5. Leave the dialog open. The Microsoft 365 tab shows the same steps.

2. Create the transport rule

  1. Open Mail flow > Rules in the Exchange admin center.
  2. Click Add a rule > Create a new rule.
  3. Name: EasyMailArchive.
  4. Apply this rule if: Apply to all messages.
  5. Do the following: Add recipients > to the Bcc box, then enter the relay address.
  6. Click Next, keep the defaults on Set rule settings, click Next, then Finish.
  7. Open the rule and switch Enable or disable rule on. New rules start disabled.

Or with Exchange Online PowerShell:

New-TransportRule -Name "EasyMailArchive" -BlindCopyTo "<your relay address>"

The rule takes effect within about 30 minutes.

3. Save the source

  1. Back in EasyMailArchive, click Done in the dialog.
  2. You see "SMTP BCC source created."

4. Test

  1. Send a mail with a unique subject from one mailbox of your organization to another.
  2. Send a second mail to an outside address.
  3. Enter the subject in the search bar of your archive.
  4. Under Administration > Dashboard, the Compliance status card shows "Active, 2 emails archived".

5. Optional: Microsoft 365 connector

  1. Open Administration > Integrations.
  2. On the Microsoft 365 card, click Set up. The Microsoft 365 setup dialog opens.
  3. Click Connect with Microsoft.
  4. Sign in with a Global Administrator account.
  5. Review the permissions and click Accept. Access to directory and mailboxes is read-only.
  6. You return to EasyMailArchive and see Connected to Microsoft 365. The first sync starts automatically.
  7. Optional: under Domain filter (optional), enter the domains to sync and click Save domains. Empty means all domains.

What the connector does

  • Creates users, groups and domains from your directory.
  • Syncs once a day. Sync now on the card starts a sync at once.
  • Creates an import job per new user. Follow them under Administration > Import Jobs: Pending, Running, Finished, Failed.
  • View logs on the card lists every sync.

Troubleshooting

ErrorFix
Exchange rejects the relay address in the ruleCreate a mail contact under Contacts with the relay address as its email address. Pick that contact as the Bcc recipient.
Bounce 550 unknown recipientRelay address incomplete or changed. Copy it again and update the rule. See Setting Up Email Journaling.
Bounce 550 tenant is not activeYour archive is not active, for example the trial ended. Choose a plan under Administration > Billing.
No bounce, nothing archivedCheck that the rule is enabled and applies to all messages. Wait 30 minutes after changes.
"Microsoft authorization failed: … AADSTS65004 …"Consent was declined. Click Connect with Microsoft again and click Accept.
"Microsoft authorization failed: … AADSTS90094 …" or "Need admin approval"The account is not a Global Administrator. Sign in with one.
"Failed to obtain Microsoft access token. Please try again."Click Connect with Microsoft again.
"Invalid or expired OAuth state."The sign-in took too long. Start again from the Microsoft 365 card.
Card shows Re-authorization required or New permissions requiredClick Re-authorize and accept with a Global Administrator.