Active Directory with Microsoft 365 Modern Authentication

Microsoft 365 / Hybrid environments

Hybrid environments are complicated, and there is no one-size-fits-all solution. MailStore is more flexible than is immediately obvious but there are a few things to understand.

MailStore’s article abouy Microsoft 365 / Active Directory hybrid environments

https://help.mailstore.com/en/server/Archiving_Emails_from_Microsoft_365_Hybrid

Further details

It is possible to switch to Microsoft 365’s Modern Authentication for the purposes of archiving while still using Active Directory as a user synchronization source, and in fact this is easier as it avoids needing to rename the archive folders in your existing archive to match. We will borrow some of the steps from our published documentation, but there are others that we can skip.

As long as your Microsoft 365 environment is synchronized with your local Active Directory, MailStore can use either option as a source for user information and can archive from both Microsoft 365 mailboxes and your on-premises Exchange as well if you happen to have a hybrid environment.

To set things up, login to MailStore Client with an admin account, go to Archive E-mail, under Servers click Microsoft 365. Select Multiple Mailboxes. Now click the ... button, which will open the credentials manager.

Now we will use the Synchronizing User Accounts with Microsoft 365 (Modern Authentication) help page article, but start at the step In the Credential Manager that appears, click on Create…

Start at step 2.1, register the app, create credentials and then publish the credentials:

  1. Complete step 2.1 Registering of MailStore Server as App in Azure AD.
  2. Complete step 2.2 Creating Credentials in MailStore Server.
  3. Complete step 2.3 Publishing Credentials in Azure AD.
  4. Skip step 2.4 Configuring App Authentication in Azure AD.
  5. Skip step 2.5 Configuring the Redirect URI in MailStore Server.
  6. Complete 2.6 Configuring API Permissions in Azure AD.
  7. Stop at Step 2.7 User Database Synchronization and skip the remainder of the article.

We skip steps 2.4 and 2.5 as they only apply to synchronizing users with Microsoft 365, but we are intending to stay with Active Directory, but the API permissions are still needed so be sure that you completed step 2.6.

Now that the credentials have been created you can set up Microsoft 365 archiving profiles. For information refer to the Archiving Emails from Microsoft 365 (Modern Authentication) article to set up archiving as normal.

The principles are the same as your existing “Exchange” profiles, so you can probably skip directly to the section that covers Archiving Multiple Microsoft 365 Mailboxes Centrally.


 Date: January 1, 2023
 Tags:  MailStoreServer MailStoreSPE

Previous:
⏪ Use SetUserPrivilegesOnFolder from PowerShell

Next:
Extracting unknown e-mail addresses from journal-type profile's debug log via Excel ⏩