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
- Open the user menu (top right) and choose Administration.
- In the sidebar, under Setup, click Integrations.
- On the SMTP BCC relay card, click Set up.
- Under Your relay address, click Copy. It looks like
[email protected]. - Leave the dialog open. The Microsoft 365 tab shows the same steps.
2. Create the transport rule
- Open Mail flow > Rules in the Exchange admin center.
- Click Add a rule > Create a new rule.
- Name:
EasyMailArchive. - Apply this rule if: Apply to all messages.
- Do the following: Add recipients > to the Bcc box, then enter the relay address.
- Click Next, keep the defaults on Set rule settings, click Next, then Finish.
- 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
- Back in EasyMailArchive, click Done in the dialog.
- You see "SMTP BCC source created."
4. Test
- Send a mail with a unique subject from one mailbox of your organization to another.
- Send a second mail to an outside address.
- Enter the subject in the search bar of your archive.
- Under Administration > Dashboard, the Compliance status card shows "Active, 2 emails archived".
5. Optional: Microsoft 365 connector
- Open Administration > Integrations.
- On the Microsoft 365 card, click Set up. The Microsoft 365 setup dialog opens.
- Click Connect with Microsoft.
- Sign in with a Global Administrator account.
- Review the permissions and click Accept. Access to directory and mailboxes is read-only.
- You return to EasyMailArchive and see Connected to Microsoft 365. The first sync starts automatically.
- 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
| Error | Fix |
|---|---|
| Exchange rejects the relay address in the rule | Create a mail contact under Contacts with the relay address as its email address. Pick that contact as the Bcc recipient. |
Bounce 550 unknown recipient | Relay address incomplete or changed. Copy it again and update the rule. See Setting Up Email Journaling. |
Bounce 550 tenant is not active | Your archive is not active, for example the trial ended. Choose a plan under Administration > Billing. |
| No bounce, nothing archived | Check 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 required | Click Re-authorize and accept with a Global Administrator. |