<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://help.mailstore.com/en/server/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Ltalaschus</id>
	<title>MailStore Server Help - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://help.mailstore.com/en/server/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Ltalaschus"/>
	<link rel="alternate" type="text/html" href="https://help.mailstore.com/en/server/Special:Contributions/Ltalaschus"/>
	<updated>2026-04-09T12:30:10Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.35.14</generator>
	<entry>
		<id>https://help.mailstore.com/en/server/index.php?title=EWS_Migration&amp;diff=8023</id>
		<title>EWS Migration</title>
		<link rel="alternate" type="text/html" href="https://help.mailstore.com/en/server/index.php?title=EWS_Migration&amp;diff=8023"/>
		<updated>2026-04-09T10:19:19Z</updated>

		<summary type="html">&lt;p&gt;Ltalaschus: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
Exchange Web Services (EWS) is a technology that was developed specifically for accessing Exchange data. The API enables access to data from Microsoft Exchange Server and Exchange Online, including emails and mailboxes. EWS has been a central interface for third-party solutions such as archiving systems.&lt;br /&gt;
&lt;br /&gt;
== Microsoft is discontinuing Exchange Web Services (EWS) for Microsoft 365 ==&lt;br /&gt;
Microsoft [https://techcommunity.microsoft.com/blog/exchange/retirement-of-exchange-web-services-in-exchange-online/3924440 has announced] that it will block access to Exchange Web Services (EWS) for Exchange Online starting October 1, 2026. EWS will be completely shut down by April 2027. This decision affects all organizations that use EWS in conjunction with Exchange Online (Microsoft 365). After the shutdown, some resources will only be accessible via the Graph API, while for other resources there is [https://learn.microsoft.com/en-us/exchange/clients-and-mobile-in-exchange-online/deprecation-of-ews-exchange-online currently no Graph API equivalent]. These resources will then no longer be accessible by third-party solutions.&lt;br /&gt;
&lt;br /&gt;
Microsoft will [https://techcommunity.microsoft.com/blog/exchange/exchange-online-ews-your-time-is-almost-up/4492361 preconfigure and potentially restrict access] to EWS based on usage starting in August 2026. Administrators can also [https://learn.microsoft.com/en-us/exchange/client-developer/exchange-web-services/how-to-control-access-to-ews-in-exchange manage the settings themselves].&lt;br /&gt;
&lt;br /&gt;
For customers using Exchange Online Kiosk, Microsoft Office 365, and Office 365 F1/F3,  [https://techcommunity.microsoft.com/blog/exchange/update-to-ews-access-for-kiosk--frontline-worker-licensed-users/4474299 Microsoft will disable EWS access as early as June 2026].&lt;br /&gt;
&lt;br /&gt;
== What will change for MailStore Server and MailStore SPE? ==&lt;br /&gt;
The shutdown of EWS initiated by Microsoft will require adjustments in MailStore Server and MailStore SPE, depending on the archiving strategy. Archiving methods within MailStore Server and MailStore SPE that previously have used EWS may no longer be able to connect after October 1st and will then encounter errors.&lt;br /&gt;
&lt;br /&gt;
== Which protocols does MailStore use? ==&lt;br /&gt;
&lt;br /&gt;
Up to and including version 25.4, MailStore exclusively created Microsoft 365 archiving and export profiles that used EWS. Starting with version 26.1, new archiving profiles for regular mailboxes use the Graph API. New archiving profiles for archive mailboxes and public folders continue to use EWS, as these are not accessible via the Graph API. New export profiles, starting with version 26.2, use the IMAP protocol, since importing complete emails into a Microsoft 365 mailbox using the Graph API is also not possible.&lt;br /&gt;
&lt;br /&gt;
=== How can MailStore support me during the migration? ===&lt;br /&gt;
&lt;br /&gt;
Make sure you have completed the app registration in Entra ID [[Synchronizing_User_Accounts_with_Microsoft_365_-_Modern_Authentication#Configuring_API_Permissions_in_Microsoft_Entra_ID|according to our instructions]]. In particular, the Mail.ReadWrite and IMAP.AccessAsApp permissions are now required.&lt;br /&gt;
&lt;br /&gt;
The [[Email_Archiving_with_MailStore_Basics|summary of archiving profiles]] contains the protocol used. Microsoft 365 Journal archiving profiles do not typically use EWS and are therefore not affected.&lt;br /&gt;
&lt;br /&gt;
If you have configured Microsoft 365 profiles that can be converted, this message will appear on the dashboard:&lt;br /&gt;
&lt;br /&gt;
[[File:ews_conversion_message.png]]&lt;br /&gt;
&lt;br /&gt;
Click this message to open the [[Microsoft_365_Profile_Conversion_Tool|Microsoft 365 Profile Conversion Tool]]. Use this tool to test and perform a conversion.&lt;br /&gt;
&lt;br /&gt;
[[File:ConversionTool_en.png|450px|center]]&lt;br /&gt;
&lt;br /&gt;
=== When do adjustments need to be made? ===&lt;br /&gt;
&lt;br /&gt;
==== June 2026 ====&lt;br /&gt;
&lt;br /&gt;
If you are an Exchange Online Kiosk, Microsoft Office 365, or Office 365 F1/F3 customer, all profiles [https://techcommunity.microsoft.com/blog/exchange/update-to-ews-access-for-kiosk--frontline-worker-licensed-users/4474299 must be migrated] to Graph API and IMAP.&lt;br /&gt;
&lt;br /&gt;
Archiving Exchange Online archive mailboxes and Exchange Online Public Folders will no longer be possible.&lt;br /&gt;
&lt;br /&gt;
==== October 2026 ====&lt;br /&gt;
&lt;br /&gt;
EWS profiles will continue to function after October 2026 if EWS access in Microsoft 365 is [https://learn.microsoft.com/en-us/exchange/client-developer/exchange-web-services/how-to-control-access-to-ews-in-exchange configured accordingly].&lt;br /&gt;
&lt;br /&gt;
==== April 2027 ====&lt;br /&gt;
&lt;br /&gt;
EWS profiles will no longer function after April 2027. Archiving regular mailboxes using Graph API and exporting to Microsoft 365 using IMAP will continue to function. Archiving Exchange Online archive mailboxes and Exchange Online Public Folders will no longer be possible. Microsoft [https://techcommunity.microsoft.com/blog/exchange/retirement-of-exchange-web-services-in-exchange-online/3924440 has hinted] at a future solution, but has not yet published a concrete plan. Microsoft recommends [https://learn.microsoft.com/en-us/exchange/collaboration/public-folders/migrate-to-microsoft-365-groups migrating public folders to Microsoft 365 Groups].&lt;br /&gt;
&lt;br /&gt;
[[de:EWS Migration]]&lt;br /&gt;
[[en:EWS Migration]]&lt;/div&gt;</summary>
		<author><name>Ltalaschus</name></author>
	</entry>
	<entry>
		<id>https://help.mailstore.com/en/server/index.php?title=MailStore_Server_Management_Shell&amp;diff=8021</id>
		<title>MailStore Server Management Shell</title>
		<link rel="alternate" type="text/html" href="https://help.mailstore.com/en/server/index.php?title=MailStore_Server_Management_Shell&amp;diff=8021"/>
		<updated>2026-04-09T09:59:27Z</updated>

		<summary type="html">&lt;p&gt;Ltalaschus: /* Client side commands */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Many instructions available in the graphical user interface of MailStore Client can also be executed using MailStore's management shell, a command line client which is automatically included when installing MailStore Server and MailStore Client.&lt;br /&gt;
&lt;br /&gt;
The management shell is useful when no graphical user interface is available (e.g. if using telnet or ssh) or for the integration of scripts (e.g. batch files) that are executed either manually or automatically.&lt;br /&gt;
&lt;br /&gt;
Beside the client-side commands, the Management Shell also offers access to server-side commands of the [[Administration API - Using the API|MailStore Server Administration API]]. Output of server-side commands is in JSON format.&lt;br /&gt;
&lt;br /&gt;
== Starting the Management Shell in MailStore Client ==&lt;br /&gt;
The management shell can be started directly from MailStore: Log on to MailStore Client as administrator and click on ''Administrative Tools &amp;gt; Management API &amp;gt; Command Prompt''.&lt;br /&gt;
[[File:tech_mscmd_01.png|center|450px]]&lt;br /&gt;
The font size can be adjusted by holding the Ctrl key and using the mouse wheel or pressing + and -. Holding down the Ctrl key and pressing 0 resets the font size.&lt;br /&gt;
&lt;br /&gt;
== Using MailStoreCmd.exe in Non-Interactive Mode ==&lt;br /&gt;
In non-interactive mode, the management shell logs on with the access data passed, executes the command passed, and automatically terminates upon execution. If the login and the execution of the command were successful, the exit code (ERRORLEVEL) of the process is set to 0 (zero), otherwise it is set to any value other than 0. ''MailStoreCmd.exe'' can be found in the installation directory of MailStore Server. ''MailStoreCmdSilent.exe'' does the same, but does not open a console window.&lt;br /&gt;
&lt;br /&gt;
Login credentials for your installation can be found in the scheduled task of an archiving profile of the type ''E-Mail Programs'' or ''E-Mail Files''.&lt;br /&gt;
&lt;br /&gt;
There are multiple ways to pass credentials to ''MailStoreCmd.exe''.&lt;br /&gt;
&lt;br /&gt;
To read credentials from the Windows Credentials Manager, they have to be stored there first. The MailStore Client does this automatically when creating a scheduled task in the Windows Task Planer. This methods prevents reading passwords easily by unauthorized persons.&lt;br /&gt;
&lt;br /&gt;
 MailStoreCmd.exe --h=&amp;lt;server&amp;gt; --cred=&amp;lt;user&amp;gt;@&amp;lt;server/ip address&amp;gt; --pkv3=&amp;lt;thumbprint&amp;gt; -c &amp;lt;command&amp;gt; [--param1=&amp;lt;value&amp;gt; --param2=&amp;lt;value&amp;gt; ...]&lt;br /&gt;
&lt;br /&gt;
The credentials can also be passed as plain text.&lt;br /&gt;
&lt;br /&gt;
 MailStoreCmd.exe --h=&amp;lt;server&amp;gt; --u=&amp;lt;user&amp;gt; --p=&amp;lt;password&amp;gt; --pkv3=&amp;lt;thumbprint&amp;gt; -c  &amp;lt;command&amp;gt; [--param1=&amp;lt;value&amp;gt; --param2=&amp;lt;value&amp;gt; ...]&lt;br /&gt;
&lt;br /&gt;
The below command line parameters are required followed by additional API command parameters if necessary.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; &lt;br /&gt;
! width=100px | Parameter &lt;br /&gt;
! width=100% | Description&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;--h&amp;lt;/code&amp;gt;&lt;br /&gt;
|The machine name of the MailStore server to which &amp;lt;code&amp;gt;MailStoreCmd.exe&amp;lt;/code&amp;gt; is to connect.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;--pkv3&amp;lt;/code&amp;gt;&lt;br /&gt;
| The (optional) Public Key Fingerprint, which guarantees the identity of MailStore Server.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;--u&amp;lt;/code&amp;gt;&lt;br /&gt;
| User name&lt;br /&gt;
|- &lt;br /&gt;
| &amp;lt;code&amp;gt;--p&amp;lt;/code&amp;gt;&lt;br /&gt;
| Password&lt;br /&gt;
|- &lt;br /&gt;
| &amp;lt;code&amp;gt;--cred&amp;lt;/code&amp;gt;&lt;br /&gt;
| Alternative to &amp;lt;code&amp;gt;--u&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;--p&amp;lt;/code&amp;gt;, the password is read from the Windows Credential Manager. The parameter must be entered in the from &amp;lt;user&amp;gt;@&amp;lt;server/ip address&amp;gt;.&lt;br /&gt;
|- &lt;br /&gt;
| &amp;lt;code&amp;gt;--nologo&amp;lt;/code&amp;gt;&lt;br /&gt;
| Optional. Prevents the logo from being displayed.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;--o&amp;lt;/code&amp;gt;&lt;br /&gt;
| Optional. Redirects the output to a given file. When this parameter is given, no output is sent to the console. The placeholders ''{DATE}'' and ''{TIME}'' are replaced with the current date and time at execution time.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;-c&amp;lt;/code&amp;gt;&lt;br /&gt;
| The actual command follows (non-interactive mode). This must be the last parameter.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Command Overview ==&lt;br /&gt;
&lt;br /&gt;
=== Client side commands ===&lt;br /&gt;
Find a list of all client side commands below.&lt;br /&gt;
&lt;br /&gt;
  clear&lt;br /&gt;
&lt;br /&gt;
Clears the texts currently displayed improving visibility.&lt;br /&gt;
&lt;br /&gt;
  debug-conn&lt;br /&gt;
&lt;br /&gt;
Activates debug protocol for IMAP and HTTP connections during archiving for the running MailStore Client process.&lt;br /&gt;
&lt;br /&gt;
  debuglog-browse&lt;br /&gt;
&lt;br /&gt;
Opens the file explorer and shows MailStore's ''Debug Log'' directory.&lt;br /&gt;
&lt;br /&gt;
  debuglog-enable,  debuglog-disable&lt;br /&gt;
&lt;br /&gt;
Activates or deactivates the global debug protocol (within computer scope).&lt;br /&gt;
&lt;br /&gt;
  export-execute [--name=&amp;lt;profilename&amp;gt;] [--id=&amp;lt;profileid&amp;gt;] [--verbose] [--[property]=&amp;quot;value&amp;quot;]&lt;br /&gt;
&lt;br /&gt;
Executes an export profile. Following parameters are supported:&lt;br /&gt;
&lt;br /&gt;
{| width=80% |&lt;br /&gt;
|-&lt;br /&gt;
| width=&amp;quot;20%&amp;quot; | &amp;lt;code&amp;gt;--name&amp;lt;/code&amp;gt; &amp;lt;nowiki&amp;gt;|&amp;lt;/nowiki&amp;gt; &amp;lt;code&amp;gt;--id&amp;lt;/code&amp;gt;&lt;br /&gt;
| name or ID of the export profile to execute&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;--verbose&amp;lt;/code&amp;gt;&lt;br /&gt;
| activates a detailed status display on the console&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;--[property]&amp;lt;/code&amp;gt;&lt;br /&gt;
| Overwrites the given property of a profile. The internal properties can be displayed, by selecting an export profile and press &amp;lt;code&amp;gt;CTRL + SHIFT + P&amp;lt;/code&amp;gt;. The name of the property has to be in brackets. Multiple properties can be modified by repeating the parameter.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
  export-list&lt;br /&gt;
&lt;br /&gt;
Displays a list of all existing export profiles (ID and profile name).&lt;br /&gt;
&lt;br /&gt;
  help&lt;br /&gt;
&lt;br /&gt;
Displays a list of all available commands and their parameters.&lt;br /&gt;
&lt;br /&gt;
  import-execute [--name=&amp;lt;profilename&amp;gt;] [--id=&amp;lt;profileid&amp;gt;] [--verbose] [--user=&amp;lt;username&amp;gt;] [--[property]=&amp;quot;value&amp;quot;]&lt;br /&gt;
&lt;br /&gt;
Executes the archiving profile. Following parameters are supported:&lt;br /&gt;
&lt;br /&gt;
{| width=80% |&lt;br /&gt;
|-&lt;br /&gt;
| width=&amp;quot;20%&amp;quot; |&amp;lt;code&amp;gt;--name&amp;lt;/code&amp;gt; &amp;lt;nowiki&amp;gt;|&amp;lt;/nowiki&amp;gt; &amp;lt;code&amp;gt;--id&amp;lt;/code&amp;gt;&lt;br /&gt;
| name or ID of the import profile to execute&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;--verbose&amp;lt;/code&amp;gt;&lt;br /&gt;
| activates a detailed status display on the console&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;--user&amp;lt;/code&amp;gt;&lt;br /&gt;
| user archive to store archived emails&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;--[property]&amp;lt;/code&amp;gt;&lt;br /&gt;
| Overwrites the given property of a profile. The internal properties can be displayed, by selecting an archiving profile and press &amp;lt;code&amp;gt;CTRL + SHIFT + P&amp;lt;/code&amp;gt;. The name of the property has to be in brackets. Multiple properties can be modified by repeating the parameter.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
  import-list [--user=&amp;lt;username&amp;gt;]&lt;br /&gt;
&lt;br /&gt;
Displays a list of all existing archiving profiles (ID and profile name).&lt;br /&gt;
&lt;br /&gt;
  livelog-client-disable,  livelog-client-enable,  livelog-server-disable,  livelog-server-enable&lt;br /&gt;
&lt;br /&gt;
Activates or deactivates the live debug protocol of MailStore Server or MailStore Client. The live protocol can be viewed with Sysinternal's DebugView. DebugView must be started with elevated privileges and it must be configured to capture ''Global Win 32'' events.&lt;br /&gt;
&lt;br /&gt;
  store-setprop --name=&amp;lt;name&amp;gt; [--value=true/false]&lt;br /&gt;
&lt;br /&gt;
Changes the value of a global property&lt;br /&gt;
&lt;br /&gt;
{| width=100% |&lt;br /&gt;
|-&lt;br /&gt;
| scope=&amp;quot;col&amp;quot; width=&amp;quot;20%&amp;quot; | &amp;lt;code&amp;gt;--name&amp;lt;/code&amp;gt; &lt;br /&gt;
| Name of the global property&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;--value&amp;lt;/code&amp;gt;&lt;br /&gt;
| Value of the global property&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Following global properties are supported:&lt;br /&gt;
&lt;br /&gt;
{| width=&amp;quot;100%&amp;quot; border=&amp;quot;0&amp;quot; cellpadding=&amp;quot;0&amp;quot; cellspacing=&amp;quot;0&amp;quot; style=&amp;quot;font-size: 90%;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;col&amp;quot; width=&amp;quot;20%&amp;quot; bgcolor=&amp;quot;#cccccc&amp;quot; | Name &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; bgcolor=&amp;quot;#cccccc&amp;quot; | Values &lt;br /&gt;
! scope=&amp;quot;col&amp;quot; bgcolor=&amp;quot;#cccccc&amp;quot; | Default&lt;br /&gt;
|-&lt;br /&gt;
| scope=&amp;quot;col&amp;quot; width=&amp;quot;20%&amp;quot; align=&amp;quot;left&amp;quot; valign=&amp;quot;top&amp;quot; | public.arcclient.skipGraphContentConversionFailed&lt;br /&gt;
| ''true'' = Microsoft 365 ''text does not support structured data'' errors are ignored and not handled as an archiving error.&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt; &lt;br /&gt;
''false'' = Microsoft 365 ''text does not support structured data'' errors are handled as archiving errors. &lt;br /&gt;
| align=&amp;quot;center&amp;quot; valign=&amp;quot;top&amp;quot; | false&lt;br /&gt;
|-&lt;br /&gt;
| scope=&amp;quot;col&amp;quot; width=&amp;quot;20%&amp;quot; align=&amp;quot;left&amp;quot; valign=&amp;quot;top&amp;quot; | public.arcclient.skipMimeContentConversionFailed&lt;br /&gt;
| ''true'' = Exchange ''MimeContentConversionFailed'' errors are ignored and not handled as an archiving error.&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt; &lt;br /&gt;
''false'' = Exchange ''MimeContentConversionFailed'' errors are handled as archiving errors. &lt;br /&gt;
| align=&amp;quot;center&amp;quot; valign=&amp;quot;top&amp;quot; | false&lt;br /&gt;
|-&lt;br /&gt;
| scope=&amp;quot;col&amp;quot; width=&amp;quot;20%&amp;quot; align=&amp;quot;left&amp;quot; valign=&amp;quot;top&amp;quot; | public.arcclient.skipVirusDetected&lt;br /&gt;
| ''true'' = Exchange ''ErrorVirusDetected'' errors are ignored and not handled as an archiving error.&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt; &lt;br /&gt;
''false'' = Exchange ''ErrorVirusDetected'' errors are handled as archiving errors. &lt;br /&gt;
| align=&amp;quot;center&amp;quot; valign=&amp;quot;top&amp;quot; | false &lt;br /&gt;
|-&lt;br /&gt;
| scope=&amp;quot;col&amp;quot; width=&amp;quot;20%&amp;quot; align=&amp;quot;left&amp;quot; valign=&amp;quot;top&amp;quot; | public.arcclient.skipEwsErrorItemNotFound&lt;br /&gt;
| ''true'' = Exchange ''ErrorItemNotFound'' errors are ignored and not handled as an archiving error.&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt; &lt;br /&gt;
''false'' = Exchange ''ErrorItemNotFound'' errors are handled as archiving errors. &lt;br /&gt;
| align=&amp;quot;center&amp;quot; valign=&amp;quot;top&amp;quot; | false &lt;br /&gt;
|-&lt;br /&gt;
| scope=&amp;quot;col&amp;quot; width=&amp;quot;20%&amp;quot; align=&amp;quot;left&amp;quot; valign=&amp;quot;top&amp;quot; | public.backup.hideNotDetectedWarningMessage&lt;br /&gt;
| ''true'' = Backup warning messages are not shown on dashboard.&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt; &lt;br /&gt;
''false'' = Backup warning messages are shown on dashboard.&lt;br /&gt;
| align=&amp;quot;center&amp;quot; valign=&amp;quot;top&amp;quot; | false &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
  user-list&lt;br /&gt;
&lt;br /&gt;
Display list of users.&lt;br /&gt;
&lt;br /&gt;
=== Server side commands ===&lt;br /&gt;
&lt;br /&gt;
An overview of all available server side commands can be found under [[Administration API - Function Reference|Function Reference]].&lt;br /&gt;
&lt;br /&gt;
The parameters of server side commands are case sensitive and must be entered with two dashes (--). Boolean values must be entered as ''true'' or ''false''. Strings that contain white space characters must be set in quotes.&lt;br /&gt;
&lt;br /&gt;
'''Examples:'''&lt;br /&gt;
&lt;br /&gt;
 GetProfiles --raw=true&lt;br /&gt;
Lists all archiving and export profiles.&lt;br /&gt;
&lt;br /&gt;
 GetUserInfo --userName=&amp;quot;alexis.page&amp;quot;&lt;br /&gt;
Lists the properties of the user ''alexis.page''.&lt;br /&gt;
&lt;br /&gt;
 GetJobResults --fromIncluding=&amp;quot;2018-01-01T00:00:00&amp;quot; --toExcluding=&amp;quot;2019-01-01T00:00:00&amp;quot; --timeZoneId=&amp;quot;$Local&amp;quot; --jobId=1&lt;br /&gt;
Lists the results of the job with id 1 of the year 2018.&lt;br /&gt;
&lt;br /&gt;
 GetWorkerResults --fromIncluding=&amp;quot;2018-01-01T00:00:00&amp;quot; --toExcluding=&amp;quot;2019-01-01T00:00:00&amp;quot; --timeZoneID=&amp;quot;$Local&amp;quot; --profileID=1&lt;br /&gt;
Lists the results of the archiving profile with  id 1 of the year 2018.&lt;br /&gt;
The command ''GetWorkerResults'' is the only command where the parameter ''timeZoneID'' is written with a capital ''D''.&lt;br /&gt;
&lt;br /&gt;
 RunProfile --id=1&lt;br /&gt;
Starts the archiving or export profile with id 1.&lt;br /&gt;
&lt;br /&gt;
[[de:MailStore_Server_Management_Shell]]&lt;br /&gt;
[[en:MailStore_Server_Management_Shell]]&lt;/div&gt;</summary>
		<author><name>Ltalaschus</name></author>
	</entry>
	<entry>
		<id>https://help.mailstore.com/en/server/index.php?title=MailStore_Help&amp;diff=8020</id>
		<title>MailStore Help</title>
		<link rel="alternate" type="text/html" href="https://help.mailstore.com/en/server/index.php?title=MailStore_Help&amp;diff=8020"/>
		<updated>2026-04-09T09:55:03Z</updated>

		<summary type="html">&lt;p&gt;Ltalaschus: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{DISPLAYTITLE:{{Product Name}} Help}}&lt;br /&gt;
&lt;br /&gt;
{| width=&amp;quot;100%&amp;quot; cellspacing=&amp;quot;3&amp;quot; cellpadding=&amp;quot;4&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| valign=&amp;quot;top&amp;quot; width=&amp;quot;100%&amp;quot; colspan=&amp;quot;2&amp;quot; |&lt;br /&gt;
== Email Archiving with {{Product Name}} ==&lt;br /&gt;
In addition to the latest version of the {{Product Name}} manual, you can find important articles and instructions here, which will help you to set up email archiving. Please do not hesitate to contact our support team if you have any further questions.&lt;br /&gt;
|-&lt;br /&gt;
| valign=&amp;quot;top&amp;quot; width=&amp;quot;50%&amp;quot; |&lt;br /&gt;
== Getting Started ==&lt;br /&gt;
* [[Quick Start Guide]]&lt;br /&gt;
* [[System Requirements]]&lt;br /&gt;
* [[Choosing the Right Archiving Strategy]]&lt;br /&gt;
&lt;br /&gt;
== What's New ==&lt;br /&gt;
* [https://go.mailstore.com?product=MailStore%20Server&amp;amp;target=changelog&amp;amp;lang=en Changelog]&lt;br /&gt;
* [[Update Notices for MailStore Server|Update Notices]]&lt;br /&gt;
| valign=&amp;quot;top&amp;quot; width=&amp;quot;50%&amp;quot;|&lt;br /&gt;
== Manual ==&lt;br /&gt;
* [[Installation]]&lt;br /&gt;
* [[Archiving Email]]&lt;br /&gt;
* [[Accessing the Archive]]&lt;br /&gt;
* [[Exporting Email]]&lt;br /&gt;
* [[Administration]]&lt;br /&gt;
* [[MailStore Server Service Configuration]]&lt;br /&gt;
* [https://help.mailstore.com/en/gateway MailStore Gateway Help]&lt;br /&gt;
|-&lt;br /&gt;
| valign=&amp;quot;top&amp;quot; width=&amp;quot;50%&amp;quot; |&lt;br /&gt;
== Implementation Guides ==&lt;br /&gt;
{{:Implementation}}&lt;br /&gt;
| valign=&amp;quot;top&amp;quot; width=&amp;quot;50% |&lt;br /&gt;
== Articles ==&lt;br /&gt;
==== Deployment ====&lt;br /&gt;
* [[MailStore Client Deployment|MailStore Client]]&lt;br /&gt;
* [[MailStore Outlook Add-in Deployment|MailStore Outlook Add-in]]&lt;br /&gt;
* [[MailStore Outlook App Deployment|MailStore Outlook App]]&lt;br /&gt;
&lt;br /&gt;
==== Operation ====&lt;br /&gt;
* [[Backup and Restore]]&lt;br /&gt;
* [[Maintenance and Repair]]&lt;br /&gt;
* [[Monitoring]]&lt;br /&gt;
==== Security ====&lt;br /&gt;
* [[Multi-factor Authentication]]&lt;br /&gt;
* [[Firewall Configuration]]&lt;br /&gt;
* [[Using_Lets_Encrypt_Certificates|Using Let's Encrypt Certificates]]&lt;br /&gt;
* [[Using Your Own SSL Certificate]]&lt;br /&gt;
* [[Enhancing SSL Security]]&lt;br /&gt;
* [[Notes on Antivirus Software]]&lt;br /&gt;
* [[Security Advisories]]&lt;br /&gt;
&lt;br /&gt;
==== Automation &amp;amp; Scripting ====&lt;br /&gt;
* [[Scripting|Automation with scripts]]&lt;br /&gt;
* [[Bulk Import of Email Files]]&lt;br /&gt;
* [[Implementing an Application Integration Server]]&lt;br /&gt;
==== How-to ====&lt;br /&gt;
* [[Changing Archiving from Microsoft Exchange Server to Microsoft 365]]&lt;br /&gt;
* [[Moving the Archive]]&lt;br /&gt;
* [[Using Network Attached Storage (NAS)]]&lt;br /&gt;
* [[Searching by Message ID]]&lt;br /&gt;
* [[Verifying a Signed Export]]&lt;br /&gt;
&lt;br /&gt;
==== Knowledge base ====&lt;br /&gt;
* [[EWS Error Codes]]&lt;br /&gt;
* [[Graph API Error Codes]]&lt;br /&gt;
* [[Flagged Emails]]&lt;br /&gt;
* [[Message Date of an Email]]&lt;br /&gt;
* [[Email encryption in Microsoft 365]]&lt;br /&gt;
* [[EWS Migration]]&lt;br /&gt;
|-&lt;br /&gt;
| valign=&amp;quot;top&amp;quot; width=&amp;quot;50%&amp;quot; |&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting ==&lt;br /&gt;
In the [https://www.mailstore.com/en/help/knowledgebase/ knowledgebase] of our [https://cs.mailstore.com/ Customer Service Centers] you can find many answers to the most often asked questions or reoccurring error messages. Detailed troubleshooting instructions are also available there.&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
== Administration API ==&lt;br /&gt;
The Administration API extends the management capabilities of {{Product Name}}  by providing command-line as well as HTTP based access to all management functions. This allows to fully automate the administration of {{Product Name}} via scripts or even integration into centralized management solutions. For an even faster development, example API libraries for different scripting and programming languages are provided. &lt;br /&gt;
* [[MailStore Server Management Shell]]&lt;br /&gt;
* [[Administration API - Using the API|Using the API]]&lt;br /&gt;
* [[Administration API - Function Reference|Function Reference]]&lt;br /&gt;
==== Example Implementations of API Libraries ====&lt;br /&gt;
* [[PowerShell API Wrapper Tutorial|PowerShell]]&lt;br /&gt;
* [[Python API Wrapper Tutorial|Python]]&lt;br /&gt;
| valign=&amp;quot;top&amp;quot; width=&amp;quot;50%&amp;quot; |&lt;br /&gt;
== Tech Tip Videos ==&lt;br /&gt;
In our [https://youtube.com/playlist?list=PLGTSLnfosYvSkdccnpMDv5fjqYhJ_asQp Tech Tip Videos on Youtube] we provide valuable information and useful insights from our technical support team. Our technical support engineers will showcase specific features of MailStore Server and feature common use cases of our clients.&lt;br /&gt;
== Downloads ==&lt;br /&gt;
&amp;lt;div class=&amp;quot;plainlinks&amp;quot;&amp;gt;&lt;br /&gt;
* [https://www.mailstore.com/en/products/mailstore-server/downloads/ MailStore Setup Files]&lt;br /&gt;
&amp;lt;!-- Even older manuals are not required&lt;br /&gt;
* [http://help.mailstore.com/manual/server13-manual-en.pdf MailStore Server 13 Manual]&lt;br /&gt;
==== Manuals of Older Versions ====&lt;br /&gt;
* [http://help.mailstore.com/manual/server12-manual-en.pdf MailStore Server 12]&lt;br /&gt;
* [http://help.mailstore.com/manual/server11-manual-en.pdf MailStore Server 11]&lt;br /&gt;
* [http://help.mailstore.com/manual/server10-manual-en.pdf MailStore Server 10]&lt;br /&gt;
* [http://help.mailstore.com/manual/server9-manual-en.pdf MailStore Server 9]&lt;br /&gt;
* [http://help.mailstore.com/manual/server8-manual-en.pdf MailStore Server 8]&lt;br /&gt;
* [http://help.mailstore.com/manual/server7-manual-en.pdf MailStore Server 7]&lt;br /&gt;
* [http://help.mailstore.com/manual/server6-manual-en.pdf MailStore Server 6]&lt;br /&gt;
* [http://help.mailstore.com/manual/server5-manual-en.pdf MailStore Server 5]&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
==== Active Directory Group Policy Templates ====&lt;br /&gt;
* [[Media:MailStore_ADMX.zip|ADMX-Template]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
[[de:MailStore Hilfe]]&lt;br /&gt;
[[en:MailStore Help]]&lt;/div&gt;</summary>
		<author><name>Ltalaschus</name></author>
	</entry>
	<entry>
		<id>https://help.mailstore.com/en/server/index.php?title=HelpTopicIds&amp;diff=8019</id>
		<title>HelpTopicIds</title>
		<link rel="alternate" type="text/html" href="https://help.mailstore.com/en/server/index.php?title=HelpTopicIds&amp;diff=8019"/>
		<updated>2026-04-09T09:48:20Z</updated>

		<summary type="html">&lt;p&gt;Ltalaschus: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;* accs_export - [[Exporting_Email]]&lt;br /&gt;
* accs_extsearch - [[Accessing_the_Archive_with_the_MailStore_Client_software#Advanced_Search]]&lt;br /&gt;
* accs_outlook - [[Accessing_the_Archive_with_the_Microsoft_Outlook_integration]]&lt;br /&gt;
* accs_outlookapp - [[Accessing_the_Archive_with_the_Microsoft_Outlook_App_integration]]&lt;br /&gt;
* accs_preview - [[Accessing_the_Archive_with_the_MailStore_Client_software#Email_Preview]]&lt;br /&gt;
* accs_web - [[Accessing_the_Archive_with_MailStore_Web_Access]]&lt;br /&gt;
* arch_delete - [[Email_Archiving_with_MailStore_Basics#Deleting_Emails_after_Archiving]]&lt;br /&gt;
* arch_filesystem - [[Archiving_Emails_from_External_Systems_(File_Import)]]&lt;br /&gt;
* arch_filepst - [[Archiving_Outlook_PST_Files_Directly]]&lt;br /&gt;
* arch_gateway - [[Archiving_MailStore_Gateway_Mailbox]]&lt;br /&gt;
* arch_m365conversion - [[Microsoft_365_Profile_Conversion_Tool]]&lt;br /&gt;
* arch_nospamproxy - [[Archiving_Emails_from_NoSpamProxy]]&lt;br /&gt;
* gateway_introduction - [[Archiving_MailStore_Gateway_Mailbox]]&lt;br /&gt;
* arch_googleapps_batch - [[Archiving_Emails_from_Google_Workspace#Archiving_Multiple_Mailboxes_Centrally]]&lt;br /&gt;
* arch_googleapps - [[Archiving_Emails_from_Google_Workspace]]&lt;br /&gt;
* arch_googleapps_multidrop - [[Archiving_Emails_from_Google_Workspace#Archiving_Incoming_and_Outgoing_Emails_Directly]]&lt;br /&gt;
* arch_googlemail_installed_app - [[Archiving_Emails_from_Gmail]]&lt;br /&gt;
* arch_outlookcom_modern_auth - [[Archiving_Emails_from_Outlook.com]]&lt;br /&gt;
* arch_icewarp - [[Archiving_Emails_from_IceWarp_Server]]&lt;br /&gt;
* arch_icewarp_mailbox - [[Archiving_Emails_from_IceWarp_Server#Archiving_Individual_Mailboxes]]&lt;br /&gt;
* arch_icewarp_mailboxes - [[Archiving_Emails_from_IceWarp_Server#Archiving_Multiple_Mailboxes_in_One_Step]]&lt;br /&gt;
* arch_icewarp_multidrop - [[Archiving_Emails_from_IceWarp_Server#Archiving_All_Incoming_and_Outgoing_Emails_Directly]]&lt;br /&gt;
* arch_imapbatch - [[Batch-archiving_IMAP_Mailboxes]]&lt;br /&gt;
* arch_inout - [[MailStore_Proxy]]&lt;br /&gt;
* arch_introduction - [[Archiving_Email]]&lt;br /&gt;
* arch_kerio - [[Archiving_Emails_from_Kerio_Connect]]&lt;br /&gt;
* arch_kerio_mailbox - [[Archiving_Emails_from_Kerio_Connect#Archiving_Individual_Mailboxes]]&lt;br /&gt;
* arch_kerio_mailboxes - [[Archiving_Emails_from_Kerio_Connect#Archiving_Multiple_Mailboxes_in_One_Step]]&lt;br /&gt;
* arch_kerio_multidrop - [[Archiving_Emails_from_Kerio_Connect#Archiving_Incoming_and_Outgoing_Emails_Directly]]&lt;br /&gt;
* arch_mailboxes - [[Archiving_Server_Mailboxes]]&lt;br /&gt;
* arch_mailclients - [[Archiving_Email_from_Outlook,_Thunderbird_and_others]]&lt;br /&gt;
* arch_mdaemon - [[Archiving_Emails_from_MDaemon]]&lt;br /&gt;
* arch_mdaemon_mailbox - [[Archiving_Emails_from_MDaemon#Archiving_Individual_Mailboxes]]&lt;br /&gt;
* arch_mdaemon_mailboxes - [[Archiving_Emails_from_MDaemon#Archiving_Multiple_Mailboxes_in_One_Step]]&lt;br /&gt;
* arch_mdaemon_multidrop - [[Archiving_Emails_from_MDaemon#Archiving_Incoming_and_Outgoing_Emails_Directly]]&lt;br /&gt;
* arch_multidrop - [[Archiving_IMAP_and_POP3_Multidrop_Mailboxes]]&lt;br /&gt;
* arch_profiles - [[Archiving_Email]]&lt;br /&gt;
* arch_schedule - [[Email_Archiving_with_MailStore_Basics#Automating_the_Archiving_Process]]&lt;br /&gt;
* arch_results - [[Email_Archiving_with_MailStore_Basics]]&lt;br /&gt;
* arch_selfolders - [[Email_Archiving_with_MailStore_Basics#Archiving_Specific_Folders]]&lt;br /&gt;
* bkup_integrated - [[Backup_and_Restore]]&lt;br /&gt;
* comp_auditing - [[Auditing]]&lt;br /&gt;
* comp_auditlog - [[Audit_Log]]&lt;br /&gt;
* comp_auditlogexport - [[Audit_Log]]&lt;br /&gt;
* comp_auditor - [[Compliance_General]]&lt;br /&gt;
* comp_forcechangepassword - [[Notes_on_Password_Complexity]]&lt;br /&gt;
* comp_general - [[Compliance_General]]&lt;br /&gt;
* comp_manage_passwords - [[Accessing_the_Archive_with_the_MailStore_Client_software#Managing_Passwords]]&lt;br /&gt;
* comp_password_complexity - [[Notes_on_Password_Complexity]]&lt;br /&gt;
* comp_retention - [[Retention_Policies]]&lt;br /&gt;
* comp_message_date - [[Message_Date_of_an_Email]]&lt;br /&gt;
* expo_googleapps - [[Exporting_Email]]&lt;br /&gt;
* gsta_login - [[Accessing_the_Archive_with_the_MailStore_Client_software#Starting_and_Login]]&lt;br /&gt;
* job_jobs - [[Jobs]]&lt;br /&gt;
* job_scheduling - [[Jobs]]&lt;br /&gt;
* job_results - [[Job_Results]]&lt;br /&gt;
* mads_sync - [[Administration]]&lt;br /&gt;
* tech_config - [[MailStore_Server_Service_Configuration]]&lt;br /&gt;
* tech_index - [[Search_Indexes]]&lt;br /&gt;
* tech_mscmd - [[MailStore_Server_Management_Shell]]&lt;br /&gt;
* tech_proxy - [[MailStore_Proxy]]&lt;br /&gt;
* tech_safemode - [[MailStore_Server_Service_Configuration]]&lt;br /&gt;
* tech_smtpsettings - [[SMTP_Settings]]&lt;br /&gt;
* tech_archives - [[Archives]]&lt;br /&gt;
* tech_storageloc - [[Storage_Locations]]&lt;br /&gt;
* tech_productupdates - [[Product_Updates]]&lt;br /&gt;
* tech_extstoremigration - [[Using External Archive Stores]]&lt;br /&gt;
* umgm_privileges - [[Users,_Folders_and_Settings#User_Management]]&lt;br /&gt;
* umgm_users - [[Users,_Folders_and_Settings#User_Management]]&lt;br /&gt;
* xchg_introduction - [[Archiving_Emails_from_Microsoft_Exchange]]&lt;br /&gt;
* xchg_jour_intro - [[Archiving_Emails_from_Microsoft_Exchange]]&lt;br /&gt;
* xchg_mailbox - [[Archiving_Emails_from_Microsoft_Exchange]]&lt;br /&gt;
* xchg_mailboxes - [[Archiving_Emails_from_Microsoft_Exchange]]&lt;br /&gt;
* xchg_archive_mailbox - [[Archiving_Emails_from_Microsoft_Exchange]]&lt;br /&gt;
* xchg_archive_mailboxes - [[Archiving_Emails_from_Microsoft_Exchange]]&lt;br /&gt;
* xchg_public - [[Archiving_Emails_from_Microsoft_Exchange]]&lt;br /&gt;
* impl_noownserver - [[Archiving_Emails_Without_Your_Own_Emailserver|(No own e-mail server)]]&lt;br /&gt;
* impl_exim - [[Archiving_Emails_from_an_Exim_Based_Email_Server|Exim]]&lt;br /&gt;
* impl_hmailserver - [[Archiving_Emails_from_hMailServer|hMailServer]]&lt;br /&gt;
* impl_intranator - [[Archiving_Emails_from_Intra2net_Systems|Intra2net  Appliance Pro / Business Server]]&lt;br /&gt;
* impl_kerioconnect - [[Archiving_Emails_from_Kerio_Connect|Kerio Connect (Kerio MailServer)]]&lt;br /&gt;
* impl_kolab - [[Archiving_Emails_from_Kolab|Kolab]]&lt;br /&gt;
* impl_postfix - [[Archiving_Emails_from_a_Postfix_Based_Email_Server|Postfix]]&lt;br /&gt;
* impl_qmail - [[Archiving_Emails_from_a_Qmail_Based_Email_Server|Qmail]]&lt;br /&gt;
* impl_scalix - [[Archiving_Emails_from_Scalix|Scalix]]&lt;br /&gt;
* impl_sendmail - [[Archiving_Emails_from_a_Sendmail_Based_Email_Server|Sendmail]]&lt;br /&gt;
* impl_smartermail - [[Archiving_Emails_from_SmarterMail|SmarterMail]]&lt;br /&gt;
* impl_tobitdavid - [[Archiving_Emails_from_Tobit_David.fx|Tobit David.fx]]&lt;br /&gt;
* impl_zimbra - [[Archiving_Emails_from_Zimbra|Zimbra Collaboration Suite]]&lt;br /&gt;
* implexch_2003 - [[Archiving_Emails_from_Microsoft_Exchange_2003|Exchange 2003]]&lt;br /&gt;
* implexch_2007 - [[Archiving_Emails_from_Microsoft_Exchange_2007|Exchange 2007]]&lt;br /&gt;
* implexch_2010 - [[Archiving_Emails_from_Microsoft_Exchange_2010|Exchange 2010]]&lt;br /&gt;
* implexch_2013 - [[Archiving_Emails_from_Microsoft_Exchange_2013|Exchange 2013]]&lt;br /&gt;
* implexch_2016 - [[Archiving_Emails_from_Microsoft_Exchange_2016|Exchange 2016]] &lt;br /&gt;
* implexch_2019 - [[Archiving_Emails_from_Microsoft_Exchange_2019|Exchange 2019]]&lt;br /&gt;
* implexch_se - [[Archiving_Emails_from_Microsoft_Exchange_SE|Exchange SE]]&lt;br /&gt;
* implexch_o365 - [[Archiving_Emails_from_Microsoft_Office_365|Office 365]]&lt;br /&gt;
* welc_licensing - [[License_Management]]&lt;br /&gt;
* arch_microsoft365 - [[Archiving_Emails_from_Microsoft_365_(Modern_Authentication)]]&lt;br /&gt;
* arch_microsoft365_single - [[Archiving_Emails_from_Microsoft_365_(Modern_Authentication)#Archiving_Individual_Microsoft.C2.A0365_Mailboxes]]&lt;br /&gt;
* arch_microsoft365_multiple - [[Archiving_Emails_from_Microsoft_365_(Modern_Authentication)#Archiving_Multiple_Microsoft.C2.A0365_Mailboxes_Centrally]]&lt;br /&gt;
* arch_microsoft365_single_archive_mailbox - [[Archiving_Emails_from_Microsoft_365_(Modern_Authentication)#Archiving_Individual_Microsoft.C2.A0365_Archive_Mailboxes]]&lt;br /&gt;
* arch_microsoft365_multiple_archive_mailboxes - [[Archiving_Emails_from_Microsoft_365_(Modern_Authentication)#Archiving_Multiple_Microsoft.C2.A0365_Archive_Mailboxes_Centrally]]&lt;br /&gt;
* arch_microsoft365_public - [[Archiving_Emails_from_Microsoft_365_(Modern_Authentication)#Public_Folders]]&lt;br /&gt;
* expo_microsoft365 - [[Exporting_Email]]&lt;br /&gt;
* arch_m365_ews_migration - [[EWS_Migration]]&lt;br /&gt;
* cred_microsoft365 - [[Synchronizing_User_Accounts_with_Microsoft_365_(Modern_Authentication)#Creating_Credentials_in_MailStore_Server]]&lt;br /&gt;
* expo_mailstorecloudbulk - [[MailStore_Cloud_Help#Migration_from_MailStore_Server_to_MailStore_Cloud]]&lt;br /&gt;
* graphmimeconversionfailed - [[Graph_API_Error_Codes]]&lt;br /&gt;
[[de:HelpTopicIds]]&lt;br /&gt;
[[en:helpTopicIds]]&lt;/div&gt;</summary>
		<author><name>Ltalaschus</name></author>
	</entry>
	<entry>
		<id>https://help.mailstore.com/en/server/index.php?title=Graph_API_Error_Codes&amp;diff=8018</id>
		<title>Graph API Error Codes</title>
		<link rel="alternate" type="text/html" href="https://help.mailstore.com/en/server/index.php?title=Graph_API_Error_Codes&amp;diff=8018"/>
		<updated>2026-04-09T09:46:16Z</updated>

		<summary type="html">&lt;p&gt;Ltalaschus: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== text does not support structured data ==&lt;br /&gt;
'''Problem:''' While archiving email from a Microsoft 365 server an Graph API error code ''text does not support structured data'' occurs.&lt;br /&gt;
&lt;br /&gt;
'''Solution:''' This kind of server error is caused by an internal Microsoft 365 function that is not able to convert a message from its internal format into the RFC822 compliant MIME format which is also used by MailStore Server. In nearly all cases the original MIME message received by the mail server already contained invalid data, such as an appointment request confirmation without references to the original appointment. Therefore it is usually safe to delete those emails.&lt;br /&gt;
&lt;br /&gt;
Due to that error, the archiving profile itself terminates with a non-successful status code. This behavior can be changed by modifying the global property ''public.arcclient.skipGraphContentConversionFailed'' by executing the following command in [[MailStore_Server_Management_Shell|MailStore's Management Shell]]:&lt;br /&gt;
&lt;br /&gt;
 store-setprop --name=&amp;quot;public.arcclient.skipGraphContentConversionFailed&amp;quot; --value=&amp;quot;true&amp;quot;&lt;br /&gt;
&lt;br /&gt;
'''Please note:''' Independent of this global property, MailStore Server is neither able to archive messages where the above error occurred nor delete them from the mail server.&lt;br /&gt;
&lt;br /&gt;
[[de:Graph_API-Fehlermeldungen]]&lt;br /&gt;
[[en:Graph_API_Error_Codes]]&lt;/div&gt;</summary>
		<author><name>Ltalaschus</name></author>
	</entry>
	<entry>
		<id>https://help.mailstore.com/en/server/index.php?title=Graph_API_Error_Codes&amp;diff=8017</id>
		<title>Graph API Error Codes</title>
		<link rel="alternate" type="text/html" href="https://help.mailstore.com/en/server/index.php?title=Graph_API_Error_Codes&amp;diff=8017"/>
		<updated>2026-04-09T09:24:14Z</updated>

		<summary type="html">&lt;p&gt;Ltalaschus: Created page with &amp;quot;== ErrorMimeContentConversionFailed == '''Problem:''' While archiving email from a Microsoft Exchange server an EWS error code ErrorMimeContentConversionFailed occurs.  '''Sol...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== ErrorMimeContentConversionFailed ==&lt;br /&gt;
'''Problem:''' While archiving email from a Microsoft Exchange server an EWS error code ErrorMimeContentConversionFailed occurs.&lt;br /&gt;
&lt;br /&gt;
'''Solution:''' This kind of Exchange internal server error is caused by an internal Exchange function that is not able to convert a message from Exchange's internal MAPI format into the RFC822 compliant MIME format which is also used by MailStore Server. In nearly all cases the original MIME message received by the Exchange server already contained invalid data, such as an appointment request confirmation without references to the original appointment. Therefore it is usually safe to delete those emails.&lt;br /&gt;
&lt;br /&gt;
Due to that error, the archiving profile itself terminates with a non-successful status code. This behavior can be changed since MailStore Server 8 by modifying the global property public.arcclient.skipMimeContentConversionFailed by executing the following command in [[MailStore_Server_Management_Shell|MailStore's Management Shell]]:&lt;br /&gt;
&lt;br /&gt;
 store-setprop --name=&amp;quot;public.arcclient.skipMimeContentConversionFailed&amp;quot; --value=&amp;quot;true&amp;quot;&lt;br /&gt;
&lt;br /&gt;
'''Please note:''' Independent of this global property, MailStore Server is neither able to archive messages where the above error occurred nor delete them from the Exchange server.&lt;br /&gt;
&lt;br /&gt;
[[de:Graph_API-Fehlermeldungen]]&lt;br /&gt;
[[en:Graph_API_Error_Codes]]&lt;/div&gt;</summary>
		<author><name>Ltalaschus</name></author>
	</entry>
	<entry>
		<id>https://help.mailstore.com/en/server/index.php?title=Microsoft_365_Profile_Conversion_Tool&amp;diff=8016</id>
		<title>Microsoft 365 Profile Conversion Tool</title>
		<link rel="alternate" type="text/html" href="https://help.mailstore.com/en/server/index.php?title=Microsoft_365_Profile_Conversion_Tool&amp;diff=8016"/>
		<updated>2026-04-08T15:18:48Z</updated>

		<summary type="html">&lt;p&gt;Ltalaschus: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Microsoft is planning to retire the Exchange Web Service(EWS) protocol in Exchange Online. This decision affects all companies that use EWS not just MailStore. This makes it necessary to use alternative access to Exchange Online mailboxes going into the future. Further details about the proposed discontinuation of the EWS protocol can be found in the [[EWS Migration|migration article]].&lt;br /&gt;
&lt;br /&gt;
We provide a conversion tool that will try to help you migrating profiles that rely on EWS and will stop working in the future. &lt;br /&gt;
&lt;br /&gt;
===Accessing the conversion tool===&lt;br /&gt;
When your MailStore Server installation is using a Microsoft 365 profile you should see a warning message on your dashboard. Click on that will open the Microsoft 365 Profile Conversion tool.&lt;br /&gt;
&lt;br /&gt;
[[File:ConversionTool_en.png]]&lt;br /&gt;
&lt;br /&gt;
The Conversion tool will show you an overview of all profiles connected to Microsoft 365. Archiving profiles, exporting profiles and gives you the option to convert those profiles to a version that will be able to be used after EWS has been retired.&lt;br /&gt;
&lt;br /&gt;
The grid will show you profiles divided into three different kinds. &lt;br /&gt;
* &amp;lt;b&amp;gt;automatic&amp;lt;/b&amp;gt;&lt;br /&gt;
*; These profiles need a conversion and should be convertible from within this tool. To just check if a conversion creates a usable profile click the ''Test convert'' button. It will do a temporary conversion and will test connection on that profile then. When you click ''Convert'' a test will be executed also and the profile is saved if successful.&lt;br /&gt;
* &amp;lt;b&amp;gt;not supported&amp;lt;/b&amp;gt;&lt;br /&gt;
*; Those profiles can't be supported anymore when EWS is disabled. Microsoft did not provide alternatives yet without the use of EWS. &lt;br /&gt;
** &amp;lt;b&amp;gt;Public Folders&amp;lt;/b&amp;gt; access will no longer be supported by Microsoft.&lt;br /&gt;
** &amp;lt;b&amp;gt;Archive mailboxes&amp;lt;/b&amp;gt; or sometimes called In-Place Archives are currently only supported via EWS.&lt;br /&gt;
* &amp;lt;b&amp;gt;not needed&amp;lt;/b&amp;gt;&lt;br /&gt;
*;Those profiles are either already converted or has been created currently with a EWS replacement solution already. Those profile can be considered safe and are shown here for completeness.&lt;br /&gt;
&lt;br /&gt;
[[de:Microsoft_365_Profilkonvertierungstool]]&lt;br /&gt;
[[en:Microsoft_365_Profile_Conversion_Tool]]&lt;/div&gt;</summary>
		<author><name>Ltalaschus</name></author>
	</entry>
	<entry>
		<id>https://help.mailstore.com/en/server/index.php?title=EWS_Migration&amp;diff=8015</id>
		<title>EWS Migration</title>
		<link rel="alternate" type="text/html" href="https://help.mailstore.com/en/server/index.php?title=EWS_Migration&amp;diff=8015"/>
		<updated>2026-04-08T15:00:49Z</updated>

		<summary type="html">&lt;p&gt;Ltalaschus: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
Exchange Web Services (EWS) is a technology that was developed specifically for accessing Exchange data. The API enables access to data from Microsoft Exchange Server and Exchange Online, including emails and mailboxes. EWS has been a central interface for third-party solutions such as archiving systems.&lt;br /&gt;
&lt;br /&gt;
== Microsoft is discontinuing Exchange Web Services (EWS) for Microsoft 365 ==&lt;br /&gt;
Microsoft [https://techcommunity.microsoft.com/blog/exchange/retirement-of-exchange-web-services-in-exchange-online/3924440 has announced] that it will block access to Exchange Web Services (EWS) for Exchange Online starting October 1, 2026. EWS will be completely shut down by April 2027. This decision affects all organizations that use EWS in conjunction with Exchange Online (Microsoft 365). After the shutdown, some resources will only be accessible via the Graph API, while for other resources there is [https://learn.microsoft.com/en-us/exchange/clients-and-mobile-in-exchange-online/deprecation-of-ews-exchange-online currently no Graph API equivalent]. These resources will then no longer be accessible by third-party solutions.&lt;br /&gt;
&lt;br /&gt;
Microsoft will [https://techcommunity.microsoft.com/blog/exchange/exchange-online-ews-your-time-is-almost-up/4492361 preconfigure and potentially restrict access] to EWS based on usage starting in August 2026. Administrators can also [https://learn.microsoft.com/en-us/exchange/client-developer/exchange-web-services/how-to-control-access-to-ews-in-exchange manage the settings themselves].&lt;br /&gt;
&lt;br /&gt;
For customers using Exchange Online Kiosk, Microsoft Office 365, and Office 365 F1/F3,  [https://techcommunity.microsoft.com/blog/exchange/update-to-ews-access-for-kiosk--frontline-worker-licensed-users/4474299 Microsoft will disable EWS access as early as June 2026].&lt;br /&gt;
&lt;br /&gt;
== What will change for MailStore Server and MailStore SPE? ==&lt;br /&gt;
The shutdown of EWS initiated by Microsoft will require adjustments in MailStore Server and MailStore SPE, depending on the archiving strategy. Archiving methods within MailStore Server and MailStore SPE that previously have used EWS may no longer be able to connect after October 1st and will then encounter errors.&lt;br /&gt;
&lt;br /&gt;
== Which protocols does MailStore use? ==&lt;br /&gt;
&lt;br /&gt;
Up to and including version 25.4, MailStore exclusively created Microsoft 365 archiving and export profiles that used EWS. Starting with version 26.1, new archiving profiles for regular mailboxes use the Graph API. New archiving profiles for archive mailboxes and public folders continue to use EWS, as these are not accessible via the Graph API. New export profiles, starting with version 26.2, use the IMAP protocol, since importing complete emails into a Microsoft 365 mailbox using the Graph API is also not possible.&lt;br /&gt;
&lt;br /&gt;
=== How can MailStore support me during the migration? ===&lt;br /&gt;
&lt;br /&gt;
Make sure you have completed the app registration in Entra ID [[Synchronizing_User_Accounts_with_Microsoft_365_-_Modern_Authentication#Configuring_API_Permissions_in_Microsoft_Entra_ID|according to our instructions]]. In particular, the Mail.ReadWrite and IMAP.AccessAsApp permissions are now required.&lt;br /&gt;
&lt;br /&gt;
The [[Email_Archiving_with_MailStore_Basics|summary of archiving profiles]] contains the protocol used. Microsoft 365 Journal archiving profiles do not typically use EWS and are therefore not affected.&lt;br /&gt;
&lt;br /&gt;
If you have configured Microsoft 365 profiles that can be converted, this message will appear on the dashboard:&lt;br /&gt;
&lt;br /&gt;
[[File:ews_conversion_message.png]]&lt;br /&gt;
&lt;br /&gt;
Click this message to open the [[Microsoft_365_Profile_Conversion_Tool|Microsoft 365 Profile Conversion Tool]]. Use this tool to test and perform a conversion.&lt;br /&gt;
&lt;br /&gt;
[[File:ConversionTool_en.png|450px|center]]&lt;br /&gt;
&lt;br /&gt;
=== When do adjustments need to be made? ===&lt;br /&gt;
&lt;br /&gt;
==== June 2026 ====&lt;br /&gt;
&lt;br /&gt;
If you are an Exchange Online Kiosk, Microsoft Office 365, or Office 365 F1/F3 customer, all profiles must be migrated to Graph API and IMAP.&lt;br /&gt;
&lt;br /&gt;
Archiving Exchange Online archive mailboxes and Exchange Online Public Folders will no longer be possible.&lt;br /&gt;
&lt;br /&gt;
==== October 2026 ====&lt;br /&gt;
&lt;br /&gt;
EWS profiles will continue to function after October 2026 if EWS access in Microsoft 365 is [https://learn.microsoft.com/en-us/exchange/client-developer/exchange-web-services/how-to-control-access-to-ews-in-exchange configured accordingly].&lt;br /&gt;
&lt;br /&gt;
==== April 2027 ====&lt;br /&gt;
&lt;br /&gt;
EWS profiles will no longer function after April 2027. Archiving regular mailboxes using Graph API and exporting to Microsoft 365 using IMAP will continue to function. Archiving Exchange Online archive mailboxes and Exchange Online Public Folders will no longer be possible. Microsoft [https://techcommunity.microsoft.com/blog/exchange/retirement-of-exchange-web-services-in-exchange-online/3924440 has hinted] at a future solution, but has not yet published a concrete plan. Microsoft recommends [https://learn.microsoft.com/en-us/exchange/collaboration/public-folders/migrate-to-microsoft-365-groups migrating public folders to Microsoft 365 Groups].&lt;br /&gt;
&lt;br /&gt;
[[de:EWS Migration]]&lt;br /&gt;
[[en:EWS Migration]]&lt;/div&gt;</summary>
		<author><name>Ltalaschus</name></author>
	</entry>
	<entry>
		<id>https://help.mailstore.com/en/server/index.php?title=File:Ews_conversion_message.png&amp;diff=8014</id>
		<title>File:Ews conversion message.png</title>
		<link rel="alternate" type="text/html" href="https://help.mailstore.com/en/server/index.php?title=File:Ews_conversion_message.png&amp;diff=8014"/>
		<updated>2026-04-08T14:46:13Z</updated>

		<summary type="html">&lt;p&gt;Ltalaschus: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Ltalaschus</name></author>
	</entry>
	<entry>
		<id>https://help.mailstore.com/en/server/index.php?title=MailStore_Help&amp;diff=8013</id>
		<title>MailStore Help</title>
		<link rel="alternate" type="text/html" href="https://help.mailstore.com/en/server/index.php?title=MailStore_Help&amp;diff=8013"/>
		<updated>2026-03-26T08:41:37Z</updated>

		<summary type="html">&lt;p&gt;Ltalaschus: /* Knowledge base */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{DISPLAYTITLE:{{Product Name}} Help}}&lt;br /&gt;
&lt;br /&gt;
{| width=&amp;quot;100%&amp;quot; cellspacing=&amp;quot;3&amp;quot; cellpadding=&amp;quot;4&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| valign=&amp;quot;top&amp;quot; width=&amp;quot;100%&amp;quot; colspan=&amp;quot;2&amp;quot; |&lt;br /&gt;
== Email Archiving with {{Product Name}} ==&lt;br /&gt;
In addition to the latest version of the {{Product Name}} manual, you can find important articles and instructions here, which will help you to set up email archiving. Please do not hesitate to contact our support team if you have any further questions.&lt;br /&gt;
|-&lt;br /&gt;
| valign=&amp;quot;top&amp;quot; width=&amp;quot;50%&amp;quot; |&lt;br /&gt;
== Getting Started ==&lt;br /&gt;
* [[Quick Start Guide]]&lt;br /&gt;
* [[System Requirements]]&lt;br /&gt;
* [[Choosing the Right Archiving Strategy]]&lt;br /&gt;
&lt;br /&gt;
== What's New ==&lt;br /&gt;
* [https://go.mailstore.com?product=MailStore%20Server&amp;amp;target=changelog&amp;amp;lang=en Changelog]&lt;br /&gt;
* [[Update Notices for MailStore Server|Update Notices]]&lt;br /&gt;
| valign=&amp;quot;top&amp;quot; width=&amp;quot;50%&amp;quot;|&lt;br /&gt;
== Manual ==&lt;br /&gt;
* [[Installation]]&lt;br /&gt;
* [[Archiving Email]]&lt;br /&gt;
* [[Accessing the Archive]]&lt;br /&gt;
* [[Exporting Email]]&lt;br /&gt;
* [[Administration]]&lt;br /&gt;
* [[MailStore Server Service Configuration]]&lt;br /&gt;
* [https://help.mailstore.com/en/gateway MailStore Gateway Help]&lt;br /&gt;
|-&lt;br /&gt;
| valign=&amp;quot;top&amp;quot; width=&amp;quot;50%&amp;quot; |&lt;br /&gt;
== Implementation Guides ==&lt;br /&gt;
{{:Implementation}}&lt;br /&gt;
| valign=&amp;quot;top&amp;quot; width=&amp;quot;50% |&lt;br /&gt;
== Articles ==&lt;br /&gt;
==== Deployment ====&lt;br /&gt;
* [[MailStore Client Deployment|MailStore Client]]&lt;br /&gt;
* [[MailStore Outlook Add-in Deployment|MailStore Outlook Add-in]]&lt;br /&gt;
* [[MailStore Outlook App Deployment|MailStore Outlook App]]&lt;br /&gt;
&lt;br /&gt;
==== Operation ====&lt;br /&gt;
* [[Backup and Restore]]&lt;br /&gt;
* [[Maintenance and Repair]]&lt;br /&gt;
* [[Monitoring]]&lt;br /&gt;
==== Security ====&lt;br /&gt;
* [[Multi-factor Authentication]]&lt;br /&gt;
* [[Firewall Configuration]]&lt;br /&gt;
* [[Using_Lets_Encrypt_Certificates|Using Let's Encrypt Certificates]]&lt;br /&gt;
* [[Using Your Own SSL Certificate]]&lt;br /&gt;
* [[Enhancing SSL Security]]&lt;br /&gt;
* [[Notes on Antivirus Software]]&lt;br /&gt;
* [[Security Advisories]]&lt;br /&gt;
&lt;br /&gt;
==== Automation &amp;amp; Scripting ====&lt;br /&gt;
* [[Scripting|Automation with scripts]]&lt;br /&gt;
* [[Bulk Import of Email Files]]&lt;br /&gt;
* [[Implementing an Application Integration Server]]&lt;br /&gt;
==== How-to ====&lt;br /&gt;
* [[Changing Archiving from Microsoft Exchange Server to Microsoft 365]]&lt;br /&gt;
* [[Moving the Archive]]&lt;br /&gt;
* [[Using Network Attached Storage (NAS)]]&lt;br /&gt;
* [[Searching by Message ID]]&lt;br /&gt;
* [[Verifying a Signed Export]]&lt;br /&gt;
&lt;br /&gt;
==== Knowledge base ====&lt;br /&gt;
* [[EWS Error Codes]]&lt;br /&gt;
* [[Flagged Emails]]&lt;br /&gt;
* [[Message Date of an Email]]&lt;br /&gt;
* [[Email encryption in Microsoft 365]]&lt;br /&gt;
* [[EWS Migration]]&lt;br /&gt;
|-&lt;br /&gt;
| valign=&amp;quot;top&amp;quot; width=&amp;quot;50%&amp;quot; |&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting ==&lt;br /&gt;
In the [https://www.mailstore.com/en/help/knowledgebase/ knowledgebase] of our [https://cs.mailstore.com/ Customer Service Centers] you can find many answers to the most often asked questions or reoccurring error messages. Detailed troubleshooting instructions are also available there.&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
== Administration API ==&lt;br /&gt;
The Administration API extends the management capabilities of {{Product Name}}  by providing command-line as well as HTTP based access to all management functions. This allows to fully automate the administration of {{Product Name}} via scripts or even integration into centralized management solutions. For an even faster development, example API libraries for different scripting and programming languages are provided. &lt;br /&gt;
* [[MailStore Server Management Shell]]&lt;br /&gt;
* [[Administration API - Using the API|Using the API]]&lt;br /&gt;
* [[Administration API - Function Reference|Function Reference]]&lt;br /&gt;
==== Example Implementations of API Libraries ====&lt;br /&gt;
* [[PowerShell API Wrapper Tutorial|PowerShell]]&lt;br /&gt;
* [[Python API Wrapper Tutorial|Python]]&lt;br /&gt;
| valign=&amp;quot;top&amp;quot; width=&amp;quot;50%&amp;quot; |&lt;br /&gt;
== Tech Tip Videos ==&lt;br /&gt;
In our [https://youtube.com/playlist?list=PLGTSLnfosYvSkdccnpMDv5fjqYhJ_asQp Tech Tip Videos on Youtube] we provide valuable information and useful insights from our technical support team. Our technical support engineers will showcase specific features of MailStore Server and feature common use cases of our clients.&lt;br /&gt;
== Downloads ==&lt;br /&gt;
&amp;lt;div class=&amp;quot;plainlinks&amp;quot;&amp;gt;&lt;br /&gt;
* [https://www.mailstore.com/en/products/mailstore-server/downloads/ MailStore Setup Files]&lt;br /&gt;
&amp;lt;!-- Even older manuals are not required&lt;br /&gt;
* [http://help.mailstore.com/manual/server13-manual-en.pdf MailStore Server 13 Manual]&lt;br /&gt;
==== Manuals of Older Versions ====&lt;br /&gt;
* [http://help.mailstore.com/manual/server12-manual-en.pdf MailStore Server 12]&lt;br /&gt;
* [http://help.mailstore.com/manual/server11-manual-en.pdf MailStore Server 11]&lt;br /&gt;
* [http://help.mailstore.com/manual/server10-manual-en.pdf MailStore Server 10]&lt;br /&gt;
* [http://help.mailstore.com/manual/server9-manual-en.pdf MailStore Server 9]&lt;br /&gt;
* [http://help.mailstore.com/manual/server8-manual-en.pdf MailStore Server 8]&lt;br /&gt;
* [http://help.mailstore.com/manual/server7-manual-en.pdf MailStore Server 7]&lt;br /&gt;
* [http://help.mailstore.com/manual/server6-manual-en.pdf MailStore Server 6]&lt;br /&gt;
* [http://help.mailstore.com/manual/server5-manual-en.pdf MailStore Server 5]&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
==== Active Directory Group Policy Templates ====&lt;br /&gt;
* [[Media:MailStore_ADMX.zip|ADMX-Template]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
[[de:MailStore Hilfe]]&lt;br /&gt;
[[en:MailStore Help]]&lt;/div&gt;</summary>
		<author><name>Ltalaschus</name></author>
	</entry>
	<entry>
		<id>https://help.mailstore.com/en/server/index.php?title=Microsoft_365_Profile_Conversion_Tool&amp;diff=8012</id>
		<title>Microsoft 365 Profile Conversion Tool</title>
		<link rel="alternate" type="text/html" href="https://help.mailstore.com/en/server/index.php?title=Microsoft_365_Profile_Conversion_Tool&amp;diff=8012"/>
		<updated>2026-03-24T11:00:36Z</updated>

		<summary type="html">&lt;p&gt;Ltalaschus: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Microsoft is planning to [https://techcommunity.microsoft.com/blog/exchange/retirement-of-exchange-web-services-in-exchange-online/3924440 retire] the Exchange Web Service(EWS) protocol in Exchange Online. This decision affects all companies that use EWS not just MailStore. This makes it necessary to use alternative access to Exchange Online mailboxes going into the future. We provide a conversion tool that will try to help you migrating profiles that rely on EWS and will stop working in the future. &lt;br /&gt;
The current Microsoft timeline for that can be followed [https://learn.microsoft.com/en-us/exchange/clients-and-mobile-in-exchange-online/deprecation-of-ews-exchange-online here]. &lt;br /&gt;
&lt;br /&gt;
Further details about the proposed discontinuation of the EWS protocol can be found in the [[EWS Migration]] article or you might want to follow our [https://www.mailstore.com/en/blog/microsoft-is-discontinuing-ews-for-m365/ blog].&lt;br /&gt;
&lt;br /&gt;
===Accessing the conversion tool===&lt;br /&gt;
When your MailStore Server installation is using a MIcrosoft 365 profile you should see a warning message on your dashboard. Click on that will open the Microsoft 365 Profile Conversion tool.&lt;br /&gt;
&lt;br /&gt;
[[File:ConversionTool_en.png]]&lt;br /&gt;
&lt;br /&gt;
The Conversion tool will show you an overview of all profiles connected to Microsoft 365. Archiving profiles, exporting profiles and gives you the option to convert those profiles to a version that will be able to be used after EWS has been retired.&lt;br /&gt;
&lt;br /&gt;
The grid will show you profiles divided into three different kinds. &lt;br /&gt;
* &amp;lt;b&amp;gt;automatic&amp;lt;/b&amp;gt;&lt;br /&gt;
*; These profiles need a conversion and should be convertible from within this tool. To just check if a conversion creates a usable profile click the ''Test convert'' button. It will do a temporary conversion and will test connection on that profile then. When you click ''Convert'' a test will be executed also and the profile is saved if successful.&lt;br /&gt;
* &amp;lt;b&amp;gt;not supported&amp;lt;/b&amp;gt;&lt;br /&gt;
*; Those profiles can't be supported anymore when EWS is disabled. Microsoft did not provide alternatives yet without the use of EWS. &lt;br /&gt;
** &amp;lt;b&amp;gt;Public Folders&amp;lt;/b&amp;gt; access will no longer be supported by Microsoft. Microsoft recommends a [https://learn.microsoft.com/en-us/exchange/collaboration/public-folders/migrate-to-microsoft-365-groups| migration] to  Microsoft 365 Groups&lt;br /&gt;
** &amp;lt;b&amp;gt;Archive mailboxes&amp;lt;/b&amp;gt; or sometimes called In-Place Archives are currently only supported via EWS. A future solution has been [https://techcommunity.microsoft.com/blog/exchange/retirement-of-exchange-web-services-in-exchange-online/3924440| hinted] by Microsoft. But no actual plan has been released yet.&lt;br /&gt;
* &amp;lt;b&amp;gt;not needed&amp;lt;/b&amp;gt;&lt;br /&gt;
*;Those profiles are either already converted or has been created currently with a EWS replacement solution already. Those profile can be considered safe and are shown here for completeness.&lt;br /&gt;
&lt;br /&gt;
[[de:Microsoft_365_Profilkonvertierungstool]]&lt;br /&gt;
[[en:Microsoft_365_Profile_Conversion_Tool]]&lt;/div&gt;</summary>
		<author><name>Ltalaschus</name></author>
	</entry>
	<entry>
		<id>https://help.mailstore.com/en/server/index.php?title=Synchronizing_User_Accounts_with_Microsoft_365_-_Modern_Authentication&amp;diff=8007</id>
		<title>Synchronizing User Accounts with Microsoft 365 - Modern Authentication</title>
		<link rel="alternate" type="text/html" href="https://help.mailstore.com/en/server/index.php?title=Synchronizing_User_Accounts_with_Microsoft_365_-_Modern_Authentication&amp;diff=8007"/>
		<updated>2026-03-24T09:18:49Z</updated>

		<summary type="html">&lt;p&gt;Ltalaschus: /* Configuring API Permissions in Microsoft Entra ID */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Directory Services Preamble|Microsoft 365 tenant|Microsoft 365||}}&lt;br /&gt;
== Prerequisites, Recommendations and Limitations ==&lt;br /&gt;
* For best user experience, the certificate used by MailStore Server should be trusted by all clients and the used web browsers. Using a certificate that is signed by a trusted certificate authority or [[Using_Lets_Encrypt_Certificates|using Let's Encrypt certificates]] is highly recommended.&lt;br /&gt;
* If you have archived emails from an Exchange server and synchronized users from an Active Directory until now, follow the article [[Changing Archiving from Microsoft Exchange Server to Microsoft 365]]&lt;br /&gt;
* If users are supposed to log in to MailStore Server from outside the organization's network without a VPN using [[Accessing_the_Archive_with_the_MailStore_Client_software|MailStore Client]], [[Accessing_the_Archive_with_the_Microsoft_Outlook_integration|MailStore Outlook Add-in]] or the [[Accessing_the_Archive_with_MailStore_Web_Access|Web Access]], the URIs mentioned in this article must be resolvable via DNS on the Internet and port-forwardings to the MailStore Server computer must be set up on the firewall or router if necessary. &lt;br /&gt;
* When using Microsoft&amp;amp;nbsp;365 to authenticate users at login, [[Accessing_the_Archive_via_Integrated_IMAP_Server|accessing the archive via IMAP]] is not possible for technical reasons.&lt;br /&gt;
* MailStore Server supports the synchronization of user accounts with the global Microsoft Cloud ''Microsoft&amp;amp;nbsp;365'' and ''Office&amp;amp;nbsp;365, operated by 21Vianet''. Other Environments like GCC, GCC&amp;amp;nbsp;High or DoD are not supported. In the following article, only the term Microsoft 365 is used for the sake of simplicity.&lt;br /&gt;
&lt;br /&gt;
== Connecting MailStore Server and Microsoft 365 ==&lt;br /&gt;
In order to synchronize user information from Microsoft 365, MailStore Server has to be connected to your Microsoft 365 tenant and been granted the required permissions. Microsoft 365 relies on Microsoft Entra ID as directory service. Each Microsoft 365 tenant corresponds to an Microsoft Entra ID tenant that stores its user information.&lt;br /&gt;
&lt;br /&gt;
=== Registering of MailStore Server as App in Microsoft Entra ID ===&lt;br /&gt;
Through registration, MailStore Server gets an identity in Microsoft Entra ID that makes it possible to authenticate to the tenant's services and use their resources.&lt;br /&gt;
* Sign in to the [https://portal.azure.com Microsoft Entra ID Portal] as a Global Administrator for your Microsoft 365 tenant.&amp;lt;br/&amp;gt;The Microsoft Entra ID Portal of ''Office 365, operated by 21Vianet'' [https://portal.azure.cn/#view/Microsoft_AAD_IAM/ActiveDirectoryMenuBlade/~/Overview can be accessed here].&lt;br /&gt;
* In the navigation menu (☰), select the option ''Microsoft Entra ID''.&lt;br /&gt;
* On the next page, select ''App registrations'' in the ''Manage'' section of the left navigation menu.&lt;br /&gt;
* Select ''New Registration''. The ''Register an application'' page appears.&lt;br /&gt;
* In the ''Name'' field, enter a meaningful display name, e.g. ''MailStore Server''. This name will be shown to users on logon later on, for example.&lt;br /&gt;
* Leave all other settings on this page to their defaults.&lt;br /&gt;
* Click on ''Register''. If the registration has been successful, you are shown the overview page of the newly registered app.&lt;br /&gt;
The ''Application (client) ID'' shown on this page identifies MailStore Server in your Microsoft Entra ID tenant and has to be copied into MailStore Server next, together with the ''Directory (tenant) ID''. Therefore, for the following steps, leave the overview page open in your web browser.&lt;br /&gt;
&lt;br /&gt;
=== Creating Credentials in MailStore Server ===&lt;br /&gt;
Credentials for Microsoft 365 consist of the aforementioned IDs and a secret that MailStore Server uses to proof its identity to Microsoft Entra ID. Microsoft recommends using certificates as secrets to identify apps in Microsoft Entra ID. When creating credentials, such a certificate is generated automatically by MailStore Server but can also be recreated later on.&lt;br /&gt;
{{Directory Services Accessing Configuration|Microsoft 365 or Microsoft 365 operated by 21 Vianet|Microsoft 365 sync 01.png}}&lt;br /&gt;
* In the ''Connection'' section, click on the button (…) next to the ''Credentials'' drop-down list.&lt;br /&gt;
* In the ''Credential Manager'' that appears, click on ''Create…''&lt;br /&gt;
* In the ''Microsoft Entra ID App Credentials'' dialog, enter the following information in the ''Settings'' section:&lt;br /&gt;
** '''Name'''&amp;lt;br/&amp;gt; A meaningful display name for the credentials, e.g. the name of your Microsoft 365 tenant.&lt;br /&gt;
** '''Application (client) ID'''&amp;lt;br/&amp;gt; The value of the corresponding field that you can copy from the Microsoft Entra ID app overview page in your web browser.&lt;br /&gt;
** '''Directory (tenant) ID'''&amp;lt;br/&amp;gt; The value of the corresponding field that you can copy from the Microsoft Entra ID app overview page in your web browser.&lt;br /&gt;
[[File:Microsoft 365 cred 01.png|center|347px]]&lt;br /&gt;
* In the ''Authentication'' section, click on the drop-down button next to the ''Certificate'' text box und select ''Download Certificate''. Save the certificate on your hard drive.&lt;br /&gt;
* Confirm your entries by clicking ''OK''.&lt;br /&gt;
* The newly created credentials are listed in the ''Credential Manager'' under the name you have entered with the type ''Microsoft 365''. Here you can also edit or delete existing credentials if necessary.&lt;br /&gt;
* Leave the ''Credential Manager'' by clicking ''Close''.&lt;br /&gt;
* The newly created credentials are selected in the corresponding drop-down list by default.&lt;br /&gt;
&lt;br /&gt;
=== Publishing Credentials in Microsoft Entra ID ===&lt;br /&gt;
For Microsoft Entra ID to validate the identity of MailStore Server, the created certificate needs to be published in Microsoft Entra ID.&lt;br /&gt;
* Switch to the Microsoft Entra ID app overview page in your web browser.&lt;br /&gt;
* Select ''Certificates &amp;amp; secrets'' in the ''Manage'' section of the left navigation menu.&lt;br /&gt;
* Click on ''Upload certificate'' in the ''Certificates'' section. Select the certificate file that you have saved previously and upload it to Microsoft Entra ID by clicking ''Add''.&lt;br /&gt;
* If uploading has been successful, the certificate's thumbprint as well as its start and expiry dates appear in the certificates list. You can compare the thumbprint and expiry date with those listed in the MailStore Credential Manager to check that you've uploaded the correct certificate.&lt;br /&gt;
&lt;br /&gt;
=== Configuring App Authentication in Microsoft Entra ID ===&lt;br /&gt;
For Microsoft Entra ID to return the result of a user's authentication request to MailStore Server, the endpoint where MailStore Server expects authentication responses, the so-called ''Redirect URI'', has to be conveyed to Microsoft Entra ID.&lt;br /&gt;
* In the Microsoft Entra ID Portal in the web browser, select ''Authentication'' in the ''Manage'' section of the left navigation menu.&lt;br /&gt;
* Click on the ''Add Redirect URI'' button on the ''Redirect URI configuration'' page.&lt;br /&gt;
* Select ''Web'' in the ''Web applications'' section of the platform selection page.&lt;br /&gt;
* In the field ''Redirect URI'', enter a URI in the format (without brackets)&lt;br /&gt;
*: &amp;lt;code&amp;gt;https://&amp;lt;fqdn&amp;gt;[:&amp;lt;port&amp;gt;]/oidc/signin&amp;lt;/code&amp;gt;&lt;br /&gt;
*; with the following components&amp;lt;nowiki&amp;gt;:&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
*: '''https://'''&amp;lt;br/&amp;gt; Specifying the &amp;lt;code&amp;gt;https://&amp;lt;/code&amp;gt; protocol is obligatory. To avoid certificate warnings during user logon, the web browsers on the client machines must trust the [[MailStore_Server_Service_Configuration#Certificate|certificate used by MailStore Server]].&lt;br /&gt;
*: '''FQDN'''&amp;lt;br/&amp;gt;The Fully Qualified Domain Name (FQDN) of your MailStore Server that consists of the machine name and the DNS domain, e.g. &amp;lt;code&amp;gt;mailstore.example.com&amp;lt;/code&amp;gt;. This name must be resolvable by all clients from which users shall be able to log on to MailStore Server.&lt;br /&gt;
*: '''Port'''&amp;lt;br/&amp;gt;The TCP port of the MailStore Web Access (&amp;lt;code&amp;gt;8462&amp;lt;/code&amp;gt; by default). This value must be equal to the port configured in the section ''Base Configuration &amp;gt; Network Settings &amp;gt; MailStore Web Access / Outlook Add-in (HTTPS)'' of the [[MailStore_Server_Service_Configuration#Services|MailStore Server Service Configuration]]. The TCP port has to be specified only if it is different from the default port of the HTTPS protocol (&amp;lt;code&amp;gt;443&amp;lt;/code&amp;gt;).&lt;br /&gt;
*: '''/oidc/signin'''&amp;lt;br/&amp;gt;The endpoint where MailStore Server expects the authentication responses of Microsoft Entra ID. This path has to be specified exactly as stated here at the end of the redirect URI.&lt;br /&gt;
* Click on ''Configure'' to add your Redirect URI.&lt;br /&gt;
* In the '''Authentication''' section switch to the '''Settings''' panel. Then, in the '''Implicit grant and hybrid flows''' section perform the following action:&lt;br /&gt;
:'''Enable''' the '''ID tokens''' option.&lt;br /&gt;
[[File:Microsoft_365_sync_id_token.png|center]]&lt;br /&gt;
* Ensure that the '''ID tokens''' option is set in the '''Implicit grant and hybrid flows''' section.&lt;br /&gt;
* Click on ''Save'' to finish the configuration of the app authentication in Microsoft Entra ID.&lt;br /&gt;
&amp;lt;div class=&amp;quot;resp-table&amp;quot;&amp;gt;&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;font-size: 85%;&amp;quot;&lt;br /&gt;
|+ Examples for valid redirect URIs&lt;br /&gt;
|-&lt;br /&gt;
! style=&amp;quot;width:80px;&amp;quot; | Product&lt;br /&gt;
! style=&amp;quot;width:80px;&amp;quot; | FQDN&lt;br /&gt;
! style=&amp;quot;width:40px;&amp;quot; | Port&lt;br /&gt;
! Resulting Redirect URI&lt;br /&gt;
|-&lt;br /&gt;
| align=&amp;quot;center&amp;quot;| MailStore Server&lt;br /&gt;
| align=&amp;quot;center&amp;quot;| mailstore.example.com&lt;br /&gt;
| align=&amp;quot;center&amp;quot;| 8462&lt;br /&gt;
| &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;https://mailstore.example.com:8462/oidc/signin&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;Redirect URI with Fully Qualified Domain Name and MailStore Web Access default  port&lt;br /&gt;
|-&lt;br /&gt;
| align=&amp;quot;center&amp;quot;| MailStore Server&lt;br /&gt;
| align=&amp;quot;center&amp;quot;| mailstore.example.com&lt;br /&gt;
| align=&amp;quot;center&amp;quot;| 443&lt;br /&gt;
| &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;https://mailstore.example.com/oidc/signin&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;The port can be ommited if the HTTPS default port 443 has been configured for MailStore Web Access or as source port of a port-forwarding on the firewall or router.&lt;br /&gt;
|-&lt;br /&gt;
| align=&amp;quot;center&amp;quot;| MailStore SPE&lt;br /&gt;
| align=&amp;quot;center&amp;quot;| archive.example.com&lt;br /&gt;
| align=&amp;quot;center&amp;quot;| 443&lt;br /&gt;
| &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;https://archive.example.com/&amp;lt;instanceid&amp;gt;/oidc/signin&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;The ''instanceid'' of the instance is part of the Redirect URI. &lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
:: &amp;lt;p class=&amp;quot;msnote&amp;quot;&amp;gt;'''Important Notice:''' Please note that the redirect URI is case-sensitive. Also review the requirements on resolving URIs in the [[#Prerequisites, Recommendations and Limitations|Prerequisites, Recommendations and Limitations]] section.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:: &amp;lt;p class=&amp;quot;msnote&amp;quot;&amp;gt;'''Important Notice:''' Please note that without setting the ''ID Token'' option, user authentication will not work.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Configuring the Redirect URI in MailStore Server ===&lt;br /&gt;
For MailStore Server to convey the redirect URI to requesting clients, it must be configured there, too.&lt;br /&gt;
* Switch to the ''Directory Services'' page in the MailStore Client.&lt;br /&gt;
* Enter the redirect URI in the corresponding field in the ''Authentication'' section. Just copy the value previously configured in Microsoft Entra ID from the web browser.&lt;br /&gt;
[[File:Microsoft 365 sync 02.png|center|450px]]&lt;br /&gt;
&lt;br /&gt;
=== Configuring API Permissions in Microsoft Entra ID ===&lt;br /&gt;
* Switch again to Microsoft Entra ID in your web browser.&lt;br /&gt;
* Select ''API permissions'' in the ''Manage'' section of the left navigation menu.&lt;br /&gt;
* Click on the ''Add a permission'' button in the ''Configured permissions'' section.&lt;br /&gt;
* On the ''Request API permissions'' menu page, select the API ''Microsoft Graph'' in the ''Commonly used Microsoft APIs'' section.&lt;br /&gt;
* Select the option ''Application permissions''.&lt;br /&gt;
* Enable the ''Directory &amp;gt; Directory.Read.All'' permission in the ''Select permissions'' section.&lt;br /&gt;
* '''New in 26.1''': Also enable the ''Mail &amp;gt; Mail.ReadWrite'' permission in the ''Select permissions'' section.&lt;br /&gt;
* Click on ''Add permissions''.&lt;br /&gt;
* The permissions are updated and the ''Directory.Read.All'' and ''Mail.ReadWrite'' permissions appear in the API permissions list under ''Microsoft Graph''.&lt;br /&gt;
* Click on the ''Add a permission'' button in the ''Configured permissions'' section again.&lt;br /&gt;
* On the ''Request API permissions'' menu page, select ''APIs my organization uses''.&lt;br /&gt;
* Search for ''Office 365 Exchange Online'' and click on the corresponding entry.&lt;br /&gt;
* Select the option ''Application permissions''.&lt;br /&gt;
* Enable the ''full_access_as_app'' permission in the ''Select permissions'' section.&lt;br /&gt;
* '''New in 25.3''': Also enable the permission ''SMTP.SendAsApp'' in the ''SMTP'' section.&lt;br /&gt;
* '''New in 26.2''': Also enable the permission ''IMAP.AccessAsApp'' in the ''IMAP'' section.&lt;br /&gt;
* Click on ''Add permissions''.&lt;br /&gt;
* The permissions are updated and the ''full_access_as_app'', ''SMTP.SendAsApp''  and ''IMAP.AccessAsApp'' permissions appear in the API permissions list under ''Exchange''.&lt;br /&gt;
* Now click on the ''Grant admin consent for &amp;lt;your tenant name&amp;gt;'' button in the ''Configured permissions'' section.&lt;br /&gt;
* Acknowledge the following notice with ''Yes''.&lt;br /&gt;
* The status of all granted permissions is updated to ''Granted for &amp;lt;your tenant name&amp;gt;''.&lt;br /&gt;
The configuration of MailStore Server's connection to Microsoft 365 within Microsoft Entra ID is now complete. You can sign out of your Microsoft Entra ID tenant and close the browser window. Switch to the ''Directory Services'' page in the MailStore Client again, all remaining configuration steps must be done there.&lt;br /&gt;
&lt;br /&gt;
[[File:Microsoft 365 sync 03.png|center]]&lt;br /&gt;
&lt;br /&gt;
=== User Database Synchronization ===&lt;br /&gt;
After configuring the connection settings as described above, you can specify filter criteria for the Microsoft 365 synchronization in this section.&lt;br /&gt;
*'''Synchronize licensed Microsoft Exchange Online users only'''&amp;lt;br/&amp;gt;Only Microsoft 365 user accounts with a Microsoft Exchange Online license assigned to them will be taken into account by the synchronization.&lt;br /&gt;
*'''Synchronize enabled users only'''&amp;lt;br/&amp;gt;Only Microsoft 365 user accounts that do not have their login to Microsoft 365 blocked will be taken into account by the synchronization.&lt;br /&gt;
*'''Sync only these groups'''&amp;lt;br/&amp;gt;Choose one or several Microsoft 365 security groups if you only want their members to be created as MailStore Server users. That way it's possible to exclude certain users from being synchronized to MailStore Server.&lt;br /&gt;
*'''Also synchronize all Microsoft 365 Groups as MailStore users'''&amp;lt;br/&amp;gt;All [https://learn.microsoft.com/en-us/microsoftteams/office-365-groups Microsoft 365 Groups] with configured email addresses will be synchronized as MailStore users. Since Microsoft 365 Group mailboxes cannot be accessed directly, those have to be excluded when [[Archiving_Emails_from_Microsoft_365_-_Modern_Authentication#Archiving_Multiple_Microsoft_365_Mailboxes_Centrally|archiving multiple Microsoft 365 mailboxes centrally]]. When [[Archiving_Emails_from_Microsoft_365_-_Modern_Authentication#Archiving_Incoming_and_Outgoing_Emails_Directly|archiving incoming and outgoing emails directly]], emails sent from and to these Groups will be archived. These users cannot login to the MailStore archive.&lt;br /&gt;
&lt;br /&gt;
{{Directory Services Options|Microsoft 365 tenant}}&lt;br /&gt;
{{Directory Services Assign Default Privileges|Microsoft 365}}&lt;br /&gt;
{{Directory Services Run Synchronization|Microsoft 365 tenant}}&lt;br /&gt;
[[File:Office365_sync_02.png|450px|center]]&lt;br /&gt;
&lt;br /&gt;
{{Directory Services Test Authentication}}&lt;br /&gt;
&lt;br /&gt;
== Updating credentials ==&lt;br /&gt;
The certificate generated by MailStore for logging into Microsoft Entra ID is valid for 3750 days (825 days before version 25.3). In order for user synchronization and archiving to work afterwards, the certificate must be updated before its validity expires.&lt;br /&gt;
&lt;br /&gt;
MailStore Server will show a notification on the dashboard in MailStore Client and in the [[Jobs#Templates|status report]] 28 days before credentials expire. You can also use the [[Administration_API_-_Function_Reference#GetCredentials|GetCredentials API command]] to retrieve the expiration date.&lt;br /&gt;
&lt;br /&gt;
To update the credentials, proceed as follows:&lt;br /&gt;
&lt;br /&gt;
=== Updating credentials in MailStore Server ===&lt;br /&gt;
&lt;br /&gt;
* Log on to MailStore Client as a MailStore Server administrator.&lt;br /&gt;
* Click on ''Administrative Tools'' &amp;gt; ''Users and Archives'' &amp;gt; ''Directory Services''.&lt;br /&gt;
* In the ''Integration section'', make sure that the directory service type is set to ''Microsoft 365 (Modern Authentication)'' or ''Microsoft 365 operated by 21 Vianet (Modern Authentication)''.&lt;br /&gt;
[[File:Microsoft 365 sync 01.png|center|347px]]&lt;br /&gt;
* In the ''Connection'' section, click on the button (…) next to the ''Credentials'' drop-down list.&lt;br /&gt;
* In the ''Credential Manager'' that appears, click on the currently used credential object and click ''Edit…''&lt;br /&gt;
: [[File:Microsoft 365 cred 02.png|center|347px]]&lt;br /&gt;
* In the ''Authentication'' section, click on the drop-down button next to the ''Certificate'' text box und select ''Create Certificate...''.&lt;br /&gt;
* Confirm the process.&lt;br /&gt;
* In the ''Authentication'' section, click on the drop-down button next to the ''Certificate'' text box und select ''Download Certificate''. Save the certificate on your hard drive.&lt;br /&gt;
* Confirm your changes by clicking ''OK''.&lt;br /&gt;
* Leave the ''Credential Manager'' by clicking ''Apply''.&lt;br /&gt;
* The newly created credentials are selected in the corresponding drop-down list by default.&lt;br /&gt;
* If you are using Microsoft 365 in hybrid mode and synchronizing users from your Active Directory, set the directory service back to ''Active Directory''.&lt;br /&gt;
&lt;br /&gt;
=== Updating credentials in Microsoft Entra ID ===&lt;br /&gt;
&lt;br /&gt;
* Sign in to the [https://portal.azure.com Microsoft Entra ID Portal] as a Global Administrator for your Microsoft 365 tenant.&amp;lt;br/&amp;gt;The Microsoft Entra ID Portal of ''Office 365, operated by 21Vianet'' [https://portal.azure.cn/#view/Microsoft_AAD_IAM/ActiveDirectoryMenuBlade/~/Overview can be accessed here].&lt;br /&gt;
* In the navigation menu (☰), select the option ''Microsoft Entra ID''.&lt;br /&gt;
* On the next page, select ''App registrations'' in the ''Manage'' section of the left navigation menu.&lt;br /&gt;
* Select the application that is currently used by MailStore.&lt;br /&gt;
* Select ''Certificates &amp;amp; secrets'' in the ''Manage'' section of the left navigation menu.&lt;br /&gt;
* Click on ''Upload certificate'' in the ''Certificates'' section. Select the certificate file that you have saved previously and upload it to Microsoft Entra ID by clicking ''Add''.&lt;br /&gt;
* If uploading has been successful, the certificate's thumbprint as well as its start and expiry dates appear in the certificates list. You can compare the thumbprint and expiry date with those listed in the MailStore Credential Manager to check that you've uploaded the correct certificate.&lt;br /&gt;
* The previously used certificate can be removed from the list.&lt;br /&gt;
&lt;br /&gt;
[[de:Synchronisieren_von_Benutzerkonten_mit_Microsoft_365_(Modern_Authentication)]]&lt;br /&gt;
[[en:Synchronizing_User_Accounts_with_Microsoft_365_(Modern_Authentication)]]&lt;/div&gt;</summary>
		<author><name>Ltalaschus</name></author>
	</entry>
	<entry>
		<id>https://help.mailstore.com/en/server/index.php?title=Microsoft_365_Export&amp;diff=8006</id>
		<title>Microsoft 365 Export</title>
		<link rel="alternate" type="text/html" href="https://help.mailstore.com/en/server/index.php?title=Microsoft_365_Export&amp;diff=8006"/>
		<updated>2026-03-23T16:48:40Z</updated>

		<summary type="html">&lt;p&gt;Ltalaschus: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
To be able to export emails to a Microsoft 365 mailbox, MailStore Server requires specific permissions on the target mailbox for an export. This article describes how to set up these permissions. General information about setting up the export process can be found in the article [[Exporting Email]].&lt;br /&gt;
== Steps for setting up needed permissions ==&lt;br /&gt;
=== Prerequisites in Azure Portal===&lt;br /&gt;
A registered App is needed with proper settings to be allowed to use IMAP&lt;br /&gt;
* Go to [https://portal.azure.com/#view/Microsoft_AAD_IAM/ActiveDirectoryMenuBlade/~/RegisteredApps| App Registrations] or navigate from the Azure Portal home to the &amp;lt;b&amp;gt;App registrations&amp;lt;/b&amp;gt; service&lt;br /&gt;
* Select your Application. If you're already using directory service synchronization or archiving from Microsoft 365, you already have such an app registration. If not creating such an app registration is described in [[Synchronizing_User_Accounts_with_Microsoft_365_-_Modern_Authentication|Synchronizing User Accounts with Microsoft 365]]. &lt;br /&gt;
* Navigate to &amp;lt;b&amp;gt;Manage/API permissions&amp;lt;/b&amp;gt; and make sure you have enabled or activated the &amp;lt;b&amp;gt;IMAP.AccessAsApp&amp;lt;/b&amp;gt; permission when configuring the API permissions in the Office 365 Exchange Online area.&lt;br /&gt;
=== Prerequisites for Powershell===&lt;br /&gt;
The PowerShell module ''ExchangeOnlineManagement'' is required to set the permission. &lt;br /&gt;
* The presence of the module can be checked with the following command.&lt;br /&gt;
*; &amp;lt;source lang=&amp;quot;powershell&amp;quot; smart-tabs=&amp;quot;true&amp;quot; toolbar=&amp;quot;false&amp;quot; gutter=&amp;quot;false&amp;quot;&amp;gt;Get-Module ExchangeOnlineManagement -ListAvailable&amp;lt;/source&amp;gt;&lt;br /&gt;
* If the output is empty, the module can be installed with the following command:&lt;br /&gt;
*; &amp;lt;source lang=&amp;quot;powershell&amp;quot; smart-tabs=&amp;quot;true&amp;quot; toolbar=&amp;quot;false&amp;quot; gutter=&amp;quot;false&amp;quot;&amp;gt;Install-Module -Name ExchangeOnlineManagement&amp;lt;/source&amp;gt;&lt;br /&gt;
* If the output is not empty but the version is older than 3.8.0, the module can be updated with the following command:&lt;br /&gt;
*; &amp;lt;source lang=&amp;quot;powershell&amp;quot; smart-tabs=&amp;quot;true&amp;quot; toolbar=&amp;quot;false&amp;quot; gutter=&amp;quot;false&amp;quot;&amp;gt;Update-Module -Name ExchangeOnlineManagement&amp;lt;/source&amp;gt;&lt;br /&gt;
* Then the module can be loaded:&lt;br /&gt;
*; &amp;lt;source lang=&amp;quot;powershell&amp;quot; smart-tabs=&amp;quot;true&amp;quot; toolbar=&amp;quot;false&amp;quot; gutter=&amp;quot;false&amp;quot;&amp;gt;Import-module ExchangeOnlineManagement&amp;lt;/source&amp;gt;&lt;br /&gt;
=== Add permission on target mailbox ===&lt;br /&gt;
* Connect with your client, use a user who has ''Role Management'' permissions:&lt;br /&gt;
*; &amp;lt;source lang=&amp;quot;powershell&amp;quot; smart-tabs=&amp;quot;true&amp;quot; toolbar=&amp;quot;false&amp;quot; gutter=&amp;quot;false&amp;quot;&amp;gt;Connect-ExchangeOnline -Organization &amp;lt;tenantID&amp;gt;&amp;lt;/source&amp;gt;&lt;br /&gt;
* Creating an app registration also resulted in the creation of an Enterprise App with its ''own ObjectID'' in your tenant. The next step requires the Enterprise App's ObjectID (not from the original app registration) and ApplicationID. Both can be found in the Entra ID Portal at [https://portal.azure.com/#view/Microsoft_AAD_IAM/StartboardApplicationsMenuBlade/~/AppAppsPreview this page].&lt;br /&gt;
* If you haven't before create a service principal for this Enterprise App:&lt;br /&gt;
*; &amp;lt;source lang=&amp;quot;powershell&amp;quot; smart-tabs=&amp;quot;true&amp;quot; toolbar=&amp;quot;false&amp;quot; gutter=&amp;quot;false&amp;quot;&amp;gt;New-ServicePrincipal -AppId &amp;lt;appID&amp;gt; -ObjectId &amp;lt;enterpriseAppObjectID&amp;gt; -DisplayName &amp;quot;MailStore Service Principal&amp;quot;&amp;lt;/source&amp;gt;&lt;br /&gt;
* The service principal must now be granted full access on the target mailbox. This email address must later be specified as the export mailbox in the MailStore Export profile:&lt;br /&gt;
*; &amp;lt;source lang=&amp;quot;powershell&amp;quot; smart-tabs=&amp;quot;true&amp;quot; toolbar=&amp;quot;false&amp;quot; gutter=&amp;quot;false&amp;quot;&amp;gt;Add-MailboxPermission -Identity &amp;quot;emailAddressOf@target.user&amp;quot; -User &amp;lt;enterpriseAppObjectID&amp;gt; -AccessRights FullAccess&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting ==&lt;br /&gt;
* If you receive a &amp;lt;b&amp;gt;Command Error. 12 (BAD).&amp;lt;/b&amp;gt; when executing or testing the export profile the permission is either missing or may not yet have been distributed withing the Exchange Online Infrastructure. You can check the permission with &lt;br /&gt;
*; &amp;lt;source lang=&amp;quot;powershell&amp;quot; smart-tabs=&amp;quot;true&amp;quot; toolbar=&amp;quot;false&amp;quot; gutter=&amp;quot;false&amp;quot;&amp;gt;Get-MailboxPermission -Identity &amp;quot;emailAddressOf@target.user&amp;quot; -User &amp;lt;enterpriseAppObjectID&amp;gt;&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[de:Microsoft 365 Export]]&lt;br /&gt;
[[en:Microsoft 365 Export]]&lt;/div&gt;</summary>
		<author><name>Ltalaschus</name></author>
	</entry>
	<entry>
		<id>https://help.mailstore.com/en/server/index.php?title=Microsoft_365_Export&amp;diff=8005</id>
		<title>Microsoft 365 Export</title>
		<link rel="alternate" type="text/html" href="https://help.mailstore.com/en/server/index.php?title=Microsoft_365_Export&amp;diff=8005"/>
		<updated>2026-03-23T16:13:07Z</updated>

		<summary type="html">&lt;p&gt;Ltalaschus: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
To be able to export emails to a Microsoft 365 mailbox, MailStore Server requires specific permissions on the target mailbox for an export. This article describes how to set up these permissions. General information about setting up the export process can be found in the article [[Exporting Email]].&lt;br /&gt;
== Steps for setting up needed permissions ==&lt;br /&gt;
=== Prerequisites in Azure Portal===&lt;br /&gt;
A registered App is needed with proper settings to be allowed to use IMAP&lt;br /&gt;
* Go to [https://portal.azure.com/#view/Microsoft_AAD_IAM/ActiveDirectoryMenuBlade/~/RegisteredApps| App Registrations] or navigate from the Azure Portal home to the &amp;lt;b&amp;gt;App registrations&amp;lt;/b&amp;gt; service&lt;br /&gt;
* Select your Application. If you're already using directory service synchronization or archiving from Microsoft 365, you already have such an app registration. If not creating such an app registration is described in [[Synchronizing_User_Accounts_with_Microsoft_365_-_Modern_Authentication|Synchronizing User Accounts with Microsoft 365]]. &lt;br /&gt;
* Navigate to &amp;lt;b&amp;gt;Manage/API permissions&amp;lt;/b&amp;gt; and make sure you have enabled or activated the &amp;lt;b&amp;gt;IMAP.AccessAsApp&amp;lt;/b&amp;gt; permission when configuring the API permissions in the Office 365 Exchange Online area.&lt;br /&gt;
=== Prerequisites for Powershell===&lt;br /&gt;
The PowerShell module ''ExchangeOnlineManagement'' is required to set the permission. &lt;br /&gt;
* The presence of the module can be checked with the following command.&lt;br /&gt;
*; &amp;lt;source lang=&amp;quot;powershell&amp;quot; smart-tabs=&amp;quot;true&amp;quot; toolbar=&amp;quot;false&amp;quot; gutter=&amp;quot;false&amp;quot;&amp;gt;Get-Module ExchangeOnlineManagement -ListAvailable&amp;lt;/source&amp;gt;&lt;br /&gt;
* If the output is empty, the module can be installed with the following command:&lt;br /&gt;
*; &amp;lt;source lang=&amp;quot;powershell&amp;quot; smart-tabs=&amp;quot;true&amp;quot; toolbar=&amp;quot;false&amp;quot; gutter=&amp;quot;false&amp;quot;&amp;gt;Install-Module -Name ExchangeOnlineManagement&amp;lt;/source&amp;gt;&lt;br /&gt;
* If the output is not empty but the version is older than 3.8.0, the module can be updated with the following command:&lt;br /&gt;
*; &amp;lt;source lang=&amp;quot;powershell&amp;quot; smart-tabs=&amp;quot;true&amp;quot; toolbar=&amp;quot;false&amp;quot; gutter=&amp;quot;false&amp;quot;&amp;gt;Update-Module -Name ExchangeOnlineManagement&amp;lt;/source&amp;gt;&lt;br /&gt;
* Then the module can be loaded:&lt;br /&gt;
*; &amp;lt;source lang=&amp;quot;powershell&amp;quot; smart-tabs=&amp;quot;true&amp;quot; toolbar=&amp;quot;false&amp;quot; gutter=&amp;quot;false&amp;quot;&amp;gt;Import-module ExchangeOnlineManagement&amp;lt;/source&amp;gt;&lt;br /&gt;
=== Add permission on target mailbox ===&lt;br /&gt;
* Connect with your client, use a user who has ''Role Management'' permissions:&lt;br /&gt;
*; &amp;lt;source lang=&amp;quot;powershell&amp;quot; smart-tabs=&amp;quot;true&amp;quot; toolbar=&amp;quot;false&amp;quot; gutter=&amp;quot;false&amp;quot;&amp;gt;Connect-ExchangeOnline -Organization &amp;lt;tenantID&amp;gt;&amp;lt;/source&amp;gt;&lt;br /&gt;
* Creating an app registration also resulted in the creation of an Enterprise App with its ''own ObjectID'' in your tenant. The next step requires the Enterprise App's ObjectID (not from the original app registration) and ApplicationID. Both can be found in the Entra ID Portal at [https://portal.azure.com/#view/Microsoft_AAD_IAM/StartboardApplicationsMenuBlade/~/AppAppsPreview this page].&lt;br /&gt;
* If you haven't before create a service principal for this Enterprise App:&lt;br /&gt;
*; &amp;lt;source lang=&amp;quot;powershell&amp;quot; smart-tabs=&amp;quot;true&amp;quot; toolbar=&amp;quot;false&amp;quot; gutter=&amp;quot;false&amp;quot;&amp;gt;New-ServicePrincipal -AppId &amp;lt;appID&amp;gt; -ObjectId &amp;lt;enterpriseAppObjectID&amp;gt; -DisplayName &amp;quot;MailStore Service Principal&amp;quot;&amp;lt;/source&amp;gt;&lt;br /&gt;
* The service principal must now be granted full access on the target mailbox. This email address must later be specified as the export mailbox in the MailStore Export profile:&lt;br /&gt;
*; &amp;lt;source lang=&amp;quot;powershell&amp;quot; smart-tabs=&amp;quot;true&amp;quot; toolbar=&amp;quot;false&amp;quot; gutter=&amp;quot;false&amp;quot;&amp;gt;Add-MailboxPermission -Identity &amp;quot;emailAddressOf@sending.user&amp;quot; -User &amp;lt;enterpriseAppObjectID&amp;gt; -AccessRights FullAccess&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting ==&lt;br /&gt;
* If you receive a &amp;lt;b&amp;gt;Command Error. 12 (BAD).&amp;lt;/b&amp;gt; when executing or testing the export profile the permission is either missing or may not yet have been distributed withing the Exchange Online Infrastructure. You can check the permission with &lt;br /&gt;
*; &amp;lt;source lang=&amp;quot;powershell&amp;quot; smart-tabs=&amp;quot;true&amp;quot; toolbar=&amp;quot;false&amp;quot; gutter=&amp;quot;false&amp;quot;&amp;gt;Get-MailboxPermission -Identity &amp;quot;emailAddressOf@sending.user&amp;quot; -User &amp;lt;enterpriseAppObjectID&amp;gt;&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[de:Microsoft 365 Export]]&lt;br /&gt;
[[en:Microsoft 365 Export]]&lt;/div&gt;</summary>
		<author><name>Ltalaschus</name></author>
	</entry>
	<entry>
		<id>https://help.mailstore.com/en/server/index.php?title=Microsoft_365_Export&amp;diff=8004</id>
		<title>Microsoft 365 Export</title>
		<link rel="alternate" type="text/html" href="https://help.mailstore.com/en/server/index.php?title=Microsoft_365_Export&amp;diff=8004"/>
		<updated>2026-03-23T15:34:26Z</updated>

		<summary type="html">&lt;p&gt;Ltalaschus: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
To be able to export emails to a Microsoft 365 mailbox, MailStore Server requires specific permissions on the target mailbox for an export. The more common help for exporting can be found in the article [[Exporting Email]].&lt;br /&gt;
== Steps for setting up needed permissions ==&lt;br /&gt;
=== Prerequisites in Azure Portal===&lt;br /&gt;
A registered App is needed with proper settings to be allowed to use IMAP&lt;br /&gt;
* Go to [https://portal.azure.com/#view/Microsoft_AAD_IAM/ActiveDirectoryMenuBlade/~/RegisteredApps| App Registrations] or navigate from the Azure Portal home to the &amp;lt;b&amp;gt;App registrations&amp;lt;/b&amp;gt; service&lt;br /&gt;
* Select your Application. If you're already using directory service synchronization or archiving from Microsoft 365, you already have such an app registration. If not creating such an app registration is described in [[Synchronizing_User_Accounts_with_Microsoft_365_-_Modern_Authentication|Synchronizing User Accounts with Microsoft 365]]. &lt;br /&gt;
* Navigate to &amp;lt;b&amp;gt;Manage/API permissions&amp;lt;/b&amp;gt; and make sure you have enabled or activated the &amp;lt;b&amp;gt;IMAP.AccessAsApp&amp;lt;/b&amp;gt; permission when configuring the API permissions in the Office 365 Exchange Online area.&lt;br /&gt;
=== Prerequisites for Powershell===&lt;br /&gt;
The PowerShell module ''ExchangeOnlineManagement'' is required to set the permission. &lt;br /&gt;
* The presence of the module can be checked with the following command.&lt;br /&gt;
*; &amp;lt;source lang=&amp;quot;powershell&amp;quot; smart-tabs=&amp;quot;true&amp;quot; toolbar=&amp;quot;false&amp;quot; gutter=&amp;quot;false&amp;quot;&amp;gt;Get-Module ExchangeOnlineManagement -ListAvailable&amp;lt;/source&amp;gt;&lt;br /&gt;
* If the output is empty, the module can be installed with the following command:&lt;br /&gt;
*; &amp;lt;source lang=&amp;quot;powershell&amp;quot; smart-tabs=&amp;quot;true&amp;quot; toolbar=&amp;quot;false&amp;quot; gutter=&amp;quot;false&amp;quot;&amp;gt;Install-Module -Name ExchangeOnlineManagement&amp;lt;/source&amp;gt;&lt;br /&gt;
* If the output is not empty but the version is older than 3.8.0, the module can be updated with the following command:&lt;br /&gt;
*; &amp;lt;source lang=&amp;quot;powershell&amp;quot; smart-tabs=&amp;quot;true&amp;quot; toolbar=&amp;quot;false&amp;quot; gutter=&amp;quot;false&amp;quot;&amp;gt;Update-Module -Name ExchangeOnlineManagement&amp;lt;/source&amp;gt;&lt;br /&gt;
* Then the module can be loaded:&lt;br /&gt;
*; &amp;lt;source lang=&amp;quot;powershell&amp;quot; smart-tabs=&amp;quot;true&amp;quot; toolbar=&amp;quot;false&amp;quot; gutter=&amp;quot;false&amp;quot;&amp;gt;Import-module ExchangeOnlineManagement&amp;lt;/source&amp;gt;&lt;br /&gt;
=== Add permission on target mailbox ===&lt;br /&gt;
* Connect with your client, use a user who has ''Role Management'' permissions:&lt;br /&gt;
*; &amp;lt;source lang=&amp;quot;powershell&amp;quot; smart-tabs=&amp;quot;true&amp;quot; toolbar=&amp;quot;false&amp;quot; gutter=&amp;quot;false&amp;quot;&amp;gt;Connect-ExchangeOnline -Organization &amp;lt;tenantID&amp;gt;&amp;lt;/source&amp;gt;&lt;br /&gt;
* Creating an app registration also resulted in the creation of an Enterprise App with its ''own ObjectID'' in your tenant. The next step requires the Enterprise App's ObjectID (not from the original app registration) and ApplicationID. Both can be found in the Entra ID Portal at [https://portal.azure.com/#view/Microsoft_AAD_IAM/StartboardApplicationsMenuBlade/~/AppAppsPreview this page].&lt;br /&gt;
* If you haven't before create a service principal for this Enterprise App:&lt;br /&gt;
*; &amp;lt;source lang=&amp;quot;powershell&amp;quot; smart-tabs=&amp;quot;true&amp;quot; toolbar=&amp;quot;false&amp;quot; gutter=&amp;quot;false&amp;quot;&amp;gt;New-ServicePrincipal -AppId &amp;lt;appID&amp;gt; -ObjectId &amp;lt;enterpriseAppObjectID&amp;gt; -DisplayName &amp;quot;MailStore Service Principal&amp;quot;&amp;lt;/source&amp;gt;&lt;br /&gt;
* The service principal must now be granted full access on the target mailbox. This email address must later be specified as the export mailbox in the MailStore Export profile:&lt;br /&gt;
*; &amp;lt;source lang=&amp;quot;powershell&amp;quot; smart-tabs=&amp;quot;true&amp;quot; toolbar=&amp;quot;false&amp;quot; gutter=&amp;quot;false&amp;quot;&amp;gt;Add-MailboxPermission -Identity &amp;quot;emailAddressOf@sending.user&amp;quot; -User &amp;lt;enterpriseAppObjectID&amp;gt; -AccessRights FullAccess&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting ==&lt;br /&gt;
* If you receive a &amp;lt;b&amp;gt;Command Error. 12 (BAD).&amp;lt;/b&amp;gt; when executing or testing the export profile the permission is either missing or may not yet have been distributed withing the Exchange Online Infrastructure. You can check the permission with &lt;br /&gt;
*; &amp;lt;source lang=&amp;quot;powershell&amp;quot; smart-tabs=&amp;quot;true&amp;quot; toolbar=&amp;quot;false&amp;quot; gutter=&amp;quot;false&amp;quot;&amp;gt;Get-MailboxPermission -Identity &amp;quot;emailAddressOf@sending.user&amp;quot; -User &amp;lt;enterpriseAppObjectID&amp;gt;&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[de:Microsoft 365 Export]]&lt;br /&gt;
[[en:Microsoft 365 Export]]&lt;/div&gt;</summary>
		<author><name>Ltalaschus</name></author>
	</entry>
	<entry>
		<id>https://help.mailstore.com/en/server/index.php?title=Synchronizing_User_Accounts_with_Microsoft_365_-_Modern_Authentication&amp;diff=7990</id>
		<title>Synchronizing User Accounts with Microsoft 365 - Modern Authentication</title>
		<link rel="alternate" type="text/html" href="https://help.mailstore.com/en/server/index.php?title=Synchronizing_User_Accounts_with_Microsoft_365_-_Modern_Authentication&amp;diff=7990"/>
		<updated>2026-03-19T13:21:40Z</updated>

		<summary type="html">&lt;p&gt;Ltalaschus: /* User Database Synchronization */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Directory Services Preamble|Microsoft 365 tenant|Microsoft 365||}}&lt;br /&gt;
== Prerequisites, Recommendations and Limitations ==&lt;br /&gt;
* For best user experience, the certificate used by MailStore Server should be trusted by all clients and the used web browsers. Using a certificate that is signed by a trusted certificate authority or [[Using_Lets_Encrypt_Certificates|using Let's Encrypt certificates]] is highly recommended.&lt;br /&gt;
* If you have archived emails from an Exchange server and synchronized users from an Active Directory until now, follow the article [[Changing Archiving from Microsoft Exchange Server to Microsoft 365]]&lt;br /&gt;
* If users are supposed to log in to MailStore Server from outside the organization's network without a VPN using [[Accessing_the_Archive_with_the_MailStore_Client_software|MailStore Client]], [[Accessing_the_Archive_with_the_Microsoft_Outlook_integration|MailStore Outlook Add-in]] or the [[Accessing_the_Archive_with_MailStore_Web_Access|Web Access]], the URIs mentioned in this article must be resolvable via DNS on the Internet and port-forwardings to the MailStore Server computer must be set up on the firewall or router if necessary. &lt;br /&gt;
* When using Microsoft&amp;amp;nbsp;365 to authenticate users at login, [[Accessing_the_Archive_via_Integrated_IMAP_Server|accessing the archive via IMAP]] is not possible for technical reasons.&lt;br /&gt;
* MailStore Server supports the synchronization of user accounts with the global Microsoft Cloud ''Microsoft&amp;amp;nbsp;365'' and ''Office&amp;amp;nbsp;365, operated by 21Vianet''. Other Environments like GCC, GCC&amp;amp;nbsp;High or DoD are not supported. In the following article, only the term Microsoft 365 is used for the sake of simplicity.&lt;br /&gt;
&lt;br /&gt;
== Connecting MailStore Server and Microsoft 365 ==&lt;br /&gt;
In order to synchronize user information from Microsoft 365, MailStore Server has to be connected to your Microsoft 365 tenant and been granted the required permissions. Microsoft 365 relies on Microsoft Entra ID as directory service. Each Microsoft 365 tenant corresponds to an Microsoft Entra ID tenant that stores its user information.&lt;br /&gt;
&lt;br /&gt;
=== Registering of MailStore Server as App in Microsoft Entra ID ===&lt;br /&gt;
Through registration, MailStore Server gets an identity in Microsoft Entra ID that makes it possible to authenticate to the tenant's services and use their resources.&lt;br /&gt;
* Sign in to the [https://portal.azure.com Microsoft Entra ID Portal] as a Global Administrator for your Microsoft 365 tenant.&amp;lt;br/&amp;gt;The Microsoft Entra ID Portal of ''Office 365, operated by 21Vianet'' [https://portal.azure.cn/#view/Microsoft_AAD_IAM/ActiveDirectoryMenuBlade/~/Overview can be accessed here].&lt;br /&gt;
* In the navigation menu (☰), select the option ''Microsoft Entra ID''.&lt;br /&gt;
* On the next page, select ''App registrations'' in the ''Manage'' section of the left navigation menu.&lt;br /&gt;
* Select ''New Registration''. The ''Register an application'' page appears.&lt;br /&gt;
* In the ''Name'' field, enter a meaningful display name, e.g. ''MailStore Server''. This name will be shown to users on logon later on, for example.&lt;br /&gt;
* Leave all other settings on this page to their defaults.&lt;br /&gt;
* Click on ''Register''. If the registration has been successful, you are shown the overview page of the newly registered app.&lt;br /&gt;
The ''Application (client) ID'' shown on this page identifies MailStore Server in your Microsoft Entra ID tenant and has to be copied into MailStore Server next, together with the ''Directory (tenant) ID''. Therefore, for the following steps, leave the overview page open in your web browser.&lt;br /&gt;
&lt;br /&gt;
=== Creating Credentials in MailStore Server ===&lt;br /&gt;
Credentials for Microsoft 365 consist of the aforementioned IDs and a secret that MailStore Server uses to proof its identity to Microsoft Entra ID. Microsoft recommends using certificates as secrets to identify apps in Microsoft Entra ID. When creating credentials, such a certificate is generated automatically by MailStore Server but can also be recreated later on.&lt;br /&gt;
{{Directory Services Accessing Configuration|Microsoft 365 or Microsoft 365 operated by 21 Vianet|Microsoft 365 sync 01.png}}&lt;br /&gt;
* In the ''Connection'' section, click on the button (…) next to the ''Credentials'' drop-down list.&lt;br /&gt;
* In the ''Credential Manager'' that appears, click on ''Create…''&lt;br /&gt;
* In the ''Microsoft Entra ID App Credentials'' dialog, enter the following information in the ''Settings'' section:&lt;br /&gt;
** '''Name'''&amp;lt;br/&amp;gt; A meaningful display name for the credentials, e.g. the name of your Microsoft 365 tenant.&lt;br /&gt;
** '''Application (client) ID'''&amp;lt;br/&amp;gt; The value of the corresponding field that you can copy from the Microsoft Entra ID app overview page in your web browser.&lt;br /&gt;
** '''Directory (tenant) ID'''&amp;lt;br/&amp;gt; The value of the corresponding field that you can copy from the Microsoft Entra ID app overview page in your web browser.&lt;br /&gt;
[[File:Microsoft 365 cred 01.png|center|347px]]&lt;br /&gt;
* In the ''Authentication'' section, click on the drop-down button next to the ''Certificate'' text box und select ''Download Certificate''. Save the certificate on your hard drive.&lt;br /&gt;
* Confirm your entries by clicking ''OK''.&lt;br /&gt;
* The newly created credentials are listed in the ''Credential Manager'' under the name you have entered with the type ''Microsoft 365''. Here you can also edit or delete existing credentials if necessary.&lt;br /&gt;
* Leave the ''Credential Manager'' by clicking ''Close''.&lt;br /&gt;
* The newly created credentials are selected in the corresponding drop-down list by default.&lt;br /&gt;
&lt;br /&gt;
=== Publishing Credentials in Microsoft Entra ID ===&lt;br /&gt;
For Microsoft Entra ID to validate the identity of MailStore Server, the created certificate needs to be published in Microsoft Entra ID.&lt;br /&gt;
* Switch to the Microsoft Entra ID app overview page in your web browser.&lt;br /&gt;
* Select ''Certificates &amp;amp; secrets'' in the ''Manage'' section of the left navigation menu.&lt;br /&gt;
* Click on ''Upload certificate'' in the ''Certificates'' section. Select the certificate file that you have saved previously and upload it to Microsoft Entra ID by clicking ''Add''.&lt;br /&gt;
* If uploading has been successful, the certificate's thumbprint as well as its start and expiry dates appear in the certificates list. You can compare the thumbprint and expiry date with those listed in the MailStore Credential Manager to check that you've uploaded the correct certificate.&lt;br /&gt;
&lt;br /&gt;
=== Configuring App Authentication in Microsoft Entra ID ===&lt;br /&gt;
For Microsoft Entra ID to return the result of a user's authentication request to MailStore Server, the endpoint where MailStore Server expects authentication responses, the so-called ''Redirect URI'', has to be conveyed to Microsoft Entra ID.&lt;br /&gt;
* In the Microsoft Entra ID Portal in the web browser, select ''Authentication'' in the ''Manage'' section of the left navigation menu.&lt;br /&gt;
* Click on the ''Add Redirect URI'' button on the ''Redirect URI configuration'' page.&lt;br /&gt;
* Select ''Web'' in the ''Web applications'' section of the platform selection page.&lt;br /&gt;
* In the field ''Redirect URI'', enter a URI in the format (without brackets)&lt;br /&gt;
*: &amp;lt;code&amp;gt;https://&amp;lt;fqdn&amp;gt;[:&amp;lt;port&amp;gt;]/oidc/signin&amp;lt;/code&amp;gt;&lt;br /&gt;
*; with the following components&amp;lt;nowiki&amp;gt;:&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
*: '''https://'''&amp;lt;br/&amp;gt; Specifying the &amp;lt;code&amp;gt;https://&amp;lt;/code&amp;gt; protocol is obligatory. To avoid certificate warnings during user logon, the web browsers on the client machines must trust the [[MailStore_Server_Service_Configuration#Certificate|certificate used by MailStore Server]].&lt;br /&gt;
*: '''FQDN'''&amp;lt;br/&amp;gt;The Fully Qualified Domain Name (FQDN) of your MailStore Server that consists of the machine name and the DNS domain, e.g. &amp;lt;code&amp;gt;mailstore.example.com&amp;lt;/code&amp;gt;. This name must be resolvable by all clients from which users shall be able to log on to MailStore Server.&lt;br /&gt;
*: '''Port'''&amp;lt;br/&amp;gt;The TCP port of the MailStore Web Access (&amp;lt;code&amp;gt;8462&amp;lt;/code&amp;gt; by default). This value must be equal to the port configured in the section ''Base Configuration &amp;gt; Network Settings &amp;gt; MailStore Web Access / Outlook Add-in (HTTPS)'' of the [[MailStore_Server_Service_Configuration#Services|MailStore Server Service Configuration]]. The TCP port has to be specified only if it is different from the default port of the HTTPS protocol (&amp;lt;code&amp;gt;443&amp;lt;/code&amp;gt;).&lt;br /&gt;
*: '''/oidc/signin'''&amp;lt;br/&amp;gt;The endpoint where MailStore Server expects the authentication responses of Microsoft Entra ID. This path has to be specified exactly as stated here at the end of the redirect URI.&lt;br /&gt;
* Click on ''Configure'' to add your Redirect URI.&lt;br /&gt;
* In the '''Authentication''' section switch to the '''Settings''' panel. Then, in the '''Implicit grant and hybrid flows''' section perform the following action:&lt;br /&gt;
:'''Enable''' the '''ID tokens''' option.&lt;br /&gt;
[[File:Microsoft_365_sync_id_token.png|center]]&lt;br /&gt;
* Ensure that the '''ID tokens''' option is set in the '''Implicit grant and hybrid flows''' section.&lt;br /&gt;
* Click on ''Save'' to finish the configuration of the app authentication in Microsoft Entra ID.&lt;br /&gt;
&amp;lt;div class=&amp;quot;resp-table&amp;quot;&amp;gt;&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;font-size: 85%;&amp;quot;&lt;br /&gt;
|+ Examples for valid redirect URIs&lt;br /&gt;
|-&lt;br /&gt;
! style=&amp;quot;width:80px;&amp;quot; | Product&lt;br /&gt;
! style=&amp;quot;width:80px;&amp;quot; | FQDN&lt;br /&gt;
! style=&amp;quot;width:40px;&amp;quot; | Port&lt;br /&gt;
! Resulting Redirect URI&lt;br /&gt;
|-&lt;br /&gt;
| align=&amp;quot;center&amp;quot;| MailStore Server&lt;br /&gt;
| align=&amp;quot;center&amp;quot;| mailstore.example.com&lt;br /&gt;
| align=&amp;quot;center&amp;quot;| 8462&lt;br /&gt;
| &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;https://mailstore.example.com:8462/oidc/signin&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;Redirect URI with Fully Qualified Domain Name and MailStore Web Access default  port&lt;br /&gt;
|-&lt;br /&gt;
| align=&amp;quot;center&amp;quot;| MailStore Server&lt;br /&gt;
| align=&amp;quot;center&amp;quot;| mailstore.example.com&lt;br /&gt;
| align=&amp;quot;center&amp;quot;| 443&lt;br /&gt;
| &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;https://mailstore.example.com/oidc/signin&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;The port can be ommited if the HTTPS default port 443 has been configured for MailStore Web Access or as source port of a port-forwarding on the firewall or router.&lt;br /&gt;
|-&lt;br /&gt;
| align=&amp;quot;center&amp;quot;| MailStore SPE&lt;br /&gt;
| align=&amp;quot;center&amp;quot;| archive.example.com&lt;br /&gt;
| align=&amp;quot;center&amp;quot;| 443&lt;br /&gt;
| &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;https://archive.example.com/&amp;lt;instanceid&amp;gt;/oidc/signin&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;The ''instanceid'' of the instance is part of the Redirect URI. &lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
:: &amp;lt;p class=&amp;quot;msnote&amp;quot;&amp;gt;'''Important Notice:''' Please note that the redirect URI is case-sensitive. Also review the requirements on resolving URIs in the [[#Prerequisites, Recommendations and Limitations|Prerequisites, Recommendations and Limitations]] section.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:: &amp;lt;p class=&amp;quot;msnote&amp;quot;&amp;gt;'''Important Notice:''' Please note that without setting the ''ID Token'' option, user authentication will not work.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Configuring the Redirect URI in MailStore Server ===&lt;br /&gt;
For MailStore Server to convey the redirect URI to requesting clients, it must be configured there, too.&lt;br /&gt;
* Switch to the ''Directory Services'' page in the MailStore Client.&lt;br /&gt;
* Enter the redirect URI in the corresponding field in the ''Authentication'' section. Just copy the value previously configured in Microsoft Entra ID from the web browser.&lt;br /&gt;
[[File:Microsoft 365 sync 02.png|center|450px]]&lt;br /&gt;
&lt;br /&gt;
=== Configuring API Permissions in Microsoft Entra ID ===&lt;br /&gt;
* Switch again to Microsoft Entra ID in your web browser.&lt;br /&gt;
* Select ''API permissions'' in the ''Manage'' section of the left navigation menu.&lt;br /&gt;
* Click on the ''Add a permission'' button in the ''Configured permissions'' section.&lt;br /&gt;
* On the ''Request API permissions'' menu page, select the API ''Microsoft Graph'' in the ''Commonly used Microsoft APIs'' section.&lt;br /&gt;
* Select the option ''Application permissions''.&lt;br /&gt;
* Enable the ''Directory &amp;gt; Directory.Read.All'' permission in the ''Select permissions'' section.&lt;br /&gt;
* '''New in 26.1''': Also enable the ''Mail &amp;gt; Mail.ReadWrite'' permission in the ''Select permissions'' section.&lt;br /&gt;
* Click on ''Add permissions''.&lt;br /&gt;
* The permissions are updated and the ''Directory.Read.All'' and ''Mail.ReadWrite'' permissions appear in the API permissions list under ''Microsoft Graph''.&lt;br /&gt;
* Click on the ''Add a permission'' button in the ''Configured permissions'' section again.&lt;br /&gt;
* On the ''Request API permissions'' menu page, select ''APIs my organization uses''.&lt;br /&gt;
* Search for ''Office 365 Exchange Online'' and click on the corresponding entry.&lt;br /&gt;
* Select the option ''Application permissions''.&lt;br /&gt;
* Enable the ''full_access_as_app'' permission in the ''Select permissions'' section.&lt;br /&gt;
* '''New in 25.3''': Also enable the permission ''SMTP.SendAsApp'' in the ''SMTP'' section.&lt;br /&gt;
* Click on ''Add permissions''.&lt;br /&gt;
* The permissions are updated and the ''full_access_as_app'' and ''SMTP.SendAsApp'' permissions appear in the API permissions list under ''Exchange''.&lt;br /&gt;
* Now click on the ''Grant admin consent for &amp;lt;your tenant name&amp;gt;'' button in the ''Configured permissions'' section.&lt;br /&gt;
* Acknowledge the following notice with ''Yes''.&lt;br /&gt;
* The status of all granted permissions is updated to ''Granted for &amp;lt;your tenant name&amp;gt;''.&lt;br /&gt;
The configuration of MailStore Server's connection to Microsoft 365 within Microsoft Entra ID is now complete. You can sign out of your Microsoft Entra ID tenant and close the browser window. Switch to the ''Directory Services'' page in the MailStore Client again, all remaining configuration steps must be done there.&lt;br /&gt;
&lt;br /&gt;
[[File:Microsoft 365 sync 03.png|center]]&lt;br /&gt;
&lt;br /&gt;
=== User Database Synchronization ===&lt;br /&gt;
After configuring the connection settings as described above, you can specify filter criteria for the Microsoft 365 synchronization in this section.&lt;br /&gt;
*'''Synchronize licensed Microsoft Exchange Online users only'''&amp;lt;br/&amp;gt;Only Microsoft 365 user accounts with a Microsoft Exchange Online license assigned to them will be taken into account by the synchronization.&lt;br /&gt;
*'''Synchronize enabled users only'''&amp;lt;br/&amp;gt;Only Microsoft 365 user accounts that do not have their login to Microsoft 365 blocked will be taken into account by the synchronization.&lt;br /&gt;
*'''Sync only these groups'''&amp;lt;br/&amp;gt;Choose one or several Microsoft 365 security groups if you only want their members to be created as MailStore Server users. That way it's possible to exclude certain users from being synchronized to MailStore Server.&lt;br /&gt;
*'''Also synchronize all Microsoft 365 Groups as MailStore users'''&amp;lt;br/&amp;gt;All [https://learn.microsoft.com/en-us/microsoftteams/office-365-groups Microsoft 365 Groups] with configured email addresses will be synchronized as MailStore users. Since Microsoft 365 Group mailboxes cannot be accessed directly, those have to be excluded when [[Archiving_Emails_from_Microsoft_365_-_Modern_Authentication#Archiving_Multiple_Microsoft_365_Mailboxes_Centrally|archiving multiple Microsoft 365 mailboxes centrally]]. When [[Archiving_Emails_from_Microsoft_365_-_Modern_Authentication#Archiving_Incoming_and_Outgoing_Emails_Directly|archiving incoming and outgoing emails directly]], emails sent from and to these Groups will be archived. These users cannot login to the MailStore archive.&lt;br /&gt;
&lt;br /&gt;
{{Directory Services Options|Microsoft 365 tenant}}&lt;br /&gt;
{{Directory Services Assign Default Privileges|Microsoft 365}}&lt;br /&gt;
{{Directory Services Run Synchronization|Microsoft 365 tenant}}&lt;br /&gt;
[[File:Office365_sync_02.png|450px|center]]&lt;br /&gt;
&lt;br /&gt;
{{Directory Services Test Authentication}}&lt;br /&gt;
&lt;br /&gt;
== Updating credentials ==&lt;br /&gt;
The certificate generated by MailStore for logging into Microsoft Entra ID is valid for 3750 days (825 days before version 25.3). In order for user synchronization and archiving to work afterwards, the certificate must be updated before its validity expires.&lt;br /&gt;
&lt;br /&gt;
MailStore Server will show a notification on the dashboard in MailStore Client and in the [[Jobs#Templates|status report]] 28 days before credentials expire. You can also use the [[Administration_API_-_Function_Reference#GetCredentials|GetCredentials API command]] to retrieve the expiration date.&lt;br /&gt;
&lt;br /&gt;
To update the credentials, proceed as follows:&lt;br /&gt;
&lt;br /&gt;
=== Updating credentials in MailStore Server ===&lt;br /&gt;
&lt;br /&gt;
* Log on to MailStore Client as a MailStore Server administrator.&lt;br /&gt;
* Click on ''Administrative Tools'' &amp;gt; ''Users and Archives'' &amp;gt; ''Directory Services''.&lt;br /&gt;
* In the ''Integration section'', make sure that the directory service type is set to ''Microsoft 365 (Modern Authentication)'' or ''Microsoft 365 operated by 21 Vianet (Modern Authentication)''.&lt;br /&gt;
[[File:Microsoft 365 sync 01.png|center|347px]]&lt;br /&gt;
* In the ''Connection'' section, click on the button (…) next to the ''Credentials'' drop-down list.&lt;br /&gt;
* In the ''Credential Manager'' that appears, click on the currently used credential object and click ''Edit…''&lt;br /&gt;
: [[File:Microsoft 365 cred 02.png|center|347px]]&lt;br /&gt;
* In the ''Authentication'' section, click on the drop-down button next to the ''Certificate'' text box und select ''Create Certificate...''.&lt;br /&gt;
* Confirm the process.&lt;br /&gt;
* In the ''Authentication'' section, click on the drop-down button next to the ''Certificate'' text box und select ''Download Certificate''. Save the certificate on your hard drive.&lt;br /&gt;
* Confirm your changes by clicking ''OK''.&lt;br /&gt;
* Leave the ''Credential Manager'' by clicking ''Apply''.&lt;br /&gt;
* The newly created credentials are selected in the corresponding drop-down list by default.&lt;br /&gt;
* If you are using Microsoft 365 in hybrid mode and synchronizing users from your Active Directory, set the directory service back to ''Active Directory''.&lt;br /&gt;
&lt;br /&gt;
=== Updating credentials in Microsoft Entra ID ===&lt;br /&gt;
&lt;br /&gt;
* Sign in to the [https://portal.azure.com Microsoft Entra ID Portal] as a Global Administrator for your Microsoft 365 tenant.&amp;lt;br/&amp;gt;The Microsoft Entra ID Portal of ''Office 365, operated by 21Vianet'' [https://portal.azure.cn/#view/Microsoft_AAD_IAM/ActiveDirectoryMenuBlade/~/Overview can be accessed here].&lt;br /&gt;
* In the navigation menu (☰), select the option ''Microsoft Entra ID''.&lt;br /&gt;
* On the next page, select ''App registrations'' in the ''Manage'' section of the left navigation menu.&lt;br /&gt;
* Select the application that is currently used by MailStore.&lt;br /&gt;
* Select ''Certificates &amp;amp; secrets'' in the ''Manage'' section of the left navigation menu.&lt;br /&gt;
* Click on ''Upload certificate'' in the ''Certificates'' section. Select the certificate file that you have saved previously and upload it to Microsoft Entra ID by clicking ''Add''.&lt;br /&gt;
* If uploading has been successful, the certificate's thumbprint as well as its start and expiry dates appear in the certificates list. You can compare the thumbprint and expiry date with those listed in the MailStore Credential Manager to check that you've uploaded the correct certificate.&lt;br /&gt;
* The previously used certificate can be removed from the list.&lt;br /&gt;
&lt;br /&gt;
[[de:Synchronisieren_von_Benutzerkonten_mit_Microsoft_365_(Modern_Authentication)]]&lt;br /&gt;
[[en:Synchronizing_User_Accounts_with_Microsoft_365_(Modern_Authentication)]]&lt;/div&gt;</summary>
		<author><name>Ltalaschus</name></author>
	</entry>
	<entry>
		<id>https://help.mailstore.com/en/server/index.php?title=Synchronizing_User_Accounts_with_Microsoft_365_-_Modern_Authentication&amp;diff=7989</id>
		<title>Synchronizing User Accounts with Microsoft 365 - Modern Authentication</title>
		<link rel="alternate" type="text/html" href="https://help.mailstore.com/en/server/index.php?title=Synchronizing_User_Accounts_with_Microsoft_365_-_Modern_Authentication&amp;diff=7989"/>
		<updated>2026-03-19T13:16:37Z</updated>

		<summary type="html">&lt;p&gt;Ltalaschus: /* User Database Synchronization */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Directory Services Preamble|Microsoft 365 tenant|Microsoft 365||}}&lt;br /&gt;
== Prerequisites, Recommendations and Limitations ==&lt;br /&gt;
* For best user experience, the certificate used by MailStore Server should be trusted by all clients and the used web browsers. Using a certificate that is signed by a trusted certificate authority or [[Using_Lets_Encrypt_Certificates|using Let's Encrypt certificates]] is highly recommended.&lt;br /&gt;
* If you have archived emails from an Exchange server and synchronized users from an Active Directory until now, follow the article [[Changing Archiving from Microsoft Exchange Server to Microsoft 365]]&lt;br /&gt;
* If users are supposed to log in to MailStore Server from outside the organization's network without a VPN using [[Accessing_the_Archive_with_the_MailStore_Client_software|MailStore Client]], [[Accessing_the_Archive_with_the_Microsoft_Outlook_integration|MailStore Outlook Add-in]] or the [[Accessing_the_Archive_with_MailStore_Web_Access|Web Access]], the URIs mentioned in this article must be resolvable via DNS on the Internet and port-forwardings to the MailStore Server computer must be set up on the firewall or router if necessary. &lt;br /&gt;
* When using Microsoft&amp;amp;nbsp;365 to authenticate users at login, [[Accessing_the_Archive_via_Integrated_IMAP_Server|accessing the archive via IMAP]] is not possible for technical reasons.&lt;br /&gt;
* MailStore Server supports the synchronization of user accounts with the global Microsoft Cloud ''Microsoft&amp;amp;nbsp;365'' and ''Office&amp;amp;nbsp;365, operated by 21Vianet''. Other Environments like GCC, GCC&amp;amp;nbsp;High or DoD are not supported. In the following article, only the term Microsoft 365 is used for the sake of simplicity.&lt;br /&gt;
&lt;br /&gt;
== Connecting MailStore Server and Microsoft 365 ==&lt;br /&gt;
In order to synchronize user information from Microsoft 365, MailStore Server has to be connected to your Microsoft 365 tenant and been granted the required permissions. Microsoft 365 relies on Microsoft Entra ID as directory service. Each Microsoft 365 tenant corresponds to an Microsoft Entra ID tenant that stores its user information.&lt;br /&gt;
&lt;br /&gt;
=== Registering of MailStore Server as App in Microsoft Entra ID ===&lt;br /&gt;
Through registration, MailStore Server gets an identity in Microsoft Entra ID that makes it possible to authenticate to the tenant's services and use their resources.&lt;br /&gt;
* Sign in to the [https://portal.azure.com Microsoft Entra ID Portal] as a Global Administrator for your Microsoft 365 tenant.&amp;lt;br/&amp;gt;The Microsoft Entra ID Portal of ''Office 365, operated by 21Vianet'' [https://portal.azure.cn/#view/Microsoft_AAD_IAM/ActiveDirectoryMenuBlade/~/Overview can be accessed here].&lt;br /&gt;
* In the navigation menu (☰), select the option ''Microsoft Entra ID''.&lt;br /&gt;
* On the next page, select ''App registrations'' in the ''Manage'' section of the left navigation menu.&lt;br /&gt;
* Select ''New Registration''. The ''Register an application'' page appears.&lt;br /&gt;
* In the ''Name'' field, enter a meaningful display name, e.g. ''MailStore Server''. This name will be shown to users on logon later on, for example.&lt;br /&gt;
* Leave all other settings on this page to their defaults.&lt;br /&gt;
* Click on ''Register''. If the registration has been successful, you are shown the overview page of the newly registered app.&lt;br /&gt;
The ''Application (client) ID'' shown on this page identifies MailStore Server in your Microsoft Entra ID tenant and has to be copied into MailStore Server next, together with the ''Directory (tenant) ID''. Therefore, for the following steps, leave the overview page open in your web browser.&lt;br /&gt;
&lt;br /&gt;
=== Creating Credentials in MailStore Server ===&lt;br /&gt;
Credentials for Microsoft 365 consist of the aforementioned IDs and a secret that MailStore Server uses to proof its identity to Microsoft Entra ID. Microsoft recommends using certificates as secrets to identify apps in Microsoft Entra ID. When creating credentials, such a certificate is generated automatically by MailStore Server but can also be recreated later on.&lt;br /&gt;
{{Directory Services Accessing Configuration|Microsoft 365 or Microsoft 365 operated by 21 Vianet|Microsoft 365 sync 01.png}}&lt;br /&gt;
* In the ''Connection'' section, click on the button (…) next to the ''Credentials'' drop-down list.&lt;br /&gt;
* In the ''Credential Manager'' that appears, click on ''Create…''&lt;br /&gt;
* In the ''Microsoft Entra ID App Credentials'' dialog, enter the following information in the ''Settings'' section:&lt;br /&gt;
** '''Name'''&amp;lt;br/&amp;gt; A meaningful display name for the credentials, e.g. the name of your Microsoft 365 tenant.&lt;br /&gt;
** '''Application (client) ID'''&amp;lt;br/&amp;gt; The value of the corresponding field that you can copy from the Microsoft Entra ID app overview page in your web browser.&lt;br /&gt;
** '''Directory (tenant) ID'''&amp;lt;br/&amp;gt; The value of the corresponding field that you can copy from the Microsoft Entra ID app overview page in your web browser.&lt;br /&gt;
[[File:Microsoft 365 cred 01.png|center|347px]]&lt;br /&gt;
* In the ''Authentication'' section, click on the drop-down button next to the ''Certificate'' text box und select ''Download Certificate''. Save the certificate on your hard drive.&lt;br /&gt;
* Confirm your entries by clicking ''OK''.&lt;br /&gt;
* The newly created credentials are listed in the ''Credential Manager'' under the name you have entered with the type ''Microsoft 365''. Here you can also edit or delete existing credentials if necessary.&lt;br /&gt;
* Leave the ''Credential Manager'' by clicking ''Close''.&lt;br /&gt;
* The newly created credentials are selected in the corresponding drop-down list by default.&lt;br /&gt;
&lt;br /&gt;
=== Publishing Credentials in Microsoft Entra ID ===&lt;br /&gt;
For Microsoft Entra ID to validate the identity of MailStore Server, the created certificate needs to be published in Microsoft Entra ID.&lt;br /&gt;
* Switch to the Microsoft Entra ID app overview page in your web browser.&lt;br /&gt;
* Select ''Certificates &amp;amp; secrets'' in the ''Manage'' section of the left navigation menu.&lt;br /&gt;
* Click on ''Upload certificate'' in the ''Certificates'' section. Select the certificate file that you have saved previously and upload it to Microsoft Entra ID by clicking ''Add''.&lt;br /&gt;
* If uploading has been successful, the certificate's thumbprint as well as its start and expiry dates appear in the certificates list. You can compare the thumbprint and expiry date with those listed in the MailStore Credential Manager to check that you've uploaded the correct certificate.&lt;br /&gt;
&lt;br /&gt;
=== Configuring App Authentication in Microsoft Entra ID ===&lt;br /&gt;
For Microsoft Entra ID to return the result of a user's authentication request to MailStore Server, the endpoint where MailStore Server expects authentication responses, the so-called ''Redirect URI'', has to be conveyed to Microsoft Entra ID.&lt;br /&gt;
* In the Microsoft Entra ID Portal in the web browser, select ''Authentication'' in the ''Manage'' section of the left navigation menu.&lt;br /&gt;
* Click on the ''Add Redirect URI'' button on the ''Redirect URI configuration'' page.&lt;br /&gt;
* Select ''Web'' in the ''Web applications'' section of the platform selection page.&lt;br /&gt;
* In the field ''Redirect URI'', enter a URI in the format (without brackets)&lt;br /&gt;
*: &amp;lt;code&amp;gt;https://&amp;lt;fqdn&amp;gt;[:&amp;lt;port&amp;gt;]/oidc/signin&amp;lt;/code&amp;gt;&lt;br /&gt;
*; with the following components&amp;lt;nowiki&amp;gt;:&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
*: '''https://'''&amp;lt;br/&amp;gt; Specifying the &amp;lt;code&amp;gt;https://&amp;lt;/code&amp;gt; protocol is obligatory. To avoid certificate warnings during user logon, the web browsers on the client machines must trust the [[MailStore_Server_Service_Configuration#Certificate|certificate used by MailStore Server]].&lt;br /&gt;
*: '''FQDN'''&amp;lt;br/&amp;gt;The Fully Qualified Domain Name (FQDN) of your MailStore Server that consists of the machine name and the DNS domain, e.g. &amp;lt;code&amp;gt;mailstore.example.com&amp;lt;/code&amp;gt;. This name must be resolvable by all clients from which users shall be able to log on to MailStore Server.&lt;br /&gt;
*: '''Port'''&amp;lt;br/&amp;gt;The TCP port of the MailStore Web Access (&amp;lt;code&amp;gt;8462&amp;lt;/code&amp;gt; by default). This value must be equal to the port configured in the section ''Base Configuration &amp;gt; Network Settings &amp;gt; MailStore Web Access / Outlook Add-in (HTTPS)'' of the [[MailStore_Server_Service_Configuration#Services|MailStore Server Service Configuration]]. The TCP port has to be specified only if it is different from the default port of the HTTPS protocol (&amp;lt;code&amp;gt;443&amp;lt;/code&amp;gt;).&lt;br /&gt;
*: '''/oidc/signin'''&amp;lt;br/&amp;gt;The endpoint where MailStore Server expects the authentication responses of Microsoft Entra ID. This path has to be specified exactly as stated here at the end of the redirect URI.&lt;br /&gt;
* Click on ''Configure'' to add your Redirect URI.&lt;br /&gt;
* In the '''Authentication''' section switch to the '''Settings''' panel. Then, in the '''Implicit grant and hybrid flows''' section perform the following action:&lt;br /&gt;
:'''Enable''' the '''ID tokens''' option.&lt;br /&gt;
[[File:Microsoft_365_sync_id_token.png|center]]&lt;br /&gt;
* Ensure that the '''ID tokens''' option is set in the '''Implicit grant and hybrid flows''' section.&lt;br /&gt;
* Click on ''Save'' to finish the configuration of the app authentication in Microsoft Entra ID.&lt;br /&gt;
&amp;lt;div class=&amp;quot;resp-table&amp;quot;&amp;gt;&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;font-size: 85%;&amp;quot;&lt;br /&gt;
|+ Examples for valid redirect URIs&lt;br /&gt;
|-&lt;br /&gt;
! style=&amp;quot;width:80px;&amp;quot; | Product&lt;br /&gt;
! style=&amp;quot;width:80px;&amp;quot; | FQDN&lt;br /&gt;
! style=&amp;quot;width:40px;&amp;quot; | Port&lt;br /&gt;
! Resulting Redirect URI&lt;br /&gt;
|-&lt;br /&gt;
| align=&amp;quot;center&amp;quot;| MailStore Server&lt;br /&gt;
| align=&amp;quot;center&amp;quot;| mailstore.example.com&lt;br /&gt;
| align=&amp;quot;center&amp;quot;| 8462&lt;br /&gt;
| &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;https://mailstore.example.com:8462/oidc/signin&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;Redirect URI with Fully Qualified Domain Name and MailStore Web Access default  port&lt;br /&gt;
|-&lt;br /&gt;
| align=&amp;quot;center&amp;quot;| MailStore Server&lt;br /&gt;
| align=&amp;quot;center&amp;quot;| mailstore.example.com&lt;br /&gt;
| align=&amp;quot;center&amp;quot;| 443&lt;br /&gt;
| &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;https://mailstore.example.com/oidc/signin&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;The port can be ommited if the HTTPS default port 443 has been configured for MailStore Web Access or as source port of a port-forwarding on the firewall or router.&lt;br /&gt;
|-&lt;br /&gt;
| align=&amp;quot;center&amp;quot;| MailStore SPE&lt;br /&gt;
| align=&amp;quot;center&amp;quot;| archive.example.com&lt;br /&gt;
| align=&amp;quot;center&amp;quot;| 443&lt;br /&gt;
| &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;https://archive.example.com/&amp;lt;instanceid&amp;gt;/oidc/signin&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;The ''instanceid'' of the instance is part of the Redirect URI. &lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
:: &amp;lt;p class=&amp;quot;msnote&amp;quot;&amp;gt;'''Important Notice:''' Please note that the redirect URI is case-sensitive. Also review the requirements on resolving URIs in the [[#Prerequisites, Recommendations and Limitations|Prerequisites, Recommendations and Limitations]] section.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:: &amp;lt;p class=&amp;quot;msnote&amp;quot;&amp;gt;'''Important Notice:''' Please note that without setting the ''ID Token'' option, user authentication will not work.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Configuring the Redirect URI in MailStore Server ===&lt;br /&gt;
For MailStore Server to convey the redirect URI to requesting clients, it must be configured there, too.&lt;br /&gt;
* Switch to the ''Directory Services'' page in the MailStore Client.&lt;br /&gt;
* Enter the redirect URI in the corresponding field in the ''Authentication'' section. Just copy the value previously configured in Microsoft Entra ID from the web browser.&lt;br /&gt;
[[File:Microsoft 365 sync 02.png|center|450px]]&lt;br /&gt;
&lt;br /&gt;
=== Configuring API Permissions in Microsoft Entra ID ===&lt;br /&gt;
* Switch again to Microsoft Entra ID in your web browser.&lt;br /&gt;
* Select ''API permissions'' in the ''Manage'' section of the left navigation menu.&lt;br /&gt;
* Click on the ''Add a permission'' button in the ''Configured permissions'' section.&lt;br /&gt;
* On the ''Request API permissions'' menu page, select the API ''Microsoft Graph'' in the ''Commonly used Microsoft APIs'' section.&lt;br /&gt;
* Select the option ''Application permissions''.&lt;br /&gt;
* Enable the ''Directory &amp;gt; Directory.Read.All'' permission in the ''Select permissions'' section.&lt;br /&gt;
* '''New in 26.1''': Also enable the ''Mail &amp;gt; Mail.ReadWrite'' permission in the ''Select permissions'' section.&lt;br /&gt;
* Click on ''Add permissions''.&lt;br /&gt;
* The permissions are updated and the ''Directory.Read.All'' and ''Mail.ReadWrite'' permissions appear in the API permissions list under ''Microsoft Graph''.&lt;br /&gt;
* Click on the ''Add a permission'' button in the ''Configured permissions'' section again.&lt;br /&gt;
* On the ''Request API permissions'' menu page, select ''APIs my organization uses''.&lt;br /&gt;
* Search for ''Office 365 Exchange Online'' and click on the corresponding entry.&lt;br /&gt;
* Select the option ''Application permissions''.&lt;br /&gt;
* Enable the ''full_access_as_app'' permission in the ''Select permissions'' section.&lt;br /&gt;
* '''New in 25.3''': Also enable the permission ''SMTP.SendAsApp'' in the ''SMTP'' section.&lt;br /&gt;
* Click on ''Add permissions''.&lt;br /&gt;
* The permissions are updated and the ''full_access_as_app'' and ''SMTP.SendAsApp'' permissions appear in the API permissions list under ''Exchange''.&lt;br /&gt;
* Now click on the ''Grant admin consent for &amp;lt;your tenant name&amp;gt;'' button in the ''Configured permissions'' section.&lt;br /&gt;
* Acknowledge the following notice with ''Yes''.&lt;br /&gt;
* The status of all granted permissions is updated to ''Granted for &amp;lt;your tenant name&amp;gt;''.&lt;br /&gt;
The configuration of MailStore Server's connection to Microsoft 365 within Microsoft Entra ID is now complete. You can sign out of your Microsoft Entra ID tenant and close the browser window. Switch to the ''Directory Services'' page in the MailStore Client again, all remaining configuration steps must be done there.&lt;br /&gt;
&lt;br /&gt;
[[File:Microsoft 365 sync 03.png|center]]&lt;br /&gt;
&lt;br /&gt;
=== User Database Synchronization ===&lt;br /&gt;
After configuring the connection settings as described above, you can specify filter criteria for the Microsoft 365 synchronization in this section.&lt;br /&gt;
*'''Synchronize licensed Microsoft Exchange Online users only'''&amp;lt;br/&amp;gt;Only Microsoft 365 user accounts with a Microsoft Exchange Online license assigned to them will be taken into account by the synchronization.&lt;br /&gt;
*'''Synchronize enabled users only'''&amp;lt;br/&amp;gt;Only Microsoft 365 user accounts that do not have their login to Microsoft 365 blocked will be taken into account by the synchronization.&lt;br /&gt;
*'''Sync only these groups'''&amp;lt;br/&amp;gt;Choose one or several Microsoft 365 security groups if you only want their members to be created as MailStore Server users. That way it's possible to exclude certain users from being synchronized to MailStore Server.&lt;br /&gt;
*'''Also synchronize all Microsoft 365 Groups as MailStore users'''&amp;lt;br/&amp;gt;All [https://learn.microsoft.com/en-us/microsoftteams/office-365-groups Microsoft 365 Groups] with configured email addresses will be synchronized as MailStore users. Since Microsoft 365 Group mailboxes cannot be accessed directly, those have to be excluded when [[Archiving_Emails_from_Microsoft_365_-_Modern_Authentication#Archiving_Multiple_Microsoft_365_Mailboxes_Centrally|archiving multiple Microsoft 365 mailboxes centrally]]. When [[Archiving_Emails_from_Microsoft_365_-_Modern_Authentication#Archiving_Incoming_and_Outgoing_Emails_Directly|archiving incoming and outgoing emails directly]], emails sent from and to these Groups will archived. These users cannot login to the MailStore archive.&lt;br /&gt;
&lt;br /&gt;
{{Directory Services Options|Microsoft 365 tenant}}&lt;br /&gt;
{{Directory Services Assign Default Privileges|Microsoft 365}}&lt;br /&gt;
{{Directory Services Run Synchronization|Microsoft 365 tenant}}&lt;br /&gt;
[[File:Office365_sync_02.png|450px|center]]&lt;br /&gt;
&lt;br /&gt;
{{Directory Services Test Authentication}}&lt;br /&gt;
&lt;br /&gt;
== Updating credentials ==&lt;br /&gt;
The certificate generated by MailStore for logging into Microsoft Entra ID is valid for 3750 days (825 days before version 25.3). In order for user synchronization and archiving to work afterwards, the certificate must be updated before its validity expires.&lt;br /&gt;
&lt;br /&gt;
MailStore Server will show a notification on the dashboard in MailStore Client and in the [[Jobs#Templates|status report]] 28 days before credentials expire. You can also use the [[Administration_API_-_Function_Reference#GetCredentials|GetCredentials API command]] to retrieve the expiration date.&lt;br /&gt;
&lt;br /&gt;
To update the credentials, proceed as follows:&lt;br /&gt;
&lt;br /&gt;
=== Updating credentials in MailStore Server ===&lt;br /&gt;
&lt;br /&gt;
* Log on to MailStore Client as a MailStore Server administrator.&lt;br /&gt;
* Click on ''Administrative Tools'' &amp;gt; ''Users and Archives'' &amp;gt; ''Directory Services''.&lt;br /&gt;
* In the ''Integration section'', make sure that the directory service type is set to ''Microsoft 365 (Modern Authentication)'' or ''Microsoft 365 operated by 21 Vianet (Modern Authentication)''.&lt;br /&gt;
[[File:Microsoft 365 sync 01.png|center|347px]]&lt;br /&gt;
* In the ''Connection'' section, click on the button (…) next to the ''Credentials'' drop-down list.&lt;br /&gt;
* In the ''Credential Manager'' that appears, click on the currently used credential object and click ''Edit…''&lt;br /&gt;
: [[File:Microsoft 365 cred 02.png|center|347px]]&lt;br /&gt;
* In the ''Authentication'' section, click on the drop-down button next to the ''Certificate'' text box und select ''Create Certificate...''.&lt;br /&gt;
* Confirm the process.&lt;br /&gt;
* In the ''Authentication'' section, click on the drop-down button next to the ''Certificate'' text box und select ''Download Certificate''. Save the certificate on your hard drive.&lt;br /&gt;
* Confirm your changes by clicking ''OK''.&lt;br /&gt;
* Leave the ''Credential Manager'' by clicking ''Apply''.&lt;br /&gt;
* The newly created credentials are selected in the corresponding drop-down list by default.&lt;br /&gt;
* If you are using Microsoft 365 in hybrid mode and synchronizing users from your Active Directory, set the directory service back to ''Active Directory''.&lt;br /&gt;
&lt;br /&gt;
=== Updating credentials in Microsoft Entra ID ===&lt;br /&gt;
&lt;br /&gt;
* Sign in to the [https://portal.azure.com Microsoft Entra ID Portal] as a Global Administrator for your Microsoft 365 tenant.&amp;lt;br/&amp;gt;The Microsoft Entra ID Portal of ''Office 365, operated by 21Vianet'' [https://portal.azure.cn/#view/Microsoft_AAD_IAM/ActiveDirectoryMenuBlade/~/Overview can be accessed here].&lt;br /&gt;
* In the navigation menu (☰), select the option ''Microsoft Entra ID''.&lt;br /&gt;
* On the next page, select ''App registrations'' in the ''Manage'' section of the left navigation menu.&lt;br /&gt;
* Select the application that is currently used by MailStore.&lt;br /&gt;
* Select ''Certificates &amp;amp; secrets'' in the ''Manage'' section of the left navigation menu.&lt;br /&gt;
* Click on ''Upload certificate'' in the ''Certificates'' section. Select the certificate file that you have saved previously and upload it to Microsoft Entra ID by clicking ''Add''.&lt;br /&gt;
* If uploading has been successful, the certificate's thumbprint as well as its start and expiry dates appear in the certificates list. You can compare the thumbprint and expiry date with those listed in the MailStore Credential Manager to check that you've uploaded the correct certificate.&lt;br /&gt;
* The previously used certificate can be removed from the list.&lt;br /&gt;
&lt;br /&gt;
[[de:Synchronisieren_von_Benutzerkonten_mit_Microsoft_365_(Modern_Authentication)]]&lt;br /&gt;
[[en:Synchronizing_User_Accounts_with_Microsoft_365_(Modern_Authentication)]]&lt;/div&gt;</summary>
		<author><name>Ltalaschus</name></author>
	</entry>
	<entry>
		<id>https://help.mailstore.com/en/server/index.php?title=File:Microsoft_365_sync_02.png&amp;diff=7988</id>
		<title>File:Microsoft 365 sync 02.png</title>
		<link rel="alternate" type="text/html" href="https://help.mailstore.com/en/server/index.php?title=File:Microsoft_365_sync_02.png&amp;diff=7988"/>
		<updated>2026-03-19T12:48:52Z</updated>

		<summary type="html">&lt;p&gt;Ltalaschus: Ltalaschus uploaded a new version of File:Microsoft 365 sync 02.png&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Ltalaschus</name></author>
	</entry>
	<entry>
		<id>https://help.mailstore.com/en/server/index.php?title=File:Microsoft_365_sync_01.png&amp;diff=7987</id>
		<title>File:Microsoft 365 sync 01.png</title>
		<link rel="alternate" type="text/html" href="https://help.mailstore.com/en/server/index.php?title=File:Microsoft_365_sync_01.png&amp;diff=7987"/>
		<updated>2026-03-19T12:47:54Z</updated>

		<summary type="html">&lt;p&gt;Ltalaschus: Ltalaschus uploaded a new version of File:Microsoft 365 sync 01.png&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Ltalaschus</name></author>
	</entry>
	<entry>
		<id>https://help.mailstore.com/en/server/index.php?title=Synchronizing_User_Accounts_with_Microsoft_365_-_Modern_Authentication&amp;diff=7986</id>
		<title>Synchronizing User Accounts with Microsoft 365 - Modern Authentication</title>
		<link rel="alternate" type="text/html" href="https://help.mailstore.com/en/server/index.php?title=Synchronizing_User_Accounts_with_Microsoft_365_-_Modern_Authentication&amp;diff=7986"/>
		<updated>2026-03-19T12:47:34Z</updated>

		<summary type="html">&lt;p&gt;Ltalaschus: /* User Database Synchronization */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Directory Services Preamble|Microsoft 365 tenant|Microsoft 365||}}&lt;br /&gt;
== Prerequisites, Recommendations and Limitations ==&lt;br /&gt;
* For best user experience, the certificate used by MailStore Server should be trusted by all clients and the used web browsers. Using a certificate that is signed by a trusted certificate authority or [[Using_Lets_Encrypt_Certificates|using Let's Encrypt certificates]] is highly recommended.&lt;br /&gt;
* If you have archived emails from an Exchange server and synchronized users from an Active Directory until now, follow the article [[Changing Archiving from Microsoft Exchange Server to Microsoft 365]]&lt;br /&gt;
* If users are supposed to log in to MailStore Server from outside the organization's network without a VPN using [[Accessing_the_Archive_with_the_MailStore_Client_software|MailStore Client]], [[Accessing_the_Archive_with_the_Microsoft_Outlook_integration|MailStore Outlook Add-in]] or the [[Accessing_the_Archive_with_MailStore_Web_Access|Web Access]], the URIs mentioned in this article must be resolvable via DNS on the Internet and port-forwardings to the MailStore Server computer must be set up on the firewall or router if necessary. &lt;br /&gt;
* When using Microsoft&amp;amp;nbsp;365 to authenticate users at login, [[Accessing_the_Archive_via_Integrated_IMAP_Server|accessing the archive via IMAP]] is not possible for technical reasons.&lt;br /&gt;
* MailStore Server supports the synchronization of user accounts with the global Microsoft Cloud ''Microsoft&amp;amp;nbsp;365'' and ''Office&amp;amp;nbsp;365, operated by 21Vianet''. Other Environments like GCC, GCC&amp;amp;nbsp;High or DoD are not supported. In the following article, only the term Microsoft 365 is used for the sake of simplicity.&lt;br /&gt;
&lt;br /&gt;
== Connecting MailStore Server and Microsoft 365 ==&lt;br /&gt;
In order to synchronize user information from Microsoft 365, MailStore Server has to be connected to your Microsoft 365 tenant and been granted the required permissions. Microsoft 365 relies on Microsoft Entra ID as directory service. Each Microsoft 365 tenant corresponds to an Microsoft Entra ID tenant that stores its user information.&lt;br /&gt;
&lt;br /&gt;
=== Registering of MailStore Server as App in Microsoft Entra ID ===&lt;br /&gt;
Through registration, MailStore Server gets an identity in Microsoft Entra ID that makes it possible to authenticate to the tenant's services and use their resources.&lt;br /&gt;
* Sign in to the [https://portal.azure.com Microsoft Entra ID Portal] as a Global Administrator for your Microsoft 365 tenant.&amp;lt;br/&amp;gt;The Microsoft Entra ID Portal of ''Office 365, operated by 21Vianet'' [https://portal.azure.cn/#view/Microsoft_AAD_IAM/ActiveDirectoryMenuBlade/~/Overview can be accessed here].&lt;br /&gt;
* In the navigation menu (☰), select the option ''Microsoft Entra ID''.&lt;br /&gt;
* On the next page, select ''App registrations'' in the ''Manage'' section of the left navigation menu.&lt;br /&gt;
* Select ''New Registration''. The ''Register an application'' page appears.&lt;br /&gt;
* In the ''Name'' field, enter a meaningful display name, e.g. ''MailStore Server''. This name will be shown to users on logon later on, for example.&lt;br /&gt;
* Leave all other settings on this page to their defaults.&lt;br /&gt;
* Click on ''Register''. If the registration has been successful, you are shown the overview page of the newly registered app.&lt;br /&gt;
The ''Application (client) ID'' shown on this page identifies MailStore Server in your Microsoft Entra ID tenant and has to be copied into MailStore Server next, together with the ''Directory (tenant) ID''. Therefore, for the following steps, leave the overview page open in your web browser.&lt;br /&gt;
&lt;br /&gt;
=== Creating Credentials in MailStore Server ===&lt;br /&gt;
Credentials for Microsoft 365 consist of the aforementioned IDs and a secret that MailStore Server uses to proof its identity to Microsoft Entra ID. Microsoft recommends using certificates as secrets to identify apps in Microsoft Entra ID. When creating credentials, such a certificate is generated automatically by MailStore Server but can also be recreated later on.&lt;br /&gt;
{{Directory Services Accessing Configuration|Microsoft 365 or Microsoft 365 operated by 21 Vianet|Microsoft 365 sync 01.png}}&lt;br /&gt;
* In the ''Connection'' section, click on the button (…) next to the ''Credentials'' drop-down list.&lt;br /&gt;
* In the ''Credential Manager'' that appears, click on ''Create…''&lt;br /&gt;
* In the ''Microsoft Entra ID App Credentials'' dialog, enter the following information in the ''Settings'' section:&lt;br /&gt;
** '''Name'''&amp;lt;br/&amp;gt; A meaningful display name for the credentials, e.g. the name of your Microsoft 365 tenant.&lt;br /&gt;
** '''Application (client) ID'''&amp;lt;br/&amp;gt; The value of the corresponding field that you can copy from the Microsoft Entra ID app overview page in your web browser.&lt;br /&gt;
** '''Directory (tenant) ID'''&amp;lt;br/&amp;gt; The value of the corresponding field that you can copy from the Microsoft Entra ID app overview page in your web browser.&lt;br /&gt;
[[File:Microsoft 365 cred 01.png|center|347px]]&lt;br /&gt;
* In the ''Authentication'' section, click on the drop-down button next to the ''Certificate'' text box und select ''Download Certificate''. Save the certificate on your hard drive.&lt;br /&gt;
* Confirm your entries by clicking ''OK''.&lt;br /&gt;
* The newly created credentials are listed in the ''Credential Manager'' under the name you have entered with the type ''Microsoft 365''. Here you can also edit or delete existing credentials if necessary.&lt;br /&gt;
* Leave the ''Credential Manager'' by clicking ''Close''.&lt;br /&gt;
* The newly created credentials are selected in the corresponding drop-down list by default.&lt;br /&gt;
&lt;br /&gt;
=== Publishing Credentials in Microsoft Entra ID ===&lt;br /&gt;
For Microsoft Entra ID to validate the identity of MailStore Server, the created certificate needs to be published in Microsoft Entra ID.&lt;br /&gt;
* Switch to the Microsoft Entra ID app overview page in your web browser.&lt;br /&gt;
* Select ''Certificates &amp;amp; secrets'' in the ''Manage'' section of the left navigation menu.&lt;br /&gt;
* Click on ''Upload certificate'' in the ''Certificates'' section. Select the certificate file that you have saved previously and upload it to Microsoft Entra ID by clicking ''Add''.&lt;br /&gt;
* If uploading has been successful, the certificate's thumbprint as well as its start and expiry dates appear in the certificates list. You can compare the thumbprint and expiry date with those listed in the MailStore Credential Manager to check that you've uploaded the correct certificate.&lt;br /&gt;
&lt;br /&gt;
=== Configuring App Authentication in Microsoft Entra ID ===&lt;br /&gt;
For Microsoft Entra ID to return the result of a user's authentication request to MailStore Server, the endpoint where MailStore Server expects authentication responses, the so-called ''Redirect URI'', has to be conveyed to Microsoft Entra ID.&lt;br /&gt;
* In the Microsoft Entra ID Portal in the web browser, select ''Authentication'' in the ''Manage'' section of the left navigation menu.&lt;br /&gt;
* Click on the ''Add Redirect URI'' button on the ''Redirect URI configuration'' page.&lt;br /&gt;
* Select ''Web'' in the ''Web applications'' section of the platform selection page.&lt;br /&gt;
* In the field ''Redirect URI'', enter a URI in the format (without brackets)&lt;br /&gt;
*: &amp;lt;code&amp;gt;https://&amp;lt;fqdn&amp;gt;[:&amp;lt;port&amp;gt;]/oidc/signin&amp;lt;/code&amp;gt;&lt;br /&gt;
*; with the following components&amp;lt;nowiki&amp;gt;:&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
*: '''https://'''&amp;lt;br/&amp;gt; Specifying the &amp;lt;code&amp;gt;https://&amp;lt;/code&amp;gt; protocol is obligatory. To avoid certificate warnings during user logon, the web browsers on the client machines must trust the [[MailStore_Server_Service_Configuration#Certificate|certificate used by MailStore Server]].&lt;br /&gt;
*: '''FQDN'''&amp;lt;br/&amp;gt;The Fully Qualified Domain Name (FQDN) of your MailStore Server that consists of the machine name and the DNS domain, e.g. &amp;lt;code&amp;gt;mailstore.example.com&amp;lt;/code&amp;gt;. This name must be resolvable by all clients from which users shall be able to log on to MailStore Server.&lt;br /&gt;
*: '''Port'''&amp;lt;br/&amp;gt;The TCP port of the MailStore Web Access (&amp;lt;code&amp;gt;8462&amp;lt;/code&amp;gt; by default). This value must be equal to the port configured in the section ''Base Configuration &amp;gt; Network Settings &amp;gt; MailStore Web Access / Outlook Add-in (HTTPS)'' of the [[MailStore_Server_Service_Configuration#Services|MailStore Server Service Configuration]]. The TCP port has to be specified only if it is different from the default port of the HTTPS protocol (&amp;lt;code&amp;gt;443&amp;lt;/code&amp;gt;).&lt;br /&gt;
*: '''/oidc/signin'''&amp;lt;br/&amp;gt;The endpoint where MailStore Server expects the authentication responses of Microsoft Entra ID. This path has to be specified exactly as stated here at the end of the redirect URI.&lt;br /&gt;
* Click on ''Configure'' to add your Redirect URI.&lt;br /&gt;
* In the '''Authentication''' section switch to the '''Settings''' panel. Then, in the '''Implicit grant and hybrid flows''' section perform the following action:&lt;br /&gt;
:'''Enable''' the '''ID tokens''' option.&lt;br /&gt;
[[File:Microsoft_365_sync_id_token.png|center]]&lt;br /&gt;
* Ensure that the '''ID tokens''' option is set in the '''Implicit grant and hybrid flows''' section.&lt;br /&gt;
* Click on ''Save'' to finish the configuration of the app authentication in Microsoft Entra ID.&lt;br /&gt;
&amp;lt;div class=&amp;quot;resp-table&amp;quot;&amp;gt;&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;font-size: 85%;&amp;quot;&lt;br /&gt;
|+ Examples for valid redirect URIs&lt;br /&gt;
|-&lt;br /&gt;
! style=&amp;quot;width:80px;&amp;quot; | Product&lt;br /&gt;
! style=&amp;quot;width:80px;&amp;quot; | FQDN&lt;br /&gt;
! style=&amp;quot;width:40px;&amp;quot; | Port&lt;br /&gt;
! Resulting Redirect URI&lt;br /&gt;
|-&lt;br /&gt;
| align=&amp;quot;center&amp;quot;| MailStore Server&lt;br /&gt;
| align=&amp;quot;center&amp;quot;| mailstore.example.com&lt;br /&gt;
| align=&amp;quot;center&amp;quot;| 8462&lt;br /&gt;
| &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;https://mailstore.example.com:8462/oidc/signin&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;Redirect URI with Fully Qualified Domain Name and MailStore Web Access default  port&lt;br /&gt;
|-&lt;br /&gt;
| align=&amp;quot;center&amp;quot;| MailStore Server&lt;br /&gt;
| align=&amp;quot;center&amp;quot;| mailstore.example.com&lt;br /&gt;
| align=&amp;quot;center&amp;quot;| 443&lt;br /&gt;
| &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;https://mailstore.example.com/oidc/signin&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;The port can be ommited if the HTTPS default port 443 has been configured for MailStore Web Access or as source port of a port-forwarding on the firewall or router.&lt;br /&gt;
|-&lt;br /&gt;
| align=&amp;quot;center&amp;quot;| MailStore SPE&lt;br /&gt;
| align=&amp;quot;center&amp;quot;| archive.example.com&lt;br /&gt;
| align=&amp;quot;center&amp;quot;| 443&lt;br /&gt;
| &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;https://archive.example.com/&amp;lt;instanceid&amp;gt;/oidc/signin&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;The ''instanceid'' of the instance is part of the Redirect URI. &lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
:: &amp;lt;p class=&amp;quot;msnote&amp;quot;&amp;gt;'''Important Notice:''' Please note that the redirect URI is case-sensitive. Also review the requirements on resolving URIs in the [[#Prerequisites, Recommendations and Limitations|Prerequisites, Recommendations and Limitations]] section.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:: &amp;lt;p class=&amp;quot;msnote&amp;quot;&amp;gt;'''Important Notice:''' Please note that without setting the ''ID Token'' option, user authentication will not work.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Configuring the Redirect URI in MailStore Server ===&lt;br /&gt;
For MailStore Server to convey the redirect URI to requesting clients, it must be configured there, too.&lt;br /&gt;
* Switch to the ''Directory Services'' page in the MailStore Client.&lt;br /&gt;
* Enter the redirect URI in the corresponding field in the ''Authentication'' section. Just copy the value previously configured in Microsoft Entra ID from the web browser.&lt;br /&gt;
[[File:Microsoft 365 sync 02.png|center|450px]]&lt;br /&gt;
&lt;br /&gt;
=== Configuring API Permissions in Microsoft Entra ID ===&lt;br /&gt;
* Switch again to Microsoft Entra ID in your web browser.&lt;br /&gt;
* Select ''API permissions'' in the ''Manage'' section of the left navigation menu.&lt;br /&gt;
* Click on the ''Add a permission'' button in the ''Configured permissions'' section.&lt;br /&gt;
* On the ''Request API permissions'' menu page, select the API ''Microsoft Graph'' in the ''Commonly used Microsoft APIs'' section.&lt;br /&gt;
* Select the option ''Application permissions''.&lt;br /&gt;
* Enable the ''Directory &amp;gt; Directory.Read.All'' permission in the ''Select permissions'' section.&lt;br /&gt;
* '''New in 26.1''': Also enable the ''Mail &amp;gt; Mail.ReadWrite'' permission in the ''Select permissions'' section.&lt;br /&gt;
* Click on ''Add permissions''.&lt;br /&gt;
* The permissions are updated and the ''Directory.Read.All'' and ''Mail.ReadWrite'' permissions appear in the API permissions list under ''Microsoft Graph''.&lt;br /&gt;
* Click on the ''Add a permission'' button in the ''Configured permissions'' section again.&lt;br /&gt;
* On the ''Request API permissions'' menu page, select ''APIs my organization uses''.&lt;br /&gt;
* Search for ''Office 365 Exchange Online'' and click on the corresponding entry.&lt;br /&gt;
* Select the option ''Application permissions''.&lt;br /&gt;
* Enable the ''full_access_as_app'' permission in the ''Select permissions'' section.&lt;br /&gt;
* '''New in 25.3''': Also enable the permission ''SMTP.SendAsApp'' in the ''SMTP'' section.&lt;br /&gt;
* Click on ''Add permissions''.&lt;br /&gt;
* The permissions are updated and the ''full_access_as_app'' and ''SMTP.SendAsApp'' permissions appear in the API permissions list under ''Exchange''.&lt;br /&gt;
* Now click on the ''Grant admin consent for &amp;lt;your tenant name&amp;gt;'' button in the ''Configured permissions'' section.&lt;br /&gt;
* Acknowledge the following notice with ''Yes''.&lt;br /&gt;
* The status of all granted permissions is updated to ''Granted for &amp;lt;your tenant name&amp;gt;''.&lt;br /&gt;
The configuration of MailStore Server's connection to Microsoft 365 within Microsoft Entra ID is now complete. You can sign out of your Microsoft Entra ID tenant and close the browser window. Switch to the ''Directory Services'' page in the MailStore Client again, all remaining configuration steps must be done there.&lt;br /&gt;
&lt;br /&gt;
[[File:Microsoft 365 sync 03.png|center]]&lt;br /&gt;
&lt;br /&gt;
=== User Database Synchronization ===&lt;br /&gt;
After configuring the connection settings as described above, you can specify filter criteria for the Microsoft 365 synchronization in this section.&lt;br /&gt;
*'''Synchronize licensed Microsoft Exchange Online users only'''&amp;lt;br/&amp;gt;Only Microsoft 365 user accounts with a Microsoft Exchange Online license assigned to them will be taken into account by the synchronization.&lt;br /&gt;
*'''Synchronize enabled users only'''&amp;lt;br/&amp;gt;Only Microsoft 365 user accounts that do not have their login to Microsoft 365 blocked will be taken into account by the synchronization.&lt;br /&gt;
*'''Sync only these groups'''&amp;lt;br/&amp;gt;Choose one or several Microsoft 365 security groups if you only want their members to be created as MailStore Server users. That way it's possible to exclude certain users from being synchronized to MailStore Server.&lt;br /&gt;
*'''Also synchronize all Microsoft 365 Groups as MailStore users'''&amp;lt;br/&amp;gt;All [https://learn.microsoft.com/en-us/microsoftteams/office-365-groups Microsoft 365 Groups] with a configured email addresses will be synchronized as MailStore users. Since Microsoft 365 Group mailboxes cannot be accessed directly, those have to be excluded when [[Archiving_Emails_from_Microsoft_Exchange_SE#Archiving_Multiple_Exchange_Mailboxes_Centrally|archiving multiple Exchange mailboxes centrally]]. When [[Archiving_Emails_from_Microsoft_Exchange_SE#Archiving_Incoming_and_Outgoing_Emails_Directly|archiving incoming and outgoing emails directly]], emails sent from and to these Groups will archived.&lt;br /&gt;
&lt;br /&gt;
{{Directory Services Options|Microsoft 365 tenant}}&lt;br /&gt;
{{Directory Services Assign Default Privileges|Microsoft 365}}&lt;br /&gt;
{{Directory Services Run Synchronization|Microsoft 365 tenant}}&lt;br /&gt;
[[File:Office365_sync_02.png|450px|center]]&lt;br /&gt;
&lt;br /&gt;
{{Directory Services Test Authentication}}&lt;br /&gt;
&lt;br /&gt;
== Updating credentials ==&lt;br /&gt;
The certificate generated by MailStore for logging into Microsoft Entra ID is valid for 3750 days (825 days before version 25.3). In order for user synchronization and archiving to work afterwards, the certificate must be updated before its validity expires.&lt;br /&gt;
&lt;br /&gt;
MailStore Server will show a notification on the dashboard in MailStore Client and in the [[Jobs#Templates|status report]] 28 days before credentials expire. You can also use the [[Administration_API_-_Function_Reference#GetCredentials|GetCredentials API command]] to retrieve the expiration date.&lt;br /&gt;
&lt;br /&gt;
To update the credentials, proceed as follows:&lt;br /&gt;
&lt;br /&gt;
=== Updating credentials in MailStore Server ===&lt;br /&gt;
&lt;br /&gt;
* Log on to MailStore Client as a MailStore Server administrator.&lt;br /&gt;
* Click on ''Administrative Tools'' &amp;gt; ''Users and Archives'' &amp;gt; ''Directory Services''.&lt;br /&gt;
* In the ''Integration section'', make sure that the directory service type is set to ''Microsoft 365 (Modern Authentication)'' or ''Microsoft 365 operated by 21 Vianet (Modern Authentication)''.&lt;br /&gt;
[[File:Microsoft 365 sync 01.png|center|347px]]&lt;br /&gt;
* In the ''Connection'' section, click on the button (…) next to the ''Credentials'' drop-down list.&lt;br /&gt;
* In the ''Credential Manager'' that appears, click on the currently used credential object and click ''Edit…''&lt;br /&gt;
: [[File:Microsoft 365 cred 02.png|center|347px]]&lt;br /&gt;
* In the ''Authentication'' section, click on the drop-down button next to the ''Certificate'' text box und select ''Create Certificate...''.&lt;br /&gt;
* Confirm the process.&lt;br /&gt;
* In the ''Authentication'' section, click on the drop-down button next to the ''Certificate'' text box und select ''Download Certificate''. Save the certificate on your hard drive.&lt;br /&gt;
* Confirm your changes by clicking ''OK''.&lt;br /&gt;
* Leave the ''Credential Manager'' by clicking ''Apply''.&lt;br /&gt;
* The newly created credentials are selected in the corresponding drop-down list by default.&lt;br /&gt;
* If you are using Microsoft 365 in hybrid mode and synchronizing users from your Active Directory, set the directory service back to ''Active Directory''.&lt;br /&gt;
&lt;br /&gt;
=== Updating credentials in Microsoft Entra ID ===&lt;br /&gt;
&lt;br /&gt;
* Sign in to the [https://portal.azure.com Microsoft Entra ID Portal] as a Global Administrator for your Microsoft 365 tenant.&amp;lt;br/&amp;gt;The Microsoft Entra ID Portal of ''Office 365, operated by 21Vianet'' [https://portal.azure.cn/#view/Microsoft_AAD_IAM/ActiveDirectoryMenuBlade/~/Overview can be accessed here].&lt;br /&gt;
* In the navigation menu (☰), select the option ''Microsoft Entra ID''.&lt;br /&gt;
* On the next page, select ''App registrations'' in the ''Manage'' section of the left navigation menu.&lt;br /&gt;
* Select the application that is currently used by MailStore.&lt;br /&gt;
* Select ''Certificates &amp;amp; secrets'' in the ''Manage'' section of the left navigation menu.&lt;br /&gt;
* Click on ''Upload certificate'' in the ''Certificates'' section. Select the certificate file that you have saved previously and upload it to Microsoft Entra ID by clicking ''Add''.&lt;br /&gt;
* If uploading has been successful, the certificate's thumbprint as well as its start and expiry dates appear in the certificates list. You can compare the thumbprint and expiry date with those listed in the MailStore Credential Manager to check that you've uploaded the correct certificate.&lt;br /&gt;
* The previously used certificate can be removed from the list.&lt;br /&gt;
&lt;br /&gt;
[[de:Synchronisieren_von_Benutzerkonten_mit_Microsoft_365_(Modern_Authentication)]]&lt;br /&gt;
[[en:Synchronizing_User_Accounts_with_Microsoft_365_(Modern_Authentication)]]&lt;/div&gt;</summary>
		<author><name>Ltalaschus</name></author>
	</entry>
	<entry>
		<id>https://help.mailstore.com/en/server/index.php?title=Archiving_Emails_from_Microsoft_Exchange&amp;diff=7985</id>
		<title>Archiving Emails from Microsoft Exchange</title>
		<link rel="alternate" type="text/html" href="https://help.mailstore.com/en/server/index.php?title=Archiving_Emails_from_Microsoft_Exchange&amp;diff=7985"/>
		<updated>2026-03-19T12:40:08Z</updated>

		<summary type="html">&lt;p&gt;Ltalaschus: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;noinclude&amp;gt;&lt;br /&gt;
Please select your version of Microsoft Exchange Server.&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&lt;br /&gt;
{{Hosted_Exchange_Versions}}* [[Archiving_Emails_from_Microsoft_Exchange_2019|Microsoft Exchange 2019 (Legacy System)]]&lt;br /&gt;
* [[Archiving_Emails_from_Microsoft_Exchange_2016|Microsoft Exchange 2016 (Legacy System)]]&lt;br /&gt;
* [[Archiving_Emails_from_Microsoft_Exchange_2013|Microsoft Exchange 2013 (Legacy System)]]&lt;br /&gt;
* [[Archiving_Emails_from_Microsoft_Exchange_2010|Microsoft Exchange 2010 (Legacy System)]]&lt;br /&gt;
* [[Archiving_Emails_from_Microsoft_Exchange_2007|Microsoft Exchange 2007 (Legacy System)]]&lt;br /&gt;
&amp;lt;noinclude&amp;gt;&lt;br /&gt;
[[de:E-Mail-Archivierung von Microsoft Exchange]]&lt;br /&gt;
[[en:Archiving_Emails_from_Microsoft_Exchange]]&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>Ltalaschus</name></author>
	</entry>
	<entry>
		<id>https://help.mailstore.com/en/server/index.php?title=Storage_Locations&amp;diff=7984</id>
		<title>Storage Locations</title>
		<link rel="alternate" type="text/html" href="https://help.mailstore.com/en/server/index.php?title=Storage_Locations&amp;diff=7984"/>
		<updated>2026-03-18T10:34:35Z</updated>

		<summary type="html">&lt;p&gt;Ltalaschus: /* Creating an External Archive Store */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;A MailStore archive physically (i.e. on the storage) consists of individual archive stores, each with its own database, search indexes and data containers.&amp;lt;br/&amp;gt;To MailStore users these archive stores are fully transparent; they have access to all archived emails in all active archive stores and thus get a logical view on the archive according to their respective privileges.&lt;br /&gt;
&lt;br /&gt;
Under ''Administrative Tools &amp;gt; Storage &amp;gt; Storage Locations'' you can configure the parameters of the archive stores' auto-create, manually create new archive stores and manage the archive's existing archive stores. You can also view the location of the master database here.&lt;br /&gt;
	&lt;br /&gt;
== Changing the Storage Location of the Master Database ==&lt;br /&gt;
The storage location of the master database can only be viewed here. In case the MailStore Client is started on the MailStore Server machine, clicking on ''Change...'' closes the MailStore Client and starts the [[MailStore Server Service Configuration]].&lt;br /&gt;
&lt;br /&gt;
== Archive Store Basics ==&lt;br /&gt;
In MailStore, there are two types of archive stores: ''Internal Archive Stores'' and ''External Archive Stores''.&lt;br /&gt;
&lt;br /&gt;
Internal archive stores are stored entirely in configurable file system directories and can be created, managed and backed up automatically by MailStore. For most environments using internal archive stores is recommended.&lt;br /&gt;
&lt;br /&gt;
External archive stores offer storage in SQL databases, but have several limitations. Information about external archive stores is available in chapter [[Using External Archive Stores]].&lt;br /&gt;
&lt;br /&gt;
Both internal and external archive stores always consist of the following three components:&lt;br /&gt;
{{Archive Stores Structure}}&lt;br /&gt;
MailStore archive stores as a whole as well as their individual components can be put on different physical storage locations, including network based storages. For additional information, please refer to the article [[Using Network Attached Storage (NAS)]].&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p class=&amp;quot;msnote&amp;quot;&amp;gt;'''Important notice: '''When choosing the physical storage system, please attend to the [[System Requirements]].&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Creating Archive Stores ==&lt;br /&gt;
In MailStore Server, internal archive stores are created automatically and additionally can be created manually. External archive stores can only be created manually.&lt;br /&gt;
&lt;br /&gt;
=== Creating Internal Archive Stores Automatically ===&lt;br /&gt;
From time to time, MailStore Server automatically creates a new internal archive store for optimal system performance and stability. The maximum size and amount of emails are determined by MailStore Server internally.&lt;br /&gt;
&lt;br /&gt;
If needed, you can limit the size that an archive store can reach at most before a new one is created to align with your backup routine. You can also configure the storage location where new archive stores will be created automatically.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p class=&amp;quot;msnote&amp;quot;&amp;gt;'''Important notice: '''The maximum size should not be configured manually without good reason, so that MailStore Server can determine the optimal time automatically for creating a new archive store.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To change these settings, please proceed as follows:&lt;br /&gt;
&lt;br /&gt;
* Below the list of archive stores, click on the ''Create automatically...'' button.&lt;br /&gt;
* [[File:tech_storageauto_01.png|right|350px]]The ''Auto-Create Archive Stores'' dialog opens.&lt;br /&gt;
* Customize the settings as preferred.&lt;br /&gt;
* Under ''Base directory'' enter the directory below which you want MailStore Server to create the new internal archive stores. The internal archive stores that are created automatically by MailStore Server, including any subfolders, follow the naming scheme ''year-month'', e.g. ''2021-10''.&lt;br /&gt;
* ''Optional: ''With the option ''Use different base directories for databases, content and search indexes'' you can configure separate directories for the individual components of an archive store. For example, you can put database and search index on a fast storage to accelerate folder operations and the MailStore search while leaving the email content files on a slower storage.&lt;br /&gt;
* Click on ''OK''.&amp;lt;br clear=all /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Creating an Internal Archive Store Manually ===&lt;br /&gt;
To create a new internal archive store manually, please proceed as follows:&lt;br /&gt;
&lt;br /&gt;
* Below the list of archive stores, click on the ''Create...'' button.&lt;br /&gt;
* The ''Create New Archive Store'' wizard opens.&lt;br /&gt;
* Select the option ''Internal Archive Store'' and click on ''Next''.&lt;br /&gt;
* [[File:tech_storageloc_int_01.png|right|350px]]Enter a name for the new internal archive store in the ''Name'' field, e.g. ''2021-10''.&lt;br /&gt;
* If you don't want MailStore to archive new emails in the new archive store, deselect the option ''Archive new messages here''.&lt;br /&gt;
* MailStore Server derives a base directory for the new internal archive store from the name entered and the path of the master database. By default, MailStore Server stores all components of an archive store in a folder structure that is created automatically below the base directory. You can optionally either change the proposed path manually or select an existing directory; an existing directory must not contain any files or subfolders.&lt;br /&gt;
* ''Optional: ''With the option ''Use different base directories for databases, content and search indexes'' you can configure separate directories for the individual components of an archive store. For example, you can put database and search index on a fast storage to accelerate folder operations and the MailStore search while leaving the email content files on a slower storage.&lt;br /&gt;
* Click on ''Finish'' to create the internal archive store.&amp;lt;br clear=all /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Creating an External Archive Store ===&lt;br /&gt;
&lt;br /&gt;
{{Template:SQLDeprecation}}&lt;br /&gt;
&lt;br /&gt;
Managing external archive stores is described in chapter [[Using External Archive Stores]].&lt;br /&gt;
&lt;br /&gt;
== Managing Archive Stores ==&lt;br /&gt;
[[File:tech_storageloc_01.png|center|550px]]&lt;br /&gt;
=== Setting the Status ===&lt;br /&gt;
Right-click on an archive store and select the status from the ''Set Status'' submenu. As an alternative, you can select an archive store and set the status via the drop-down list in the details pane on the right of the archive store list. You can set the following status:&lt;br /&gt;
&lt;br /&gt;
* ''Archive here''&amp;lt;br/&amp;gt;In MailStore Server, there can only be one archive store with this status. All newly archived emails are written into this archive store. The emails are available to all MailStore users and can be located by searching and through the folder structure. Emails in this archive store can be deleted or moved according to configured user privileges and compliance settings.&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&amp;lt;p class=&amp;quot;msnote&amp;quot;&amp;gt;'''Notice: '''If a new internal archive store has been created automatically, its status is initially set to ''Archive here''.&amp;lt;br/&amp;gt;If you set an external archive store's status to ''Archive here'', the automatic creation of internal archive stores will be suspended until you set an internal archive store to this status.&amp;lt;/p&amp;gt;&lt;br /&gt;
* ''Normal''&amp;lt;br/&amp;gt;Emails in archive stores with status ''Normal'' are available to all MailStore users and can be located by searching and through the folder structure. Emails in this archive store can be deleted or moved according to configured user privileges and compliance settings.&lt;br /&gt;
* ''Write-Protected''&amp;lt;br/&amp;gt;Irrespective of user privileges and compliance settings, emails in write-protected archive stores can only be accessed read-only. The emails are available to all MailStore users and can be located by searching and through the folder structure. However, emails in such archive stores cannot be deleted or moved.&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&amp;lt;p class=&amp;quot;msnote&amp;quot;&amp;gt;'''Notice: '''Please note that file system write access to the directory of the archive store is still required and that this status prevents automatic processing of retention policies.&amp;lt;/p&amp;gt;&lt;br /&gt;
* ''Disabled''&amp;lt;br/&amp;gt;Disabling an archive store allows you to make changes to its configuration. This may be necessary after [[Moving the Archive]], for example. While an archive store is disabled, the emails contained therein are not available to the archive.&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&amp;lt;p class=&amp;quot;msnote&amp;quot;&amp;gt;'''Notice: '''Please note that this status prevents the execution of archiving profiles.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Editing ===&lt;br /&gt;
Through the context menu item ''Edit...'' you can change the name and the directories of an archive store with status ''Disabled''.&lt;br /&gt;
&lt;br /&gt;
=== Renaming ===&lt;br /&gt;
Through the context menu item ''Rename...'' you can change the name of an archive store irrespective of its status.&lt;br /&gt;
&lt;br /&gt;
=== Detaching ===&lt;br /&gt;
Through the context menu item ''Detach'' you can detach an archive store from the archive, for example if all email contained therein do no longer have to be archived. The detached archive store and the emails contained therein are no longer available to the archive.&lt;br /&gt;
&lt;br /&gt;
=== Attaching ===&lt;br /&gt;
A detached archive store can be reattached to the archive using the ''Attach...'' button. If the archive store cannot be decrypted automatically, you will be asked for the respective recovery key. For example, this could be the case for archive stores that belonged to another MailStore installation or which have been moved from another machine. You can find more information on the recovery key in section  [[MailStore_Server_Service_Configuration#Security_and_Encryption|Security and Encryption]] of chapter [[MailStore Server Service Configuration]].&lt;br /&gt;
&lt;br /&gt;
=== Unlocking ===&lt;br /&gt;
If an archive store cannot be decrypted automatically, it will be listed as ''Locked'' in the list of archive stores. Through the context menu item ''Unlock'' or by changing the status you will be asked for the respective recovery key. You can find more information on the recovery key in section  [[MailStore_Server_Service_Configuration#Security_and_Encryption|Security and Encryption]] of chapter [[MailStore Server Service Configuration]].&lt;br /&gt;
&lt;br /&gt;
== Maintenance of Archive Stores ==&lt;br /&gt;
All available maintenance commands can be accessed through the context menu of the list of archive stores. Alternatively, you can select an archive store and click on the ''Maintenance'' drop-down list in the details pane. The following commands are available:&lt;br /&gt;
&lt;br /&gt;
* ''Cleanup (Compact)''&amp;lt;br/&amp;gt;Optimizes the data structures while compacting the data.&lt;br /&gt;
* ''Check Data Integrity''&amp;lt;br/&amp;gt;Verifies the data integrity between &amp;quot;Folder Information and Meta Data&amp;quot; as well as &amp;quot;Email Headers and Contents&amp;quot;.&lt;br /&gt;
* ''Maintain All FDB Files''&amp;lt;br/&amp;gt;Maintains the master database and all databases of internal archive stores.&lt;br /&gt;
* ''Recalculate all statistics''&amp;lt;br/&amp;gt;Recalculates the statistics (number of emails per archive store) for all archive stores.&lt;br /&gt;
&lt;br /&gt;
Maintenance commands can also be scheduled for automatic execution via [[Jobs]].&lt;br /&gt;
&lt;br /&gt;
[[de:Speicherorte]]&lt;br /&gt;
[[en:Storage Locations]]&lt;/div&gt;</summary>
		<author><name>Ltalaschus</name></author>
	</entry>
	<entry>
		<id>https://help.mailstore.com/en/server/index.php?title=Template:Archiving_Exchange_Throttling&amp;diff=7976</id>
		<title>Template:Archiving Exchange Throttling</title>
		<link rel="alternate" type="text/html" href="https://help.mailstore.com/en/server/index.php?title=Template:Archiving_Exchange_Throttling&amp;diff=7976"/>
		<updated>2026-01-30T10:35:48Z</updated>

		<summary type="html">&lt;p&gt;Ltalaschus: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Exchange {{{1|2013}}} supports throttling since the RTM version. With throttling you can control on the Exchange side the speed and the amount of emails individual users can download from the Exchange server. {{#switch: {{{1|2013}}}|2010 = Since Exchange 2010 SP1 this feature is enabled by default.|This feature is enabled by default.}}&lt;br /&gt;
&lt;br /&gt;
=== Determining the Throttling Policy Applied to the  MailStore Service Account ===&lt;br /&gt;
&lt;br /&gt;
You can use the following Powershell script to check which throttling policy is applied to the &amp;lt;includeonly&amp;gt;[[#Step 1: Setting up a service account for accessing mailboxes|service account that MailStore uses for archiving]]&amp;lt;/includeonly&amp;gt;&amp;lt;noinclude&amp;gt;service account that MailStore uses for archiving&amp;lt;/noinclude&amp;gt;:&lt;br /&gt;
{{#switch: {{{1|2013}}}|2010 =&amp;lt;source lang=&amp;quot;powershell&amp;quot; smart-tabs=&amp;quot;true&amp;quot; toolbar=&amp;quot;false&amp;quot; gutter=&amp;quot;false&amp;quot;&amp;gt;&lt;br /&gt;
Param([Parameter(Mandatory=$True)][string]$serviceAccount)&lt;br /&gt;
$policy = $null&lt;br /&gt;
$policyLink = (Get-Mailbox $serviceAccount).ThrottlingPolicy &lt;br /&gt;
if ($policyLink -eq $null)&lt;br /&gt;
{ &lt;br /&gt;
  $policy = Get-ThrottlingPolicy | where-object {$_.IsDefault -eq $true}&lt;br /&gt;
}&lt;br /&gt;
else&lt;br /&gt;
{&lt;br /&gt;
  $policy = $policyLink | Get-ThrottlingPolicy&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
$result = $policy | format-list -property Name, IsDefault, EWS*&lt;br /&gt;
$result&lt;br /&gt;
&amp;lt;/source&amp;gt;|2013|2016|2019|SE =&amp;lt;source lang=&amp;quot;powershell&amp;quot; smart-tabs=&amp;quot;true&amp;quot; toolbar=&amp;quot;false&amp;quot; gutter=&amp;quot;false&amp;quot;&amp;gt;&lt;br /&gt;
Param([Parameter(Mandatory=$True)][string]$serviceAccount)&lt;br /&gt;
$policy = (Get-ThrottlingPolicyAssociation -Identity $serviceAccount).ThrottlingPolicyId&lt;br /&gt;
$policy = switch($policy) {$null {Get-ThrottlingPolicy | Where ThrottlingPolicyScope -eq 'Global'} default {$policy | Get-ThrottlingPolicy}}&lt;br /&gt;
$policy | format-list -property Name, ThrottlingPolicyScope, EWS*&lt;br /&gt;
&amp;lt;/source&amp;gt;}}&lt;br /&gt;
To use the script, please copy the entire content into a text editor and save the script as '''policycheck.ps1''', for example on the desktop of the Exchange server.&lt;br /&gt;
&lt;br /&gt;
You can now run the script from the Exchange Management Shell with the UPN (User Principal Name) of the MailStore service account (e.g. ''mailstore@example.com'') as parameter. Since, in the context of MailStore Server, only the EWS values are of any interest, the following result may be displayed: &lt;br /&gt;
{{#switch: {{{1|2013}}}|2010 =&amp;lt;source lang=&amp;quot;powershell&amp;quot; smart-tabs=&amp;quot;true&amp;quot; toolbar=&amp;quot;false&amp;quot; gutter=&amp;quot;false&amp;quot;&amp;gt;&lt;br /&gt;
[PS] C:\Users\Administrator\Desktop&amp;gt;.\policycheck.ps1 mailstore@example.com&lt;br /&gt;
  &lt;br /&gt;
Name                          : DefaultThrottlingPolicy_8c5771...&lt;br /&gt;
IsDefault                     : True&lt;br /&gt;
EWSMaxConcurrency             : 100&lt;br /&gt;
EWSPercentTimeInAD            : 50&lt;br /&gt;
EWSPercentTimeInCAS           : 90&lt;br /&gt;
EWSPercentTimeInMailboxRPC    : 60&lt;br /&gt;
EWSMaxSubscriptions           : 5000&lt;br /&gt;
EWSFastSearchTimeoutInSeconds : 60&lt;br /&gt;
EWSFindCountLimit             : 1000&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
In this case, no separate policy exists for the MailStore service account. The value 'True' of the property &amp;lt;tt&amp;gt;IsDefault&amp;lt;/tt&amp;gt; indicates that the default throttling policy of the system applies to the MailStore service account ''mailstore@example.com'' as well. Had the value been 'False', the individual policy &amp;lt;tt&amp;gt;Name&amp;lt;/tt&amp;gt; would already have been applied to the MailStore service account.&lt;br /&gt;
|2013|2016|2019|SE =&amp;lt;source lang=&amp;quot;powershell&amp;quot; smart-tabs=&amp;quot;true&amp;quot; toolbar=&amp;quot;false&amp;quot; gutter=&amp;quot;false&amp;quot;&amp;gt;&lt;br /&gt;
[PS] C:\Users\Administrator\Desktop&amp;gt;.\policycheck.ps1 mailstore@example.com&lt;br /&gt;
  &lt;br /&gt;
Name                  : GlobalThrottlingPolicy_b4ef32cb-3677-44fd-be1a-ad784931f16f&lt;br /&gt;
ThrottlingPolicyScope : Global&lt;br /&gt;
EwsMaxConcurrency     : 27&lt;br /&gt;
EwsMaxBurst           : 300000&lt;br /&gt;
EwsRechargeRate       : 900000&lt;br /&gt;
EwsCutoffBalance      : 3000000&lt;br /&gt;
EwsMaxSubscriptions   : 5000&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
In this case, no separate policy exists for the MailStore service account. The value 'Global' of the property &amp;lt;tt&amp;gt;ThrottlingPolicyScope&amp;lt;/tt&amp;gt; indicates that the global throttling policy of the system applies to the MailStore service account ''mailstore@example.com'' as well. Had the value been 'Regular', the individual policy &amp;lt;tt&amp;gt;Name&amp;lt;/tt&amp;gt; would already have been applied to the MailStore service account.}}&lt;br /&gt;
&lt;br /&gt;
=== Creating and Assigning an Individual Throttling Policy ===&lt;br /&gt;
Because MailStore regularly establishes many connections to the Exchange server and may have to download large amounts of emails through its service account, the account should be exempt from the restrictions of the global throttling policy. You can achieve this by creating a dedicated throttling policy for the MailStore service account:&lt;br /&gt;
{{#switch: {{{1|2013}}}|2010 =&amp;lt;source lang=&amp;quot;powershell&amp;quot; smart-tabs=&amp;quot;true&amp;quot; toolbar=&amp;quot;false&amp;quot; gutter=&amp;quot;false&amp;quot;&amp;gt;&lt;br /&gt;
New-ThrottlingPolicy MailStoreServerPolicy &lt;br /&gt;
Get-ThrottlingPolicy MailStoreServerPolicy | Set-ThrottlingPolicy -EWSFindCountLimit 2500 -EWSPercentTimeInAD 70 -EWSPercentTimeInCAS 120 -EWSPercentTimeInMailboxRPC 80&lt;br /&gt;
Set-Mailbox 'mailstore@example.com' -ThrottlingPolicy MailStoreServerPolicy&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
In line 1, a new throttling policy with the desired values is created, in line 2, this individual throttling policy is assigned to the MailStore service account.&lt;br /&gt;
The result can be checked again with the script listed above:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;powershell&amp;quot; smart-tabs=&amp;quot;true&amp;quot; toolbar=&amp;quot;false&amp;quot; gutter=&amp;quot;false&amp;quot;&amp;gt;&lt;br /&gt;
[PS] C:\Users\Administrator\Desktop&amp;gt;.\policycheck.ps1 mailstore@example.com&lt;br /&gt;
  &lt;br /&gt;
Name          				  : MailStoreServerPolicy&lt;br /&gt;
IsDefault                     : False&lt;br /&gt;
EWSMaxConcurrency             : 100&lt;br /&gt;
EWSPercentTimeInAD            : 70&lt;br /&gt;
EWSPercentTimeInCAS           : 120&lt;br /&gt;
EWSPercentTimeInMailboxRPC    : 80&lt;br /&gt;
EWSMaxSubscriptions           : 5000&lt;br /&gt;
EWSFastSearchTimeoutInSeconds : 60&lt;br /&gt;
EWSFindCountLimit             : 2500&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;p class=&amp;quot;msnote&amp;quot;&amp;gt;'''Important:''' Please note that a mailbox must be set up for the MailStore service account in order to be able to assign a dedicated throttling policy to it.&amp;lt;/p&amp;gt;&lt;br /&gt;
|2013|2016|2019|SE =&amp;lt;source lang=&amp;quot;powershell&amp;quot; smart-tabs=&amp;quot;true&amp;quot; toolbar=&amp;quot;false&amp;quot; gutter=&amp;quot;false&amp;quot;&amp;gt;&lt;br /&gt;
New-ThrottlingPolicy MailStoreServerPolicy -EWSMaxConcurrency Unlimited -EWSMaxSubscriptions Unlimited -EwsCutoffBalance Unlimited -EwsMaxBurst Unlimited -EwsRechargeRate Unlimited -IsServiceAccount -ThrottlingPolicyScope Regular&lt;br /&gt;
  &lt;br /&gt;
Set-ThrottlingPolicyAssociation -Identity 'mailstore@example.com' -ThrottlingPolicy MailStoreServerPolicy&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
In line 1, a new throttling policy with the desired values is created, in line 2, this individual throttling policy is assigned to the MailStore service account.&lt;br /&gt;
The result can be checked again with the script listed above:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;powershell&amp;quot; smart-tabs=&amp;quot;true&amp;quot; toolbar=&amp;quot;false&amp;quot; gutter=&amp;quot;false&amp;quot;&amp;gt;&lt;br /&gt;
[PS] C:\Users\Administrator\Desktop&amp;gt;.\policycheck.ps1 mailstore@example.com&lt;br /&gt;
  &lt;br /&gt;
Name                  : MailStoreServerPolicy&lt;br /&gt;
ThrottlingPolicyScope : Regular&lt;br /&gt;
EwsMaxConcurrency     : Unlimited&lt;br /&gt;
EwsMaxBurst           : Unlimited&lt;br /&gt;
EwsRechargeRate       : Unlimited&lt;br /&gt;
EwsCutoffBalance      : Unlimited&lt;br /&gt;
EwsMaxSubscriptions   : Unlimited&lt;br /&gt;
&amp;lt;/source&amp;gt;}}&lt;br /&gt;
=== Removing and Deleting an Individual Throttling Policy ===&lt;br /&gt;
To delete an individual throttling policy from a mailbox or user account, execute the following command in the Exchange Management Shell:  &lt;br /&gt;
{{#switch: {{{1|2013}}}|2010 =&amp;lt;source lang=&amp;quot;powershell&amp;quot; smart-tabs=&amp;quot;true&amp;quot; toolbar=&amp;quot;false&amp;quot; gutter=&amp;quot;false&amp;quot;&amp;gt;&lt;br /&gt;
Set-Mailbox 'mailstore@example.com' -ThrottlingPolicy $null&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
|2013|2016|2019|SE =&amp;lt;source lang=&amp;quot;powershell&amp;quot; smart-tabs=&amp;quot;true&amp;quot; toolbar=&amp;quot;false&amp;quot; gutter=&amp;quot;false&amp;quot;&amp;gt;&lt;br /&gt;
  Set-ThrottlingPolicyAssociation -Identity 'mailstore@example.com' -ThrottlingPolicy $null&lt;br /&gt;
&amp;lt;/source&amp;gt;}}&lt;br /&gt;
This removes the assignment of a throttling policy. To delete the throttling policy from the Exchange system, execute the following command in the Exchange Management Shell:&lt;br /&gt;
{{#switch: {{{1|2013}}}|2010 =&amp;lt;source lang=&amp;quot;powershell&amp;quot; smart-tabs=&amp;quot;true&amp;quot; toolbar=&amp;quot;false&amp;quot; gutter=&amp;quot;false&amp;quot;&amp;gt;&lt;br /&gt;
Remove-ThrottlingPolicy MailStoreServerPolicy&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
|2013|2016|2019|SE =&amp;lt;source lang=&amp;quot;powershell&amp;quot; smart-tabs=&amp;quot;true&amp;quot; toolbar=&amp;quot;false&amp;quot; gutter=&amp;quot;false&amp;quot;&amp;gt;&lt;br /&gt;
Remove-ThrottlingPolicy MailStoreServerPolicy&lt;br /&gt;
&amp;lt;/source&amp;gt;}}&lt;br /&gt;
Confirm this by entering &amp;quot;Y&amp;quot;. The policy is now deleted from the system.&lt;br /&gt;
&amp;lt;noinclude&amp;gt;&lt;br /&gt;
[[de:Vorlage:Archivierung Exchange Throttling]]&lt;br /&gt;
[[en:Template:Archiving Exchange Throttling]]&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>Ltalaschus</name></author>
	</entry>
	<entry>
		<id>https://help.mailstore.com/en/server/index.php?title=Exporting_Email&amp;diff=7975</id>
		<title>Exporting Email</title>
		<link rel="alternate" type="text/html" href="https://help.mailstore.com/en/server/index.php?title=Exporting_Email&amp;diff=7975"/>
		<updated>2026-01-29T12:42:58Z</updated>

		<summary type="html">&lt;p&gt;Ltalaschus: /* Working with Exporting Profiles */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;MailStore Server provides several options to export archived emails. Emails can be exported directly into server mailboxes or to the file system as individual email files (EML or MSG format), for example.&lt;br /&gt;
&lt;br /&gt;
'''Please note:''' Backup strategies (a backup of the entire archive) are discussed separately in the article [[Backup and Restore]].&lt;br /&gt;
&lt;br /&gt;
== Available Export Destinations ==&lt;br /&gt;
&lt;br /&gt;
=== Email Server ===&lt;br /&gt;
*'''Microsoft&amp;amp;nbsp;365 Mailbox''' - A folder named ''MailStore Export'' is created in the Microsoft&amp;amp;nbsp;365 mailbox into which emails are copied. If the option ''Retain folder structure'' is checked, the archive's folder hierarchy will be created in the destination, otherwise all email will be stored in the same folder.&lt;br /&gt;
*'''Exchange Mailbox''' - A folder named ''MailStore Export'' is created in the Exchange mailbox into which emails are copied. If the option ''Retain folder structure'' is checked, the archive's folder hierarchy will be created in the destination, otherwise all email will be stored in the same folder.&lt;br /&gt;
*'''Google Workspace''' - A folder named ''MailStore Export'' is created in a Google Workspace mailbox into which emails are copied.&lt;br /&gt;
*'''Gmail''' - A folder named ''MailStore Export'' is created in a Gmail mailbox into which emails are copied.&lt;br /&gt;
*'''IMAP mailbox''' - A folder named ''MailStore Export'' is created in an IMAP mailbox into which emails are copied. If the option ''Retain folder structure'' is checked, the archive's folder hierarchy will be created in the destination, otherwise all email will be stored in the same folder.&lt;br /&gt;
&lt;br /&gt;
=== Email Clients ===&lt;br /&gt;
* '''Microsoft Outlook''' - A folder named ''MailStore Export'' is created in Microsoft Outlook into which emails are copied. If the option ''Retain folder structure'' is checked, the archive's folder hierarchy will be created in the destination, otherwise all email will be stored in the same folder.&lt;br /&gt;
* '''Mozilla Thunderbird''' - A folder named ''MailStore Export'' is created in Mozilla Thunderbird into which emails are copied. If the option ''Retain folder structure'' is checked, the archive's folder hierarchy will be created in the destination, otherwise all email will be stored in the same folder.&lt;br /&gt;
* '''Mozilla SeaMonkey''' - A folder named ''MailStore Export'' is created in Mozilla SeaMonkey into which emails are copied. If the option ''Retain folder structure'' is checked, the archive's folder hierarchy will be created in the destination, otherwise all email will be stored in the same folder.&lt;br /&gt;
&lt;br /&gt;
=== Email Files ===&lt;br /&gt;
*'''Directory (File System)''' - Either EML or MSG files are created (one per email). When enabling the option ''Update existing export'' only not already existing email files will be written into the target folders, or else all email files will be written again. The option ''Sign Export'' allows to ensure integrity of the exported data outside of the archive. Refer to [[Verifying a Signed Export]] for further details on how to verify integrity. If the option ''Retain folder structure'' is checked, the archive's folder hierarchy will be created in the destination, otherwise all email will be stored in the same folder.&lt;br /&gt;
* '''Outlook PST File''' - A folder named ''MailStore Export'' is created in a Microsoft Outlook PST file into which emails are copied. If the option ''Retain folder structure'' is checked, the archive's folder hierarchy will be created in the destination, otherwise all email will be stored in the same folder.&lt;br /&gt;
&lt;br /&gt;
'''Please note:''' EML files can be opened independently from MailStore Server by double-clicking and moving to applications such as Mozilla Thunderbird via drag &amp;amp; drop. Outlook MSG files can be opened or archived directly with all versions of Microsoft Outlook.&lt;br /&gt;
&lt;br /&gt;
== Starting an Export ==&lt;br /&gt;
Depending on the user's permissions, MailStore Server allows exporting multiple emails in one step. Exporting or opening individual emails is possible at all time. In case an admin user wants to export emails of other users, [[Compliance_General#Archive_Access|Archive Access]] has to be unblocked.&lt;br /&gt;
&lt;br /&gt;
=== Using the folder tree ===&lt;br /&gt;
Right-click on an element in the folder tree (user archive, folder or saved search), then select ''Export to...'' from the context menu and select the export destination. A dialog appears in which additional settings may have to be specified.&lt;br /&gt;
&lt;br /&gt;
=== Using the list of emails ===&lt;br /&gt;
Highlight the emails to be exported by holding down the control key (Ctrl) and clicking onto the emails. Pressing Ctrl and A selects all emails. Right-click on the highlighted emails, then select ''Export to...'' from the context menu and select the export destination. A dialog appears in which additional settings may have to be specified.&lt;br /&gt;
&lt;br /&gt;
=== Using the page &amp;quot;Export Email&amp;quot; ===&lt;br /&gt;
On this page, exporting tasks can be created and executed as export profiles (just like archiving profiles). Export profiles hold information about which emails will be exported to which destination. Each profile (i.e. the exporting task) can be executed manually or regularly according to a schedule. To learn more, please read on in the next section.&lt;br /&gt;
&lt;br /&gt;
== Working with Exporting Profiles ==&lt;br /&gt;
In MailStore Server, every exporting task is stored as an exporting profile. The exporting process is started by executing such a profile.&lt;br /&gt;
&lt;br /&gt;
Such an exporting profile could contain the following information:&lt;br /&gt;
&lt;br /&gt;
* WHAT: Archive of alexis.page@example.com&lt;br /&gt;
* TO: Exchange Server exchange.example.com&lt;br /&gt;
&lt;br /&gt;
Like archiving profiles, existing export profiles can be executed, modified, deleted or even executed automatically. Further details can be found in the chapters [[Email_Archiving_with_MailStore_Basics#Working_with_Archiving_Profiles|Working with Archiving Profiles]] and [[Email_Archiving_with_MailStore_Basics#Automating_the_Archiving_Process|Automating the Archiving Process]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p class=&amp;quot;msnote&amp;quot;&amp;gt;'''Important notice:''' Be aware that an export does not verify if the messages already exist in the destination. Therefore, duplicates are created in the selected destination when re-executing an export profile multiple times. Thus it is not recommended to automate the execution of export profiles. Only exception is the ''Directory (File System)'' export profile, where MailStore Server is able to do a comparison based on the file names.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Creating an Export Profile ===&lt;br /&gt;
To create a new export profile, please proceed as follows:&lt;br /&gt;
&lt;br /&gt;
* Start MailStore Client on the computer which is to execute the export. Log on as administrator if the emails of other users are to be exported as well. Only a MailStore Server administrator is allowed to export the emails of others.&lt;br /&gt;
* Click on ''Export Email''. &lt;br /&gt;
&lt;br /&gt;
[[File:accs_export_01.png|center|450px]]&lt;br /&gt;
&lt;br /&gt;
* From the lists in the upper ''Create Profile'' area, select the destination to which emails are to be exported.&lt;br /&gt;
* A wizard opens to assist in specifying the export settings.&lt;br /&gt;
* At the first step, specify which folder is to be exported (subfolders are always included). Depending on the export destination, the file format to be used (e.g. EML , MSG or PST) can be selected as well. Click on ''Next''.&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;'''Please note:''' Below the list of folders, a saved search can also be selected. MailStore runs the search before executing the actual export procedure; all emails returned by the search will be exported.&lt;br /&gt;
* At the second step, specify the exact target location to which emails are to be exported. For example, if ''Exchange Mailbox'' was selected as export destination earlier, the access data for the target mailbox can be specified and verified by clicking on ''Test''. Then click on ''Next''.&lt;br /&gt;
* Depending on the export destination specified, additional settings can be selected at the next step. For example, if ''IMAP mailbox'' was selected as the destination, a timeout value can be set, if needed.&lt;br /&gt;
* At the last step, a name for the export profile can be specified. After clicking on ''Finish'', the  profile will be listed under ''Saved Profiles'' and can be run immediately, if desired.&lt;br /&gt;
&lt;br /&gt;
[[de:E-Mails_exportieren]]&lt;br /&gt;
[[en:Exporting Email]]&lt;/div&gt;</summary>
		<author><name>Ltalaschus</name></author>
	</entry>
	<entry>
		<id>https://help.mailstore.com/en/server/index.php?title=Synchronizing_User_Accounts_with_Microsoft_365_-_Modern_Authentication&amp;diff=7974</id>
		<title>Synchronizing User Accounts with Microsoft 365 - Modern Authentication</title>
		<link rel="alternate" type="text/html" href="https://help.mailstore.com/en/server/index.php?title=Synchronizing_User_Accounts_with_Microsoft_365_-_Modern_Authentication&amp;diff=7974"/>
		<updated>2026-01-27T10:54:59Z</updated>

		<summary type="html">&lt;p&gt;Ltalaschus: /* Configuring App Authentication in Microsoft Entra ID */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Directory Services Preamble|Microsoft 365 tenant|Microsoft 365||}}&lt;br /&gt;
== Prerequisites, Recommendations and Limitations ==&lt;br /&gt;
* For best user experience, the certificate used by MailStore Server should be trusted by all clients and the used web browsers. Using a certificate that is signed by a trusted certificate authority or [[Using_Lets_Encrypt_Certificates|using Let's Encrypt certificates]] is highly recommended.&lt;br /&gt;
* If you have archived emails from an Exchange server and synchronized users from an Active Directory until now, follow the article [[Changing Archiving from Microsoft Exchange Server to Microsoft 365]]&lt;br /&gt;
* If users are supposed to log in to MailStore Server from outside the organization's network without a VPN using [[Accessing_the_Archive_with_the_MailStore_Client_software|MailStore Client]], [[Accessing_the_Archive_with_the_Microsoft_Outlook_integration|MailStore Outlook Add-in]] or the [[Accessing_the_Archive_with_MailStore_Web_Access|Web Access]], the URIs mentioned in this article must be resolvable via DNS on the Internet and port-forwardings to the MailStore Server computer must be set up on the firewall or router if necessary. &lt;br /&gt;
* When using Microsoft&amp;amp;nbsp;365 to authenticate users at login, [[Accessing_the_Archive_via_Integrated_IMAP_Server|accessing the archive via IMAP]] is not possible for technical reasons.&lt;br /&gt;
* MailStore Server supports the synchronization of user accounts with the global Microsoft Cloud ''Microsoft&amp;amp;nbsp;365'' and ''Office&amp;amp;nbsp;365, operated by 21Vianet''. Other Environments like GCC, GCC&amp;amp;nbsp;High or DoD are not supported. In the following article, only the term Microsoft 365 is used for the sake of simplicity.&lt;br /&gt;
&lt;br /&gt;
== Connecting MailStore Server and Microsoft 365 ==&lt;br /&gt;
In order to synchronize user information from Microsoft 365, MailStore Server has to be connected to your Microsoft 365 tenant and been granted the required permissions. Microsoft 365 relies on Microsoft Entra ID as directory service. Each Microsoft 365 tenant corresponds to an Microsoft Entra ID tenant that stores its user information.&lt;br /&gt;
&lt;br /&gt;
=== Registering of MailStore Server as App in Microsoft Entra ID ===&lt;br /&gt;
Through registration, MailStore Server gets an identity in Microsoft Entra ID that makes it possible to authenticate to the tenant's services and use their resources.&lt;br /&gt;
* Sign in to the [https://portal.azure.com Microsoft Entra ID Portal] as a Global Administrator for your Microsoft 365 tenant.&amp;lt;br/&amp;gt;The Microsoft Entra ID Portal of ''Office 365, operated by 21Vianet'' [https://portal.azure.cn/#view/Microsoft_AAD_IAM/ActiveDirectoryMenuBlade/~/Overview can be accessed here].&lt;br /&gt;
* In the navigation menu (☰), select the option ''Microsoft Entra ID''.&lt;br /&gt;
* On the next page, select ''App registrations'' in the ''Manage'' section of the left navigation menu.&lt;br /&gt;
* Select ''New Registration''. The ''Register an application'' page appears.&lt;br /&gt;
* In the ''Name'' field, enter a meaningful display name, e.g. ''MailStore Server''. This name will be shown to users on logon later on, for example.&lt;br /&gt;
* Leave all other settings on this page to their defaults.&lt;br /&gt;
* Click on ''Register''. If the registration has been successful, you are shown the overview page of the newly registered app.&lt;br /&gt;
The ''Application (client) ID'' shown on this page identifies MailStore Server in your Microsoft Entra ID tenant and has to be copied into MailStore Server next, together with the ''Directory (tenant) ID''. Therefore, for the following steps, leave the overview page open in your web browser.&lt;br /&gt;
&lt;br /&gt;
=== Creating Credentials in MailStore Server ===&lt;br /&gt;
Credentials for Microsoft 365 consist of the aforementioned IDs and a secret that MailStore Server uses to proof its identity to Microsoft Entra ID. Microsoft recommends using certificates as secrets to identify apps in Microsoft Entra ID. When creating credentials, such a certificate is generated automatically by MailStore Server but can also be recreated later on.&lt;br /&gt;
{{Directory Services Accessing Configuration|Microsoft 365 or Microsoft 365 operated by 21 Vianet|Microsoft 365 sync 01.png}}&lt;br /&gt;
* In the ''Connection'' section, click on the button (…) next to the ''Credentials'' drop-down list.&lt;br /&gt;
* In the ''Credential Manager'' that appears, click on ''Create…''&lt;br /&gt;
* In the ''Microsoft Entra ID App Credentials'' dialog, enter the following information in the ''Settings'' section:&lt;br /&gt;
** '''Name'''&amp;lt;br/&amp;gt; A meaningful display name for the credentials, e.g. the name of your Microsoft 365 tenant.&lt;br /&gt;
** '''Application (client) ID'''&amp;lt;br/&amp;gt; The value of the corresponding field that you can copy from the Microsoft Entra ID app overview page in your web browser.&lt;br /&gt;
** '''Directory (tenant) ID'''&amp;lt;br/&amp;gt; The value of the corresponding field that you can copy from the Microsoft Entra ID app overview page in your web browser.&lt;br /&gt;
[[File:Microsoft 365 cred 01.png|center|347px]]&lt;br /&gt;
* In the ''Authentication'' section, click on the drop-down button next to the ''Certificate'' text box und select ''Download Certificate''. Save the certificate on your hard drive.&lt;br /&gt;
* Confirm your entries by clicking ''OK''.&lt;br /&gt;
* The newly created credentials are listed in the ''Credential Manager'' under the name you have entered with the type ''Microsoft 365''. Here you can also edit or delete existing credentials if necessary.&lt;br /&gt;
* Leave the ''Credential Manager'' by clicking ''Close''.&lt;br /&gt;
* The newly created credentials are selected in the corresponding drop-down list by default.&lt;br /&gt;
&lt;br /&gt;
=== Publishing Credentials in Microsoft Entra ID ===&lt;br /&gt;
For Microsoft Entra ID to validate the identity of MailStore Server, the created certificate needs to be published in Microsoft Entra ID.&lt;br /&gt;
* Switch to the Microsoft Entra ID app overview page in your web browser.&lt;br /&gt;
* Select ''Certificates &amp;amp; secrets'' in the ''Manage'' section of the left navigation menu.&lt;br /&gt;
* Click on ''Upload certificate'' in the ''Certificates'' section. Select the certificate file that you have saved previously and upload it to Microsoft Entra ID by clicking ''Add''.&lt;br /&gt;
* If uploading has been successful, the certificate's thumbprint as well as its start and expiry dates appear in the certificates list. You can compare the thumbprint and expiry date with those listed in the MailStore Credential Manager to check that you've uploaded the correct certificate.&lt;br /&gt;
&lt;br /&gt;
=== Configuring App Authentication in Microsoft Entra ID ===&lt;br /&gt;
For Microsoft Entra ID to return the result of a user's authentication request to MailStore Server, the endpoint where MailStore Server expects authentication responses, the so-called ''Redirect URI'', has to be conveyed to Microsoft Entra ID.&lt;br /&gt;
* In the Microsoft Entra ID Portal in the web browser, select ''Authentication'' in the ''Manage'' section of the left navigation menu.&lt;br /&gt;
* Click on the ''Add Redirect URI'' button on the ''Redirect URI configuration'' page.&lt;br /&gt;
* Select ''Web'' in the ''Web applications'' section of the platform selection page.&lt;br /&gt;
* In the field ''Redirect URI'', enter a URI in the format (without brackets)&lt;br /&gt;
*: &amp;lt;code&amp;gt;https://&amp;lt;fqdn&amp;gt;[:&amp;lt;port&amp;gt;]/oidc/signin&amp;lt;/code&amp;gt;&lt;br /&gt;
*; with the following components&amp;lt;nowiki&amp;gt;:&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
*: '''https://'''&amp;lt;br/&amp;gt; Specifying the &amp;lt;code&amp;gt;https://&amp;lt;/code&amp;gt; protocol is obligatory. To avoid certificate warnings during user logon, the web browsers on the client machines must trust the [[MailStore_Server_Service_Configuration#Certificate|certificate used by MailStore Server]].&lt;br /&gt;
*: '''FQDN'''&amp;lt;br/&amp;gt;The Fully Qualified Domain Name (FQDN) of your MailStore Server that consists of the machine name and the DNS domain, e.g. &amp;lt;code&amp;gt;mailstore.example.com&amp;lt;/code&amp;gt;. This name must be resolvable by all clients from which users shall be able to log on to MailStore Server.&lt;br /&gt;
*: '''Port'''&amp;lt;br/&amp;gt;The TCP port of the MailStore Web Access (&amp;lt;code&amp;gt;8462&amp;lt;/code&amp;gt; by default). This value must be equal to the port configured in the section ''Base Configuration &amp;gt; Network Settings &amp;gt; MailStore Web Access / Outlook Add-in (HTTPS)'' of the [[MailStore_Server_Service_Configuration#Services|MailStore Server Service Configuration]]. The TCP port has to be specified only if it is different from the default port of the HTTPS protocol (&amp;lt;code&amp;gt;443&amp;lt;/code&amp;gt;).&lt;br /&gt;
*: '''/oidc/signin'''&amp;lt;br/&amp;gt;The endpoint where MailStore Server expects the authentication responses of Microsoft Entra ID. This path has to be specified exactly as stated here at the end of the redirect URI.&lt;br /&gt;
* Click on ''Configure'' to add your Redirect URI.&lt;br /&gt;
* In the '''Authentication''' section switch to the '''Settings''' panel. Then, in the '''Implicit grant and hybrid flows''' section perform the following action:&lt;br /&gt;
:'''Enable''' the '''ID tokens''' option.&lt;br /&gt;
[[File:Microsoft_365_sync_id_token.png|center]]&lt;br /&gt;
* Ensure that the '''ID tokens''' option is set in the '''Implicit grant and hybrid flows''' section.&lt;br /&gt;
* Click on ''Save'' to finish the configuration of the app authentication in Microsoft Entra ID.&lt;br /&gt;
&amp;lt;div class=&amp;quot;resp-table&amp;quot;&amp;gt;&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;font-size: 85%;&amp;quot;&lt;br /&gt;
|+ Examples for valid redirect URIs&lt;br /&gt;
|-&lt;br /&gt;
! style=&amp;quot;width:80px;&amp;quot; | Product&lt;br /&gt;
! style=&amp;quot;width:80px;&amp;quot; | FQDN&lt;br /&gt;
! style=&amp;quot;width:40px;&amp;quot; | Port&lt;br /&gt;
! Resulting Redirect URI&lt;br /&gt;
|-&lt;br /&gt;
| align=&amp;quot;center&amp;quot;| MailStore Server&lt;br /&gt;
| align=&amp;quot;center&amp;quot;| mailstore.example.com&lt;br /&gt;
| align=&amp;quot;center&amp;quot;| 8462&lt;br /&gt;
| &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;https://mailstore.example.com:8462/oidc/signin&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;Redirect URI with Fully Qualified Domain Name and MailStore Web Access default  port&lt;br /&gt;
|-&lt;br /&gt;
| align=&amp;quot;center&amp;quot;| MailStore Server&lt;br /&gt;
| align=&amp;quot;center&amp;quot;| mailstore.example.com&lt;br /&gt;
| align=&amp;quot;center&amp;quot;| 443&lt;br /&gt;
| &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;https://mailstore.example.com/oidc/signin&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;The port can be ommited if the HTTPS default port 443 has been configured for MailStore Web Access or as source port of a port-forwarding on the firewall or router.&lt;br /&gt;
|-&lt;br /&gt;
| align=&amp;quot;center&amp;quot;| MailStore SPE&lt;br /&gt;
| align=&amp;quot;center&amp;quot;| archive.example.com&lt;br /&gt;
| align=&amp;quot;center&amp;quot;| 443&lt;br /&gt;
| &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;https://archive.example.com/&amp;lt;instanceid&amp;gt;/oidc/signin&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;The ''instanceid'' of the instance is part of the Redirect URI. &lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
:: &amp;lt;p class=&amp;quot;msnote&amp;quot;&amp;gt;'''Important Notice:''' Please note that the redirect URI is case-sensitive. Also review the requirements on resolving URIs in the [[#Prerequisites, Recommendations and Limitations|Prerequisites, Recommendations and Limitations]] section.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:: &amp;lt;p class=&amp;quot;msnote&amp;quot;&amp;gt;'''Important Notice:''' Please note that without setting the ''ID Token'' option, user authentication will not work.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Configuring the Redirect URI in MailStore Server ===&lt;br /&gt;
For MailStore Server to convey the redirect URI to requesting clients, it must be configured there, too.&lt;br /&gt;
* Switch to the ''Directory Services'' page in the MailStore Client.&lt;br /&gt;
* Enter the redirect URI in the corresponding field in the ''Authentication'' section. Just copy the value previously configured in Microsoft Entra ID from the web browser.&lt;br /&gt;
[[File:Microsoft 365 sync 02.png|center|450px]]&lt;br /&gt;
&lt;br /&gt;
=== Configuring API Permissions in Microsoft Entra ID ===&lt;br /&gt;
* Switch again to Microsoft Entra ID in your web browser.&lt;br /&gt;
* Select ''API permissions'' in the ''Manage'' section of the left navigation menu.&lt;br /&gt;
* Click on the ''Add a permission'' button in the ''Configured permissions'' section.&lt;br /&gt;
* On the ''Request API permissions'' menu page, select the API ''Microsoft Graph'' in the ''Commonly used Microsoft APIs'' section.&lt;br /&gt;
* Select the option ''Application permissions''.&lt;br /&gt;
* Enable the ''Directory &amp;gt; Directory.Read.All'' permission in the ''Select permissions'' section.&lt;br /&gt;
* '''New in 26.1''': Also enable the ''Mail &amp;gt; Mail.ReadWrite'' permission in the ''Select permissions'' section.&lt;br /&gt;
* Click on ''Add permissions''.&lt;br /&gt;
* The permissions are updated and the ''Directory.Read.All'' and ''Mail.ReadWrite'' permissions appear in the API permissions list under ''Microsoft Graph''.&lt;br /&gt;
* Click on the ''Add a permission'' button in the ''Configured permissions'' section again.&lt;br /&gt;
* On the ''Request API permissions'' menu page, select ''APIs my organization uses''.&lt;br /&gt;
* Search for ''Office 365 Exchange Online'' and click on the corresponding entry.&lt;br /&gt;
* Select the option ''Application permissions''.&lt;br /&gt;
* Enable the ''full_access_as_app'' permission in the ''Select permissions'' section.&lt;br /&gt;
* '''New in 25.3''': Also enable the permission ''SMTP.SendAsApp'' in the ''SMTP'' section.&lt;br /&gt;
* Click on ''Add permissions''.&lt;br /&gt;
* The permissions are updated and the ''full_access_as_app'' and ''SMTP.SendAsApp'' permissions appear in the API permissions list under ''Exchange''.&lt;br /&gt;
* Now click on the ''Grant admin consent for &amp;lt;your tenant name&amp;gt;'' button in the ''Configured permissions'' section.&lt;br /&gt;
* Acknowledge the following notice with ''Yes''.&lt;br /&gt;
* The status of all granted permissions is updated to ''Granted for &amp;lt;your tenant name&amp;gt;''.&lt;br /&gt;
The configuration of MailStore Server's connection to Microsoft 365 within Microsoft Entra ID is now complete. You can sign out of your Microsoft Entra ID tenant and close the browser window. Switch to the ''Directory Services'' page in the MailStore Client again, all remaining configuration steps must be done there.&lt;br /&gt;
&lt;br /&gt;
[[File:Microsoft 365 sync 03.png|center]]&lt;br /&gt;
&lt;br /&gt;
=== User Database Synchronization ===&lt;br /&gt;
After configuring the connection settings as described above, you can specify filter criteria for the Microsoft 365 synchronization in this section.&lt;br /&gt;
*'''Synchronize licensed Microsoft Exchange Online users only'''&amp;lt;br/&amp;gt;Only Microsoft 365 user accounts with a Microsoft Exchange Online license assigned to them will be taken into account by the synchronization.&lt;br /&gt;
*'''Synchronize enabled users only'''&amp;lt;br/&amp;gt;Only Microsoft 365 user accounts that do not have their login to Microsoft 365 blocked will be taken into account by the synchronization.&lt;br /&gt;
*'''Sync only these groups'''&amp;lt;br/&amp;gt;Choose one or several Microsoft 365 security groups if you only want their members to be created as MailStore Server users. That way it's possible to exclude certain users from being synchronized to MailStore Server.&lt;br /&gt;
&lt;br /&gt;
{{Directory Services Options|Microsoft 365 tenant}}&lt;br /&gt;
{{Directory Services Assign Default Privileges|Microsoft 365}}&lt;br /&gt;
{{Directory Services Run Synchronization|Microsoft 365 tenant}}&lt;br /&gt;
[[File:Office365_sync_02.png|450px|center]]&lt;br /&gt;
&lt;br /&gt;
{{Directory Services Test Authentication}}&lt;br /&gt;
&lt;br /&gt;
== Updating credentials ==&lt;br /&gt;
The certificate generated by MailStore for logging into Microsoft Entra ID is valid for 3750 days (825 days before version 25.3). In order for user synchronization and archiving to work afterwards, the certificate must be updated before its validity expires.&lt;br /&gt;
&lt;br /&gt;
MailStore Server will show a notification on the dashboard in MailStore Client and in the [[Jobs#Templates|status report]] 28 days before credentials expire. You can also use the [[Administration_API_-_Function_Reference#GetCredentials|GetCredentials API command]] to retrieve the expiration date.&lt;br /&gt;
&lt;br /&gt;
To update the credentials, proceed as follows:&lt;br /&gt;
&lt;br /&gt;
=== Updating credentials in MailStore Server ===&lt;br /&gt;
&lt;br /&gt;
* Log on to MailStore Client as a MailStore Server administrator.&lt;br /&gt;
* Click on ''Administrative Tools'' &amp;gt; ''Users and Archives'' &amp;gt; ''Directory Services''.&lt;br /&gt;
* In the ''Integration section'', make sure that the directory service type is set to ''Microsoft 365 (Modern Authentication)'' or ''Microsoft 365 operated by 21 Vianet (Modern Authentication)''.&lt;br /&gt;
[[File:Microsoft 365 sync 01.png|center|347px]]&lt;br /&gt;
* In the ''Connection'' section, click on the button (…) next to the ''Credentials'' drop-down list.&lt;br /&gt;
* In the ''Credential Manager'' that appears, click on the currently used credential object and click ''Edit…''&lt;br /&gt;
: [[File:Microsoft 365 cred 02.png|center|347px]]&lt;br /&gt;
* In the ''Authentication'' section, click on the drop-down button next to the ''Certificate'' text box und select ''Create Certificate...''.&lt;br /&gt;
* Confirm the process.&lt;br /&gt;
* In the ''Authentication'' section, click on the drop-down button next to the ''Certificate'' text box und select ''Download Certificate''. Save the certificate on your hard drive.&lt;br /&gt;
* Confirm your changes by clicking ''OK''.&lt;br /&gt;
* Leave the ''Credential Manager'' by clicking ''Apply''.&lt;br /&gt;
* The newly created credentials are selected in the corresponding drop-down list by default.&lt;br /&gt;
* If you are using Microsoft 365 in hybrid mode and synchronizing users from your Active Directory, set the directory service back to ''Active Directory''.&lt;br /&gt;
&lt;br /&gt;
=== Updating credentials in Microsoft Entra ID ===&lt;br /&gt;
&lt;br /&gt;
* Sign in to the [https://portal.azure.com Microsoft Entra ID Portal] as a Global Administrator for your Microsoft 365 tenant.&amp;lt;br/&amp;gt;The Microsoft Entra ID Portal of ''Office 365, operated by 21Vianet'' [https://portal.azure.cn/#view/Microsoft_AAD_IAM/ActiveDirectoryMenuBlade/~/Overview can be accessed here].&lt;br /&gt;
* In the navigation menu (☰), select the option ''Microsoft Entra ID''.&lt;br /&gt;
* On the next page, select ''App registrations'' in the ''Manage'' section of the left navigation menu.&lt;br /&gt;
* Select the application that is currently used by MailStore.&lt;br /&gt;
* Select ''Certificates &amp;amp; secrets'' in the ''Manage'' section of the left navigation menu.&lt;br /&gt;
* Click on ''Upload certificate'' in the ''Certificates'' section. Select the certificate file that you have saved previously and upload it to Microsoft Entra ID by clicking ''Add''.&lt;br /&gt;
* If uploading has been successful, the certificate's thumbprint as well as its start and expiry dates appear in the certificates list. You can compare the thumbprint and expiry date with those listed in the MailStore Credential Manager to check that you've uploaded the correct certificate.&lt;br /&gt;
* The previously used certificate can be removed from the list.&lt;br /&gt;
&lt;br /&gt;
[[de:Synchronisieren_von_Benutzerkonten_mit_Microsoft_365_(Modern_Authentication)]]&lt;br /&gt;
[[en:Synchronizing_User_Accounts_with_Microsoft_365_(Modern_Authentication)]]&lt;/div&gt;</summary>
		<author><name>Ltalaschus</name></author>
	</entry>
	<entry>
		<id>https://help.mailstore.com/en/server/index.php?title=Archiving_Emails_from_Microsoft_365_-_Modern_Authentication&amp;diff=7973</id>
		<title>Archiving Emails from Microsoft 365 - Modern Authentication</title>
		<link rel="alternate" type="text/html" href="https://help.mailstore.com/en/server/index.php?title=Archiving_Emails_from_Microsoft_365_-_Modern_Authentication&amp;diff=7973"/>
		<updated>2026-01-26T16:25:06Z</updated>

		<summary type="html">&lt;p&gt;Ltalaschus: /* Archiving Multiple Microsoft&amp;amp;nbsp;365 Archive Mailboxes Centrally */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Implementation Guide Preamble|Exchange&amp;amp;nbsp;Online / Microsoft&amp;amp;nbsp;365||&amp;lt;br/&amp;gt;}}&lt;br /&gt;
&amp;lt;br clear=&amp;quot;all&amp;quot;/&amp;gt;&lt;br /&gt;
{{Multiline Notices|Heading=Important Notices|If you have archived emails from an Exchange server and synchronized users from an Active Directory until now, follow the article [[Changing Archiving from Microsoft Exchange Server to Microsoft 365]].|MailStore Server supports archiving emails from the global Microsoft Cloud ''Microsoft&amp;amp;nbsp;365'' and ''Office&amp;amp;nbsp;365, operated by 21Vianet''. Other Environments like GCC, GCC&amp;amp;nbsp;High or DoD are not supported.|For better readability, the terms ''Microsoft&amp;amp;nbsp;365'' and ''Exchange&amp;amp;nbsp;Online'' are used interchangeably hereinafter instead of ''Exchange&amp;amp;nbsp;Online / Microsoft&amp;amp;nbsp;365''.}}&lt;br /&gt;
&lt;br /&gt;
== App Registration &amp;amp; User Synchronization ==&lt;br /&gt;
Before archiving Microsoft&amp;amp;nbsp;365 mailboxes, registering MailStore Server in your Microsoft&amp;amp;nbsp;365 tenant is required. It is also highly recommended to synchronize users in MailStore Server directly with that tenant to fetch all information that is relevant for archiving such as email addresses. The registration and synchronization procedures are described in the chapter [[Synchronizing User Accounts with Microsoft 365 (Modern Authentication)]] of the MailStore Server manual.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p class=msnote&amp;gt;'''Please note:''' MailStore Server runs as a [[MailStore Server Service Configuration|Windows service]] and thus must use ''Application Permissions'' to access user mailboxes in Microsoft&amp;amp;nbsp;365. By design, on the Microsoft identity platform, which is at the heart of Microsoft&amp;amp;nbsp;365 authentication and authorization, this permission scope encloses the full level of privileges implied by a permission. As a consequence, once registered as described above, MailStore Server has access to all mailboxes in your Microsoft&amp;amp;nbsp;365 tenant. Therefore, with regard to security, access to the Microsoft&amp;amp;nbsp;365 archiving profiles in MailStore Server is limited to MailStore Server administrators.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Including Microsoft&amp;amp;nbsp;365 Shared Mailboxes ===&lt;br /&gt;
In Microsoft&amp;amp;nbsp;365, shared mailboxes are special mailboxes that multiple users have access to. Unlike a normal mailbox, a shared mailbox is not associated to a licensed Microsoft&amp;amp;nbsp;365 user. For MailStore Server to create user entries for shared mailboxes, you must therefore deactivate the option ''Synchronize licensed Microsoft Exchange&amp;amp;nbsp;Online users only'' in the section [[Synchronizing User Accounts with Microsoft 365 (Modern Authentication)#User_Database_Synchronization|User Database Synchronization]].&amp;lt;br/&amp;gt;&lt;br /&gt;
After synchronization you can grant MailStore Server users access to the archive of the shared mailbox by [[Users,_Folders_and_Settings#Folder_Access_.28e.g._Access_to_the_Emails_of_Other_Users.29|assigning privileges]]. For archiving shared mailboxes, just proceed as for individual or multiple mailboxes as detailed below.&lt;br /&gt;
&lt;br /&gt;
== Archiving Individual Microsoft&amp;amp;nbsp;365 Mailboxes ==&lt;br /&gt;
{{Archiving Single Mailbox Preamble|Microsoft&amp;amp;nbsp;365}}&lt;br /&gt;
For each mailbox, please proceed as follows:&lt;br /&gt;
&lt;br /&gt;
* Log on to MailStore Client as MailStore Server administrator.&lt;br /&gt;
* Click on ''Archive Email''.&lt;br /&gt;
* From the ''Email Servers'' list in the ''Create Profile'' area of the ''Archive Email'' page, select ''Microsoft&amp;amp;nbsp;365'' or ''Microsoft&amp;amp;nbsp;365 (21Vianet)'' to create a new archiving profile.&lt;br /&gt;
* A wizard opens to assist in specifying the archiving settings.&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
*; [[File:Microsoft 365 mailbox 01.png|center|347px]]&lt;br /&gt;
* Select ''Single Mailbox'' and click on ''OK''.&lt;br /&gt;
*; [[File:Microsoft 365 mailbox 02.png|center|347px]]&lt;br /&gt;
* Select the Microsoft&amp;amp;nbsp;365 credentials that you have created during the registration of MailStore Server with Microsoft&amp;amp;nbsp;365 from the ''Credentials'' drop-down list. You can also use the button (…) to access the [[Synchronizing_User_Accounts_with_Microsoft_365_(Modern_Authentication)#Creating_Credentials_in_MailStore_Server|Credential Manager]].&lt;br /&gt;
* In the ''Mailbox'' field, enter the primary email address of the user whose mailbox you want to archive.&lt;br /&gt;
* Click on ''Test'' to verify that MailStore Server can access the mailbox.&lt;br /&gt;
* Click on ''Next''.&lt;br /&gt;
* If needed, adjust the settings for the [[Email_Archiving_with_MailStore_Basics#Archiving_Specific_Folders|List of Folders to be Archived]], the [[Email_Archiving_with_MailStore_Basics#Specifying_Filter_Criteria_for_Archiving|filter]] and the [[Email_Archiving_with_MailStore_Basics#Deleting_Emails_after_Archiving|Deletion Rules]]. By default, no emails will be deleted from the mailbox. The ''Timeout'' value only has to be adjusted in specific cases (e.g. with very slow network connections). &lt;br /&gt;
*; [[File:Microsoft_365_mailbox_03.png|center|347px]]&lt;br /&gt;
* Click on ''Next'' to continue.&lt;br /&gt;
* Select the archive of the user for whom the selected mailbox is to be archived. If the user does not exist yet, click on ''Create a New User…''.&lt;br /&gt;
*; [[File:Microsoft_365_mailbox_04.png|center|347px]]&lt;br /&gt;
* Click on ''Next''.&lt;br /&gt;
* In the last step, a name for the archiving profile can be specified. After clicking ''Finish'', the archiving profile will be listed under ''Saved Profiles'' and, if desired, can be run immediately or automatically.&lt;br /&gt;
&lt;br /&gt;
More information on how to execute archiving profiles can be found under the topic [[Email Archiving with MailStore Basics]]&lt;br /&gt;
&lt;br /&gt;
== Archiving Multiple Microsoft&amp;amp;nbsp;365 Mailboxes Centrally ==&lt;br /&gt;
{{Archiving Multiple Mailboxes Preamble|Microsoft&amp;amp;nbsp;365}}&lt;br /&gt;
Please proceed as follows:&lt;br /&gt;
&lt;br /&gt;
* Log on to MailStore Client as MailStore Server administrator.&lt;br /&gt;
* Click on ''Archive Email''.&lt;br /&gt;
* From the ''Email Servers'' list in the ''Create Profile'' area of the ''Archive Email'' page, select ''Microsoft&amp;amp;nbsp;365'' or ''Microsoft&amp;amp;nbsp;365 (21Vianet)'' to create a new archiving profile.&lt;br /&gt;
* A wizard opens to assist in specifying the archiving settings.&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
*; [[File:Microsoft 365 mailboxes 01.png|center|347px]]&lt;br /&gt;
* Select ''Multiple Mailboxes'' and click ''OK''.&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
*; &amp;lt;p class=msnote&amp;gt;{{Archiving_Multiple_or_Multidrop_Note|multiple mailboxes|[[#App_Registration_.26_User_Synchronization|directory synchronization]]}}&amp;lt;/p&amp;gt;&lt;br /&gt;
*; [[File:Microsoft 365 mailboxes 02.png|center|347px]]&lt;br /&gt;
* Select the Microsoft&amp;amp;nbsp;365 credentials that you have created during the registration of MailStore Server with Microsoft&amp;amp;nbsp;365 from the ''Credentials'' drop-down list. You can also use the button (…) to access the [[Synchronizing_User_Accounts_with_Microsoft_365_(Modern_Authentication)#Creating_Credentials_in_MailStore_Server|Credential Manager]].&lt;br /&gt;
* Click on ''Next'' to continue. &lt;br /&gt;
*; [[File:Microsoft 365 mailboxes 03.png|center|347px]]&lt;br /&gt;
* If needed, adjust the settings for the [[Email_Archiving_with_MailStore_Basics#Archiving_Specific_Folders|List of Folders to be Archived]], the [[Email_Archiving_with_MailStore_Basics#Specifying_Filter_Criteria_for_Archiving|filter]] and the [[Email_Archiving_with_MailStore_Basics#Deleting_Emails_after_Archiving|Deletion Rules]]. By default, no emails will be deleted from the mailbox. The ''Timeout'' value only has to be adjusted in specific cases (e.g. with very slow network connections). Please keep in mind that these settings apply to all mailboxes to be archived, as specified in the next step.&lt;br /&gt;
*; {{Archiving_Multiple_Mailboxes_Centrally_Options|Microsoft_365_mailboxes_04.png|Microsoft&amp;amp;nbsp;365}}&lt;br /&gt;
&lt;br /&gt;
== Archiving Incoming and Outgoing Emails Directly ==&lt;br /&gt;
{{Archiving Exchange Journal Mailbox Preamble|Exchange&amp;amp;nbsp;Online}}&lt;br /&gt;
&lt;br /&gt;
=== Step 1: Setup and Configure MailStore Gateway ===&lt;br /&gt;
Please refer to the [https://help.mailstore.com/en/gateway/ MailStore Gateway Manual] for detailed instructions about:&lt;br /&gt;
 &lt;br /&gt;
* Installation and Setup of MailStore Gateway&lt;br /&gt;
* Logging on to MailStore Gateway's Management Console&lt;br /&gt;
* Creating MailStore Gateway mailboxes&lt;br /&gt;
&lt;br /&gt;
After these steps, a mailbox with an individual email address (e.g. mbx-dead1234beef5678@gateway.example.com) should exist.&lt;br /&gt;
&lt;br /&gt;
=== Step 2: Configure MailStore Server ===&lt;br /&gt;
{{Archiving MailStore Gateway Mailbox|''In- and Outbound E-Mail Automatically''|Microsoft 365 journal 01.png|Arch_MailStore_Gateway_Office365_02.png|''Microsoft&amp;amp;nbsp;365''|TargetFolderHint=DontShow|POP3Hint=DontShow|DSLink=[[#App_Registration_.26_User_Synchronization|directory synchronization]]}}&lt;br /&gt;
&lt;br /&gt;
=== Step 3: Creating a Journal Rule ===&lt;br /&gt;
The following steps describe how to set up journaling for your Microsoft&amp;amp;nbsp;365 account.&lt;br /&gt;
&lt;br /&gt;
Since you are planning to use an external mailbox (MailStore Gateway) as the recipient for Journal reports, we highly recommend to first create an external contact with this mail address in your Exchange mailbox administration to prevent any later errors or warnings about an unknown recipient in the process.&lt;br /&gt;
&lt;br /&gt;
* Sign in to the [https://purview.microsoft.com/ Microsoft&amp;amp;nbsp;365 Purview portal] as an Exchange or Global Administrator for your Microsoft&amp;amp;nbsp;365 tenant.&lt;br /&gt;
* In the left navigation menu select ''Settings''.&lt;br /&gt;
* In the now shown ''Settings'' submenu select ''Data Lifecycle Management'' and then select  ''Exchange&amp;amp;nbsp;(legacy)'' or use [https://purview.microsoft.com/settings/application-settings/datalifecyclemanagement this link].&lt;br /&gt;
* Enter a mailbox in the ''Send undeliverable journal reports to'' section. This mailbox receives None Delivery Reports (NDRs) for undeliverable journal reports in case the primary journal mailbox is unreachable.&lt;br /&gt;
** This mailbox should be a dedicated mailbox for this purpose, which cannot reside in any Microsoft 365 tenant.&lt;br /&gt;
** The same journal report non-delivery reports mailbox must not be used for multiple tenants.&lt;br /&gt;
** The receiving mail server must not alter the ''X-MS-Exchange-Message-Is-Ndr'' email header.&lt;br /&gt;
** For this purpose, you can set up a second gateway on another server with an additional mailbox, as described in [[Archiving_Emails_from_Microsoft_365_-_Modern_Authentication#Step_1:_Setup_and_Configure_MailStore_Gateway|Step 1]]. Alternatively you can use any external mailbox that matches the above criteria.&lt;br /&gt;
** MailStore is able to extract the journal reports contained in the NDRs, then archive them like normal journal reports and thus assign the emails they contain to users. You can therefore create a second archiving profile as described in [[Archiving_Emails_from_Microsoft_365_-_Modern_Authentication#Step_2:_Configure_MailStore_Server|Step 2]], which archives from the Microsoft 365 journal report non-delivery reports mailbox.&lt;br /&gt;
* In the leftmost navigation menu select ''Data Lifecycle Management'', then ''Exchange&amp;amp;nbsp;(legacy)'', and finally ''Journal rules'' and therefore leave the ''Settings'' section or use [https://purview.microsoft.com/datalifecyclemanagement/exchange/journalrules this link]. In case ''Data Lifecycle Management'' is not listed, click ''Solutions'' &amp;gt; ''Data Lifecycle Management''.&lt;br /&gt;
* Create a new journaling rule by clicking on ''+ (New rule)''.&lt;br /&gt;
*:[[File:Arch_office365_journal_01.png|center|550px]]&lt;br /&gt;
* Enter the email address of the previously created MailStore Gateway mailbox in the ''Send journal reports to:'' box.&lt;br /&gt;
* Enter a name for the journal rule, e.g. ''Journaling''.&lt;br /&gt;
* In the ''Journal messages sent or received from'' section, select whether the rule should apply to everyone or to specific users or groups.&lt;br /&gt;
* Under ''Type of message to journal'', choose whether to capture all messages, internal messages only, or external messages only.&lt;br /&gt;
* Click on ''Next'', then validate your settings, click ''Submit'' to activate the rule.&lt;br /&gt;
&lt;br /&gt;
== Public Folders ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p class=msnote&amp;gt;'''Please note:''' Support for archiving of Public Folders for Microsoft 365 will reach its End of Life in October 2026. See [[EWS_Migration|here]] for more information.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Archiving Exchange Public Folders Preamble|Exchange&amp;amp;nbsp;Online|Microsoft&amp;amp;nbsp;365}}&lt;br /&gt;
* Sign in to the [https://admin.exchange.microsoft.com/#/publicfolders Microsoft&amp;amp;nbsp;365 Exchange admin center] as an Exchange or Global Administrator for your Microsoft&amp;amp;nbsp;365 tenant.&lt;br /&gt;
* Navigate to ''Public folders'', in case it it not already opened.&lt;br /&gt;
* Click on ''Root permissions''.&lt;br /&gt;
*: [[File:Microsoft_365_pf_01.png|center|480px]]&lt;br /&gt;
* The side-panel ''Folder permissions'' opens. Click on ''+ Add permissions''.&lt;br /&gt;
* Use the text box beneath ''Select User'' to choose the Microsoft&amp;amp;nbsp;365 user you want to grant permissions.&lt;br /&gt;
* Choose ''Custom'' as ''Permission level'' and grant ''Read items'' and ''Delete all'' permissions.&lt;br /&gt;
*: [[File:Microsoft_365_pf_02.png|center|480px]]&lt;br /&gt;
* Click on ''Save Changes''.&lt;br /&gt;
&lt;br /&gt;
=== Step 3: Setting up the Archiving Process ===&lt;br /&gt;
* Log on to MailStore Client as MailStore Server administrator.&lt;br /&gt;
* Click on ''Archive Email''.&lt;br /&gt;
* From the ''Email Servers'' list in the ''Create Profile'' area of the ''Archive Email'' page, select ''Microsoft&amp;amp;nbsp;365'' or ''Microsoft&amp;amp;nbsp;365 (21Vianet)'' to create a new archiving profile.&lt;br /&gt;
* A wizard opens to assist in specifying the archiving settings.&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
*; [[File:Microsoft 365 pf 03.png|center|347px]]&lt;br /&gt;
* Select ''Public Folders'' and click on ''OK''.&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
*; [[File:Microsoft 365 pf 04.png|center|347px]]&lt;br /&gt;
* Select the Microsoft&amp;amp;nbsp;365 credentials that you have created during the registration of MailStore Server with Microsoft&amp;amp;nbsp;365 from the ''Credentials'' drop-down list. You can also use the button (…) to access the [[Synchronizing_User_Accounts_with_Microsoft_365_(Modern_Authentication)#Creating_Credentials_in_MailStore_Server|Credential Manager]].&lt;br /&gt;
* In the ''Mailbox'' field, enter the primary email address of the user that has access to the public folders as described above.&lt;br /&gt;
* The value of the ''Target Folder'' box defines the top level folder below which the public folder hierarchy will be created in the target archive. Usually, you can leave this value to its default.&lt;br /&gt;
* Click on ''Test'' to verify that MailStore can access the public folders.&lt;br /&gt;
* Click on ''Next'' to continue.&lt;br /&gt;
*; [[File:Microsoft 365 pf 05.png|center|347px]]&lt;br /&gt;
* Adjust the settings for the [[Email_Archiving_with_MailStore_Basics#Archiving_Specific_Folders|List of Folders to be Archived]]. By default, all public folders that contain emails will be archived.&lt;br /&gt;
* If needed, adjust [[Email_Archiving_with_MailStore_Basics#Specifying_Filter_Criteria_for_Archiving|the filter]] and the [[Email_Archiving_with_MailStore_Basics#Deleting_Emails_after_Archiving|Deletion Rules]]. By default, no emails will be deleted from the public folders. The ''Timeout'' value only has to be adjusted in specific cases (e.g. with very slow network connections).&lt;br /&gt;
* Click on ''Next'' to continue.&lt;br /&gt;
*; [[File:Microsoft 365 pf 06.png|center|347px]]&lt;br /&gt;
* In the next step, select the archive of the user you have prepared in step 1.&lt;br /&gt;
* In the last step, specify a name for the archiving profile. After clicking ''Finish'' the archiving profile will be listed under ''Saved Profiles'' and can be run immediately or automatically if desired.&lt;br /&gt;
&lt;br /&gt;
== About Archiving Archive Mailboxes ==&lt;br /&gt;
{{Archive_Mailbox_Folder_Structure}}&lt;br /&gt;
&lt;br /&gt;
== Archiving Individual Microsoft&amp;amp;nbsp;365 Archive Mailboxes ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p class=msnote&amp;gt;'''Please note:''' Support for archiving Archive Mailboxes for Microsoft 365 will reach its End of Life in October 2026. See [[EWS_Migration|here]] for more information.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Archiving Single Archive Mailbox Preamble|Microsoft&amp;amp;nbsp;365}}&lt;br /&gt;
For each mailbox, please proceed as follows:&lt;br /&gt;
&lt;br /&gt;
* Log on to MailStore Client as MailStore Server administrator.&lt;br /&gt;
* Click on ''Archive Email''.&lt;br /&gt;
* From the ''Email Servers'' list in the ''Create Profile'' area of the ''Archive Email'' page, select ''Microsoft&amp;amp;nbsp;365'' or ''Microsoft&amp;amp;nbsp;365 (21Vianet)'' to create a new archiving profile.&lt;br /&gt;
* A wizard opens to assist in specifying the archiving settings.&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
*; [[File:Microsoft_365_archive_mailbox 01.png|center|347px]]&lt;br /&gt;
* Select ''Single Archive Mailbox'' and click on ''OK''.&lt;br /&gt;
*; [[File:Microsoft_365_archive_mailbox 02.png|center|347px]]&lt;br /&gt;
* Select the Microsoft&amp;amp;nbsp;365 credentials that you have created during the registration of MailStore Server with Microsoft&amp;amp;nbsp;365 from the ''Credentials'' drop-down list. You can also use the button (…) to access the [[Synchronizing_User_Accounts_with_Microsoft_365_(Modern_Authentication)#Creating_Credentials_in_MailStore_Server|Credential Manager]].&lt;br /&gt;
* In the ''Mailbox'' field, enter the primary email address of the user whose archive mailbox you want to archive.&lt;br /&gt;
* Click on ''Test'' to verify that MailStore Server can access the archive mailbox.&lt;br /&gt;
* Click on ''Next''.&lt;br /&gt;
* If needed, adjust the settings for the [[Email_Archiving_with_MailStore_Basics#Archiving_Specific_Folders|List of Folders to be Archived]], the [[Email_Archiving_with_MailStore_Basics#Specifying_Filter_Criteria_for_Archiving|filter]] and the [[Email_Archiving_with_MailStore_Basics#Deleting_Emails_after_Archiving|Deletion Rules]]. By default, no emails will be deleted from the archive mailbox. The ''Timeout'' value only has to be adjusted in specific cases (e.g. with very slow network connections). &lt;br /&gt;
*; [[File:Microsoft_365_archive_mailbox_03.png|center|347px]]&lt;br /&gt;
* Click on ''Next'' to continue.&lt;br /&gt;
* Select the archive of the user for whom the selected archive mailbox is to be archived. If the user does not exist yet, click on ''Create a New User…''.&lt;br /&gt;
*; [[File:Microsoft_365_archive_mailbox_04.png|center|347px]]&lt;br /&gt;
* Click on ''Next''.&lt;br /&gt;
* In the last step, a name for the archiving profile can be specified. After clicking ''Finish'', the archiving profile will be listed under ''Saved Profiles'' and, if desired, can be run immediately or automatically.&lt;br /&gt;
&lt;br /&gt;
More information on how to execute archiving profiles can be found under the topic [[Email Archiving with MailStore Basics]]&lt;br /&gt;
&lt;br /&gt;
== Archiving Multiple Microsoft&amp;amp;nbsp;365 Archive Mailboxes Centrally ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p class=msnote&amp;gt;'''Please note:''' Support for archiving Archive Mailboxes for Microsoft 365 will reach its End of Life in October 2026. See [[EWS_Migration|here]] for more information.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Archiving Multiple Archive Mailboxes Preamble|Microsoft&amp;amp;nbsp;365}}&lt;br /&gt;
Please proceed as follows:&lt;br /&gt;
&lt;br /&gt;
* Log on to MailStore Client as MailStore Server administrator.&lt;br /&gt;
* Click on ''Archive Email''.&lt;br /&gt;
* From the ''Email Servers'' list in the ''Create Profile'' area of the ''Archive Email'' page, select ''Microsoft&amp;amp;nbsp;365'' or ''Microsoft&amp;amp;nbsp;365 (21Vianet)'' to create a new archiving profile.&lt;br /&gt;
* A wizard opens to assist in specifying the archiving settings.&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
*; [[File:Microsoft_365_archive_mailboxes_01.png|center|347px]]&lt;br /&gt;
* Select ''Multiple Archive Mailboxes'' and click ''OK''.&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
*; &amp;lt;p class=msnote&amp;gt;{{Archiving_Multiple_or_Multidrop_Note|multiple archive mailboxes|[[#App_Registration_.26_User_Synchronization|directory synchronization]]}}&amp;lt;/p&amp;gt;&lt;br /&gt;
*; [[File:Microsoft_365_archive_mailboxes_02.png|center|347px]]&lt;br /&gt;
* Select the Microsoft&amp;amp;nbsp;365 credentials that you have created during the registration of MailStore Server with Microsoft&amp;amp;nbsp;365 from the ''Credentials'' drop-down list. You can also use the button (…) to access the [[Synchronizing_User_Accounts_with_Microsoft_365_(Modern_Authentication)#Creating_Credentials_in_MailStore_Server|Credential Manager]].&lt;br /&gt;
* Click on ''Next'' to continue. &lt;br /&gt;
*; [[File:Microsoft_365_archive_mailboxes_03.png|center|347px]]&lt;br /&gt;
* If needed, adjust the settings for the [[Email_Archiving_with_MailStore_Basics#Archiving_Specific_Folders|List of Folders to be Archived]], the [[Email_Archiving_with_MailStore_Basics#Specifying_Filter_Criteria_for_Archiving|filter]] and the [[Email_Archiving_with_MailStore_Basics#Deleting_Emails_after_Archiving|Deletion Rules]]. By default, no emails will be deleted from the archive mailbox. The ''Timeout'' value only has to be adjusted in specific cases (e.g. with very slow network connections). Please keep in mind that these settings apply to all mailboxes to be archived, as specified in the next step.&lt;br /&gt;
*; {{Archiving_Multiple_Mailboxes_Centrally_Options|Microsoft_365_archive_mailboxes_04.png|Microsoft&amp;amp;nbsp;365}}&lt;br /&gt;
&lt;br /&gt;
[[de:E-Mail-Archivierung_von_Microsoft_365_(Modern_Authentication)]]&lt;br /&gt;
[[en:Archiving_Emails_from_Microsoft_365_(Modern_Authentication)]]&lt;/div&gt;</summary>
		<author><name>Ltalaschus</name></author>
	</entry>
	<entry>
		<id>https://help.mailstore.com/en/server/index.php?title=Synchronizing_User_Accounts_with_Microsoft_365_-_Modern_Authentication&amp;diff=7972</id>
		<title>Synchronizing User Accounts with Microsoft 365 - Modern Authentication</title>
		<link rel="alternate" type="text/html" href="https://help.mailstore.com/en/server/index.php?title=Synchronizing_User_Accounts_with_Microsoft_365_-_Modern_Authentication&amp;diff=7972"/>
		<updated>2026-01-21T14:22:24Z</updated>

		<summary type="html">&lt;p&gt;Ltalaschus: /* Configuring API Permissions in Microsoft Entra ID */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Directory Services Preamble|Microsoft 365 tenant|Microsoft 365||}}&lt;br /&gt;
== Prerequisites, Recommendations and Limitations ==&lt;br /&gt;
* For best user experience, the certificate used by MailStore Server should be trusted by all clients and the used web browsers. Using a certificate that is signed by a trusted certificate authority or [[Using_Lets_Encrypt_Certificates|using Let's Encrypt certificates]] is highly recommended.&lt;br /&gt;
* If you have archived emails from an Exchange server and synchronized users from an Active Directory until now, follow the article [[Changing Archiving from Microsoft Exchange Server to Microsoft 365]]&lt;br /&gt;
* If users are supposed to log in to MailStore Server from outside the organization's network without a VPN using [[Accessing_the_Archive_with_the_MailStore_Client_software|MailStore Client]], [[Accessing_the_Archive_with_the_Microsoft_Outlook_integration|MailStore Outlook Add-in]] or the [[Accessing_the_Archive_with_MailStore_Web_Access|Web Access]], the URIs mentioned in this article must be resolvable via DNS on the Internet and port-forwardings to the MailStore Server computer must be set up on the firewall or router if necessary. &lt;br /&gt;
* When using Microsoft&amp;amp;nbsp;365 to authenticate users at login, [[Accessing_the_Archive_via_Integrated_IMAP_Server|accessing the archive via IMAP]] is not possible for technical reasons.&lt;br /&gt;
* MailStore Server supports the synchronization of user accounts with the global Microsoft Cloud ''Microsoft&amp;amp;nbsp;365'' and ''Office&amp;amp;nbsp;365, operated by 21Vianet''. Other Environments like GCC, GCC&amp;amp;nbsp;High or DoD are not supported. In the following article, only the term Microsoft 365 is used for the sake of simplicity.&lt;br /&gt;
&lt;br /&gt;
== Connecting MailStore Server and Microsoft 365 ==&lt;br /&gt;
In order to synchronize user information from Microsoft 365, MailStore Server has to be connected to your Microsoft 365 tenant and been granted the required permissions. Microsoft 365 relies on Microsoft Entra ID as directory service. Each Microsoft 365 tenant corresponds to an Microsoft Entra ID tenant that stores its user information.&lt;br /&gt;
&lt;br /&gt;
=== Registering of MailStore Server as App in Microsoft Entra ID ===&lt;br /&gt;
Through registration, MailStore Server gets an identity in Microsoft Entra ID that makes it possible to authenticate to the tenant's services and use their resources.&lt;br /&gt;
* Sign in to the [https://portal.azure.com Microsoft Entra ID Portal] as a Global Administrator for your Microsoft 365 tenant.&amp;lt;br/&amp;gt;The Microsoft Entra ID Portal of ''Office 365, operated by 21Vianet'' [https://portal.azure.cn/#view/Microsoft_AAD_IAM/ActiveDirectoryMenuBlade/~/Overview can be accessed here].&lt;br /&gt;
* In the navigation menu (☰), select the option ''Microsoft Entra ID''.&lt;br /&gt;
* On the next page, select ''App registrations'' in the ''Manage'' section of the left navigation menu.&lt;br /&gt;
* Select ''New Registration''. The ''Register an application'' page appears.&lt;br /&gt;
* In the ''Name'' field, enter a meaningful display name, e.g. ''MailStore Server''. This name will be shown to users on logon later on, for example.&lt;br /&gt;
* Leave all other settings on this page to their defaults.&lt;br /&gt;
* Click on ''Register''. If the registration has been successful, you are shown the overview page of the newly registered app.&lt;br /&gt;
The ''Application (client) ID'' shown on this page identifies MailStore Server in your Microsoft Entra ID tenant and has to be copied into MailStore Server next, together with the ''Directory (tenant) ID''. Therefore, for the following steps, leave the overview page open in your web browser.&lt;br /&gt;
&lt;br /&gt;
=== Creating Credentials in MailStore Server ===&lt;br /&gt;
Credentials for Microsoft 365 consist of the aforementioned IDs and a secret that MailStore Server uses to proof its identity to Microsoft Entra ID. Microsoft recommends using certificates as secrets to identify apps in Microsoft Entra ID. When creating credentials, such a certificate is generated automatically by MailStore Server but can also be recreated later on.&lt;br /&gt;
{{Directory Services Accessing Configuration|Microsoft 365 or Microsoft 365 operated by 21 Vianet|Microsoft 365 sync 01.png}}&lt;br /&gt;
* In the ''Connection'' section, click on the button (…) next to the ''Credentials'' drop-down list.&lt;br /&gt;
* In the ''Credential Manager'' that appears, click on ''Create…''&lt;br /&gt;
* In the ''Microsoft Entra ID App Credentials'' dialog, enter the following information in the ''Settings'' section:&lt;br /&gt;
** '''Name'''&amp;lt;br/&amp;gt; A meaningful display name for the credentials, e.g. the name of your Microsoft 365 tenant.&lt;br /&gt;
** '''Application (client) ID'''&amp;lt;br/&amp;gt; The value of the corresponding field that you can copy from the Microsoft Entra ID app overview page in your web browser.&lt;br /&gt;
** '''Directory (tenant) ID'''&amp;lt;br/&amp;gt; The value of the corresponding field that you can copy from the Microsoft Entra ID app overview page in your web browser.&lt;br /&gt;
[[File:Microsoft 365 cred 01.png|center|347px]]&lt;br /&gt;
* In the ''Authentication'' section, click on the drop-down button next to the ''Certificate'' text box und select ''Download Certificate''. Save the certificate on your hard drive.&lt;br /&gt;
* Confirm your entries by clicking ''OK''.&lt;br /&gt;
* The newly created credentials are listed in the ''Credential Manager'' under the name you have entered with the type ''Microsoft 365''. Here you can also edit or delete existing credentials if necessary.&lt;br /&gt;
* Leave the ''Credential Manager'' by clicking ''Close''.&lt;br /&gt;
* The newly created credentials are selected in the corresponding drop-down list by default.&lt;br /&gt;
&lt;br /&gt;
=== Publishing Credentials in Microsoft Entra ID ===&lt;br /&gt;
For Microsoft Entra ID to validate the identity of MailStore Server, the created certificate needs to be published in Microsoft Entra ID.&lt;br /&gt;
* Switch to the Microsoft Entra ID app overview page in your web browser.&lt;br /&gt;
* Select ''Certificates &amp;amp; secrets'' in the ''Manage'' section of the left navigation menu.&lt;br /&gt;
* Click on ''Upload certificate'' in the ''Certificates'' section. Select the certificate file that you have saved previously and upload it to Microsoft Entra ID by clicking ''Add''.&lt;br /&gt;
* If uploading has been successful, the certificate's thumbprint as well as its start and expiry dates appear in the certificates list. You can compare the thumbprint and expiry date with those listed in the MailStore Credential Manager to check that you've uploaded the correct certificate.&lt;br /&gt;
&lt;br /&gt;
=== Configuring App Authentication in Microsoft Entra ID ===&lt;br /&gt;
For Microsoft Entra ID to return the result of a user's authentication request to MailStore Server, the endpoint where MailStore Server expects authentication responses, the so-called ''Redirect URI'', has to be conveyed to Microsoft Entra ID.&lt;br /&gt;
* In the Microsoft Entra ID Portal in the web browser, select ''Authentication'' in the ''Manage'' section of the left navigation menu.&lt;br /&gt;
* Click on the ''Add Redirect URI'' button on the ''Redirect URI configuration'' page.&lt;br /&gt;
* Select ''Web'' in the ''Web applications'' section of the platform selection page.&lt;br /&gt;
* In the '''Implicit grant and hybrid flows''' section perform the following action:&lt;br /&gt;
:'''Enable''' the '''ID tokens''' option.&lt;br /&gt;
[[File:Microsoft_365_sync_id_token.png|center]]&lt;br /&gt;
* In the field ''Redirect URI'', enter a URI in the format (without brackets)&lt;br /&gt;
*: &amp;lt;code&amp;gt;https://&amp;lt;fqdn&amp;gt;[:&amp;lt;port&amp;gt;]/oidc/signin&amp;lt;/code&amp;gt;&lt;br /&gt;
*; with the following components&amp;lt;nowiki&amp;gt;:&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
*: '''https://'''&amp;lt;br/&amp;gt; Specifying the &amp;lt;code&amp;gt;https://&amp;lt;/code&amp;gt; protocol is obligatory. To avoid certificate warnings during user logon, the web browsers on the client machines must trust the [[MailStore_Server_Service_Configuration#Certificate|certificate used by MailStore Server]].&lt;br /&gt;
*: '''FQDN'''&amp;lt;br/&amp;gt;The Fully Qualified Domain Name (FQDN) of your MailStore Server that consists of the machine name and the DNS domain, e.g. &amp;lt;code&amp;gt;mailstore.example.com&amp;lt;/code&amp;gt;. This name must be resolvable by all clients from which users shall be able to log on to MailStore Server.&lt;br /&gt;
*: '''Port'''&amp;lt;br/&amp;gt;The TCP port of the MailStore Web Access (&amp;lt;code&amp;gt;8462&amp;lt;/code&amp;gt; by default). This value must be equal to the port configured in the section ''Base Configuration &amp;gt; Network Settings &amp;gt; MailStore Web Access / Outlook Add-in (HTTPS)'' of the [[MailStore_Server_Service_Configuration#Services|MailStore Server Service Configuration]]. The TCP port has to be specified only if it is different from the default port of the HTTPS protocol (&amp;lt;code&amp;gt;443&amp;lt;/code&amp;gt;).&lt;br /&gt;
*: '''/oidc/signin'''&amp;lt;br/&amp;gt;The endpoint where MailStore Server expects the authentication responses of Microsoft Entra ID. This path has to be specified exactly as stated here at the end of the redirect URI.&lt;br /&gt;
* Leave the field ''Logout URL'' blank.&lt;br /&gt;
* Ensure that the '''ID tokens''' option is set in the '''Implicit grant and hybrid flows''' section.&lt;br /&gt;
* Click on ''Configure'' to finish the configuration of the app authentication in Microsoft Entra ID.&lt;br /&gt;
&amp;lt;div class=&amp;quot;resp-table&amp;quot;&amp;gt;&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;font-size: 85%;&amp;quot;&lt;br /&gt;
|+ Examples for valid redirect URIs&lt;br /&gt;
|-&lt;br /&gt;
! style=&amp;quot;width:80px;&amp;quot; | Product&lt;br /&gt;
! style=&amp;quot;width:80px;&amp;quot; | FQDN&lt;br /&gt;
! style=&amp;quot;width:40px;&amp;quot; | Port&lt;br /&gt;
! Resulting Redirect URI&lt;br /&gt;
|-&lt;br /&gt;
| align=&amp;quot;center&amp;quot;| MailStore Server&lt;br /&gt;
| align=&amp;quot;center&amp;quot;| mailstore.example.com&lt;br /&gt;
| align=&amp;quot;center&amp;quot;| 8462&lt;br /&gt;
| &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;https://mailstore.example.com:8462/oidc/signin&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;Redirect URI with Fully Qualified Domain Name and MailStore Web Access default  port&lt;br /&gt;
|-&lt;br /&gt;
| align=&amp;quot;center&amp;quot;| MailStore Server&lt;br /&gt;
| align=&amp;quot;center&amp;quot;| mailstore.example.com&lt;br /&gt;
| align=&amp;quot;center&amp;quot;| 443&lt;br /&gt;
| &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;https://mailstore.example.com/oidc/signin&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;The port can be ommited if the HTTPS default port 443 has been configured for MailStore Web Access or as source port of a port-forwarding on the firewall or router.&lt;br /&gt;
|-&lt;br /&gt;
| align=&amp;quot;center&amp;quot;| MailStore SPE&lt;br /&gt;
| align=&amp;quot;center&amp;quot;| archive.example.com&lt;br /&gt;
| align=&amp;quot;center&amp;quot;| 443&lt;br /&gt;
| &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;https://archive.example.com/&amp;lt;instanceid&amp;gt;/oidc/signin&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;The ''instanceid'' of the instance is part of the Redirect URI. &lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
:: &amp;lt;p class=&amp;quot;msnote&amp;quot;&amp;gt;'''Important Notice:''' Please note that the redirect URI is case-sensitive. Also review the requirements on resolving URIs in the [[#Prerequisites, Recommendations and Limitations|Prerequisites, Recommendations and Limitations]] section.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:: &amp;lt;p class=&amp;quot;msnote&amp;quot;&amp;gt;'''Important Notice:''' Please note that without setting the ''ID Token'' option, user authentication will not work.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Configuring the Redirect URI in MailStore Server ===&lt;br /&gt;
For MailStore Server to convey the redirect URI to requesting clients, it must be configured there, too.&lt;br /&gt;
* Switch to the ''Directory Services'' page in the MailStore Client.&lt;br /&gt;
* Enter the redirect URI in the corresponding field in the ''Authentication'' section. Just copy the value previously configured in Microsoft Entra ID from the web browser.&lt;br /&gt;
[[File:Microsoft 365 sync 02.png|center|450px]]&lt;br /&gt;
&lt;br /&gt;
=== Configuring API Permissions in Microsoft Entra ID ===&lt;br /&gt;
* Switch again to Microsoft Entra ID in your web browser.&lt;br /&gt;
* Select ''API permissions'' in the ''Manage'' section of the left navigation menu.&lt;br /&gt;
* Click on the ''Add a permission'' button in the ''Configured permissions'' section.&lt;br /&gt;
* On the ''Request API permissions'' menu page, select the API ''Microsoft Graph'' in the ''Commonly used Microsoft APIs'' section.&lt;br /&gt;
* Select the option ''Application permissions''.&lt;br /&gt;
* Enable the ''Directory &amp;gt; Directory.Read.All'' permission in the ''Select permissions'' section.&lt;br /&gt;
* '''New in 26.1''': Also enable the ''Mail &amp;gt; Mail.ReadWrite'' permission in the ''Select permissions'' section.&lt;br /&gt;
* Click on ''Add permissions''.&lt;br /&gt;
* The permissions are updated and the ''Directory.Read.All'' and ''Mail.ReadWrite'' permissions appear in the API permissions list under ''Microsoft Graph''.&lt;br /&gt;
* Click on the ''Add a permission'' button in the ''Configured permissions'' section again.&lt;br /&gt;
* On the ''Request API permissions'' menu page, select ''APIs my organization uses''.&lt;br /&gt;
* Search for ''Office 365 Exchange Online'' and click on the corresponding entry.&lt;br /&gt;
* Select the option ''Application permissions''.&lt;br /&gt;
* Enable the ''full_access_as_app'' permission in the ''Select permissions'' section.&lt;br /&gt;
* '''New in 25.3''': Also enable the permission ''SMTP.SendAsApp'' in the ''SMTP'' section.&lt;br /&gt;
* Click on ''Add permissions''.&lt;br /&gt;
* The permissions are updated and the ''full_access_as_app'' and ''SMTP.SendAsApp'' permissions appear in the API permissions list under ''Exchange''.&lt;br /&gt;
* Now click on the ''Grant admin consent for &amp;lt;your tenant name&amp;gt;'' button in the ''Configured permissions'' section.&lt;br /&gt;
* Acknowledge the following notice with ''Yes''.&lt;br /&gt;
* The status of all granted permissions is updated to ''Granted for &amp;lt;your tenant name&amp;gt;''.&lt;br /&gt;
The configuration of MailStore Server's connection to Microsoft 365 within Microsoft Entra ID is now complete. You can sign out of your Microsoft Entra ID tenant and close the browser window. Switch to the ''Directory Services'' page in the MailStore Client again, all remaining configuration steps must be done there.&lt;br /&gt;
&lt;br /&gt;
[[File:Microsoft 365 sync 03.png|center]]&lt;br /&gt;
&lt;br /&gt;
=== User Database Synchronization ===&lt;br /&gt;
After configuring the connection settings as described above, you can specify filter criteria for the Microsoft 365 synchronization in this section.&lt;br /&gt;
*'''Synchronize licensed Microsoft Exchange Online users only'''&amp;lt;br/&amp;gt;Only Microsoft 365 user accounts with a Microsoft Exchange Online license assigned to them will be taken into account by the synchronization.&lt;br /&gt;
*'''Synchronize enabled users only'''&amp;lt;br/&amp;gt;Only Microsoft 365 user accounts that do not have their login to Microsoft 365 blocked will be taken into account by the synchronization.&lt;br /&gt;
*'''Sync only these groups'''&amp;lt;br/&amp;gt;Choose one or several Microsoft 365 security groups if you only want their members to be created as MailStore Server users. That way it's possible to exclude certain users from being synchronized to MailStore Server.&lt;br /&gt;
&lt;br /&gt;
{{Directory Services Options|Microsoft 365 tenant}}&lt;br /&gt;
{{Directory Services Assign Default Privileges|Microsoft 365}}&lt;br /&gt;
{{Directory Services Run Synchronization|Microsoft 365 tenant}}&lt;br /&gt;
[[File:Office365_sync_02.png|450px|center]]&lt;br /&gt;
&lt;br /&gt;
{{Directory Services Test Authentication}}&lt;br /&gt;
&lt;br /&gt;
== Updating credentials ==&lt;br /&gt;
The certificate generated by MailStore for logging into Microsoft Entra ID is valid for 3750 days (825 days before version 25.3). In order for user synchronization and archiving to work afterwards, the certificate must be updated before its validity expires.&lt;br /&gt;
&lt;br /&gt;
MailStore Server will show a notification on the dashboard in MailStore Client and in the [[Jobs#Templates|status report]] 28 days before credentials expire. You can also use the [[Administration_API_-_Function_Reference#GetCredentials|GetCredentials API command]] to retrieve the expiration date.&lt;br /&gt;
&lt;br /&gt;
To update the credentials, proceed as follows:&lt;br /&gt;
&lt;br /&gt;
=== Updating credentials in MailStore Server ===&lt;br /&gt;
&lt;br /&gt;
* Log on to MailStore Client as a MailStore Server administrator.&lt;br /&gt;
* Click on ''Administrative Tools'' &amp;gt; ''Users and Archives'' &amp;gt; ''Directory Services''.&lt;br /&gt;
* In the ''Integration section'', make sure that the directory service type is set to ''Microsoft 365 (Modern Authentication)'' or ''Microsoft 365 operated by 21 Vianet (Modern Authentication)''.&lt;br /&gt;
[[File:Microsoft 365 sync 01.png|center|347px]]&lt;br /&gt;
* In the ''Connection'' section, click on the button (…) next to the ''Credentials'' drop-down list.&lt;br /&gt;
* In the ''Credential Manager'' that appears, click on the currently used credential object and click ''Edit…''&lt;br /&gt;
: [[File:Microsoft 365 cred 02.png|center|347px]]&lt;br /&gt;
* In the ''Authentication'' section, click on the drop-down button next to the ''Certificate'' text box und select ''Create Certificate...''.&lt;br /&gt;
* Confirm the process.&lt;br /&gt;
* In the ''Authentication'' section, click on the drop-down button next to the ''Certificate'' text box und select ''Download Certificate''. Save the certificate on your hard drive.&lt;br /&gt;
* Confirm your changes by clicking ''OK''.&lt;br /&gt;
* Leave the ''Credential Manager'' by clicking ''Apply''.&lt;br /&gt;
* The newly created credentials are selected in the corresponding drop-down list by default.&lt;br /&gt;
* If you are using Microsoft 365 in hybrid mode and synchronizing users from your Active Directory, set the directory service back to ''Active Directory''.&lt;br /&gt;
&lt;br /&gt;
=== Updating credentials in Microsoft Entra ID ===&lt;br /&gt;
&lt;br /&gt;
* Sign in to the [https://portal.azure.com Microsoft Entra ID Portal] as a Global Administrator for your Microsoft 365 tenant.&amp;lt;br/&amp;gt;The Microsoft Entra ID Portal of ''Office 365, operated by 21Vianet'' [https://portal.azure.cn/#view/Microsoft_AAD_IAM/ActiveDirectoryMenuBlade/~/Overview can be accessed here].&lt;br /&gt;
* In the navigation menu (☰), select the option ''Microsoft Entra ID''.&lt;br /&gt;
* On the next page, select ''App registrations'' in the ''Manage'' section of the left navigation menu.&lt;br /&gt;
* Select the application that is currently used by MailStore.&lt;br /&gt;
* Select ''Certificates &amp;amp; secrets'' in the ''Manage'' section of the left navigation menu.&lt;br /&gt;
* Click on ''Upload certificate'' in the ''Certificates'' section. Select the certificate file that you have saved previously and upload it to Microsoft Entra ID by clicking ''Add''.&lt;br /&gt;
* If uploading has been successful, the certificate's thumbprint as well as its start and expiry dates appear in the certificates list. You can compare the thumbprint and expiry date with those listed in the MailStore Credential Manager to check that you've uploaded the correct certificate.&lt;br /&gt;
* The previously used certificate can be removed from the list.&lt;br /&gt;
&lt;br /&gt;
[[de:Synchronisieren_von_Benutzerkonten_mit_Microsoft_365_(Modern_Authentication)]]&lt;br /&gt;
[[en:Synchronizing_User_Accounts_with_Microsoft_365_(Modern_Authentication)]]&lt;/div&gt;</summary>
		<author><name>Ltalaschus</name></author>
	</entry>
	<entry>
		<id>https://help.mailstore.com/en/server/index.php?title=Synchronizing_User_Accounts_with_Microsoft_365_-_Modern_Authentication&amp;diff=7971</id>
		<title>Synchronizing User Accounts with Microsoft 365 - Modern Authentication</title>
		<link rel="alternate" type="text/html" href="https://help.mailstore.com/en/server/index.php?title=Synchronizing_User_Accounts_with_Microsoft_365_-_Modern_Authentication&amp;diff=7971"/>
		<updated>2026-01-20T15:09:44Z</updated>

		<summary type="html">&lt;p&gt;Ltalaschus: /* Configuring API Permissions in Microsoft Entra ID */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Directory Services Preamble|Microsoft 365 tenant|Microsoft 365||}}&lt;br /&gt;
== Prerequisites, Recommendations and Limitations ==&lt;br /&gt;
* For best user experience, the certificate used by MailStore Server should be trusted by all clients and the used web browsers. Using a certificate that is signed by a trusted certificate authority or [[Using_Lets_Encrypt_Certificates|using Let's Encrypt certificates]] is highly recommended.&lt;br /&gt;
* If you have archived emails from an Exchange server and synchronized users from an Active Directory until now, follow the article [[Changing Archiving from Microsoft Exchange Server to Microsoft 365]]&lt;br /&gt;
* If users are supposed to log in to MailStore Server from outside the organization's network without a VPN using [[Accessing_the_Archive_with_the_MailStore_Client_software|MailStore Client]], [[Accessing_the_Archive_with_the_Microsoft_Outlook_integration|MailStore Outlook Add-in]] or the [[Accessing_the_Archive_with_MailStore_Web_Access|Web Access]], the URIs mentioned in this article must be resolvable via DNS on the Internet and port-forwardings to the MailStore Server computer must be set up on the firewall or router if necessary. &lt;br /&gt;
* When using Microsoft&amp;amp;nbsp;365 to authenticate users at login, [[Accessing_the_Archive_via_Integrated_IMAP_Server|accessing the archive via IMAP]] is not possible for technical reasons.&lt;br /&gt;
* MailStore Server supports the synchronization of user accounts with the global Microsoft Cloud ''Microsoft&amp;amp;nbsp;365'' and ''Office&amp;amp;nbsp;365, operated by 21Vianet''. Other Environments like GCC, GCC&amp;amp;nbsp;High or DoD are not supported. In the following article, only the term Microsoft 365 is used for the sake of simplicity.&lt;br /&gt;
&lt;br /&gt;
== Connecting MailStore Server and Microsoft 365 ==&lt;br /&gt;
In order to synchronize user information from Microsoft 365, MailStore Server has to be connected to your Microsoft 365 tenant and been granted the required permissions. Microsoft 365 relies on Microsoft Entra ID as directory service. Each Microsoft 365 tenant corresponds to an Microsoft Entra ID tenant that stores its user information.&lt;br /&gt;
&lt;br /&gt;
=== Registering of MailStore Server as App in Microsoft Entra ID ===&lt;br /&gt;
Through registration, MailStore Server gets an identity in Microsoft Entra ID that makes it possible to authenticate to the tenant's services and use their resources.&lt;br /&gt;
* Sign in to the [https://portal.azure.com Microsoft Entra ID Portal] as a Global Administrator for your Microsoft 365 tenant.&amp;lt;br/&amp;gt;The Microsoft Entra ID Portal of ''Office 365, operated by 21Vianet'' [https://portal.azure.cn/#view/Microsoft_AAD_IAM/ActiveDirectoryMenuBlade/~/Overview can be accessed here].&lt;br /&gt;
* In the navigation menu (☰), select the option ''Microsoft Entra ID''.&lt;br /&gt;
* On the next page, select ''App registrations'' in the ''Manage'' section of the left navigation menu.&lt;br /&gt;
* Select ''New Registration''. The ''Register an application'' page appears.&lt;br /&gt;
* In the ''Name'' field, enter a meaningful display name, e.g. ''MailStore Server''. This name will be shown to users on logon later on, for example.&lt;br /&gt;
* Leave all other settings on this page to their defaults.&lt;br /&gt;
* Click on ''Register''. If the registration has been successful, you are shown the overview page of the newly registered app.&lt;br /&gt;
The ''Application (client) ID'' shown on this page identifies MailStore Server in your Microsoft Entra ID tenant and has to be copied into MailStore Server next, together with the ''Directory (tenant) ID''. Therefore, for the following steps, leave the overview page open in your web browser.&lt;br /&gt;
&lt;br /&gt;
=== Creating Credentials in MailStore Server ===&lt;br /&gt;
Credentials for Microsoft 365 consist of the aforementioned IDs and a secret that MailStore Server uses to proof its identity to Microsoft Entra ID. Microsoft recommends using certificates as secrets to identify apps in Microsoft Entra ID. When creating credentials, such a certificate is generated automatically by MailStore Server but can also be recreated later on.&lt;br /&gt;
{{Directory Services Accessing Configuration|Microsoft 365 or Microsoft 365 operated by 21 Vianet|Microsoft 365 sync 01.png}}&lt;br /&gt;
* In the ''Connection'' section, click on the button (…) next to the ''Credentials'' drop-down list.&lt;br /&gt;
* In the ''Credential Manager'' that appears, click on ''Create…''&lt;br /&gt;
* In the ''Microsoft Entra ID App Credentials'' dialog, enter the following information in the ''Settings'' section:&lt;br /&gt;
** '''Name'''&amp;lt;br/&amp;gt; A meaningful display name for the credentials, e.g. the name of your Microsoft 365 tenant.&lt;br /&gt;
** '''Application (client) ID'''&amp;lt;br/&amp;gt; The value of the corresponding field that you can copy from the Microsoft Entra ID app overview page in your web browser.&lt;br /&gt;
** '''Directory (tenant) ID'''&amp;lt;br/&amp;gt; The value of the corresponding field that you can copy from the Microsoft Entra ID app overview page in your web browser.&lt;br /&gt;
[[File:Microsoft 365 cred 01.png|center|347px]]&lt;br /&gt;
* In the ''Authentication'' section, click on the drop-down button next to the ''Certificate'' text box und select ''Download Certificate''. Save the certificate on your hard drive.&lt;br /&gt;
* Confirm your entries by clicking ''OK''.&lt;br /&gt;
* The newly created credentials are listed in the ''Credential Manager'' under the name you have entered with the type ''Microsoft 365''. Here you can also edit or delete existing credentials if necessary.&lt;br /&gt;
* Leave the ''Credential Manager'' by clicking ''Close''.&lt;br /&gt;
* The newly created credentials are selected in the corresponding drop-down list by default.&lt;br /&gt;
&lt;br /&gt;
=== Publishing Credentials in Microsoft Entra ID ===&lt;br /&gt;
For Microsoft Entra ID to validate the identity of MailStore Server, the created certificate needs to be published in Microsoft Entra ID.&lt;br /&gt;
* Switch to the Microsoft Entra ID app overview page in your web browser.&lt;br /&gt;
* Select ''Certificates &amp;amp; secrets'' in the ''Manage'' section of the left navigation menu.&lt;br /&gt;
* Click on ''Upload certificate'' in the ''Certificates'' section. Select the certificate file that you have saved previously and upload it to Microsoft Entra ID by clicking ''Add''.&lt;br /&gt;
* If uploading has been successful, the certificate's thumbprint as well as its start and expiry dates appear in the certificates list. You can compare the thumbprint and expiry date with those listed in the MailStore Credential Manager to check that you've uploaded the correct certificate.&lt;br /&gt;
&lt;br /&gt;
=== Configuring App Authentication in Microsoft Entra ID ===&lt;br /&gt;
For Microsoft Entra ID to return the result of a user's authentication request to MailStore Server, the endpoint where MailStore Server expects authentication responses, the so-called ''Redirect URI'', has to be conveyed to Microsoft Entra ID.&lt;br /&gt;
* In the Microsoft Entra ID Portal in the web browser, select ''Authentication'' in the ''Manage'' section of the left navigation menu.&lt;br /&gt;
* Click on the ''Add Redirect URI'' button on the ''Redirect URI configuration'' page.&lt;br /&gt;
* Select ''Web'' in the ''Web applications'' section of the platform selection page.&lt;br /&gt;
* In the '''Implicit grant and hybrid flows''' section perform the following action:&lt;br /&gt;
:'''Enable''' the '''ID tokens''' option.&lt;br /&gt;
[[File:Microsoft_365_sync_id_token.png|center]]&lt;br /&gt;
* In the field ''Redirect URI'', enter a URI in the format (without brackets)&lt;br /&gt;
*: &amp;lt;code&amp;gt;https://&amp;lt;fqdn&amp;gt;[:&amp;lt;port&amp;gt;]/oidc/signin&amp;lt;/code&amp;gt;&lt;br /&gt;
*; with the following components&amp;lt;nowiki&amp;gt;:&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
*: '''https://'''&amp;lt;br/&amp;gt; Specifying the &amp;lt;code&amp;gt;https://&amp;lt;/code&amp;gt; protocol is obligatory. To avoid certificate warnings during user logon, the web browsers on the client machines must trust the [[MailStore_Server_Service_Configuration#Certificate|certificate used by MailStore Server]].&lt;br /&gt;
*: '''FQDN'''&amp;lt;br/&amp;gt;The Fully Qualified Domain Name (FQDN) of your MailStore Server that consists of the machine name and the DNS domain, e.g. &amp;lt;code&amp;gt;mailstore.example.com&amp;lt;/code&amp;gt;. This name must be resolvable by all clients from which users shall be able to log on to MailStore Server.&lt;br /&gt;
*: '''Port'''&amp;lt;br/&amp;gt;The TCP port of the MailStore Web Access (&amp;lt;code&amp;gt;8462&amp;lt;/code&amp;gt; by default). This value must be equal to the port configured in the section ''Base Configuration &amp;gt; Network Settings &amp;gt; MailStore Web Access / Outlook Add-in (HTTPS)'' of the [[MailStore_Server_Service_Configuration#Services|MailStore Server Service Configuration]]. The TCP port has to be specified only if it is different from the default port of the HTTPS protocol (&amp;lt;code&amp;gt;443&amp;lt;/code&amp;gt;).&lt;br /&gt;
*: '''/oidc/signin'''&amp;lt;br/&amp;gt;The endpoint where MailStore Server expects the authentication responses of Microsoft Entra ID. This path has to be specified exactly as stated here at the end of the redirect URI.&lt;br /&gt;
* Leave the field ''Logout URL'' blank.&lt;br /&gt;
* Ensure that the '''ID tokens''' option is set in the '''Implicit grant and hybrid flows''' section.&lt;br /&gt;
* Click on ''Configure'' to finish the configuration of the app authentication in Microsoft Entra ID.&lt;br /&gt;
&amp;lt;div class=&amp;quot;resp-table&amp;quot;&amp;gt;&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;font-size: 85%;&amp;quot;&lt;br /&gt;
|+ Examples for valid redirect URIs&lt;br /&gt;
|-&lt;br /&gt;
! style=&amp;quot;width:80px;&amp;quot; | Product&lt;br /&gt;
! style=&amp;quot;width:80px;&amp;quot; | FQDN&lt;br /&gt;
! style=&amp;quot;width:40px;&amp;quot; | Port&lt;br /&gt;
! Resulting Redirect URI&lt;br /&gt;
|-&lt;br /&gt;
| align=&amp;quot;center&amp;quot;| MailStore Server&lt;br /&gt;
| align=&amp;quot;center&amp;quot;| mailstore.example.com&lt;br /&gt;
| align=&amp;quot;center&amp;quot;| 8462&lt;br /&gt;
| &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;https://mailstore.example.com:8462/oidc/signin&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;Redirect URI with Fully Qualified Domain Name and MailStore Web Access default  port&lt;br /&gt;
|-&lt;br /&gt;
| align=&amp;quot;center&amp;quot;| MailStore Server&lt;br /&gt;
| align=&amp;quot;center&amp;quot;| mailstore.example.com&lt;br /&gt;
| align=&amp;quot;center&amp;quot;| 443&lt;br /&gt;
| &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;https://mailstore.example.com/oidc/signin&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;The port can be ommited if the HTTPS default port 443 has been configured for MailStore Web Access or as source port of a port-forwarding on the firewall or router.&lt;br /&gt;
|-&lt;br /&gt;
| align=&amp;quot;center&amp;quot;| MailStore SPE&lt;br /&gt;
| align=&amp;quot;center&amp;quot;| archive.example.com&lt;br /&gt;
| align=&amp;quot;center&amp;quot;| 443&lt;br /&gt;
| &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;https://archive.example.com/&amp;lt;instanceid&amp;gt;/oidc/signin&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;The ''instanceid'' of the instance is part of the Redirect URI. &lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
:: &amp;lt;p class=&amp;quot;msnote&amp;quot;&amp;gt;'''Important Notice:''' Please note that the redirect URI is case-sensitive. Also review the requirements on resolving URIs in the [[#Prerequisites, Recommendations and Limitations|Prerequisites, Recommendations and Limitations]] section.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:: &amp;lt;p class=&amp;quot;msnote&amp;quot;&amp;gt;'''Important Notice:''' Please note that without setting the ''ID Token'' option, user authentication will not work.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Configuring the Redirect URI in MailStore Server ===&lt;br /&gt;
For MailStore Server to convey the redirect URI to requesting clients, it must be configured there, too.&lt;br /&gt;
* Switch to the ''Directory Services'' page in the MailStore Client.&lt;br /&gt;
* Enter the redirect URI in the corresponding field in the ''Authentication'' section. Just copy the value previously configured in Microsoft Entra ID from the web browser.&lt;br /&gt;
[[File:Microsoft 365 sync 02.png|center|450px]]&lt;br /&gt;
&lt;br /&gt;
=== Configuring API Permissions in Microsoft Entra ID ===&lt;br /&gt;
* Switch again to Microsoft Entra ID in your web browser.&lt;br /&gt;
* Select ''API permissions'' in the ''Manage'' section of the left navigation menu.&lt;br /&gt;
* Click on the ''Add a permission'' button in the ''Configured permissions'' section.&lt;br /&gt;
* On the ''Request API permissions'' menu page, select the API ''Microsoft Graph'' in the ''Commonly used Microsoft APIs'' section.&lt;br /&gt;
* Select the option ''Application permissions''.&lt;br /&gt;
* Enable the ''Directory &amp;gt; Directory.Read.All'' permission in the ''Select permissions'' section.&lt;br /&gt;
* '''New in 26.1''': Also enable the ''Mail &amp;gt; Mail.ReadWrite'' permission in the ''Select permissions'' section.&lt;br /&gt;
* Click on ''Add permissions''.&lt;br /&gt;
* The permissions are updated and the ''Directory.Read.All'' and ''Mail.ReadWrite'' permissions appear in the API permissions list under ''Microsoft Graph''.&lt;br /&gt;
* Click on the ''Add a permission'' button in the ''Configured permissions'' section again.&lt;br /&gt;
* On the ''Request API permissions'' menu page, select ''APIs my organization uses''.&lt;br /&gt;
* Search for ''Office 365 Exchange Online'' and click on the corresponding entry.&lt;br /&gt;
* Select the option ''Application permissions''.&lt;br /&gt;
* Enable the ''full_access_as_app'' permission in the ''Select permissions'' section.&lt;br /&gt;
* Also enable the permission ''SMTP.SendAsApp'' in the ''SMTP'' section.&lt;br /&gt;
* Click on ''Add permissions''.&lt;br /&gt;
* The permissions are updated and the ''full_access_as_app'' and ''SMTP.SendAsApp'' permissions appear in the API permissions list under ''Exchange''.&lt;br /&gt;
* Now click on the ''Grant admin consent for &amp;lt;your tenant name&amp;gt;'' button in the ''Configured permissions'' section.&lt;br /&gt;
* Acknowledge the following notice with ''Yes''.&lt;br /&gt;
* The status of all granted permissions is updated to ''Granted for &amp;lt;your tenant name&amp;gt;''.&lt;br /&gt;
The configuration of MailStore Server's connection to Microsoft 365 within Microsoft Entra ID is now complete. You can sign out of your Microsoft Entra ID tenant and close the browser window. Switch to the ''Directory Services'' page in the MailStore Client again, all remaining configuration steps must be done there.&lt;br /&gt;
&lt;br /&gt;
[[File:Microsoft 365 sync 03.png|center]]&lt;br /&gt;
&lt;br /&gt;
=== User Database Synchronization ===&lt;br /&gt;
After configuring the connection settings as described above, you can specify filter criteria for the Microsoft 365 synchronization in this section.&lt;br /&gt;
*'''Synchronize licensed Microsoft Exchange Online users only'''&amp;lt;br/&amp;gt;Only Microsoft 365 user accounts with a Microsoft Exchange Online license assigned to them will be taken into account by the synchronization.&lt;br /&gt;
*'''Synchronize enabled users only'''&amp;lt;br/&amp;gt;Only Microsoft 365 user accounts that do not have their login to Microsoft 365 blocked will be taken into account by the synchronization.&lt;br /&gt;
*'''Sync only these groups'''&amp;lt;br/&amp;gt;Choose one or several Microsoft 365 security groups if you only want their members to be created as MailStore Server users. That way it's possible to exclude certain users from being synchronized to MailStore Server.&lt;br /&gt;
&lt;br /&gt;
{{Directory Services Options|Microsoft 365 tenant}}&lt;br /&gt;
{{Directory Services Assign Default Privileges|Microsoft 365}}&lt;br /&gt;
{{Directory Services Run Synchronization|Microsoft 365 tenant}}&lt;br /&gt;
[[File:Office365_sync_02.png|450px|center]]&lt;br /&gt;
&lt;br /&gt;
{{Directory Services Test Authentication}}&lt;br /&gt;
&lt;br /&gt;
== Updating credentials ==&lt;br /&gt;
The certificate generated by MailStore for logging into Microsoft Entra ID is valid for 3750 days (825 days before version 25.3). In order for user synchronization and archiving to work afterwards, the certificate must be updated before its validity expires.&lt;br /&gt;
&lt;br /&gt;
MailStore Server will show a notification on the dashboard in MailStore Client and in the [[Jobs#Templates|status report]] 28 days before credentials expire. You can also use the [[Administration_API_-_Function_Reference#GetCredentials|GetCredentials API command]] to retrieve the expiration date.&lt;br /&gt;
&lt;br /&gt;
To update the credentials, proceed as follows:&lt;br /&gt;
&lt;br /&gt;
=== Updating credentials in MailStore Server ===&lt;br /&gt;
&lt;br /&gt;
* Log on to MailStore Client as a MailStore Server administrator.&lt;br /&gt;
* Click on ''Administrative Tools'' &amp;gt; ''Users and Archives'' &amp;gt; ''Directory Services''.&lt;br /&gt;
* In the ''Integration section'', make sure that the directory service type is set to ''Microsoft 365 (Modern Authentication)'' or ''Microsoft 365 operated by 21 Vianet (Modern Authentication)''.&lt;br /&gt;
[[File:Microsoft 365 sync 01.png|center|347px]]&lt;br /&gt;
* In the ''Connection'' section, click on the button (…) next to the ''Credentials'' drop-down list.&lt;br /&gt;
* In the ''Credential Manager'' that appears, click on the currently used credential object and click ''Edit…''&lt;br /&gt;
: [[File:Microsoft 365 cred 02.png|center|347px]]&lt;br /&gt;
* In the ''Authentication'' section, click on the drop-down button next to the ''Certificate'' text box und select ''Create Certificate...''.&lt;br /&gt;
* Confirm the process.&lt;br /&gt;
* In the ''Authentication'' section, click on the drop-down button next to the ''Certificate'' text box und select ''Download Certificate''. Save the certificate on your hard drive.&lt;br /&gt;
* Confirm your changes by clicking ''OK''.&lt;br /&gt;
* Leave the ''Credential Manager'' by clicking ''Apply''.&lt;br /&gt;
* The newly created credentials are selected in the corresponding drop-down list by default.&lt;br /&gt;
* If you are using Microsoft 365 in hybrid mode and synchronizing users from your Active Directory, set the directory service back to ''Active Directory''.&lt;br /&gt;
&lt;br /&gt;
=== Updating credentials in Microsoft Entra ID ===&lt;br /&gt;
&lt;br /&gt;
* Sign in to the [https://portal.azure.com Microsoft Entra ID Portal] as a Global Administrator for your Microsoft 365 tenant.&amp;lt;br/&amp;gt;The Microsoft Entra ID Portal of ''Office 365, operated by 21Vianet'' [https://portal.azure.cn/#view/Microsoft_AAD_IAM/ActiveDirectoryMenuBlade/~/Overview can be accessed here].&lt;br /&gt;
* In the navigation menu (☰), select the option ''Microsoft Entra ID''.&lt;br /&gt;
* On the next page, select ''App registrations'' in the ''Manage'' section of the left navigation menu.&lt;br /&gt;
* Select the application that is currently used by MailStore.&lt;br /&gt;
* Select ''Certificates &amp;amp; secrets'' in the ''Manage'' section of the left navigation menu.&lt;br /&gt;
* Click on ''Upload certificate'' in the ''Certificates'' section. Select the certificate file that you have saved previously and upload it to Microsoft Entra ID by clicking ''Add''.&lt;br /&gt;
* If uploading has been successful, the certificate's thumbprint as well as its start and expiry dates appear in the certificates list. You can compare the thumbprint and expiry date with those listed in the MailStore Credential Manager to check that you've uploaded the correct certificate.&lt;br /&gt;
* The previously used certificate can be removed from the list.&lt;br /&gt;
&lt;br /&gt;
[[de:Synchronisieren_von_Benutzerkonten_mit_Microsoft_365_(Modern_Authentication)]]&lt;br /&gt;
[[en:Synchronizing_User_Accounts_with_Microsoft_365_(Modern_Authentication)]]&lt;/div&gt;</summary>
		<author><name>Ltalaschus</name></author>
	</entry>
	<entry>
		<id>https://help.mailstore.com/en/server/index.php?title=EWS_Migration&amp;diff=7970</id>
		<title>EWS Migration</title>
		<link rel="alternate" type="text/html" href="https://help.mailstore.com/en/server/index.php?title=EWS_Migration&amp;diff=7970"/>
		<updated>2026-01-20T14:27:46Z</updated>

		<summary type="html">&lt;p&gt;Ltalaschus: /* What Will Change for MailStore Server and the MailStore SPE? */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Microsoft Is Discontinuing Its Exchange Web Services (EWS) for Microsoft 365 ==&lt;br /&gt;
Microsoft [https://techcommunity.microsoft.com/blog/exchange/retirement-of-exchange-web-services-in-exchange-online/3924440 has announced] that it will no longer support Exchange Web Services (EWS) for Exchange Online as of October 1, 2026. This decision affects all companies that use EWS in combination with Exchange Online (Microsoft 365).&lt;br /&gt;
&lt;br /&gt;
EWS is a technology that was developed specifically for accessing Exchange data. The API enables access to data from Microsoft Exchange Server and Exchange Online, including emails and mailboxes. EWS has been a central interface for third-party solutions such as archiving systems.&lt;br /&gt;
&lt;br /&gt;
What Will Happen in October?&lt;br /&gt;
Microsoft plans to disable EWS for Exchange Online starting October 1. This decision will force manufacturers to switch to the Microsoft Graph API.&lt;br /&gt;
&lt;br /&gt;
Please note: If you use Exchange Online Kiosk, Microsoft Office 365, and Office 365 F1/F3, you should make the change by June. Further information can be found [https://techcommunity.microsoft.com/blog/exchange/update-to-ews-access-for-kiosk--frontline-worker-licensed-users/4474299 here].&lt;br /&gt;
&lt;br /&gt;
== What Will Change for MailStore Server and the MailStore SPE? ==&lt;br /&gt;
The shutdown of EWS initiated by Microsoft will require adjustments to MailStore Server and the MailStore SPE, depending on your archiving strategy.&lt;br /&gt;
This is because archiving methods within MailStore Server and MailStore SPE that were accessing EWS will no longer be available from October 1 and will then run into errors. &lt;br /&gt;
&lt;br /&gt;
The following profiles are expected to be affected from October onwards, Graph API does not expose access to these and support is effectifely dropped:&lt;br /&gt;
&lt;br /&gt;
* Importing Exchange Online archive mailboxes&lt;br /&gt;
* Importing Exchange Online public folders&lt;br /&gt;
&lt;br /&gt;
Regular Exchange Online Mailboxes and Shared Mailboxes are available using Graph API. New [[Archiving_Emails_from_Microsoft_365_-_Modern_Authentication|mailbox archiving profiles]] in MailStore will use Graph API starting with version 26.1. &lt;br /&gt;
Please ensure you have registered the app in Entra ID [[Synchronizing_User_Accounts_with_Microsoft_365_-_Modern_Authentication#Configuring_API_Permissions_in_Microsoft_Entra_ID|according to our instructions]]; in particular, the Mail.ReadWrite permission is now required.&lt;br /&gt;
New export profiles will change with version 26.2. Existing EWS archiving and export profiles will work until October 2026. We will offer a migration path in the coming months.&lt;br /&gt;
&lt;br /&gt;
The [[Email_Archiving_with_MailStore_Basics|summary panel]] of the archiving or export profile tells which protocol is used. Microsoft 365 Journal archiving profiles do not typically use EWS and are therefore not affected.&lt;br /&gt;
&lt;br /&gt;
[[de:EWS Migration]]&lt;br /&gt;
[[en:EWS Migration]]&lt;/div&gt;</summary>
		<author><name>Ltalaschus</name></author>
	</entry>
	<entry>
		<id>https://help.mailstore.com/en/server/index.php?title=Update_Notices_for_MailStore_Server&amp;diff=7969</id>
		<title>Update Notices for MailStore Server</title>
		<link rel="alternate" type="text/html" href="https://help.mailstore.com/en/server/index.php?title=Update_Notices_for_MailStore_Server&amp;diff=7969"/>
		<updated>2026-01-20T14:25:00Z</updated>

		<summary type="html">&lt;p&gt;Ltalaschus: /* Upgrading to 26.1.0 */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== General Information ==&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;p class=&amp;quot;mswarning&amp;quot;&amp;gt;'''Before you start the installation, please check if your current license really allows to upgrade the software.'''&amp;lt;/p&amp;gt;&lt;br /&gt;
* &amp;lt;p class=&amp;quot;mswarning&amp;quot;&amp;gt;'''Before the installation, read the [https://go.mailstore.com?product=MailStore%20Server&amp;amp;target=changelog&amp;amp;lang=en changelog] for information about all changes in the respective versions.'''&amp;lt;/p&amp;gt;&lt;br /&gt;
* &amp;lt;p class=&amp;quot;mswarning&amp;quot;&amp;gt;'''Make sure you have a recent backup of your archive. Learn more about backing up and restoring MailStore Server [[Backup and Restore|here]]'''.&amp;lt;/p&amp;gt;&lt;br /&gt;
* &amp;lt;p class=&amp;quot;mswarning&amp;quot;&amp;gt;'''Make sure the server where MailStore Server is installed on meets the [[System_Requirements|system requirements]]'''.&amp;lt;/p&amp;gt;&lt;br /&gt;
* Close all open MailStore programs on the server, such as the MailStore Server Service Configuration, the MailStore Client, and Outlook. Open programs cannot be overwritten by the installation program, and this will result in an access error 5.&lt;br /&gt;
* The installation process will uninstall older versions of the software automatically. All archives and the configuration data will be kept. There is no need to manually uninstall old versions previously.&lt;br /&gt;
* Installations with version 23.4 or older must first be updated to version 24.4 and all archive stores must be updated to Firebird 4. You can then update to the latest version. Please also read the [[Update Notices for MailStore Server to version 25.1 or newer]].&lt;br /&gt;
* During the installation process the MailStore Server service is automatically stopped and restarted afterwards. Running archiving profiles will be cancelled and may show up as failed. Should stopping the service fail for any reason, please stop the service manually and run the installation again.&lt;br /&gt;
* Carefully check the auto-detected settings during the installation process.&lt;br /&gt;
* Updating the MailStore Client installations and/or the MailStore Outlook Add-In installations is only necessary if this is specifically stated in the version-specific notes.&lt;br /&gt;
*; Further information can be found in the articles [[MailStore Client Deployment]] and [[MailStore Outlook Add-in Deployment]]&lt;br /&gt;
* The following version specific upgrade notices are cumulative. Therefore, also read the notices regarding all version numbers between yours and the one you are going to install.&lt;br /&gt;
* For versions that are not explicitly listed here, the upgrade notices for preceding versions apply accordingly.&lt;br /&gt;
&lt;br /&gt;
== Upgrading to 26.1.0 ==&lt;br /&gt;
&lt;br /&gt;
* External Microsoft SQL and PostgreSQL-based archive stores are deprecated and support will be removed in a future MailStore version.&lt;br /&gt;
* New Microsoft 365 mailbox archiving profiles now use the Graph API. Please ensure you have registered the app in Entra ID according to our instructions; in particular, the Mail.ReadWrite permission is now required. This only applies to new profiles! See [[EWS_Migration|here]] for more information on this topic.&lt;br /&gt;
&lt;br /&gt;
== Upgrading to 25.4.0 ==&lt;br /&gt;
* MailStore Client prefers Kerberos when Windows Authentication (Single-Sign-on) is configured via GPO.&lt;br /&gt;
&lt;br /&gt;
== Upgrading to 25.3.1 ==&lt;br /&gt;
The known issues of version 25.3.0 have been fixed.&lt;br /&gt;
&lt;br /&gt;
== Upgrading to 25.3.0 ==&lt;br /&gt;
* ''' Microsoft Windows Live Mail '''&lt;br /&gt;
*; Support for the Microsoft Windows Live Mail email client has been removed from MailStore in this version.&lt;br /&gt;
* ''' SmarterMail '''&lt;br /&gt;
*; Support for the SmarterMail email server has been removed from MailStore in this version.&lt;br /&gt;
* ''' Directory Service Synchronization '''&lt;br /&gt;
*; After updating, check your directory service settings for functionality. Support for older authentication methods has been removed from MailStore in this version (Microsoft 365 Basic authentication and Google Workspace IMAP authentication), and third-party components have been updated.&lt;br /&gt;
* ''' SMTP OAuth2 Authentication with Microsoft 365 '''&lt;br /&gt;
*; Please note the [[SMTP Settings]] article if you would like to use your existing app registration in Entra ID to transmit emails via Microsoft 365 server.&lt;br /&gt;
* ''' Gateway archiving '''&lt;br /&gt;
*; Gateway archiving profiles that are meant for Google, generic mail servers and email clients do not extract journal reports and NDRs anymore. When archiving Microsoft 365 journal emails from a MailStore Gateway mailbox ensure you are using the proper Gateway archiving profile before updating. You can tell this because you cannot configure the target path in the archive in the archiving profile and the emails are sorted into the ''Journal Incoming'' and ''Journal Outgoing'' folders.&lt;br /&gt;
&lt;br /&gt;
=== Known Issues ===&lt;br /&gt;
* &amp;lt;p class=&amp;quot;mswarning&amp;quot;&amp;gt;'''PostgreSQL databases cannot be loaded after an upgrade. Do not upgrade if you are using PostgreSQL based archive stores.'''&amp;lt;/p&amp;gt; This bug was fixed with version 25.3.1.&lt;br /&gt;
* In WebAccess, emails that contain only plain text are not displayed correctly. This bug was fixed with version 25.3.1.&lt;br /&gt;
&lt;br /&gt;
== Upgrading to 25.2.0 ==&lt;br /&gt;
There are no notes for this version.&lt;br /&gt;
&lt;br /&gt;
== Upgrading to 25.1.0 ==&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;p class=&amp;quot;mswarning&amp;quot;&amp;gt;'''Only installations with versions 24.2.0 to 24.4.0 can be updated directly.'''&amp;lt;/p&amp;gt;&lt;br /&gt;
* &amp;lt;p class=&amp;quot;mswarning&amp;quot;&amp;gt;'''Until all archive stores have been updated, you must not update to version 25.1.0.'''&amp;lt;/p&amp;gt;&lt;br /&gt;
* It is '''obligatory''' to also note the [[Update Notices for MailStore Server to version 25.1 or newer]].&lt;br /&gt;
&lt;br /&gt;
== Upgrading to 24.4.0 ==&lt;br /&gt;
There are no notes for this version.&lt;br /&gt;
&lt;br /&gt;
== Upgrading to 24.3.0 ==&lt;br /&gt;
* Saved searches containing search criteria that can be interpreted as [[Accessing_the_Archive_with_the_MailStore_Client_software#Searching_for_Alternatives|search for alternatives]] will return different search results than before the update.&lt;br /&gt;
* Retention policies do not support [[Accessing_the_Archive_with_the_MailStore_Client_software#Searching_for_Alternatives|searches for alternatives]]. In case existing retention policies contain search criteria that can be interpreted as searches for alternatives, those have to be changed for retention policies to being able to be processed again.&lt;br /&gt;
&lt;br /&gt;
== Upgrading to 24.2.2 ==&lt;br /&gt;
&lt;br /&gt;
There are no notes for this version.&lt;br /&gt;
&lt;br /&gt;
== Upgrading to 24.2.1 ==&lt;br /&gt;
If you are upgrading from a MailStore version before 24.2.0, please also note the instructions for upgrading to version 24.2.0.&lt;br /&gt;
&lt;br /&gt;
* '''Upgrading Archive Stores''' &amp;lt;br /&amp;gt;If you upgrade from MailStore 24.2.0, the archive stores need to be upgraded. To do this, proceed as follows:&lt;br /&gt;
** Log in as MailStore administrator (admin).&lt;br /&gt;
** Click on ''Administrative Tools'' &amp;gt; ''Storage'' and then ''Storage Locations''.&lt;br /&gt;
** Either click on the yellow info box to upgrade all archive stores at once or right-click on an archive store and select ''Perform Upgrade'' to upgrade a single archive store.&lt;br /&gt;
** Carefully read the notices and click on ''OK'' to start the upgrade process or click on ''Cancel''.&lt;br /&gt;
**: [[File:Fg_upgrade10.png|center]]&lt;br /&gt;
:&amp;lt;p class=&amp;quot;mswarning&amp;quot;&amp;gt;Until all archive stores have been upgraded, retention policies are not available.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Upgrading to 24.2.0 ==&lt;br /&gt;
* '''Upgrade of Master Database'''&amp;lt;br/&amp;gt;The master database is upgraded to Firebird 4 during the first start of the MailStore Server service. This process might extend the time required for the first start of the service by several minutes.&lt;br /&gt;
* '''Upgrading Archive Stores''' &amp;lt;br /&amp;gt;For the update to Firebird 4 the databases of the archive stores must be upgraded. Proceed as follows to upgrade:&lt;br /&gt;
** Log in as MailStore administrator (admin).&lt;br /&gt;
** Click on ''Administrative Tools'' &amp;gt; ''Storage'' and then ''Storage Locations''.&lt;br /&gt;
** Either click on the yellow info box to upgrade all archive stores at once or right-click on an archive store and select ''Perform Upgrade'' to upgrade a single archive store.&lt;br /&gt;
** Carefully read the notices and click on ''OK'' to start the upgrade process or click on ''Cancel''.&lt;br /&gt;
**: [[File:Fg_upgrade10.png|center]]&lt;br /&gt;
:&amp;lt;p class=&amp;quot;mswarning&amp;quot;&amp;gt;Until all archive stores have been upgraded, retention policies are not available.&amp;lt;/p&amp;gt;&lt;br /&gt;
* '''System Requirements'''&lt;br /&gt;
*; Internet Explorer support has been removed from MailStore in this version. For a current list of supported browsers, please refer to [[System Requirements]].&lt;br /&gt;
* ''' Python API Wrapper '''&lt;br /&gt;
*; In order to be able to use the new API commands, an update of the [[Python_API_Wrapper_Tutorial|Python API wrapper library]] is required.&lt;br /&gt;
&lt;br /&gt;
=== Known Issues ===&lt;br /&gt;
* As long as an internal, Firebird-based archive store has not been updated, no recovery records will be written for emails in this archive store. This bug was fixed with version 24.2.1.&lt;br /&gt;
* Users who have been synchronized from an Active Directory and who have MailStore multi-factor authentication (MFA) activated cannot log in using Windows authentication. To work around the issue, disable multi-factor authentication for those users in MailStore or let them use their username and password to log in. This bug was fixed with version 24.2.2.&lt;br /&gt;
&lt;br /&gt;
== Upgrading to 23.4.0 ==&lt;br /&gt;
* '''System Requirements'''&lt;br /&gt;
*; Windows Server 2012 and Windows Server 2012 R2 support has been removed from MailStore in this version. For a current list of supported operating systems, please refer to [[System Requirements]].&lt;br /&gt;
* ''' Python API Wrapper '''&lt;br /&gt;
*; In order to be able to use the new API commands, an update of the [[Python_API_Wrapper_Tutorial|Python API wrapper library]] is required.&lt;br /&gt;
&lt;br /&gt;
== Upgrading to 23.3.0 ==&lt;br /&gt;
* ''' Microsoft Exchange 2013 Support '''&lt;br /&gt;
*; Support for Microsoft Exchange 2013 has been removed from MailStore in this version.&lt;br /&gt;
&lt;br /&gt;
== Upgrading to 23.2.0 ==&lt;br /&gt;
* ''' Outlook Add-in '''&lt;br /&gt;
*; Starting with version 23.2.0, MailStore Server supports multi-factor authentication for users with integrated authentication. To support multi-factor authentication an update of the Outlook Add-in is required.&lt;br /&gt;
*; The Outlook Add-In 23.2.0 is not backward compatible with older MailStore Server versions. When updating, MailStore Server should be updated first and then the Outlook Add-in.&lt;br /&gt;
* ''' Scheduled Tasks, Management API, IMAP Access '''&amp;lt;br /&amp;gt;&lt;br /&gt;
*; When multi-factor authentication is enabled for a user and that user wants to schedule client-side archiving profiles, access the Management API or access the IMAP server, an app password has to be used instead of the regular password.&lt;br /&gt;
* ''' Python API Wrapper '''&lt;br /&gt;
*; In order to be able to use the new API commands, an update of the [[Python_API_Wrapper_Tutorial|Python API wrapper library]] is required.&lt;br /&gt;
&lt;br /&gt;
== Upgrading to 23.1.2 ==&lt;br /&gt;
* &amp;lt;p class=&amp;quot;mswarning&amp;quot;&amp;gt;&amp;lt;b&amp;gt;Important:&amp;lt;/b&amp;gt; Let's Encrypt has announced to change their production request flow permanently on April 24th 2023. After that date, previous versions of MailStore Server will not be able to successfully request certificates from Let's Encrypt.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Upgrading to 23.1.0 ==&lt;br /&gt;
* '''System Requirements'''&lt;br /&gt;
*; Windows 7, Windows 8.1, Windows Server 2008 R2 and Windows Small Business Server 2011 support has been removed from MailStore in this version. For a current list of supported operating systems, please refer to [[System Requirements]].&lt;br /&gt;
&lt;br /&gt;
== Upgrading to 22.4.0 ==&lt;br /&gt;
There are no notes for this version.&lt;br /&gt;
&lt;br /&gt;
== Upgrading to 22.3.0 ==&lt;br /&gt;
* ''' Outlook Add-in '''&lt;br /&gt;
*; Starting with version 22.3.0, failed login attempts will slow down the login process. While this process is backwards compatible to older Outlook Add-ins, we strongly recommend updating the Outlook Add-in for the best user experience.&lt;br /&gt;
&lt;br /&gt;
== Upgrading to 22.2.x ==&lt;br /&gt;
* '''System Requirements'''&lt;br /&gt;
*; Starting with version 22.2 MailStore Server, MailStore Client and MailStore Outlook Add-in require Microsoft .NET Framework version 4.8. Please refer to our [[System Requirements]].&amp;lt;br/&amp;gt;&amp;lt;p class=&amp;quot;mswarning&amp;quot;&amp;gt;If the framework is installed by the MailStore setup, the system might reboot without further notice.&amp;lt;/p&amp;gt;&lt;br /&gt;
* '''External Archive Stores'''&lt;br /&gt;
*; Starting with version 22.2, only versions 10 or newer are supported for PostgreSQL.&lt;br /&gt;
&lt;br /&gt;
== Upgrading to 13.x ==&lt;br /&gt;
* '''Update of MailStore Client and Outlook Add-in'''&amp;lt;br/&amp;gt;Irrespective of MailStore Client's auto-update mechanism, a reinstallation of MailStore Client and the MailStore Outlook Add-in is required to make use of the following improvements:&lt;br /&gt;
** Unified validation of TLS certificates.&lt;br /&gt;
** Unified evaluation of group policies.&lt;br /&gt;
** Distinct error messages for certain certificate errors.&lt;br /&gt;
** Outlook Add-in: Due to the required changes of the login process to support modern authentication with Microsoft 365 and Google Workspace, the Outlook Add-in must be updated to version 13 to be able to connect to MailStore Server 13.x. Connecting to an older version of MailStore Server is no longer supported after the update.&lt;br /&gt;
* '''Unencrypted Connections'''&lt;br /&gt;
*; Support for unencrypted connections to MailStore Server has been fully removed. This affects MailStore Outlook Add-in, and the Legacy Web Access. After updating the Outlook Add-in, it automatically tries to connect to the default HTTPS port (8462) if either the default HTTP port (8461) or no port was set as part of the server name previously. In all other cases, the  initial connections may fail and requires the server name to be adjusted by the user, or by an administrator via group policies.&lt;br /&gt;
* '''HTTP-to-HTTPS Redirect'''&lt;br /&gt;
*; The HTTP-to-HTTPS redirect option, which must be considered insecure without the use of properly configured [[wikipedia:HTTP_Strict_Transport_Security|HTTP Strict Transport Security (HSTS)]], has been removed. Users are required to use the correct HTTPS URL to access MailStore Web Access.&lt;br /&gt;
* '''Windows Authentication'''&lt;br /&gt;
*; The authentication method selection has been removed from the newly design login dialog. Therefore, traditional Windows Authentication available in on-prem Active Directory controlled environments, can only be enabled through group policies. Further information on group policies can be found in [[MailStore Client Deployment]] and [[MailStore Outlook Add-in Deployment]].&lt;br /&gt;
* '''Microsoft 365 Support'''&lt;br /&gt;
*; A new directory service synchronization profile [[Synchronizing_User_Accounts_with_Microsoft_365_(Modern_Authentication)|Microsoft 365 (Modern Authentication)]] as well as new profiles for archiving and exporting emails from or to Microsoft 365 have been introduced. These support modern authentication (OAuth 2.0 &amp;amp; OpenID Connect) and customers of Microsoft 365 are advised to regularly check for Microsoft's announcement on the timeline for removing HTTP Basic Auth from Microsoft Exchange Web Services (EWS) and to plan the migration to the new profiles in advance.&amp;lt;br/&amp;gt;&amp;lt;p class=&amp;quot;mswarning&amp;quot;&amp;gt;Once Microsoft disables support for HTTP Basic Auth in Exchange Web Services on Microsoft 365, the existing directory service synchronization profile ''Microsoft 365 (Basic Auth)'' (formerly named ''Office 365'') and the Microsoft Exchange archiving and export profiles will stop working.&amp;lt;/p&amp;gt;&lt;br /&gt;
* '''Google Workspace Support'''&lt;br /&gt;
*; The [[Google Workspace Integration|Google Workspace directory service synchronization profile]] has been extended with support for modern authentication (OAuth 2.0 &amp;amp; OpenID Connect). Customers of Google Workspace are advised to regularly check for Google's announcement on the timeline for removing support for less secure apps, and should plan the migration to the new setting in advance.&amp;lt;br/&amp;gt;&amp;lt;p class=&amp;quot;mswarning&amp;quot;&amp;gt;Once Google disables support for Less Secure Apps in Google Workspace, the existing directory service synchronization profile ''Google Workspace'' will no longer allow users to login to MailStore as long as the  authentication method is still set to ''IMAP''.&amp;lt;/p&amp;gt;&lt;br /&gt;
* '''IMAP Access to Archive'''&lt;br /&gt;
*; When using either the new ''Microsoft 365 (Modern Authentication)'' or ''Google Workspace'' directory service synchronization profile, user that have been added by these profiles, can not access their archive via the integrated IMAP server as MailStore Server is not able to verify those passwords itself. &lt;br /&gt;
* '''Startup Scripts'''&lt;br /&gt;
*; The [[MailStore Server Service Configuration]] now provides functionality to configure connections to remote SMB/CIFS network shares without having to store credential in a plain text batch file. Therefore, startup scripts are no longer recommended to be used for that purpose. Unless there actually is a startup script found in MailStore Server's program directory, the corresponding menu item ''Startup Script'' will not be shown in the MailStore Server Service Configuration.&lt;br /&gt;
* '''Mobile Web Access'''&lt;br /&gt;
*; The dedicated Mobile Web Access has been removed due to no longer supported third-party components (e.g. jQuery Mobile) and in favor of MailStore Web Access, which has been received major enhancements in terms of performance and usability.&lt;br /&gt;
* '''Legacy Web Access'''&lt;br /&gt;
*; As parts of Legacy Web Access are representing the server-side of the Outlook Add-in, the Legacy Web Access is still present, but no longer advertised on the login screen of the Web Access.&lt;br /&gt;
* '''Group Policies'''&lt;br /&gt;
*; The following group policy settings are no longer supported in MailStore 13:&lt;br /&gt;
** '''MailStore Client: Accept Thumbprint'''&lt;br /&gt;
**; If a server name has been defined by a group policy, the certificate used by MailStore Server must be trusted by the client computer and it must not be revoked or expired. &lt;br /&gt;
** '''MailStore Outlook Add-in: Accept Thumbprint'''&lt;br /&gt;
**; If a server name has been defined by a group policy, the certificate used by MailStore Server must be trusted by the client computer and it must not be revoked or expired.&lt;br /&gt;
** '''MailStore Outlook Add-in: Enable TLS/SSL encryption'''&lt;br /&gt;
**; As MailStore Server no longer supports unencrypted inbound connections and the default behavior of MailStore Outlook Add-in as been modified accordingly, this option is ignored.&lt;br /&gt;
&lt;br /&gt;
== Upgrading to 12.1 ==&lt;br /&gt;
* '''System Requirements'''&lt;br /&gt;
*; Windows Vista, Windows Server 2008, and Windows Small Business Server 2008 support has been removed from MailStore in this version. For a current list of supported operating systems, please refer to [[System Requirements]].&lt;br /&gt;
&lt;br /&gt;
== Upgrading to 12 ==&lt;br /&gt;
* '''Expired Certificates'''&lt;br /&gt;
*; Irrespective of whether the certificate's trust can be verified, no connection is established by MailStore Client to server's whose certificate has expired or was revoked. In such a case, the certificate must be replaced by means of the MailStore Server service configuration tool first.&lt;br /&gt;
* '''Using Certificates'''&lt;br /&gt;
*; If in the past, different certificates were used for the services provided by MailStore Server, the same certificate configuration as for new installations will be shown during the installation. The certificate configured in that step will afterwards be used for all provided services and can be change in the MailStore Server service configuration tool.&lt;br /&gt;
&lt;br /&gt;
== Upgrading to 11 ==&lt;br /&gt;
* '''Upgrading Archive Stores'''&lt;br /&gt;
*; &amp;lt;p class=&amp;quot;mswarning&amp;quot;&amp;gt;'''Depending on the archive size this can take an excessive amount of time. On average 50.000 messages are processed per minute during the upgrade.'''&amp;lt;/p&amp;gt;&lt;br /&gt;
*; Until the archive stores have been upgraded, not all functionality of the software is available. To facilitate&lt;br /&gt;
** retention policies,&lt;br /&gt;
** the search functionality,&lt;br /&gt;
** the improved recovery records,&lt;br /&gt;
*; the databases of the archive stores must be upgraded.&lt;br /&gt;
*;Proceed as follows to upgrade:&lt;br /&gt;
** Log in as MailStore administrator (admin).&lt;br /&gt;
** Click on ''Administrative Tools'' &amp;gt; ''Storage'' and then ''Storage Locations''.&lt;br /&gt;
** Either click on the yellow info box to upgrade all archive stores at once or right-click on an archive store and select ''Perform Upgrade'' to upgrade a single archive store.&lt;br /&gt;
** Carefully read the notices and click on ''OK'' to start the upgrade process or click on ''Cancel''.&lt;br /&gt;
**: [[File:Fg_upgrade10.png|center]]&lt;br /&gt;
* '''Retention Policies'''&amp;lt;br/&amp;gt;If not all attached archive stores are available (State: ''Archive here'', ''Normal''), or their status is ''Write-Protected'', no automatic processing of retention policies takes place. Therefore verify if an archive store is set to ''Disabled'' or ''Write-Protected'' after the upgrade and change it to one of the above states or detach it completely.&lt;br /&gt;
* '''Access via Integrated IMAP Server'''&amp;lt;br/&amp;gt;To access the archive via the integrated IMAP server, an encrypted connection is now mandatory. If necessary, adjust the configuration of your email clients accordingly and enable TLS or STARTTLS.&lt;br /&gt;
* '''Management API Commands Get-/SetComplianceConfiguration'''&amp;lt;br/&amp;gt;The property ''globalRetentionTimeYears'' has been removed from the commands. Own scripts using these commands have to be adjusted accordingly. To manage retention policies, two new commands  are available: ''GetRetentionPolicies'' and ''SetRetentionPolicies''.&lt;br /&gt;
&lt;br /&gt;
== Upgrading to 10.2 ==&lt;br /&gt;
* '''Web Access'''&amp;lt;br/&amp;gt;The new responsive Web Access is exclusively available via the HTTPS port. User who are still using the unencrypted HTTP port to access Web Access, will see a corresponding notice about this circumstance. Thus it is recommended to use a trustworthy certificate signed by an official or internal certificate authority. See [[Using Your Own SSL Certificate]] for details.&lt;br /&gt;
=== Known Issues ===&lt;br /&gt;
* The backend of the new responsive Web Access expects MailStore Server to be reachable on IP address 127.0.0.1 (localhost) and the default TCP port 8460. If you configured MailStore to listen on a specific IP address for MailStore Client connections in the [[MailStore Server Service Configuration]], please reset it to ''(All IP Addresses)'' and ''Port'' 8460. This problem was fixed with version 10.2.3.&lt;br /&gt;
&lt;br /&gt;
== Upgrading to 10.1 ==&lt;br /&gt;
* '''Archiving Emails'''&amp;lt;br/&amp;gt;If not all attached archive stores are available (State: ''Archive here'', ''Normal'', or ''Write-Protected''), no archiving takes place. Running archiving profiles are terminated with an appropriate message. Under certain circumstances this prevents the creation of duplicate emails while archiving. Therefore verify if an archive store is set to ''disabled'' after the upgrade and change it to one of the above states or detach it completely.   &lt;br /&gt;
* '''Status Reports'''&amp;lt;br/&amp;gt;If a longer period should be covered by status reports, it must be ensured that the profile and job results are kept for at least that period. The default value of previous installations is one week and should be adjusted to the new default value of 90 days.&lt;br /&gt;
&lt;br /&gt;
== Upgrading to Version 10 ==&lt;br /&gt;
* '''Encryption Notices'''&amp;lt;br/&amp;gt;Due to enhanced encryption mechanisms, MailStore archives that have been upgraded to version 10 are tied to the Windows-Installation on which MailStore Server has been installed. Under certain conditions some actions (e.g. restoring the default admin, attaching foreign archive stores, etc.) in MailStore require the input of a recovery key. By default this is the product key of the installation.&amp;lt;p class=&amp;quot;mswarning&amp;quot;&amp;gt;Please make sure to store the product key entered during installation in a safe location.&amp;lt;/p&amp;gt;In environments with higher security requirements it is recommended to change the default recovery key and, depending on the backup target, exclude the unencrypted search indexes from backups. Corresponding information can be found in the [[MailStore Server Service Configuration]] article.&lt;br /&gt;
* '''Upgrade of Master Database'''&amp;lt;br/&amp;gt;To facilitate encryption of the master database it is upgraded to Firebird 3 during the first start of the MailStore Server service and encrypted afterwards. This process might extend the time required for the first start of the service by several minutes.&lt;br /&gt;
* '''Upgrading Archive Stores''' &amp;lt;br /&amp;gt;To facilitate encryption the databases of the archive store must be upgraded. Proceed as follows to upgrade:&lt;br /&gt;
** Log in as MailStore administrator (admin).&lt;br /&gt;
** Click on ''Administrative Tools'' &amp;gt; ''Storage'' and then ''Storage Locations''.&lt;br /&gt;
** Either click on the yellow info box to upgrade all archive stores at once or right-click on an archive store and select ''Perform Upgrade'' to upgrade a single archive store.&lt;br /&gt;
** Carefully read the notices and click on ''OK'' to start the upgrade process or click on ''Cancel''.&lt;br /&gt;
**: [[File:Fg_upgrade10.png|center]]&lt;br /&gt;
* '''Archives of Other Users'''&amp;lt;br/&amp;gt;These are no longer visible for MailStore administrators if the ''Archive Access'' (formerly knows as ''E-mail Preview'') is blocked. Administrative functions such as deleting or renaming user archives are accessible through [[Archives|Administrative Tools &amp;gt; Users and Archives &amp;gt; Archives]].&lt;br /&gt;
* '''Export E-mails'''&amp;lt;br/&amp;gt;The previous change may also have an impact on export profiles owned by a MailStore administrator, in case the export scope contains archives of other users. As these are no longer visible to MailStore administrators if the ''Archive Access'' (formerly knows as ''E-mail Preview'') is blocked, they are not taken into account by export profiles.&lt;br /&gt;
* '''Auditing'''&amp;lt;br/&amp;gt;All activities that are exclusively executable by MailStore administrators are displayed as ''Enabled (locked)'' at ''Compliance'' &amp;gt; ''Auditing''. Irrespective of the ''Disabled'' status, all activities of MailStore administrators, excluding ''MessageRetrieveContent'', are written into the audit log.&lt;br /&gt;
* '''Default Password'''&amp;lt;br/&amp;gt;If you have not changed the default MailStore administrators (admin) password yet, you will be asked to set a new password during the first logon after the update. The same occurs when the password has been reset to ''admin'' after restoring the default admin.&lt;br /&gt;
&lt;br /&gt;
== Upgrading to Version 9.7 ==&lt;br /&gt;
* '''Search Indexes'''&amp;lt;br/&amp;gt;Due to changes in the area of indexing email attachment contents, the search index settings should be opened and confirmed after the update, so that MailStore can identify potentially missing or unsupported IFilters.&lt;br /&gt;
* '''Archiving from Gmail'''&amp;lt;br/&amp;gt;This version contains a new Gmail profile, that provides additional functionality such as support for deleting emails from the Gmail mailbox and OAuth2 authentication. Please notice, that it does not support any other folders than &amp;quot;All Mail&amp;quot; and &amp;quot;Sent Items&amp;quot;. This new behavior anticipates scenarios which have been recognized as confusing by users in the past and that where caused by the interaction of Gmail labels, IMAP folders and MailStore's single instance store. Existing Google Mail profiles can still be modified and executed, but no new ones can be created. It is recommended to replace old &amp;quot;Google Mail&amp;quot; profiles by this new Gmail profile.&lt;br /&gt;
&lt;br /&gt;
=== Known Issues ===&lt;br /&gt;
* Indexing the content of Open Document Format email attachments requires a working installation of OpenOffice or LibreOffice, though Microsoft Office 2010 Filter Pack officially provides support for these file types. Additional information can be found in the [[Search Indexes]] article.&lt;br /&gt;
&lt;br /&gt;
== Upgrading to Version 9.6 ==&lt;br /&gt;
* '''Update of MailStore Client and Outlook Add-in'''&amp;lt;br/&amp;gt;Independent of MailStore Client's auto-update mechanism, a reinstallation of MailStore Client and the MailStore Outlook Add-in is required to make use of the following improvements:&lt;br /&gt;
** Client: Pin to taskbar now possible on Windows 7 and newer.&lt;br /&gt;
** Support for different SSL certificate thumbprint formats in group policies.&lt;br /&gt;
** Group policies allow configuration of client and Outlook Add-in language.&lt;br /&gt;
* '''MailStore Proxy'''&amp;lt;br/&amp;gt;Starting with version 9.6, MailStore Proxy requires .NET Framework 4.5.1. Hence the [[MailStore_Proxy#System_Requirements|system requirements of MailStore proxy]] have also changed in regards to the operating system.&lt;br /&gt;
&lt;br /&gt;
== Upgrading to Version 9.3 ==&lt;br /&gt;
* '''Supported SSL certificates''' &amp;lt;br/&amp;gt;Using SSL certificates which utilize MD5-hash based signature algorithms (e.g. ''md5rsa'') is technically no longer possible since version 9.3. For years (approx. 2010) MD5-hash based signature algorithms have no longer been used for signing certificates. However, should the error message ''Authentication failed because the remote party has closed the transport stream.'' occur after installing the upgrade, please follow the instructions in the corresponding [https://cs.mailstore.com/index.php?/Knowledgebase/Article/View/120/5/erro-message-authentication-failed-because-the-remote-party-has-closed-the-transport-stream Knowledgebase article].&lt;br /&gt;
&lt;br /&gt;
== Upgrading to Version 9.x ==&lt;br /&gt;
* '''System Requirements''' &amp;lt;br/&amp;gt;Please ensure that your system configuration matches the updated system requirements. MailStore Server, MailStore Client and MailStore Outlook Add-in now require .NET Framework 4.5.1 and Internet Explorer 8 or higher. Thus Windows Vista SP2 or newer is required.&lt;br /&gt;
* '''Server-side Execution of E-mail-Server Profiles and Internal Backup'''&amp;lt;br/&amp;gt;Archiving from and exporting to email servers as well as the internal backup function is now carried out by the MailStore Server service itself. Thus it is necessary that the MailStore Server computer has the required  permissions to access email servers and network shares where applicable (see [[Using Network Attached Storage (NAS)]]).&amp;lt;br /&amp;gt;&amp;lt;p class=&amp;quot;mswarning&amp;quot;&amp;gt;In either case, verify carefully that all automated tasks are still working properly after updating.&amp;lt;/p&amp;gt;&lt;br /&gt;
* '''Scheduling of Profiles''' &amp;lt;br/&amp;gt;For executing archiving and export profiles of type ''E-mail Servers'', an internal scheduler is now used. This scheduler is used for all newly created profiles as soon as automatic execution is enabled in the profile settings.&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;Existing profiles of type ''E-mail Servers'' are set to manual execution after upgrading to MailStore Server 9. Their execution remains triggered based in the corresponding by task in the Windows Task Scheduler. To completely turn these profiles into independent server-side profiles, remove the corresponding task from the Windows Task Scheduler first and then enable automatic execution in the profile setting in MailStore Server. Further information can be found in [[Email_Archiving_with_MailStore_Basics#Working_with_Archiving_Profiles|Working with Archiving Profiles]] and [[Email_Archiving_with_MailStore_Basics#Automating_the_Archiving_Process|Automating the Archiving Process]]&lt;br /&gt;
* '''Group Policies''' &amp;lt;br/&amp;gt;New ADM and ADMX templates are used for the configuration of MailStore Client and MailStore Outlook Add-in. Group Policies created with the new templates are not compatible with older versions of MailStore Client and MailStore Outlook Add-In, nor does MailStore Client 9 and MailStore Outlook Add-in 9 support Group Policies that have been created based on previous versions of the ADM and ADMX templates. Please replace any existing Group Policies when upgrading to MailStore Server 9. Further information can be found in [[MailStore Client Deployment]] and [[MailStore Outlook Add-in Deployment]].&lt;br /&gt;
* '''Automatic Creation of New Archive Stores''' &amp;lt;br/&amp;gt;A new default threshold of 5 million emails has been introduced for the automatic creation of new archive stores in MailStore Server 9. For existing installations it is recommended to adjust this value after upgrading to MailStore Server 9 as described in [[Storage Locations]]. &lt;br /&gt;
* '''PDF Support of Full Text Search''' &amp;lt;br /&amp;gt;PDF support has been removed from MailStore Server's own indexer. Therefore it is required to either install a recent version of Adobe Reader or an appropriate IFilter driver (i.e. [http://www.adobe.com/support/downloads/detail.jsp?ftpID=5542 Adobe PDF iFilter] on the MailStore Server computer.&lt;br /&gt;
* '''MailStore Server Administration API''' &amp;lt;br /&amp;gt;The API has been completely rewritten. As it does not provide and kind of backward compatibility with previous versions, it is required to carefully verify and, if necessary, to modify scripts that make use of the Administration API.&lt;br /&gt;
* '''AVM KEN! Support Removed''' &amp;lt;br /&amp;gt;After the vendor's support for AVM KEN! has already stopped in September 2010, the support by MailStore ends with MailStore Server 9. Existing AVM KEN! profiles are automatically removed from MailStore - archived emails remain in the archive.&lt;br /&gt;
&lt;br /&gt;
=== Known Issues ===&lt;br /&gt;
* '''Missing Email Headers when Printing from MailStore Web Access''' '''''(resolved in version 9.6)'''''&amp;lt;br /&amp;gt;Due to the technical implementation of the HTML view, emails printed from within MailStore Web Access do not contain information about sender, recipient and subject. Until a fix is available, the workaround is to open the emails in an email client such as Microsoft Outlook or Mozilla Thunderbird for printing.&lt;br /&gt;
&lt;br /&gt;
== Upgrading to Version 8.x ==&lt;br /&gt;
&lt;br /&gt;
* '''System Requirements''' &amp;lt;br/&amp;gt;Please ensure that your system configuration matches the updated system requirements. MailStore Client and MailStore Outlook Add-in now require .NET Framework 3.5 SP1 and Internet Explorer 8 or higher.&lt;br /&gt;
&lt;br /&gt;
== Upgrading to Version 7.0 ==&lt;br /&gt;
&lt;br /&gt;
* '''Management Shell / Batch Scripts''' &amp;lt;br /&amp;gt; The server-side part of the Management Shell command set, which included commands such as &amp;lt;code&amp;gt;user-add&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;filegroup-create&amp;lt;/code&amp;gt;, has completely been replaced by the more powerful [[Administration_API_-_Using_the_API|MailStore Server Administration API]]. If you have written custom scripts (e.g. batch scripts) for user management or store management, please update them so that it uses the new command set. [[MailStore_Server_Management_Shell|More information about the MailStore Server Management Shell]]&lt;br /&gt;
&lt;br /&gt;
== Upgrading to Version 6.0 ==&lt;br /&gt;
&lt;br /&gt;
* '''Upgrading File Groups''' &amp;lt;br /&amp;gt; The file group format has changed to ensure high performance and stability in the future. To upgrade existing file groups to the new format, proceed as follows:&lt;br /&gt;
** Log in as MailStore administrator (admin).&lt;br /&gt;
** Click on ''Administrative Tools'' &amp;gt; ''Storage'' and then ''Storage Locations''.&lt;br /&gt;
** Either click on the yellow info box to upgrade all file groups at once or right-click on a file group and select ''Perform Upgrade'' to upgrade a single file group.&lt;br /&gt;
**: [[File:Fg_upgrade6.png]]&lt;br /&gt;
** Carefully read the notices and click on ''OK'' to start the upgrade process or click on ''Cancel''.&lt;br /&gt;
** While the upgrade process is running, you will see a window showing information about the upgrade progress. You can click on ''Cancel'' at any time to interrupt the upgrade process in order to continue it later.&lt;br /&gt;
* '''Automatic Creation of New File Groups''' &amp;lt;br /&amp;gt; If you are using a scheduled task to create new file groups regularly, we recommend to remove that scheduled task and proceed as described in chapter [[Storage_Locations#Creating_File_Groups_Automatically|Creating File Groups Automatically]] of the MailStore Server manual. Please notice the recommended limit of 500.000 messages per file group; that is the default value for all new installations of MailStore Server 6.&lt;br /&gt;
* '''Active Directory Integration''' &amp;lt;br /&amp;gt; After upgrading to MailStore Server 6 it is required to reconfigure the Active Directory integration with the new Directory Service interface. Please follow the instructions in chapter [[Active Directory Integration]] of the MailStore Server manual. &amp;lt;br /&amp;gt; '''Important notice:''' From MailStore Server 6 on, accessing the Active Directory is done under the security scope of the MailStore Server service (instead of MailStore Client). Therefor, please pay attention to ''Authentication'' under ''Specifying Connection Settings''.&lt;br /&gt;
* '''Generic LDAP Integration''' &amp;lt;br /&amp;gt; After upgrading to MailStore Server 6 it is required to reconfigure the generic LDAP integration with the new Directory Service interface. Please follow the steps in chapter [[Generic LDAP Integration]] of the MailStore Server manual.&lt;br /&gt;
* '''Firewall Settings''' &amp;lt;br /&amp;gt; If you have set up firewall rules manually to allow access to MailStore Server, MailStore Web Access, MailStore Outlook Add-in or the MailStore integrated IMAP server, we recommend to remove the firewall rules before installing MailStore Server 6. If desired, MailStore Server 6 can set up and update firewall rules on its own, after changes have been made in the [[MailStore Server Service Configuration]] (formerly known as MailStore Server Base Configuration).&lt;br /&gt;
* '''No More Separate Downloads''' &amp;lt;br /&amp;gt;  There is only one MailStore Server setup file, that includes all appropriate setup files for MailStore Client, MailStore Outlook Add-in and MailStore Proxy. MailStore Server setup creates a link on your desktop that opens an Explorer window with the setup files. If the desktop link does not exist you can find the setup files in the ''Setup-&amp;lt;version&amp;gt;'' sub-folder of your MailStore Server installation directory.&lt;br /&gt;
&lt;br /&gt;
== Upgrading to Version 5.0 ==&lt;br /&gt;
&lt;br /&gt;
* '''MailStore Outlook Add-In''' &amp;lt;br/&amp;gt; MailStore Outlook Add-in requires access to MailStore Web Access. Should the situation arise that your firewall block the MailStore Web Access ports (default: 8461 for HTTP and 8462 for HTTPS), please reconfigure you firewall accordingly.&lt;br /&gt;
&lt;br /&gt;
== Upgrading to Version 4.5 ==&lt;br /&gt;
&lt;br /&gt;
* '''Database Backups''' &amp;lt;br/&amp;gt;Database backup tasks or profiles which were created with an earlier version of MailStore Server need to be re-created with this version. Use the new backup functionality in Administrative Tools which provides you with several new features.&lt;br /&gt;
* '''Search Indexes''' &amp;lt;br/&amp;gt;If you have created search indexes with a MailStore Server version equal or earlier than 3.0.2, you will be prompted to rebuild them after your first administrator logon to MailStore Server. Depending on the number of users and file groups, this process might take several minutes or hours. You can continue to use MailStore Server during this process, however the search functionality might be limited until the process is finished.&lt;br /&gt;
&lt;br /&gt;
[[de:Hinweise_zum_Update_von_MailStore_Server]]&lt;br /&gt;
[[en:Update Notices for MailStore Server]]&lt;/div&gt;</summary>
		<author><name>Ltalaschus</name></author>
	</entry>
	<entry>
		<id>https://help.mailstore.com/en/server/index.php?title=Synchronizing_User_Accounts_with_Microsoft_365_-_Modern_Authentication&amp;diff=7968</id>
		<title>Synchronizing User Accounts with Microsoft 365 - Modern Authentication</title>
		<link rel="alternate" type="text/html" href="https://help.mailstore.com/en/server/index.php?title=Synchronizing_User_Accounts_with_Microsoft_365_-_Modern_Authentication&amp;diff=7968"/>
		<updated>2026-01-19T13:36:21Z</updated>

		<summary type="html">&lt;p&gt;Ltalaschus: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Directory Services Preamble|Microsoft 365 tenant|Microsoft 365||}}&lt;br /&gt;
== Prerequisites, Recommendations and Limitations ==&lt;br /&gt;
* For best user experience, the certificate used by MailStore Server should be trusted by all clients and the used web browsers. Using a certificate that is signed by a trusted certificate authority or [[Using_Lets_Encrypt_Certificates|using Let's Encrypt certificates]] is highly recommended.&lt;br /&gt;
* If you have archived emails from an Exchange server and synchronized users from an Active Directory until now, follow the article [[Changing Archiving from Microsoft Exchange Server to Microsoft 365]]&lt;br /&gt;
* If users are supposed to log in to MailStore Server from outside the organization's network without a VPN using [[Accessing_the_Archive_with_the_MailStore_Client_software|MailStore Client]], [[Accessing_the_Archive_with_the_Microsoft_Outlook_integration|MailStore Outlook Add-in]] or the [[Accessing_the_Archive_with_MailStore_Web_Access|Web Access]], the URIs mentioned in this article must be resolvable via DNS on the Internet and port-forwardings to the MailStore Server computer must be set up on the firewall or router if necessary. &lt;br /&gt;
* When using Microsoft&amp;amp;nbsp;365 to authenticate users at login, [[Accessing_the_Archive_via_Integrated_IMAP_Server|accessing the archive via IMAP]] is not possible for technical reasons.&lt;br /&gt;
* MailStore Server supports the synchronization of user accounts with the global Microsoft Cloud ''Microsoft&amp;amp;nbsp;365'' and ''Office&amp;amp;nbsp;365, operated by 21Vianet''. Other Environments like GCC, GCC&amp;amp;nbsp;High or DoD are not supported. In the following article, only the term Microsoft 365 is used for the sake of simplicity.&lt;br /&gt;
&lt;br /&gt;
== Connecting MailStore Server and Microsoft 365 ==&lt;br /&gt;
In order to synchronize user information from Microsoft 365, MailStore Server has to be connected to your Microsoft 365 tenant and been granted the required permissions. Microsoft 365 relies on Microsoft Entra ID as directory service. Each Microsoft 365 tenant corresponds to an Microsoft Entra ID tenant that stores its user information.&lt;br /&gt;
&lt;br /&gt;
=== Registering of MailStore Server as App in Microsoft Entra ID ===&lt;br /&gt;
Through registration, MailStore Server gets an identity in Microsoft Entra ID that makes it possible to authenticate to the tenant's services and use their resources.&lt;br /&gt;
* Sign in to the [https://portal.azure.com Microsoft Entra ID Portal] as a Global Administrator for your Microsoft 365 tenant.&amp;lt;br/&amp;gt;The Microsoft Entra ID Portal of ''Office 365, operated by 21Vianet'' [https://portal.azure.cn/#view/Microsoft_AAD_IAM/ActiveDirectoryMenuBlade/~/Overview can be accessed here].&lt;br /&gt;
* In the navigation menu (☰), select the option ''Microsoft Entra ID''.&lt;br /&gt;
* On the next page, select ''App registrations'' in the ''Manage'' section of the left navigation menu.&lt;br /&gt;
* Select ''New Registration''. The ''Register an application'' page appears.&lt;br /&gt;
* In the ''Name'' field, enter a meaningful display name, e.g. ''MailStore Server''. This name will be shown to users on logon later on, for example.&lt;br /&gt;
* Leave all other settings on this page to their defaults.&lt;br /&gt;
* Click on ''Register''. If the registration has been successful, you are shown the overview page of the newly registered app.&lt;br /&gt;
The ''Application (client) ID'' shown on this page identifies MailStore Server in your Microsoft Entra ID tenant and has to be copied into MailStore Server next, together with the ''Directory (tenant) ID''. Therefore, for the following steps, leave the overview page open in your web browser.&lt;br /&gt;
&lt;br /&gt;
=== Creating Credentials in MailStore Server ===&lt;br /&gt;
Credentials for Microsoft 365 consist of the aforementioned IDs and a secret that MailStore Server uses to proof its identity to Microsoft Entra ID. Microsoft recommends using certificates as secrets to identify apps in Microsoft Entra ID. When creating credentials, such a certificate is generated automatically by MailStore Server but can also be recreated later on.&lt;br /&gt;
{{Directory Services Accessing Configuration|Microsoft 365 or Microsoft 365 operated by 21 Vianet|Microsoft 365 sync 01.png}}&lt;br /&gt;
* In the ''Connection'' section, click on the button (…) next to the ''Credentials'' drop-down list.&lt;br /&gt;
* In the ''Credential Manager'' that appears, click on ''Create…''&lt;br /&gt;
* In the ''Microsoft Entra ID App Credentials'' dialog, enter the following information in the ''Settings'' section:&lt;br /&gt;
** '''Name'''&amp;lt;br/&amp;gt; A meaningful display name for the credentials, e.g. the name of your Microsoft 365 tenant.&lt;br /&gt;
** '''Application (client) ID'''&amp;lt;br/&amp;gt; The value of the corresponding field that you can copy from the Microsoft Entra ID app overview page in your web browser.&lt;br /&gt;
** '''Directory (tenant) ID'''&amp;lt;br/&amp;gt; The value of the corresponding field that you can copy from the Microsoft Entra ID app overview page in your web browser.&lt;br /&gt;
[[File:Microsoft 365 cred 01.png|center|347px]]&lt;br /&gt;
* In the ''Authentication'' section, click on the drop-down button next to the ''Certificate'' text box und select ''Download Certificate''. Save the certificate on your hard drive.&lt;br /&gt;
* Confirm your entries by clicking ''OK''.&lt;br /&gt;
* The newly created credentials are listed in the ''Credential Manager'' under the name you have entered with the type ''Microsoft 365''. Here you can also edit or delete existing credentials if necessary.&lt;br /&gt;
* Leave the ''Credential Manager'' by clicking ''Close''.&lt;br /&gt;
* The newly created credentials are selected in the corresponding drop-down list by default.&lt;br /&gt;
&lt;br /&gt;
=== Publishing Credentials in Microsoft Entra ID ===&lt;br /&gt;
For Microsoft Entra ID to validate the identity of MailStore Server, the created certificate needs to be published in Microsoft Entra ID.&lt;br /&gt;
* Switch to the Microsoft Entra ID app overview page in your web browser.&lt;br /&gt;
* Select ''Certificates &amp;amp; secrets'' in the ''Manage'' section of the left navigation menu.&lt;br /&gt;
* Click on ''Upload certificate'' in the ''Certificates'' section. Select the certificate file that you have saved previously and upload it to Microsoft Entra ID by clicking ''Add''.&lt;br /&gt;
* If uploading has been successful, the certificate's thumbprint as well as its start and expiry dates appear in the certificates list. You can compare the thumbprint and expiry date with those listed in the MailStore Credential Manager to check that you've uploaded the correct certificate.&lt;br /&gt;
&lt;br /&gt;
=== Configuring App Authentication in Microsoft Entra ID ===&lt;br /&gt;
For Microsoft Entra ID to return the result of a user's authentication request to MailStore Server, the endpoint where MailStore Server expects authentication responses, the so-called ''Redirect URI'', has to be conveyed to Microsoft Entra ID.&lt;br /&gt;
* In the Microsoft Entra ID Portal in the web browser, select ''Authentication'' in the ''Manage'' section of the left navigation menu.&lt;br /&gt;
* Click on the ''Add Redirect URI'' button on the ''Redirect URI configuration'' page.&lt;br /&gt;
* Select ''Web'' in the ''Web applications'' section of the platform selection page.&lt;br /&gt;
* In the '''Implicit grant and hybrid flows''' section perform the following action:&lt;br /&gt;
:'''Enable''' the '''ID tokens''' option.&lt;br /&gt;
[[File:Microsoft_365_sync_id_token.png|center]]&lt;br /&gt;
* In the field ''Redirect URI'', enter a URI in the format (without brackets)&lt;br /&gt;
*: &amp;lt;code&amp;gt;https://&amp;lt;fqdn&amp;gt;[:&amp;lt;port&amp;gt;]/oidc/signin&amp;lt;/code&amp;gt;&lt;br /&gt;
*; with the following components&amp;lt;nowiki&amp;gt;:&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
*: '''https://'''&amp;lt;br/&amp;gt; Specifying the &amp;lt;code&amp;gt;https://&amp;lt;/code&amp;gt; protocol is obligatory. To avoid certificate warnings during user logon, the web browsers on the client machines must trust the [[MailStore_Server_Service_Configuration#Certificate|certificate used by MailStore Server]].&lt;br /&gt;
*: '''FQDN'''&amp;lt;br/&amp;gt;The Fully Qualified Domain Name (FQDN) of your MailStore Server that consists of the machine name and the DNS domain, e.g. &amp;lt;code&amp;gt;mailstore.example.com&amp;lt;/code&amp;gt;. This name must be resolvable by all clients from which users shall be able to log on to MailStore Server.&lt;br /&gt;
*: '''Port'''&amp;lt;br/&amp;gt;The TCP port of the MailStore Web Access (&amp;lt;code&amp;gt;8462&amp;lt;/code&amp;gt; by default). This value must be equal to the port configured in the section ''Base Configuration &amp;gt; Network Settings &amp;gt; MailStore Web Access / Outlook Add-in (HTTPS)'' of the [[MailStore_Server_Service_Configuration#Services|MailStore Server Service Configuration]]. The TCP port has to be specified only if it is different from the default port of the HTTPS protocol (&amp;lt;code&amp;gt;443&amp;lt;/code&amp;gt;).&lt;br /&gt;
*: '''/oidc/signin'''&amp;lt;br/&amp;gt;The endpoint where MailStore Server expects the authentication responses of Microsoft Entra ID. This path has to be specified exactly as stated here at the end of the redirect URI.&lt;br /&gt;
* Leave the field ''Logout URL'' blank.&lt;br /&gt;
* Ensure that the '''ID tokens''' option is set in the '''Implicit grant and hybrid flows''' section.&lt;br /&gt;
* Click on ''Configure'' to finish the configuration of the app authentication in Microsoft Entra ID.&lt;br /&gt;
&amp;lt;div class=&amp;quot;resp-table&amp;quot;&amp;gt;&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;font-size: 85%;&amp;quot;&lt;br /&gt;
|+ Examples for valid redirect URIs&lt;br /&gt;
|-&lt;br /&gt;
! style=&amp;quot;width:80px;&amp;quot; | Product&lt;br /&gt;
! style=&amp;quot;width:80px;&amp;quot; | FQDN&lt;br /&gt;
! style=&amp;quot;width:40px;&amp;quot; | Port&lt;br /&gt;
! Resulting Redirect URI&lt;br /&gt;
|-&lt;br /&gt;
| align=&amp;quot;center&amp;quot;| MailStore Server&lt;br /&gt;
| align=&amp;quot;center&amp;quot;| mailstore.example.com&lt;br /&gt;
| align=&amp;quot;center&amp;quot;| 8462&lt;br /&gt;
| &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;https://mailstore.example.com:8462/oidc/signin&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;Redirect URI with Fully Qualified Domain Name and MailStore Web Access default  port&lt;br /&gt;
|-&lt;br /&gt;
| align=&amp;quot;center&amp;quot;| MailStore Server&lt;br /&gt;
| align=&amp;quot;center&amp;quot;| mailstore.example.com&lt;br /&gt;
| align=&amp;quot;center&amp;quot;| 443&lt;br /&gt;
| &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;https://mailstore.example.com/oidc/signin&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;The port can be ommited if the HTTPS default port 443 has been configured for MailStore Web Access or as source port of a port-forwarding on the firewall or router.&lt;br /&gt;
|-&lt;br /&gt;
| align=&amp;quot;center&amp;quot;| MailStore SPE&lt;br /&gt;
| align=&amp;quot;center&amp;quot;| archive.example.com&lt;br /&gt;
| align=&amp;quot;center&amp;quot;| 443&lt;br /&gt;
| &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;https://archive.example.com/&amp;lt;instanceid&amp;gt;/oidc/signin&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;The ''instanceid'' of the instance is part of the Redirect URI. &lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
:: &amp;lt;p class=&amp;quot;msnote&amp;quot;&amp;gt;'''Important Notice:''' Please note that the redirect URI is case-sensitive. Also review the requirements on resolving URIs in the [[#Prerequisites, Recommendations and Limitations|Prerequisites, Recommendations and Limitations]] section.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:: &amp;lt;p class=&amp;quot;msnote&amp;quot;&amp;gt;'''Important Notice:''' Please note that without setting the ''ID Token'' option, user authentication will not work.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Configuring the Redirect URI in MailStore Server ===&lt;br /&gt;
For MailStore Server to convey the redirect URI to requesting clients, it must be configured there, too.&lt;br /&gt;
* Switch to the ''Directory Services'' page in the MailStore Client.&lt;br /&gt;
* Enter the redirect URI in the corresponding field in the ''Authentication'' section. Just copy the value previously configured in Microsoft Entra ID from the web browser.&lt;br /&gt;
[[File:Microsoft 365 sync 02.png|center|450px]]&lt;br /&gt;
&lt;br /&gt;
=== Configuring API Permissions in Microsoft Entra ID ===&lt;br /&gt;
* Switch again to Microsoft Entra ID in your web browser.&lt;br /&gt;
* Select ''API permissions'' in the ''Manage'' section of the left navigation menu.&lt;br /&gt;
* Click on the ''Add a permission'' button in the ''Configured permissions'' section.&lt;br /&gt;
* On the ''Request API permissions'' menu page, select the API ''Microsoft Graph'' in the ''Commonly used Microsoft APIs'' section.&lt;br /&gt;
* Select the option ''Application permissions''.&lt;br /&gt;
* Enable the ''Directory &amp;gt; Directory.Read.All'' permission in the ''Select permissions'' section.&lt;br /&gt;
* Also enable the ''Mail &amp;gt; Mail.ReadWrite'' permission in the ''Select permissions'' section.&lt;br /&gt;
* Click on ''Add permissions''.&lt;br /&gt;
* The permissions are updated and the ''Directory.Read.All'' and ''Mail.ReadWrite'' permissions appear in the API permissions list under ''Microsoft Graph''.&lt;br /&gt;
* Click on the ''Add a permission'' button in the ''Configured permissions'' section again.&lt;br /&gt;
* On the ''Request API permissions'' menu page, select ''APIs my organization uses''.&lt;br /&gt;
* Search for ''Office 365 Exchange Online'' and click on the corresponding entry.&lt;br /&gt;
* Select the option ''Application permissions''.&lt;br /&gt;
* Enable the ''full_access_as_app'' permission in the ''Select permissions'' section.&lt;br /&gt;
* Also enable the permission ''SMTP.SendAsApp'' in the ''SMTP'' section.&lt;br /&gt;
* Click on ''Add permissions''.&lt;br /&gt;
* The permissions are updated and the ''full_access_as_app'' and ''SMTP.SendAsApp'' permissions appear in the API permissions list under ''Exchange''.&lt;br /&gt;
* Now click on the ''Grant admin consent for &amp;lt;your tenant name&amp;gt;'' button in the ''Configured permissions'' section.&lt;br /&gt;
* Acknowledge the following notice with ''Yes''.&lt;br /&gt;
* The status of all granted permissions is updated to ''Granted for &amp;lt;your tenant name&amp;gt;''.&lt;br /&gt;
The configuration of MailStore Server's connection to Microsoft 365 within Microsoft Entra ID is now complete. You can sign out of your Microsoft Entra ID tenant and close the browser window. Switch to the ''Directory Services'' page in the MailStore Client again, all remaining configuration steps must be done there.&lt;br /&gt;
&lt;br /&gt;
[[File:Microsoft 365 sync 03.png|center]]&lt;br /&gt;
&lt;br /&gt;
=== User Database Synchronization ===&lt;br /&gt;
After configuring the connection settings as described above, you can specify filter criteria for the Microsoft 365 synchronization in this section.&lt;br /&gt;
*'''Synchronize licensed Microsoft Exchange Online users only'''&amp;lt;br/&amp;gt;Only Microsoft 365 user accounts with a Microsoft Exchange Online license assigned to them will be taken into account by the synchronization.&lt;br /&gt;
*'''Synchronize enabled users only'''&amp;lt;br/&amp;gt;Only Microsoft 365 user accounts that do not have their login to Microsoft 365 blocked will be taken into account by the synchronization.&lt;br /&gt;
*'''Sync only these groups'''&amp;lt;br/&amp;gt;Choose one or several Microsoft 365 security groups if you only want their members to be created as MailStore Server users. That way it's possible to exclude certain users from being synchronized to MailStore Server.&lt;br /&gt;
&lt;br /&gt;
{{Directory Services Options|Microsoft 365 tenant}}&lt;br /&gt;
{{Directory Services Assign Default Privileges|Microsoft 365}}&lt;br /&gt;
{{Directory Services Run Synchronization|Microsoft 365 tenant}}&lt;br /&gt;
[[File:Office365_sync_02.png|450px|center]]&lt;br /&gt;
&lt;br /&gt;
{{Directory Services Test Authentication}}&lt;br /&gt;
&lt;br /&gt;
== Updating credentials ==&lt;br /&gt;
The certificate generated by MailStore for logging into Microsoft Entra ID is valid for 3750 days (825 days before version 25.3). In order for user synchronization and archiving to work afterwards, the certificate must be updated before its validity expires.&lt;br /&gt;
&lt;br /&gt;
MailStore Server will show a notification on the dashboard in MailStore Client and in the [[Jobs#Templates|status report]] 28 days before credentials expire. You can also use the [[Administration_API_-_Function_Reference#GetCredentials|GetCredentials API command]] to retrieve the expiration date.&lt;br /&gt;
&lt;br /&gt;
To update the credentials, proceed as follows:&lt;br /&gt;
&lt;br /&gt;
=== Updating credentials in MailStore Server ===&lt;br /&gt;
&lt;br /&gt;
* Log on to MailStore Client as a MailStore Server administrator.&lt;br /&gt;
* Click on ''Administrative Tools'' &amp;gt; ''Users and Archives'' &amp;gt; ''Directory Services''.&lt;br /&gt;
* In the ''Integration section'', make sure that the directory service type is set to ''Microsoft 365 (Modern Authentication)'' or ''Microsoft 365 operated by 21 Vianet (Modern Authentication)''.&lt;br /&gt;
[[File:Microsoft 365 sync 01.png|center|347px]]&lt;br /&gt;
* In the ''Connection'' section, click on the button (…) next to the ''Credentials'' drop-down list.&lt;br /&gt;
* In the ''Credential Manager'' that appears, click on the currently used credential object and click ''Edit…''&lt;br /&gt;
: [[File:Microsoft 365 cred 02.png|center|347px]]&lt;br /&gt;
* In the ''Authentication'' section, click on the drop-down button next to the ''Certificate'' text box und select ''Create Certificate...''.&lt;br /&gt;
* Confirm the process.&lt;br /&gt;
* In the ''Authentication'' section, click on the drop-down button next to the ''Certificate'' text box und select ''Download Certificate''. Save the certificate on your hard drive.&lt;br /&gt;
* Confirm your changes by clicking ''OK''.&lt;br /&gt;
* Leave the ''Credential Manager'' by clicking ''Apply''.&lt;br /&gt;
* The newly created credentials are selected in the corresponding drop-down list by default.&lt;br /&gt;
* If you are using Microsoft 365 in hybrid mode and synchronizing users from your Active Directory, set the directory service back to ''Active Directory''.&lt;br /&gt;
&lt;br /&gt;
=== Updating credentials in Microsoft Entra ID ===&lt;br /&gt;
&lt;br /&gt;
* Sign in to the [https://portal.azure.com Microsoft Entra ID Portal] as a Global Administrator for your Microsoft 365 tenant.&amp;lt;br/&amp;gt;The Microsoft Entra ID Portal of ''Office 365, operated by 21Vianet'' [https://portal.azure.cn/#view/Microsoft_AAD_IAM/ActiveDirectoryMenuBlade/~/Overview can be accessed here].&lt;br /&gt;
* In the navigation menu (☰), select the option ''Microsoft Entra ID''.&lt;br /&gt;
* On the next page, select ''App registrations'' in the ''Manage'' section of the left navigation menu.&lt;br /&gt;
* Select the application that is currently used by MailStore.&lt;br /&gt;
* Select ''Certificates &amp;amp; secrets'' in the ''Manage'' section of the left navigation menu.&lt;br /&gt;
* Click on ''Upload certificate'' in the ''Certificates'' section. Select the certificate file that you have saved previously and upload it to Microsoft Entra ID by clicking ''Add''.&lt;br /&gt;
* If uploading has been successful, the certificate's thumbprint as well as its start and expiry dates appear in the certificates list. You can compare the thumbprint and expiry date with those listed in the MailStore Credential Manager to check that you've uploaded the correct certificate.&lt;br /&gt;
* The previously used certificate can be removed from the list.&lt;br /&gt;
&lt;br /&gt;
[[de:Synchronisieren_von_Benutzerkonten_mit_Microsoft_365_(Modern_Authentication)]]&lt;br /&gt;
[[en:Synchronizing_User_Accounts_with_Microsoft_365_(Modern_Authentication)]]&lt;/div&gt;</summary>
		<author><name>Ltalaschus</name></author>
	</entry>
	<entry>
		<id>https://help.mailstore.com/en/server/index.php?title=Archiving_Emails_from_Microsoft_365_-_Modern_Authentication&amp;diff=7967</id>
		<title>Archiving Emails from Microsoft 365 - Modern Authentication</title>
		<link rel="alternate" type="text/html" href="https://help.mailstore.com/en/server/index.php?title=Archiving_Emails_from_Microsoft_365_-_Modern_Authentication&amp;diff=7967"/>
		<updated>2026-01-19T13:32:57Z</updated>

		<summary type="html">&lt;p&gt;Ltalaschus: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Implementation Guide Preamble|Exchange&amp;amp;nbsp;Online / Microsoft&amp;amp;nbsp;365||&amp;lt;br/&amp;gt;}}&lt;br /&gt;
&amp;lt;br clear=&amp;quot;all&amp;quot;/&amp;gt;&lt;br /&gt;
{{Multiline Notices|Heading=Important Notices|If you have archived emails from an Exchange server and synchronized users from an Active Directory until now, follow the article [[Changing Archiving from Microsoft Exchange Server to Microsoft 365]].|MailStore Server supports archiving emails from the global Microsoft Cloud ''Microsoft&amp;amp;nbsp;365'' and ''Office&amp;amp;nbsp;365, operated by 21Vianet''. Other Environments like GCC, GCC&amp;amp;nbsp;High or DoD are not supported.|For better readability, the terms ''Microsoft&amp;amp;nbsp;365'' and ''Exchange&amp;amp;nbsp;Online'' are used interchangeably hereinafter instead of ''Exchange&amp;amp;nbsp;Online / Microsoft&amp;amp;nbsp;365''.}}&lt;br /&gt;
&lt;br /&gt;
== App Registration &amp;amp; User Synchronization ==&lt;br /&gt;
Before archiving Microsoft&amp;amp;nbsp;365 mailboxes, registering MailStore Server in your Microsoft&amp;amp;nbsp;365 tenant is required. It is also highly recommended to synchronize users in MailStore Server directly with that tenant to fetch all information that is relevant for archiving such as email addresses. The registration and synchronization procedures are described in the chapter [[Synchronizing User Accounts with Microsoft 365 (Modern Authentication)]] of the MailStore Server manual.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p class=msnote&amp;gt;'''Please note:''' MailStore Server runs as a [[MailStore Server Service Configuration|Windows service]] and thus must use ''Application Permissions'' to access user mailboxes in Microsoft&amp;amp;nbsp;365. By design, on the Microsoft identity platform, which is at the heart of Microsoft&amp;amp;nbsp;365 authentication and authorization, this permission scope encloses the full level of privileges implied by a permission. As a consequence, once registered as described above, MailStore Server has access to all mailboxes in your Microsoft&amp;amp;nbsp;365 tenant. Therefore, with regard to security, access to the Microsoft&amp;amp;nbsp;365 archiving profiles in MailStore Server is limited to MailStore Server administrators.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Including Microsoft&amp;amp;nbsp;365 Shared Mailboxes ===&lt;br /&gt;
In Microsoft&amp;amp;nbsp;365, shared mailboxes are special mailboxes that multiple users have access to. Unlike a normal mailbox, a shared mailbox is not associated to a licensed Microsoft&amp;amp;nbsp;365 user. For MailStore Server to create user entries for shared mailboxes, you must therefore deactivate the option ''Synchronize licensed Microsoft Exchange&amp;amp;nbsp;Online users only'' in the section [[Synchronizing User Accounts with Microsoft 365 (Modern Authentication)#User_Database_Synchronization|User Database Synchronization]].&amp;lt;br/&amp;gt;&lt;br /&gt;
After synchronization you can grant MailStore Server users access to the archive of the shared mailbox by [[Users,_Folders_and_Settings#Folder_Access_.28e.g._Access_to_the_Emails_of_Other_Users.29|assigning privileges]]. For archiving shared mailboxes, just proceed as for individual or multiple mailboxes as detailed below.&lt;br /&gt;
&lt;br /&gt;
== Archiving Individual Microsoft&amp;amp;nbsp;365 Mailboxes ==&lt;br /&gt;
{{Archiving Single Mailbox Preamble|Microsoft&amp;amp;nbsp;365}}&lt;br /&gt;
For each mailbox, please proceed as follows:&lt;br /&gt;
&lt;br /&gt;
* Log on to MailStore Client as MailStore Server administrator.&lt;br /&gt;
* Click on ''Archive Email''.&lt;br /&gt;
* From the ''Email Servers'' list in the ''Create Profile'' area of the ''Archive Email'' page, select ''Microsoft&amp;amp;nbsp;365'' or ''Microsoft&amp;amp;nbsp;365 (21Vianet)'' to create a new archiving profile.&lt;br /&gt;
* A wizard opens to assist in specifying the archiving settings.&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
*; [[File:Microsoft 365 mailbox 01.png|center|347px]]&lt;br /&gt;
* Select ''Single Mailbox'' and click on ''OK''.&lt;br /&gt;
*; [[File:Microsoft 365 mailbox 02.png|center|347px]]&lt;br /&gt;
* Select the Microsoft&amp;amp;nbsp;365 credentials that you have created during the registration of MailStore Server with Microsoft&amp;amp;nbsp;365 from the ''Credentials'' drop-down list. You can also use the button (…) to access the [[Synchronizing_User_Accounts_with_Microsoft_365_(Modern_Authentication)#Creating_Credentials_in_MailStore_Server|Credential Manager]].&lt;br /&gt;
* In the ''Mailbox'' field, enter the primary email address of the user whose mailbox you want to archive.&lt;br /&gt;
* Click on ''Test'' to verify that MailStore Server can access the mailbox.&lt;br /&gt;
* Click on ''Next''.&lt;br /&gt;
* If needed, adjust the settings for the [[Email_Archiving_with_MailStore_Basics#Archiving_Specific_Folders|List of Folders to be Archived]], the [[Email_Archiving_with_MailStore_Basics#Specifying_Filter_Criteria_for_Archiving|filter]] and the [[Email_Archiving_with_MailStore_Basics#Deleting_Emails_after_Archiving|Deletion Rules]]. By default, no emails will be deleted from the mailbox. The ''Timeout'' value only has to be adjusted in specific cases (e.g. with very slow network connections). &lt;br /&gt;
*; [[File:Microsoft_365_mailbox_03.png|center|347px]]&lt;br /&gt;
* Click on ''Next'' to continue.&lt;br /&gt;
* Select the archive of the user for whom the selected mailbox is to be archived. If the user does not exist yet, click on ''Create a New User…''.&lt;br /&gt;
*; [[File:Microsoft_365_mailbox_04.png|center|347px]]&lt;br /&gt;
* Click on ''Next''.&lt;br /&gt;
* In the last step, a name for the archiving profile can be specified. After clicking ''Finish'', the archiving profile will be listed under ''Saved Profiles'' and, if desired, can be run immediately or automatically.&lt;br /&gt;
&lt;br /&gt;
More information on how to execute archiving profiles can be found under the topic [[Email Archiving with MailStore Basics]]&lt;br /&gt;
&lt;br /&gt;
== Archiving Multiple Microsoft&amp;amp;nbsp;365 Mailboxes Centrally ==&lt;br /&gt;
{{Archiving Multiple Mailboxes Preamble|Microsoft&amp;amp;nbsp;365}}&lt;br /&gt;
Please proceed as follows:&lt;br /&gt;
&lt;br /&gt;
* Log on to MailStore Client as MailStore Server administrator.&lt;br /&gt;
* Click on ''Archive Email''.&lt;br /&gt;
* From the ''Email Servers'' list in the ''Create Profile'' area of the ''Archive Email'' page, select ''Microsoft&amp;amp;nbsp;365'' or ''Microsoft&amp;amp;nbsp;365 (21Vianet)'' to create a new archiving profile.&lt;br /&gt;
* A wizard opens to assist in specifying the archiving settings.&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
*; [[File:Microsoft 365 mailboxes 01.png|center|347px]]&lt;br /&gt;
* Select ''Multiple Mailboxes'' and click ''OK''.&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
*; &amp;lt;p class=msnote&amp;gt;{{Archiving_Multiple_or_Multidrop_Note|multiple mailboxes|[[#App_Registration_.26_User_Synchronization|directory synchronization]]}}&amp;lt;/p&amp;gt;&lt;br /&gt;
*; [[File:Microsoft 365 mailboxes 02.png|center|347px]]&lt;br /&gt;
* Select the Microsoft&amp;amp;nbsp;365 credentials that you have created during the registration of MailStore Server with Microsoft&amp;amp;nbsp;365 from the ''Credentials'' drop-down list. You can also use the button (…) to access the [[Synchronizing_User_Accounts_with_Microsoft_365_(Modern_Authentication)#Creating_Credentials_in_MailStore_Server|Credential Manager]].&lt;br /&gt;
* Click on ''Next'' to continue. &lt;br /&gt;
*; [[File:Microsoft 365 mailboxes 03.png|center|347px]]&lt;br /&gt;
* If needed, adjust the settings for the [[Email_Archiving_with_MailStore_Basics#Archiving_Specific_Folders|List of Folders to be Archived]], the [[Email_Archiving_with_MailStore_Basics#Specifying_Filter_Criteria_for_Archiving|filter]] and the [[Email_Archiving_with_MailStore_Basics#Deleting_Emails_after_Archiving|Deletion Rules]]. By default, no emails will be deleted from the mailbox. The ''Timeout'' value only has to be adjusted in specific cases (e.g. with very slow network connections). Please keep in mind that these settings apply to all mailboxes to be archived, as specified in the next step.&lt;br /&gt;
*; {{Archiving_Multiple_Mailboxes_Centrally_Options|Microsoft_365_mailboxes_04.png|Microsoft&amp;amp;nbsp;365}}&lt;br /&gt;
&lt;br /&gt;
== Archiving Incoming and Outgoing Emails Directly ==&lt;br /&gt;
{{Archiving Exchange Journal Mailbox Preamble|Exchange&amp;amp;nbsp;Online}}&lt;br /&gt;
&lt;br /&gt;
=== Step 1: Setup and Configure MailStore Gateway ===&lt;br /&gt;
Please refer to the [https://help.mailstore.com/en/gateway/ MailStore Gateway Manual] for detailed instructions about:&lt;br /&gt;
 &lt;br /&gt;
* Installation and Setup of MailStore Gateway&lt;br /&gt;
* Logging on to MailStore Gateway's Management Console&lt;br /&gt;
* Creating MailStore Gateway mailboxes&lt;br /&gt;
&lt;br /&gt;
After these steps, a mailbox with an individual email address (e.g. mbx-dead1234beef5678@gateway.example.com) should exist.&lt;br /&gt;
&lt;br /&gt;
=== Step 2: Configure MailStore Server ===&lt;br /&gt;
{{Archiving MailStore Gateway Mailbox|''In- and Outbound E-Mail Automatically''|Microsoft 365 journal 01.png|Arch_MailStore_Gateway_Office365_02.png|''Microsoft&amp;amp;nbsp;365''|TargetFolderHint=DontShow|POP3Hint=DontShow|DSLink=[[#App_Registration_.26_User_Synchronization|directory synchronization]]}}&lt;br /&gt;
&lt;br /&gt;
=== Step 3: Creating a Journal Rule ===&lt;br /&gt;
The following steps describe how to set up journaling for your Microsoft&amp;amp;nbsp;365 account.&lt;br /&gt;
&lt;br /&gt;
Since you are planning to use an external mailbox (MailStore Gateway) as the recipient for Journal reports, we highly recommend to first create an external contact with this mail address in your Exchange mailbox administration to prevent any later errors or warnings about an unknown recipient in the process.&lt;br /&gt;
&lt;br /&gt;
* Sign in to the [https://purview.microsoft.com/ Microsoft&amp;amp;nbsp;365 Purview portal] as an Exchange or Global Administrator for your Microsoft&amp;amp;nbsp;365 tenant.&lt;br /&gt;
* In the left navigation menu select ''Settings''.&lt;br /&gt;
* In the now shown ''Settings'' submenu select ''Data Lifecycle Management'' and then select  ''Exchange&amp;amp;nbsp;(legacy)'' or use [https://purview.microsoft.com/settings/application-settings/datalifecyclemanagement this link].&lt;br /&gt;
* Enter a mailbox in the ''Send undeliverable journal reports to'' section. This mailbox receives None Delivery Reports (NDRs) for undeliverable journal reports in case the primary journal mailbox is unreachable.&lt;br /&gt;
** This mailbox should be a dedicated mailbox for this purpose, which cannot reside in any Microsoft 365 tenant.&lt;br /&gt;
** The same journal report non-delivery reports mailbox must not be used for multiple tenants.&lt;br /&gt;
** The receiving mail server must not alter the ''X-MS-Exchange-Message-Is-Ndr'' email header.&lt;br /&gt;
** For this purpose, you can set up a second gateway on another server with an additional mailbox, as described in [[Archiving_Emails_from_Microsoft_365_-_Modern_Authentication#Step_1:_Setup_and_Configure_MailStore_Gateway|Step 1]]. Alternatively you can use any external mailbox that matches the above criteria.&lt;br /&gt;
** MailStore is able to extract the journal reports contained in the NDRs, then archive them like normal journal reports and thus assign the emails they contain to users. You can therefore create a second archiving profile as described in [[Archiving_Emails_from_Microsoft_365_-_Modern_Authentication#Step_2:_Configure_MailStore_Server|Step 2]], which archives from the Microsoft 365 journal report non-delivery reports mailbox.&lt;br /&gt;
* In the leftmost navigation menu select ''Data Lifecycle Management'', then ''Exchange&amp;amp;nbsp;(legacy)'', and finally ''Journal rules'' and therefore leave the ''Settings'' section or use [https://purview.microsoft.com/datalifecyclemanagement/exchange/journalrules this link]. In case ''Data Lifecycle Management'' is not listed, click ''Solutions'' &amp;gt; ''Data Lifecycle Management''.&lt;br /&gt;
* Create a new journaling rule by clicking on ''+ (New rule)''.&lt;br /&gt;
*:[[File:Arch_office365_journal_01.png|center|550px]]&lt;br /&gt;
* Enter the email address of the previously created MailStore Gateway mailbox in the ''Send journal reports to:'' box.&lt;br /&gt;
* Enter a name for the journal rule, e.g. ''Journaling''.&lt;br /&gt;
* In the ''Journal messages sent or received from'' section, select whether the rule should apply to everyone or to specific users or groups.&lt;br /&gt;
* Under ''Type of message to journal'', choose whether to capture all messages, internal messages only, or external messages only.&lt;br /&gt;
* Click on ''Next'', then validate your settings, click ''Submit'' to activate the rule.&lt;br /&gt;
&lt;br /&gt;
== Public Folders ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p class=msnote&amp;gt;'''Please note:''' Support for archiving of Public Folders for Microsoft 365 will reach its End of Life in October 2026. See [[EWS_Migration|here]] for more information.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Archiving Exchange Public Folders Preamble|Exchange&amp;amp;nbsp;Online|Microsoft&amp;amp;nbsp;365}}&lt;br /&gt;
* Sign in to the [https://admin.exchange.microsoft.com/#/publicfolders Microsoft&amp;amp;nbsp;365 Exchange admin center] as an Exchange or Global Administrator for your Microsoft&amp;amp;nbsp;365 tenant.&lt;br /&gt;
* Navigate to ''Public folders'', in case it it not already opened.&lt;br /&gt;
* Click on ''Root permissions''.&lt;br /&gt;
*: [[File:Microsoft_365_pf_01.png|center|480px]]&lt;br /&gt;
* The side-panel ''Folder permissions'' opens. Click on ''+ Add permissions''.&lt;br /&gt;
* Use the text box beneath ''Select User'' to choose the Microsoft&amp;amp;nbsp;365 user you want to grant permissions.&lt;br /&gt;
* Choose ''Custom'' as ''Permission level'' and grant ''Read items'' and ''Delete all'' permissions.&lt;br /&gt;
*: [[File:Microsoft_365_pf_02.png|center|480px]]&lt;br /&gt;
* Click on ''Save Changes''.&lt;br /&gt;
&lt;br /&gt;
=== Step 3: Setting up the Archiving Process ===&lt;br /&gt;
* Log on to MailStore Client as MailStore Server administrator.&lt;br /&gt;
* Click on ''Archive Email''.&lt;br /&gt;
* From the ''Email Servers'' list in the ''Create Profile'' area of the ''Archive Email'' page, select ''Microsoft&amp;amp;nbsp;365'' or ''Microsoft&amp;amp;nbsp;365 (21Vianet)'' to create a new archiving profile.&lt;br /&gt;
* A wizard opens to assist in specifying the archiving settings.&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
*; [[File:Microsoft 365 pf 03.png|center|347px]]&lt;br /&gt;
* Select ''Public Folders'' and click on ''OK''.&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
*; [[File:Microsoft 365 pf 04.png|center|347px]]&lt;br /&gt;
* Select the Microsoft&amp;amp;nbsp;365 credentials that you have created during the registration of MailStore Server with Microsoft&amp;amp;nbsp;365 from the ''Credentials'' drop-down list. You can also use the button (…) to access the [[Synchronizing_User_Accounts_with_Microsoft_365_(Modern_Authentication)#Creating_Credentials_in_MailStore_Server|Credential Manager]].&lt;br /&gt;
* In the ''Mailbox'' field, enter the primary email address of the user that has access to the public folders as described above.&lt;br /&gt;
* The value of the ''Target Folder'' box defines the top level folder below which the public folder hierarchy will be created in the target archive. Usually, you can leave this value to its default.&lt;br /&gt;
* Click on ''Test'' to verify that MailStore can access the public folders.&lt;br /&gt;
* Click on ''Next'' to continue.&lt;br /&gt;
*; [[File:Microsoft 365 pf 05.png|center|347px]]&lt;br /&gt;
* Adjust the settings for the [[Email_Archiving_with_MailStore_Basics#Archiving_Specific_Folders|List of Folders to be Archived]]. By default, all public folders that contain emails will be archived.&lt;br /&gt;
* If needed, adjust [[Email_Archiving_with_MailStore_Basics#Specifying_Filter_Criteria_for_Archiving|the filter]] and the [[Email_Archiving_with_MailStore_Basics#Deleting_Emails_after_Archiving|Deletion Rules]]. By default, no emails will be deleted from the public folders. The ''Timeout'' value only has to be adjusted in specific cases (e.g. with very slow network connections).&lt;br /&gt;
* Click on ''Next'' to continue.&lt;br /&gt;
*; [[File:Microsoft 365 pf 06.png|center|347px]]&lt;br /&gt;
* In the next step, select the archive of the user you have prepared in step 1.&lt;br /&gt;
* In the last step, specify a name for the archiving profile. After clicking ''Finish'' the archiving profile will be listed under ''Saved Profiles'' and can be run immediately or automatically if desired.&lt;br /&gt;
&lt;br /&gt;
== About Archiving Archive Mailboxes ==&lt;br /&gt;
{{Archive_Mailbox_Folder_Structure}}&lt;br /&gt;
&lt;br /&gt;
== Archiving Individual Microsoft&amp;amp;nbsp;365 Archive Mailboxes ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p class=msnote&amp;gt;'''Please note:''' Support for archiving Archive Mailboxes for Microsoft 365 will reach its End of Life in October 2026. See [[EWS_Migration|here]] for more information.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Archiving Single Archive Mailbox Preamble|Microsoft&amp;amp;nbsp;365}}&lt;br /&gt;
For each mailbox, please proceed as follows:&lt;br /&gt;
&lt;br /&gt;
* Log on to MailStore Client as MailStore Server administrator.&lt;br /&gt;
* Click on ''Archive Email''.&lt;br /&gt;
* From the ''Email Servers'' list in the ''Create Profile'' area of the ''Archive Email'' page, select ''Microsoft&amp;amp;nbsp;365'' or ''Microsoft&amp;amp;nbsp;365 (21Vianet)'' to create a new archiving profile.&lt;br /&gt;
* A wizard opens to assist in specifying the archiving settings.&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
*; [[File:Microsoft_365_archive_mailbox 01.png|center|347px]]&lt;br /&gt;
* Select ''Single Archive Mailbox'' and click on ''OK''.&lt;br /&gt;
*; [[File:Microsoft_365_archive_mailbox 02.png|center|347px]]&lt;br /&gt;
* Select the Microsoft&amp;amp;nbsp;365 credentials that you have created during the registration of MailStore Server with Microsoft&amp;amp;nbsp;365 from the ''Credentials'' drop-down list. You can also use the button (…) to access the [[Synchronizing_User_Accounts_with_Microsoft_365_(Modern_Authentication)#Creating_Credentials_in_MailStore_Server|Credential Manager]].&lt;br /&gt;
* In the ''Mailbox'' field, enter the primary email address of the user whose archive mailbox you want to archive.&lt;br /&gt;
* Click on ''Test'' to verify that MailStore Server can access the archive mailbox.&lt;br /&gt;
* Click on ''Next''.&lt;br /&gt;
* If needed, adjust the settings for the [[Email_Archiving_with_MailStore_Basics#Archiving_Specific_Folders|List of Folders to be Archived]], the [[Email_Archiving_with_MailStore_Basics#Specifying_Filter_Criteria_for_Archiving|filter]] and the [[Email_Archiving_with_MailStore_Basics#Deleting_Emails_after_Archiving|Deletion Rules]]. By default, no emails will be deleted from the archive mailbox. The ''Timeout'' value only has to be adjusted in specific cases (e.g. with very slow network connections). &lt;br /&gt;
*; [[File:Microsoft_365_archive_mailbox_03.png|center|347px]]&lt;br /&gt;
* Click on ''Next'' to continue.&lt;br /&gt;
* Select the archive of the user for whom the selected archive mailbox is to be archived. If the user does not exist yet, click on ''Create a New User…''.&lt;br /&gt;
*; [[File:Microsoft_365_archive_mailbox_04.png|center|347px]]&lt;br /&gt;
* Click on ''Next''.&lt;br /&gt;
* In the last step, a name for the archiving profile can be specified. After clicking ''Finish'', the archiving profile will be listed under ''Saved Profiles'' and, if desired, can be run immediately or automatically.&lt;br /&gt;
&lt;br /&gt;
More information on how to execute archiving profiles can be found under the topic [[Email Archiving with MailStore Basics]]&lt;br /&gt;
&lt;br /&gt;
== Archiving Multiple Microsoft&amp;amp;nbsp;365 Archive Mailboxes Centrally ==&lt;br /&gt;
{{Archiving Multiple Archive Mailboxes Preamble|Microsoft&amp;amp;nbsp;365}}&lt;br /&gt;
Please proceed as follows:&lt;br /&gt;
&lt;br /&gt;
* Log on to MailStore Client as MailStore Server administrator.&lt;br /&gt;
* Click on ''Archive Email''.&lt;br /&gt;
* From the ''Email Servers'' list in the ''Create Profile'' area of the ''Archive Email'' page, select ''Microsoft&amp;amp;nbsp;365'' or ''Microsoft&amp;amp;nbsp;365 (21Vianet)'' to create a new archiving profile.&lt;br /&gt;
* A wizard opens to assist in specifying the archiving settings.&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
*; [[File:Microsoft_365_archive_mailboxes_01.png|center|347px]]&lt;br /&gt;
* Select ''Multiple Archive Mailboxes'' and click ''OK''.&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
*; &amp;lt;p class=msnote&amp;gt;{{Archiving_Multiple_or_Multidrop_Note|multiple archive mailboxes|[[#App_Registration_.26_User_Synchronization|directory synchronization]]}}&amp;lt;/p&amp;gt;&lt;br /&gt;
*; [[File:Microsoft_365_archive_mailboxes_02.png|center|347px]]&lt;br /&gt;
* Select the Microsoft&amp;amp;nbsp;365 credentials that you have created during the registration of MailStore Server with Microsoft&amp;amp;nbsp;365 from the ''Credentials'' drop-down list. You can also use the button (…) to access the [[Synchronizing_User_Accounts_with_Microsoft_365_(Modern_Authentication)#Creating_Credentials_in_MailStore_Server|Credential Manager]].&lt;br /&gt;
* Click on ''Next'' to continue. &lt;br /&gt;
*; [[File:Microsoft_365_archive_mailboxes_03.png|center|347px]]&lt;br /&gt;
* If needed, adjust the settings for the [[Email_Archiving_with_MailStore_Basics#Archiving_Specific_Folders|List of Folders to be Archived]], the [[Email_Archiving_with_MailStore_Basics#Specifying_Filter_Criteria_for_Archiving|filter]] and the [[Email_Archiving_with_MailStore_Basics#Deleting_Emails_after_Archiving|Deletion Rules]]. By default, no emails will be deleted from the archive mailbox. The ''Timeout'' value only has to be adjusted in specific cases (e.g. with very slow network connections). Please keep in mind that these settings apply to all mailboxes to be archived, as specified in the next step.&lt;br /&gt;
*; {{Archiving_Multiple_Mailboxes_Centrally_Options|Microsoft_365_archive_mailboxes_04.png|Microsoft&amp;amp;nbsp;365}}&lt;br /&gt;
&lt;br /&gt;
[[de:E-Mail-Archivierung_von_Microsoft_365_(Modern_Authentication)]]&lt;br /&gt;
[[en:Archiving_Emails_from_Microsoft_365_(Modern_Authentication)]]&lt;/div&gt;</summary>
		<author><name>Ltalaschus</name></author>
	</entry>
	<entry>
		<id>https://help.mailstore.com/en/server/index.php?title=Administration_API_-_Function_Reference&amp;diff=7966</id>
		<title>Administration API - Function Reference</title>
		<link rel="alternate" type="text/html" href="https://help.mailstore.com/en/server/index.php?title=Administration_API_-_Function_Reference&amp;diff=7966"/>
		<updated>2026-01-16T14:05:53Z</updated>

		<summary type="html">&lt;p&gt;Ltalaschus: /* CreateStore */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
&lt;br /&gt;
== AttachStore ==&lt;br /&gt;
Attach existing archive store.&lt;br /&gt;
&lt;br /&gt;
=== Arguments ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! width=150px | Name&lt;br /&gt;
! width=120px | Type&lt;br /&gt;
! Description&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;name&amp;lt;/tt&amp;gt;&lt;br /&gt;
| string &lt;br /&gt;
| Meaningful name of archive store.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;type&amp;lt;/tt&amp;gt;&lt;br /&gt;
| string&lt;br /&gt;
| Type of archive store.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;databaseName&amp;lt;/tt&amp;gt;&lt;br /&gt;
| string (optional)&lt;br /&gt;
| Name of database on Microsoft SQL Server or PostgreSQL server.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;databasePath&amp;lt;/tt&amp;gt;&lt;br /&gt;
| string (optional)&lt;br /&gt;
| Path to directory in which database folder information and email meta data are stored.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;contentPath&amp;lt;/tt&amp;gt;&lt;br /&gt;
| string (optional)&lt;br /&gt;
| Path to directory in which email headers and contents are stored.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;indexPath&amp;lt;/tt&amp;gt;&lt;br /&gt;
| string (optional)&lt;br /&gt;
| Path to directory in which full text search indexes are stored.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;serverName&amp;lt;/tt&amp;gt;&lt;br /&gt;
| string (optional)&lt;br /&gt;
| Name of Microsoft SQL Server or PostgreSQL server.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;userName&amp;lt;/tt&amp;gt;&lt;br /&gt;
| string (optional)&lt;br /&gt;
| User name for accessing Microsoft SQL Server or PostgreSQL server.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;password&amp;lt;/tt&amp;gt;&lt;br /&gt;
| string (optional)&lt;br /&gt;
| Password for accessing Microsoft SQL Server or PostgreSQL server.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;requestedState&amp;lt;/tt&amp;gt;&lt;br /&gt;
| string (optional)&lt;br /&gt;
| State of archive store after attaching.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Argument Values ===&lt;br /&gt;
&lt;br /&gt;
==== type ====&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! width=270px | Name&lt;br /&gt;
! Description&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;FileSystemInternal&amp;lt;/tt&amp;gt;&lt;br /&gt;
| Advanced file system-based archive store.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;SQLServer&amp;lt;/tt&amp;gt;&lt;br /&gt;
| Microsoft SQL Server-based archive store.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;PostgreSQL&amp;lt;/tt&amp;gt;&lt;br /&gt;
| PostgreSQL server-based archive store.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==== requestedState ====&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! width=270px | Name&lt;br /&gt;
! Description&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;current&amp;lt;/tt&amp;gt;&lt;br /&gt;
| Same as Normal but new messages will be archived in the archive store that is set to Current.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;normal&amp;lt;/tt&amp;gt;&lt;br /&gt;
| The content of archives store is available to users and can be modified if the user has the appropriate permission.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;writeProtected&amp;lt;/tt&amp;gt;&lt;br /&gt;
| The content of write protected archive stores is available to users, but cannot be modified (e.g. delete or move messages, rename or move folders)&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;disabled&amp;lt;/tt&amp;gt;&lt;br /&gt;
| Disabled archive stores are not in use but the instance still knows about their existence. Therefore the content is not available to users.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== CancelJobAsync ==&lt;br /&gt;
Cancel a running job asynchronously.&lt;br /&gt;
&lt;br /&gt;
=== Arguments ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! width=150px | Name&lt;br /&gt;
! width=120px | Type&lt;br /&gt;
! Description&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;id&amp;lt;/tt&amp;gt;&lt;br /&gt;
| number &lt;br /&gt;
| The unique identifier of the job to be canceled.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== ClearUserPrivilegesOnFolders ==&lt;br /&gt;
Removes all privileges of a user on all archive folders.&lt;br /&gt;
&lt;br /&gt;
=== Arguments ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! width=150px | Name&lt;br /&gt;
! width=120px | Type&lt;br /&gt;
! Description&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;userName&amp;lt;/tt&amp;gt;&lt;br /&gt;
| string &lt;br /&gt;
| User name of MailStore user.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== CompactMasterDatabase ==&lt;br /&gt;
Compact master database.&lt;br /&gt;
&lt;br /&gt;
== CompactStore ==&lt;br /&gt;
Compact archive store.&lt;br /&gt;
&lt;br /&gt;
=== Arguments ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! width=150px | Name&lt;br /&gt;
! width=120px | Type&lt;br /&gt;
! Description&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;id&amp;lt;/tt&amp;gt;&lt;br /&gt;
| number &lt;br /&gt;
| Unique ID of archive store&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== CreateBackup == &lt;br /&gt;
Create a backup of the entire archive.&lt;br /&gt;
&lt;br /&gt;
=== Arguments ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! width=150px | Name&lt;br /&gt;
! width=120px | Type&lt;br /&gt;
! Description&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;path&amp;lt;/tt&amp;gt;&lt;br /&gt;
| string&lt;br /&gt;
| Path to directory into which the backup should be written.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;excludeSearchIndexes&amp;lt;/tt&amp;gt;&lt;br /&gt;
| bool (optional)&lt;br /&gt;
| Indicates whether the search index files should be excluded from the backup.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== CreateJob ==&lt;br /&gt;
Create a new job to execute Management API commands.&lt;br /&gt;
&lt;br /&gt;
=== Arguments ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! width=150px | Name&lt;br /&gt;
! width=120px | Type&lt;br /&gt;
! Description&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;name&amp;lt;/tt&amp;gt;&lt;br /&gt;
| string (optional)&lt;br /&gt;
| A meaningful name for the job. Example: ''Daily Backup''.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;action&amp;lt;/tt&amp;gt;&lt;br /&gt;
| string (optional)&lt;br /&gt;
| Management API command to execute.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;owner&amp;lt;/tt&amp;gt;&lt;br /&gt;
| string (optional)&lt;br /&gt;
| Username of the job owner; must be an administrator.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;timeZoneId&amp;lt;/tt&amp;gt;&lt;br /&gt;
| string (optional)&lt;br /&gt;
| The id of the time zone the date should be converted to, e.g. ''$Local'', which represents the time zone of the operating system.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;date&amp;lt;/tt&amp;gt;&lt;br /&gt;
| string (optional)&lt;br /&gt;
| Datetime string (YYYY-MM-DDThh:mm:ss) for running the job once.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;interval&amp;lt;/tt&amp;gt;&lt;br /&gt;
| number (optional)&lt;br /&gt;
| Interval for running job.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;time&amp;lt;/tt&amp;gt;&lt;br /&gt;
| string (optional)&lt;br /&gt;
| Time for running job. Without additional parameter, this means daily execution.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;dayOfWeek&amp;lt;/tt&amp;gt;&lt;br /&gt;
| string (optional)&lt;br /&gt;
| Day of week to run job. Parameter &amp;quot;time&amp;quot; also required.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;dayOfMonth&amp;lt;/tt&amp;gt;&lt;br /&gt;
| string (optional)&lt;br /&gt;
| Day of month to run job. Parameter &amp;quot;time&amp;quot; also required. dayOfWeek can optionally be used to define further.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Use the API command [[Administration_API_-_Function_Reference#GetTimeZones|GetTimeZones]] to retrieve a list of all available time zones and their ids.&lt;br /&gt;
&lt;br /&gt;
=== Argument Values ===&lt;br /&gt;
&lt;br /&gt;
==== dayOfWeek ====&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! width=270px | Name&lt;br /&gt;
! Description&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;Sunday&amp;lt;/tt&amp;gt;&lt;br /&gt;
| Sunday&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;Monday&amp;lt;/tt&amp;gt;&lt;br /&gt;
| Monday&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;Tuesday&amp;lt;/tt&amp;gt;&lt;br /&gt;
| Tuesday&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;Wednesday&amp;lt;/tt&amp;gt;&lt;br /&gt;
| Wednesday&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;Thursday&amp;lt;/tt&amp;gt;&lt;br /&gt;
| Thursday&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;Friday&amp;lt;/tt&amp;gt;&lt;br /&gt;
| Friday&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;Saturday&amp;lt;/tt&amp;gt;&lt;br /&gt;
| Saturday&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==== dayOfMonth ====&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! width=270px | Name&lt;br /&gt;
! Description&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;1 to 31&amp;lt;/tt&amp;gt;&lt;br /&gt;
| Numeric representation of day of month.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;Last&amp;lt;/tt&amp;gt;&lt;br /&gt;
| Last day of month.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==== interval ====&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! width=270px | Name&lt;br /&gt;
! Description&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;5&amp;lt;/tt&amp;gt;&lt;br /&gt;
| Every 5 minutes.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;10&amp;lt;/tt&amp;gt;&lt;br /&gt;
| Every 10 minutes.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;15&amp;lt;/tt&amp;gt;&lt;br /&gt;
| Every 15 minutes.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;20&amp;lt;/tt&amp;gt;&lt;br /&gt;
| Every 20 minutes.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;30&amp;lt;/tt&amp;gt;&lt;br /&gt;
| Every 30 minutes.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;60&amp;lt;/tt&amp;gt;&lt;br /&gt;
| Every hour.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;120&amp;lt;/tt&amp;gt;&lt;br /&gt;
| Every 2 hours.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;180&amp;lt;/tt&amp;gt;&lt;br /&gt;
| Every 3 hours.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;240&amp;lt;/tt&amp;gt;&lt;br /&gt;
| Every 4 hours.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;360&amp;lt;/tt&amp;gt;&lt;br /&gt;
| Every 6 hours.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;720&amp;lt;/tt&amp;gt;&lt;br /&gt;
| Every 12 hours.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== CreateProfile ==&lt;br /&gt;
Create a new archiving or exporting profile.&lt;br /&gt;
&lt;br /&gt;
=== Arguments ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! width=150px | Name&lt;br /&gt;
! width=120px | Type&lt;br /&gt;
! Description&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;properties&amp;lt;/tt&amp;gt;&lt;br /&gt;
| json &lt;br /&gt;
| Profile properties.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;raw&amp;lt;/tt&amp;gt;&lt;br /&gt;
| bool &lt;br /&gt;
| Currently only 'true' is supported.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Argument Values ===&lt;br /&gt;
&lt;br /&gt;
==== properties ====&lt;br /&gt;
To receive available profile properties create a profile of the desired type via MailStore Client and then use the GetProfiles method to receive supported values. The properties ''id'' and ''version'' must be omitted, the password field must be filled properly.&lt;br /&gt;
&lt;br /&gt;
== CreateStore ==&lt;br /&gt;
Create and attach a new archive store.&lt;br /&gt;
&lt;br /&gt;
=== Arguments ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! width=150px | Name&lt;br /&gt;
! width=120px | Type&lt;br /&gt;
! Description&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;name&amp;lt;/tt&amp;gt;&lt;br /&gt;
| string &lt;br /&gt;
| Meaningful name of archive store.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;type&amp;lt;/tt&amp;gt;&lt;br /&gt;
| string&lt;br /&gt;
| Type of archive store.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;databaseName&amp;lt;/tt&amp;gt;&lt;br /&gt;
| string (optional)&lt;br /&gt;
| Name of database on Microsoft SQL Server or PostgreSQL server.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;databasePath&amp;lt;/tt&amp;gt;&lt;br /&gt;
| string (optional)&lt;br /&gt;
| Path to directory in which database folder information and email meta data are stored.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;contentPath&amp;lt;/tt&amp;gt;&lt;br /&gt;
| string (optional)&lt;br /&gt;
| Path to directory in which email headers and contents are stored.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;indexPath&amp;lt;/tt&amp;gt;&lt;br /&gt;
| string (optional)&lt;br /&gt;
| Path to directory in which full text search indexes are stored.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;serverName&amp;lt;/tt&amp;gt;&lt;br /&gt;
| string (optional)&lt;br /&gt;
| Name of Microsoft SQL Server or PostgreSQL server.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;userName&amp;lt;/tt&amp;gt;&lt;br /&gt;
| string (optional)&lt;br /&gt;
| User name for accessing Microsoft SQL Server or PostgreSQL server.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;password&amp;lt;/tt&amp;gt;&lt;br /&gt;
| string (optional)&lt;br /&gt;
| Password for accessing Microsoft SQL Server or PostgreSQL server.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;requestedState&amp;lt;/tt&amp;gt;&lt;br /&gt;
| string (optional)&lt;br /&gt;
| State of archive store after attaching.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Argument Values ===&lt;br /&gt;
&lt;br /&gt;
==== type ====&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! width=270px | Name&lt;br /&gt;
! Description&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;FileSystemInternal&amp;lt;/tt&amp;gt;&lt;br /&gt;
| Standard archive store.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;SQLServer&amp;lt;/tt&amp;gt;&lt;br /&gt;
| Microsoft SQL Server-based archive store.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;PostgreSQL&amp;lt;/tt&amp;gt;&lt;br /&gt;
| PostgreSQL server-based archive store.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==== requestedState ====&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! width=270px | Name&lt;br /&gt;
! Description&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;current&amp;lt;/tt&amp;gt;&lt;br /&gt;
| Same as Normal but new messages will be archived in the archive store that is set to Current.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;normal&amp;lt;/tt&amp;gt;&lt;br /&gt;
| The content of archives store is available to users and can be modified if the user has the appropriate permission.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;writeProtected&amp;lt;/tt&amp;gt;&lt;br /&gt;
| The content of write protected archive stores is available to users, but cannot be modified (e.g. delete or move messages, rename or move folders)&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;disabled&amp;lt;/tt&amp;gt;&lt;br /&gt;
| Disabled archive stores are not in use but the instance still knows about their existence. Therefore the content is not available to users.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== CreateUser ==&lt;br /&gt;
Create new MailStore user. Use [[Administration_API_-_Function_Reference#SetUserPrivilegesOnFolder|SetUserPrivilegesOnFolder]] to grant that user privileges on the user's own archive.&lt;br /&gt;
&lt;br /&gt;
=== Arguments ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! width=150px | Name&lt;br /&gt;
! width=120px | Type&lt;br /&gt;
! Description&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;userName&amp;lt;/tt&amp;gt;&lt;br /&gt;
| string &lt;br /&gt;
| User name of new MailStore user.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;privileges&amp;lt;/tt&amp;gt;&lt;br /&gt;
| string &lt;br /&gt;
| Comma separated list of privileges.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;fullName&amp;lt;/tt&amp;gt;&lt;br /&gt;
| string (optional)&lt;br /&gt;
| Full name of user.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;distinguishedName&amp;lt;/tt&amp;gt;&lt;br /&gt;
| string (optional)&lt;br /&gt;
| LDAP DN string.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;authentication&amp;lt;/tt&amp;gt;&lt;br /&gt;
| string (optional)&lt;br /&gt;
| Authentication setting for user: 'integrated or 'directoryServices'.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;password&amp;lt;/tt&amp;gt;&lt;br /&gt;
| string (optional)&lt;br /&gt;
| Password of new user.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;loginPrivileges&amp;lt;/tt&amp;gt;&lt;br /&gt;
| string (optional)&lt;br /&gt;
| Comma separated list of log in privileges. If not given, all login privileges are assigned.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Argument Values ===&lt;br /&gt;
&lt;br /&gt;
==== privileges ====&lt;br /&gt;
{{Administration_API_User_Privileges}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== loginPrivileges ====&lt;br /&gt;
{{Administration_API_User_Login_Privileges}}&lt;br /&gt;
&lt;br /&gt;
== DeleteAppPasswords ==&lt;br /&gt;
Deletes all app passwords of a user, hence all non-interactive logins will fail and have to be reconfigured by the user.&lt;br /&gt;
&lt;br /&gt;
=== Arguments ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! width=150px | Name&lt;br /&gt;
! width=120px | Type&lt;br /&gt;
! Description&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;userName&amp;lt;/tt&amp;gt;&lt;br /&gt;
| string&lt;br /&gt;
| The user name of the user whose app passwords shall be deleted.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== DeleteEmptyFolders ==&lt;br /&gt;
Remove folders from folder tree that do not contain emails.&lt;br /&gt;
&lt;br /&gt;
=== Arguments ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! width=150px | Name&lt;br /&gt;
! width=120px | Type&lt;br /&gt;
! Description&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;folder&amp;lt;/tt&amp;gt;&lt;br /&gt;
| string (optional)&lt;br /&gt;
| Entry point in folder tree.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== DeleteJob ==&lt;br /&gt;
Deletes a job.&lt;br /&gt;
&lt;br /&gt;
=== Arguments ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! width=150px | Name&lt;br /&gt;
! width=120px | Type&lt;br /&gt;
! Description&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;id&amp;lt;/tt&amp;gt;&lt;br /&gt;
| string&lt;br /&gt;
| The unique identifier of the job to be deleted.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== DeleteMessage ==&lt;br /&gt;
Delete a single message&lt;br /&gt;
&lt;br /&gt;
=== Arguments ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! width=150px | Name&lt;br /&gt;
! width=120px | Type&lt;br /&gt;
! Description&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;id&amp;lt;/tt&amp;gt;&lt;br /&gt;
| string&lt;br /&gt;
| Unique ID of message. Format: &amp;lt;store_id&amp;gt;:&amp;lt;message_num&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;reason&amp;lt;/tt&amp;gt;&lt;br /&gt;
| string&lt;br /&gt;
| The reason why that message has to be deleted which will be written into the audit log.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== DeleteProfile ==&lt;br /&gt;
Delete an archiving or exporting profile.&lt;br /&gt;
&lt;br /&gt;
=== Arguments ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! width=150px | Name&lt;br /&gt;
! width=120px | Type&lt;br /&gt;
! Description&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;id&amp;lt;/tt&amp;gt;&lt;br /&gt;
| number &lt;br /&gt;
| Unique ID of profile.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== DeleteUser ==&lt;br /&gt;
Delete a MailStore user.&lt;br /&gt;
Neither the user's archive nor the user's archive emails are deleted when deleting a user.&lt;br /&gt;
&lt;br /&gt;
=== Arguments ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! width=150px | Name&lt;br /&gt;
! width=120px | Type&lt;br /&gt;
! Description&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;userName&amp;lt;/tt&amp;gt;&lt;br /&gt;
| string &lt;br /&gt;
| User name of MailStore user.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== DetachStore ==&lt;br /&gt;
Detach an archive store.&lt;br /&gt;
&lt;br /&gt;
=== Arguments ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! width=150px | Name&lt;br /&gt;
! width=120px | Type&lt;br /&gt;
! Description&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;id&amp;lt;/tt&amp;gt;&lt;br /&gt;
| number &lt;br /&gt;
| Unique ID of archive store.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== DisableMFA ==&lt;br /&gt;
Disables multi-factor authentication of a user.&lt;br /&gt;
&lt;br /&gt;
=== Arguments ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! width=150px | Name&lt;br /&gt;
! width=120px | Type&lt;br /&gt;
! Description&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;userName&amp;lt;/tt&amp;gt;&lt;br /&gt;
| string &lt;br /&gt;
| The user name of the user for whom MFA shall be disabled.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
[[Administration_API_-_Function_Reference#InitializeMFA|InitializeMFA]] enables multi-factor authentication of a user.&lt;br /&gt;
&lt;br /&gt;
== GetActiveSessions ==&lt;br /&gt;
Get list of current user sessions.&lt;br /&gt;
&lt;br /&gt;
== GetChildFolders ==&lt;br /&gt;
Get child folders.&lt;br /&gt;
Depending on compliance settings this method may return only the first folder hierarchy level.&lt;br /&gt;
&lt;br /&gt;
=== Arguments ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! width=150px | Name&lt;br /&gt;
! width=120px | Type&lt;br /&gt;
! Description&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;folder&amp;lt;/tt&amp;gt;&lt;br /&gt;
| string (optional)&lt;br /&gt;
| Parent folder whose child folders should be returned. If omitted, all archives and folder will be returned.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;maxLevels&amp;lt;/tt&amp;gt;&lt;br /&gt;
| number (optional)&lt;br /&gt;
| Depth of child folders.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== GetComplianceConfiguration ==&lt;br /&gt;
Get current compliance configuration settings.&lt;br /&gt;
&lt;br /&gt;
== CreateCredential ==&lt;br /&gt;
Create a new credential object that can be used by directory configuration settings or profiles.&lt;br /&gt;
&lt;br /&gt;
=== Arguments ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! width=150px | Name&lt;br /&gt;
! width=120px | Type&lt;br /&gt;
! Description&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;type&amp;lt;/tt&amp;gt;&lt;br /&gt;
| string&lt;br /&gt;
| Credential type. Supported values are:&amp;lt;br/&amp;gt;&lt;br /&gt;
* &amp;lt;tt&amp;gt;Office365_Modern&amp;lt;/tt&amp;gt; – credential for authenticating against Entra ID (Office 365 modern authentication).&amp;lt;br/&amp;gt;&lt;br /&gt;
* &amp;lt;tt&amp;gt;SignedEnvelope&amp;lt;/tt&amp;gt; – credential used for an export to MailStore Cloud.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;description&amp;lt;/tt&amp;gt;&lt;br /&gt;
| string&lt;br /&gt;
| Human readable description of the credential.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;tenantId&amp;lt;/tt&amp;gt;&lt;br /&gt;
| string (optional)&lt;br /&gt;
| Tenant identifier used for Office365_Modern type credentials.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;applicationId&amp;lt;/tt&amp;gt;&lt;br /&gt;
| string (optional)&lt;br /&gt;
| Application/client identifier used for Office365_Modern type credentials.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== DeleteCredential ==&lt;br /&gt;
Delete an existing credential object.&lt;br /&gt;
&lt;br /&gt;
=== Arguments ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! width=150px | Name&lt;br /&gt;
! width=120px | Type&lt;br /&gt;
! Description&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;id&amp;lt;/tt&amp;gt;&lt;br /&gt;
| int&lt;br /&gt;
| Unique ID of the credential to delete.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== GetCredential ==&lt;br /&gt;
Get details of a single credential object.&lt;br /&gt;
&lt;br /&gt;
=== Arguments ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! width=150px | Name&lt;br /&gt;
! width=120px | Type&lt;br /&gt;
! Description&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;id&amp;lt;/tt&amp;gt;&lt;br /&gt;
| int&lt;br /&gt;
| Unique ID of the credential whose details should be returned.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== GetCredentials ==&lt;br /&gt;
Get the list of all credential objects and their details.&lt;br /&gt;
&lt;br /&gt;
== SetCredentialDescription ==&lt;br /&gt;
Set the description of an existing credential object.&lt;br /&gt;
&lt;br /&gt;
=== Arguments ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! width=150px | Name&lt;br /&gt;
! width=120px | Type&lt;br /&gt;
! Description&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;id&amp;lt;/tt&amp;gt;&lt;br /&gt;
| int&lt;br /&gt;
| Unique ID of the credential to modify.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;description&amp;lt;/tt&amp;gt;&lt;br /&gt;
| string&lt;br /&gt;
| New human readable description of the credential.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== SetCredentialSettings ==&lt;br /&gt;
Change configuration settings of an existing credential object.&lt;br /&gt;
&lt;br /&gt;
=== Arguments ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! width=150px | Name&lt;br /&gt;
! width=120px | Type&lt;br /&gt;
! Description&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;id&amp;lt;/tt&amp;gt;&lt;br /&gt;
| int&lt;br /&gt;
| Unique ID of the credential to modify.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;createNewCertificate&amp;lt;/tt&amp;gt;&lt;br /&gt;
| bool (optional)&lt;br /&gt;
| Indicates whether a new certificate should be created for this credential (&amp;lt;tt&amp;gt;true&amp;lt;/tt&amp;gt;) or the existing certificate settings should be kept (&amp;lt;tt&amp;gt;false&amp;lt;/tt&amp;gt;).&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;tenantId&amp;lt;/tt&amp;gt;&lt;br /&gt;
| string (optional)&lt;br /&gt;
| Tenant identifier used for Office365_Modern type credentials.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;applicationId&amp;lt;/tt&amp;gt;&lt;br /&gt;
| string (optional)&lt;br /&gt;
| Application/client identifier used for Office365_Modern type credentials.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== GetDirectoryServicesConfiguration ==&lt;br /&gt;
Get current Directory Services configuration settings.&lt;br /&gt;
&lt;br /&gt;
== GetFolderStatistics ==&lt;br /&gt;
Get folder statistics.&lt;br /&gt;
&lt;br /&gt;
== GetJobResults ==&lt;br /&gt;
Retrieves list of finished job executions.&lt;br /&gt;
&lt;br /&gt;
=== Arguments ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! width=150px | Name&lt;br /&gt;
! width=120px | Type&lt;br /&gt;
! Description&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;fromIncluding&amp;lt;/tt&amp;gt;&lt;br /&gt;
| string &lt;br /&gt;
| Beginning of time range to fetch.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;toExcluding&amp;lt;/tt&amp;gt;&lt;br /&gt;
| string &lt;br /&gt;
| End of time range to fetch.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;timeZoneId&amp;lt;/tt&amp;gt;&lt;br /&gt;
| string &lt;br /&gt;
| The id of the time zone the date should be converted to, e.g. $Local, which represents the time zone of the operating system.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;jobId&amp;lt;/tt&amp;gt;&lt;br /&gt;
| number (optional)&lt;br /&gt;
| The job id for which to retrieve results.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Interactive Management Shell Example: ''GetJobResults --fromIncluding=&amp;quot;2022-12-01T00:00:00&amp;quot; --toExcluding=&amp;quot;2023-01-01T00:00:00&amp;quot; --timeZoneId=&amp;quot;$Local&amp;quot; --jobId=1''&lt;br /&gt;
&lt;br /&gt;
Use the API command [[Administration_API_-_Function_Reference#GetTimeZones|GetTimeZones]] to retrieve a list of all available time zones and their ids.&lt;br /&gt;
&lt;br /&gt;
== GetJobs ==&lt;br /&gt;
Retrieve list of jobs.&lt;br /&gt;
&lt;br /&gt;
== GetLicenseInformation ==&lt;br /&gt;
Retrieve license information.&lt;br /&gt;
&lt;br /&gt;
Example license information object:&lt;br /&gt;
&lt;br /&gt;
 {&lt;br /&gt;
  &amp;quot;productKey&amp;quot;: &amp;quot;YOUR-MAIL-STORE-PRODUCT-KEY&amp;quot;,&lt;br /&gt;
  &amp;quot;productVersion&amp;quot;: &amp;quot;13.1.0.12345&amp;quot;,&lt;br /&gt;
  &amp;quot;maxNamedUsers&amp;quot;: 100,&lt;br /&gt;
  &amp;quot;namedUsers&amp;quot;: 95,&lt;br /&gt;
  &amp;quot;unusedNamedUsers&amp;quot;: 5,&lt;br /&gt;
  &amp;quot;supportExpiryDate&amp;quot;: &amp;quot;2023-12-31&amp;quot;,&lt;br /&gt;
  &amp;quot;supportLevel&amp;quot;: &amp;quot;Premium Service&amp;quot;,&lt;br /&gt;
  &amp;quot;validFrom&amp;quot;: null,&lt;br /&gt;
  &amp;quot;validTo&amp;quot;: null,&lt;br /&gt;
  &amp;quot;licensedTo&amp;quot;: &amp;quot;MailStore Software GmbH&amp;quot;,&lt;br /&gt;
  &amp;quot;machineName&amp;quot;: &amp;quot;MAILSTORE&amp;quot;&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
The properties ''validFrom'' and ''validTo'' are only set when Trial or NFR product keys are used.&lt;br /&gt;
&lt;br /&gt;
== GetMessages ==&lt;br /&gt;
Get list of messages from a folder.&lt;br /&gt;
&lt;br /&gt;
=== Arguments ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! width=150px | Name&lt;br /&gt;
! width=120px | Type&lt;br /&gt;
! Description&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;folder&amp;lt;/tt&amp;gt;&lt;br /&gt;
| string (optional)&lt;br /&gt;
| Folder whose content to list.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== GetProfiles ==&lt;br /&gt;
Get list of archiving and exporting profiles.&lt;br /&gt;
&lt;br /&gt;
=== Arguments ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! width=150px | Name&lt;br /&gt;
! width=120px | Type&lt;br /&gt;
! Description&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;raw&amp;lt;/tt&amp;gt;&lt;br /&gt;
| bool &lt;br /&gt;
| Currently only 'true' is supported.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== GetRetentionPolicies ==&lt;br /&gt;
Get the retention policies.&lt;br /&gt;
&lt;br /&gt;
Example retention policies object:&lt;br /&gt;
&lt;br /&gt;
 [&lt;br /&gt;
   {&lt;br /&gt;
     &amp;quot;name&amp;quot;: &amp;quot;Keep All Mails for 10 Years&amp;quot;,&lt;br /&gt;
     &amp;quot;order&amp;quot;: 1,&lt;br /&gt;
     &amp;quot;enabled&amp;quot;: true,&lt;br /&gt;
     &amp;quot;searchCriteria&amp;quot;: {&lt;br /&gt;
      &amp;quot;from&amp;quot;: null,&lt;br /&gt;
      &amp;quot;to&amp;quot;: null,&lt;br /&gt;
      &amp;quot;query&amp;quot;: null,&lt;br /&gt;
      &amp;quot;queryAttachmentContents&amp;quot;: false,&lt;br /&gt;
      &amp;quot;queryAttachments&amp;quot;: false,&lt;br /&gt;
      &amp;quot;queryMessageBody&amp;quot;: false,&lt;br /&gt;
      &amp;quot;querySubject&amp;quot;: false,&lt;br /&gt;
      &amp;quot;includedArchives&amp;quot;: null,&lt;br /&gt;
      &amp;quot;excludedArchives&amp;quot;: [&lt;br /&gt;
        &amp;quot;admin&amp;quot;&lt;br /&gt;
        ]&lt;br /&gt;
      },&lt;br /&gt;
     &amp;quot;period&amp;quot;: 10,&lt;br /&gt;
     &amp;quot;periodInterval&amp;quot;: &amp;quot;year&amp;quot;,&lt;br /&gt;
     &amp;quot;referenceDateType&amp;quot;: &amp;quot;ArchiveDate&amp;quot;,&lt;br /&gt;
     &amp;quot;delete&amp;quot;: false&lt;br /&gt;
   }&lt;br /&gt;
 ]&lt;br /&gt;
&lt;br /&gt;
The ''referenceDateType'' can bei either ''ArchiveDate'' or ''MessageDate''.&lt;br /&gt;
&lt;br /&gt;
== GetServerInfo ==&lt;br /&gt;
Get MailStore Server version and machine name.&lt;br /&gt;
&lt;br /&gt;
== GetServiceConfiguration ==&lt;br /&gt;
Get MailStore Server service configuration. This includes the path to the Master Database, the location of the audit log, whether the different debug logs are enabled and the endpoint configuration.&lt;br /&gt;
&lt;br /&gt;
== GetSmtpSettings ==&lt;br /&gt;
Get current SMTP configuration.&lt;br /&gt;
&lt;br /&gt;
== GetStoreAutoCreateConfiguration ==&lt;br /&gt;
Get automatic archive store creation settings.&lt;br /&gt;
&lt;br /&gt;
== GetStoreIndexes ==&lt;br /&gt;
Get list of full text indexes.&lt;br /&gt;
&lt;br /&gt;
=== Arguments ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! width=150px | Name&lt;br /&gt;
! width=120px | Type&lt;br /&gt;
! Description&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;id&amp;lt;/tt&amp;gt;&lt;br /&gt;
| number (optional)&lt;br /&gt;
| Unique ID of archive store.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== GetStores ==&lt;br /&gt;
Get list of archive stores.&lt;br /&gt;
&lt;br /&gt;
=== Arguments ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! width=150px | Name&lt;br /&gt;
! width=120px | Type&lt;br /&gt;
! Description&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;includeSize&amp;lt;/tt&amp;gt;&lt;br /&gt;
| bool (optional)&lt;br /&gt;
| Includes size of archive store. Default: ''true''. May be slow when running on slow hardware.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== GetTimeZones ==&lt;br /&gt;
Get the list of available time zones and their IDs.&lt;br /&gt;
&lt;br /&gt;
The ''id'' of the output can be used as ''timeZoneId'' in [[Administration_API_-_Function_Reference#CreateJob|CreateJob]], [[Administration_API_-_Function_Reference#GetJobResults|GetJobResults]], [[Administration_API_-_Function_Reference#SetJobSchedule|SetJobSchedule]] and [[Administration_API_-_Function_Reference#SendStatusReport|SendStatusReport]] and as ''timeZoneID'' (with a capital ''ID'') in [[Administration_API_-_Function_Reference#GetWorkerResults|GetWorkerResults]].&lt;br /&gt;
&lt;br /&gt;
== GetUserInfo ==&lt;br /&gt;
Get detailed information about user.&lt;br /&gt;
&lt;br /&gt;
=== Arguments ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! width=150px | Name&lt;br /&gt;
! width=120px | Type&lt;br /&gt;
! Description&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;userName&amp;lt;/tt&amp;gt;&lt;br /&gt;
| string &lt;br /&gt;
| User name of MailStore user&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== GetUsers ==&lt;br /&gt;
Get list of users.&lt;br /&gt;
&lt;br /&gt;
== GetWorkerResults ==&lt;br /&gt;
Get results of profile executions.&lt;br /&gt;
&lt;br /&gt;
=== Arguments ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! width=150px | Name&lt;br /&gt;
! width=120px | Type&lt;br /&gt;
! Description&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;fromIncluding&amp;lt;/tt&amp;gt;&lt;br /&gt;
| string &lt;br /&gt;
| Beginning of time range to fetch.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;toExcluding&amp;lt;/tt&amp;gt;&lt;br /&gt;
| string &lt;br /&gt;
| End of time range to fetch.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;timeZoneID&amp;lt;/tt&amp;gt;&lt;br /&gt;
| string &lt;br /&gt;
| The id of the time zone the date should be converted to, e.g. $Local, which represents the time zone of the operating system.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;profileID&amp;lt;/tt&amp;gt;&lt;br /&gt;
| number (optional)&lt;br /&gt;
| Filter results by given profile ID.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;userName&amp;lt;/tt&amp;gt;&lt;br /&gt;
| string (optional)&lt;br /&gt;
| If given, must be equal to the current username. Filters results by current user.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Interactive Management Shell Example: ''GetWorkerResults --fromIncluding=&amp;quot;2022-01-01T00:00:00&amp;quot; --toExcluding=&amp;quot;2023-01-01T00:00:00&amp;quot; --timeZoneID=&amp;quot;$Local&amp;quot; --profileID=1 --userName=&amp;quot;admin&amp;quot;''&lt;br /&gt;
&lt;br /&gt;
Use the API command [[Administration_API_-_Function_Reference#GetTimeZones|GetTimeZones]] to retrieve a list of all available time zones and their ids.&lt;br /&gt;
&lt;br /&gt;
Be aware that ''timeZoneID'' has to be written with a capital ''ID'' where all other commands with a ''timeZoneId'' are expecting ''Id''.&lt;br /&gt;
&lt;br /&gt;
== GetWorkerResultReport ==&lt;br /&gt;
Get the details of a profile execution result.&lt;br /&gt;
&lt;br /&gt;
=== Arguments ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! width=150px | Name&lt;br /&gt;
! width=120px | Type&lt;br /&gt;
! Description&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;id&amp;lt;/tt&amp;gt;&lt;br /&gt;
| number&lt;br /&gt;
| The ID of the result for which the details should be fetched.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Use the [[Administration_API_-_Function_Reference#GetWorkerResults|GetWorkerResults]] command to get the IDs of results.&lt;br /&gt;
&lt;br /&gt;
== InitializeMFA ==&lt;br /&gt;
Initializes multi-factor authentication of a user. During the next login with an MFA-capable client, the user has to scan a QR code with a TOTP compatible app and has to enter an MFA code to be able to login.&lt;br /&gt;
When ''InitializeMFA'' is called when MFA is already active for a user, a new secret is generated and the user has to scan the QR code again. This also invalidates all trusted device tokens of a user.&lt;br /&gt;
&lt;br /&gt;
=== Arguments ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! width=150px | Name&lt;br /&gt;
! width=120px | Type&lt;br /&gt;
! Description&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;userName&amp;lt;/tt&amp;gt;&lt;br /&gt;
| string &lt;br /&gt;
| The user name of the user for whom MFA shall be initialized.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
[[Administration_API_-_Function_Reference#DisableMFA|DisableMFA]] disables multi-factor authentication of a user.&lt;br /&gt;
&lt;br /&gt;
== MaintainFileSystemDatabases ==&lt;br /&gt;
Run database maintenance on all databases of file system based archive stores.&lt;br /&gt;
&lt;br /&gt;
== MergeStore ==&lt;br /&gt;
Merge two archive stores.&lt;br /&gt;
&lt;br /&gt;
=== Arguments ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! width=150px | Name&lt;br /&gt;
! width=120px | Type&lt;br /&gt;
! Description&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;id&amp;lt;/tt&amp;gt;&lt;br /&gt;
| number &lt;br /&gt;
| Unique ID of destination archive store.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;sourceId&amp;lt;/tt&amp;gt;&lt;br /&gt;
| number &lt;br /&gt;
| Unique ID of source archive store.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== MoveFolder ==&lt;br /&gt;
Move folder.&lt;br /&gt;
&lt;br /&gt;
=== Arguments ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! width=150px | Name&lt;br /&gt;
! width=120px | Type&lt;br /&gt;
! Description&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;fromFolder&amp;lt;/tt&amp;gt;&lt;br /&gt;
| string &lt;br /&gt;
| Old folder name.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;toFolder&amp;lt;/tt&amp;gt;&lt;br /&gt;
| string &lt;br /&gt;
| New folder name.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== ProcessRetentionPolicies ==&lt;br /&gt;
Processes the configured retention policies.&lt;br /&gt;
&lt;br /&gt;
== RebuildSelectedStoreIndexes ==&lt;br /&gt;
Rebuild all full-text indexes selected for rebuild.&lt;br /&gt;
&lt;br /&gt;
== RebuildStoreIndex ==&lt;br /&gt;
Rebuild search index for given archive folder.&lt;br /&gt;
&lt;br /&gt;
=== Arguments ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! width=150px | Name&lt;br /&gt;
! width=120px | Type&lt;br /&gt;
! Description&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;id&amp;lt;/tt&amp;gt;&lt;br /&gt;
| number &lt;br /&gt;
| Unique ID of archive store.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;folder&amp;lt;/tt&amp;gt;&lt;br /&gt;
| string &lt;br /&gt;
| Name of folder name.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== RecoverStore ==&lt;br /&gt;
Recreates a broken Firebird database from recovery records. The archive store must have been upgraded to the latest version and the recovery records must not be corrupt. The archive store must be in the ''Disabled'' or ''Error'' state.&lt;br /&gt;
&lt;br /&gt;
=== Arguments ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! width=150px | Name&lt;br /&gt;
! width=120px | Type&lt;br /&gt;
! Description&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;id&amp;lt;/tt&amp;gt;&lt;br /&gt;
| number &lt;br /&gt;
| Unique ID of archive store.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;encryptionKey&amp;lt;/tt&amp;gt;&lt;br /&gt;
| string (optional)&lt;br /&gt;
| Encryption key of the archive store. Must be given, when the encryption key cannot be read from the key file of the archive store.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;recoverDeletedMessages&amp;lt;/tt&amp;gt;&lt;br /&gt;
| bool (optional)&lt;br /&gt;
| Defines whether to recover deleted messages.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
When the ''recoverDeletedMessages'' parameter is set to ''true'', only deleted messages that still have leftovers in the recovery records can be recovered. When an archive store has been compacted with [[#CompactStore|CompactStore]] or recovery record files have grown to their auto-compacting size of 32 MiB these leftovers could already be removed and deleted messages cannot be recovered.&lt;br /&gt;
&lt;br /&gt;
== RecreateRecoveryRecords ==&lt;br /&gt;
Recreates broken Recovery Records of an archive store. Use [[#VerifyStore|VerifyStore]] or [[#VerifyStores|VerifyStores]] to verify the state of the Recovery Records. Cannot be used for external archive stores that store their content in the database.&lt;br /&gt;
&lt;br /&gt;
=== Arguments ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! width=150px | Name&lt;br /&gt;
! width=120px | Type&lt;br /&gt;
! Description&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;id&amp;lt;/tt&amp;gt;&lt;br /&gt;
| number &lt;br /&gt;
| Unique ID of archive store.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== RefreshAllStoreStatistics ==&lt;br /&gt;
Refresh statistics of all archive stores.&lt;br /&gt;
&lt;br /&gt;
== RenameJob ==&lt;br /&gt;
Rename job.&lt;br /&gt;
&lt;br /&gt;
=== Arguments ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! width=150px | Name&lt;br /&gt;
! width=120px | Type&lt;br /&gt;
! Description&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;id&amp;lt;/tt&amp;gt;&lt;br /&gt;
| number (optional)&lt;br /&gt;
| The unique identifier of the job to be renamed.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;name&amp;lt;/tt&amp;gt;&lt;br /&gt;
| string (optional)&lt;br /&gt;
| The new job name.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== RenameStore ==&lt;br /&gt;
Rename archive store&lt;br /&gt;
&lt;br /&gt;
=== Arguments ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! width=150px | Name&lt;br /&gt;
! width=120px | Type&lt;br /&gt;
! Description&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;id&amp;lt;/tt&amp;gt;&lt;br /&gt;
| number &lt;br /&gt;
| Unique ID of archive store.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;name&amp;lt;/tt&amp;gt;&lt;br /&gt;
| string &lt;br /&gt;
| New name of archive store.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== RenameUser ==&lt;br /&gt;
Rename a MailStore user.&lt;br /&gt;
&lt;br /&gt;
=== Arguments ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! width=150px | Name&lt;br /&gt;
! width=120px | Type&lt;br /&gt;
! Description&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;oldUserName&amp;lt;/tt&amp;gt;&lt;br /&gt;
| string &lt;br /&gt;
| Old user name.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;newUserName&amp;lt;/tt&amp;gt;&lt;br /&gt;
| string &lt;br /&gt;
| New user name.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== RenewMasterKey ==&lt;br /&gt;
Renews the master key which is used to encrypt the encryption keys.&lt;br /&gt;
&lt;br /&gt;
== RepairStoreDatabase ==&lt;br /&gt;
Tries to resolve certain issues with archive store databases (e.g. missing database indexes).&lt;br /&gt;
&lt;br /&gt;
=== Arguments ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! width=150px | Name&lt;br /&gt;
! width=120px | Type&lt;br /&gt;
! Description&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;id&amp;lt;/tt&amp;gt;&lt;br /&gt;
| number &lt;br /&gt;
| Unique ID of archive store.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== RetryOpenStores ==&lt;br /&gt;
Retry opening stores that failed previously.&lt;br /&gt;
&lt;br /&gt;
== RunJobAsync ==&lt;br /&gt;
Run an existing job.&lt;br /&gt;
&lt;br /&gt;
=== Arguments ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! width=150px | Name&lt;br /&gt;
! width=120px | Type&lt;br /&gt;
! Description&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;id&amp;lt;/tt&amp;gt;&lt;br /&gt;
| number &lt;br /&gt;
| The identifier of the job to be run.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== RunProfile ==&lt;br /&gt;
Run an existing archiving or exporting profile. Only profiles that are executed on server side can be started by this command. That are all profiles which are listed under ''E-Mail Servers'' in the MailStore Client. Client side profiles can be started by using the [[MailStore_Server_Management_Shell|MailStoreCmd]] and the commands ''import-execute'' and ''export-execute''.&lt;br /&gt;
&lt;br /&gt;
=== Arguments ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! width=150px | Name&lt;br /&gt;
! width=120px | Type&lt;br /&gt;
! Description&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;id&amp;lt;/tt&amp;gt;&lt;br /&gt;
| number &lt;br /&gt;
| Unique profile ID.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== RunTemporaryProfile ==&lt;br /&gt;
Run a temporary/non-existent profile.  Only profiles that are executed on server side can be started by this command. That are all profiles which are listed under ''E-Mail Servers'' in the MailStore Client.&lt;br /&gt;
&lt;br /&gt;
=== Arguments ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! width=150px | Name&lt;br /&gt;
! width=120px | Type&lt;br /&gt;
! Description&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;properties&amp;lt;/tt&amp;gt;&lt;br /&gt;
| json &lt;br /&gt;
| Profile properties.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;raw&amp;lt;/tt&amp;gt;&lt;br /&gt;
| bool &lt;br /&gt;
| Currently only 'true' is supported.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Argument Values ===&lt;br /&gt;
&lt;br /&gt;
==== properties ====&lt;br /&gt;
To receive available profile properties create a profile of the desired type via MailStore Client and use the GetProfiles method to receive supported value.&lt;br /&gt;
&lt;br /&gt;
== SelectAllStoreIndexesForRebuild ==&lt;br /&gt;
Select all full-text indexes for rebuild.&lt;br /&gt;
&lt;br /&gt;
== SendStatusReport ==&lt;br /&gt;
Send a status report to the given recipients.&lt;br /&gt;
&lt;br /&gt;
=== Arguments ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! width=150px | Name&lt;br /&gt;
! width=120px | Type&lt;br /&gt;
! Description&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;timespan&amp;lt;/tt&amp;gt;&lt;br /&gt;
| string&lt;br /&gt;
| Timespan that is covered by the status report.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;timeZoneId&amp;lt;/tt&amp;gt;&lt;br /&gt;
| string&lt;br /&gt;
| The id of the time zone the date should be converted to, e.g. $Local, which represents the time zone of the operating system.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;recipients&amp;lt;/tt&amp;gt;&lt;br /&gt;
| string&lt;br /&gt;
| Comma separated list of recipients that will receive the status report.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Use the API command [[Administration_API_-_Function_Reference#GetTimeZones|GetTimeZones]] to retrieve a list of all available time zones and their ids.&lt;br /&gt;
=== Argument Values ===&lt;br /&gt;
&lt;br /&gt;
==== Timespan ====&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! width=270px | Name&lt;br /&gt;
! Description&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;today&amp;lt;/tt&amp;gt;&lt;br /&gt;
| The day when the status report is sent.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;yesterday&amp;lt;/tt&amp;gt;&lt;br /&gt;
| The day before the status report is sent.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;thisweek&amp;lt;/tt&amp;gt;&lt;br /&gt;
| The week when the status report is sent.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;lastweek&amp;lt;/tt&amp;gt;&lt;br /&gt;
| The week before the status report is sent.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;thismonth&amp;lt;/tt&amp;gt;&lt;br /&gt;
| The month when the status report is sent.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;lastmonth&amp;lt;/tt&amp;gt;&lt;br /&gt;
| The month before the status report is sent.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== SetComplianceConfiguration ==&lt;br /&gt;
Set compliance configuration settings.&lt;br /&gt;
&lt;br /&gt;
=== Arguments ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! width=150px | Name&lt;br /&gt;
! width=120px | Type&lt;br /&gt;
! Description&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;config&amp;lt;/tt&amp;gt;&lt;br /&gt;
| json &lt;br /&gt;
| Compliance configuration.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Argument Values ===&lt;br /&gt;
&lt;br /&gt;
==== config ====&lt;br /&gt;
Use [[Administration_API_-_Function_Reference#GetComplianceConfiguration|GetComplianceConfiguration]] to receive supported values.&lt;br /&gt;
&lt;br /&gt;
Example settings object:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;js&amp;quot; smart-tabs=&amp;quot;true&amp;quot; toolbar=&amp;quot;false&amp;quot; gutter=&amp;quot;false&amp;quot;&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
  &amp;quot;adminEmailPreviewEnabled&amp;quot;: true,&lt;br /&gt;
  &amp;quot;legalHoldEnabled&amp;quot;: false,&lt;br /&gt;
  &amp;quot;passwordPolicyEnabled&amp;quot;: true,&lt;br /&gt;
  &amp;quot;logSuccessfulUserActivities&amp;quot;: [&lt;br /&gt;
    &amp;quot;AdminRestored&amp;quot;,&lt;br /&gt;
    &amp;quot;ComplianceChangeSettings&amp;quot;,&lt;br /&gt;
    &amp;quot;FileGroupAttach&amp;quot;,&lt;br /&gt;
    &amp;quot;FileGroupCreate&amp;quot;,&lt;br /&gt;
    &amp;quot;FileGroupDetach&amp;quot;,&lt;br /&gt;
    &amp;quot;FileGroupRename&amp;quot;,&lt;br /&gt;
    &amp;quot;FileGroupSetProperties&amp;quot;,&lt;br /&gt;
    &amp;quot;FileGroupSetRequestedState&amp;quot;,&lt;br /&gt;
    &amp;quot;ProfileChangeUserName&amp;quot;,&lt;br /&gt;
    &amp;quot;UserAdd&amp;quot;,&lt;br /&gt;
    &amp;quot;UserDelete&amp;quot;,&lt;br /&gt;
    &amp;quot;UserRename&amp;quot;,&lt;br /&gt;
    &amp;quot;UserSetFolderAccess&amp;quot;,&lt;br /&gt;
    &amp;quot;UserSetMappings&amp;quot;,&lt;br /&gt;
    &amp;quot;UserUpdate&amp;quot;&lt;br /&gt;
  ]&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== SetDirectoryServicesConfiguration ==&lt;br /&gt;
Set directory services configuration settings.&lt;br /&gt;
&lt;br /&gt;
=== Arguments ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! width=150px | Name&lt;br /&gt;
! width=120px | Type&lt;br /&gt;
! Description&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;config&amp;lt;/tt&amp;gt;&lt;br /&gt;
| json &lt;br /&gt;
| Directory services configuration.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Argument Values ===&lt;br /&gt;
&lt;br /&gt;
==== config ====&lt;br /&gt;
Use GetDirectoryServicesConfiguration to receive supported value.&lt;br /&gt;
&lt;br /&gt;
== SetJobEnabled ==&lt;br /&gt;
Set enabled status of a job.&lt;br /&gt;
&lt;br /&gt;
=== Arguments ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! width=150px | Name&lt;br /&gt;
! width=120px | Type&lt;br /&gt;
! Description&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;id&amp;lt;/tt&amp;gt;&lt;br /&gt;
| number (optional)&lt;br /&gt;
| The unique identifier of the job to be modified.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;enabled&amp;lt;/tt&amp;gt;&lt;br /&gt;
| bool (optional)&lt;br /&gt;
| Boolean value of '''enabled''' attribute.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== SetJobSchedule ==&lt;br /&gt;
Modify the schedule of a job.&lt;br /&gt;
&lt;br /&gt;
=== Arguments ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! width=150px | Name&lt;br /&gt;
! width=120px | Type&lt;br /&gt;
! Description&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;id&amp;lt;/tt&amp;gt;&lt;br /&gt;
| number &lt;br /&gt;
| The unique identifier of the job to be modified.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;timeZoneId&amp;lt;/tt&amp;gt;&lt;br /&gt;
| string &lt;br /&gt;
| The id of the time zone the date should be converted to, e.g. $Local, which represents the time zone of the operating system.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;date&amp;lt;/tt&amp;gt;&lt;br /&gt;
| string (optional)&lt;br /&gt;
| Datetime string (YYYY-MM-DDThh:mm:ss) for running the job once.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;interval&amp;lt;/tt&amp;gt;&lt;br /&gt;
| number (optional)&lt;br /&gt;
| Interval for running job.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;time&amp;lt;/tt&amp;gt;&lt;br /&gt;
| string (optional)&lt;br /&gt;
| Time for running job. Without additional parameter, this means daily execution.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;dayOfWeek&amp;lt;/tt&amp;gt;&lt;br /&gt;
| string (optional)&lt;br /&gt;
| Day of week to run job. Parameter &amp;quot;time&amp;quot; also required.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;dayOfMonth&amp;lt;/tt&amp;gt;&lt;br /&gt;
| string (optional)&lt;br /&gt;
| Day of month to run job. Parameter &amp;quot;time&amp;quot; also required. dayOfWeek can optionally be used to define further.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Use the API command [[Administration_API_-_Function_Reference#GetTimeZones|GetTimeZones]] to retrieve a list of all available time zones and their ids.&lt;br /&gt;
=== Argument Values ===&lt;br /&gt;
&lt;br /&gt;
==== dayOfWeek ====&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! width=270px | Name&lt;br /&gt;
! Description&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;Sunday&amp;lt;/tt&amp;gt;&lt;br /&gt;
| Sunday&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;Monday&amp;lt;/tt&amp;gt;&lt;br /&gt;
| Monday&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;Tuesday&amp;lt;/tt&amp;gt;&lt;br /&gt;
| Tuesday&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;Wednesday&amp;lt;/tt&amp;gt;&lt;br /&gt;
| Wednesday&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;Thursday&amp;lt;/tt&amp;gt;&lt;br /&gt;
| Thursday&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;Friday&amp;lt;/tt&amp;gt;&lt;br /&gt;
| Friday&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;Saturday&amp;lt;/tt&amp;gt;&lt;br /&gt;
| Saturday&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==== dayOfMonth ====&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! width=270px | Name&lt;br /&gt;
! Description&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;1 to 31&amp;lt;/tt&amp;gt;&lt;br /&gt;
| Numeric representation of day of month.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;Last&amp;lt;/tt&amp;gt;&lt;br /&gt;
| Last day of month.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==== interval ====&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! width=270px | Name&lt;br /&gt;
! Description&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;5&amp;lt;/tt&amp;gt;&lt;br /&gt;
| Every 5 minutes.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;10&amp;lt;/tt&amp;gt;&lt;br /&gt;
| Every 10 minutes.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;15&amp;lt;/tt&amp;gt;&lt;br /&gt;
| Every 15 minutes.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;20&amp;lt;/tt&amp;gt;&lt;br /&gt;
| Every 20 minutes.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;30&amp;lt;/tt&amp;gt;&lt;br /&gt;
| Every 30 minutes.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;60&amp;lt;/tt&amp;gt;&lt;br /&gt;
| Every hour.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;120&amp;lt;/tt&amp;gt;&lt;br /&gt;
| Every 2 hours.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;180&amp;lt;/tt&amp;gt;&lt;br /&gt;
| Every 3 hours.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;260&amp;lt;/tt&amp;gt;&lt;br /&gt;
| Every 4 hours.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;360&amp;lt;/tt&amp;gt;&lt;br /&gt;
| Every 6 hours.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;720&amp;lt;/tt&amp;gt;&lt;br /&gt;
| Every 12 hours.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== SetProfileServerSideExecution ==&lt;br /&gt;
Disables or enables the automatic server-sided execution with its parameters.&lt;br /&gt;
&lt;br /&gt;
=== Arguments ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! width=150px | Name&lt;br /&gt;
! width=120px | Type&lt;br /&gt;
! Description&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;id&amp;lt;/tt&amp;gt;&lt;br /&gt;
| number &lt;br /&gt;
| The unique profile ID of the profile to be modified.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;automatic&amp;lt;/tt&amp;gt;&lt;br /&gt;
| bool&lt;br /&gt;
| Enables (true) or disables (false) the profile's server-side automation.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;automaticPauseBetweenExecutions&amp;lt;/tt&amp;gt;&lt;br /&gt;
| number (optional) &lt;br /&gt;
| Integer value (0 - 2147483647) of seconds to pause between re-executing an automatic profile.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;automaticMaintenanceWindows&amp;lt;/tt&amp;gt;&lt;br /&gt;
| string (optional)&lt;br /&gt;
| TimeSpan string (hh:mm-hh:mm, e.g. 22:00-04:00) for the time window where the execution should not be executed, e.g. to schedule maintenance tasks.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Use the API command [[Administration_API_-_Function_Reference#GetProfiles|GetProfiles]] to retrieve a list of all profiles and their current &amp;quot;serverSideExecution&amp;quot; section details.&lt;br /&gt;
&lt;br /&gt;
The command can be executed with either the argument ''automatic=false'' and no additional parameters to disable the automation, or with ''automatic=true'' and at least the ''automaticPauseBetweenExecutions'' value given. The ''automaticMaintenanceWindows'' parameter is optional. Setting an already automated profile to automatic again, will restart the profile.&lt;br /&gt;
&lt;br /&gt;
== SetRetentionPolicies ==&lt;br /&gt;
Set retention policies.&lt;br /&gt;
&lt;br /&gt;
=== Arguments ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! width=150px | Name&lt;br /&gt;
! width=120px | Type&lt;br /&gt;
! Description&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;config&amp;lt;/tt&amp;gt;&lt;br /&gt;
| json&lt;br /&gt;
| Retention policy configuration.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
To get example policies use the client to create retention policies manually. Then use the API command [[Administration_API_-_Function_Reference#GetRetentionPolicies|GetRetentionPolicies]] to retrieve the json values. &amp;lt;br&amp;gt;&lt;br /&gt;
Please be aware that the API is case-sensitive. Especially the archive inclusion/exclusion criteria must not contain upper case characters, as the user archives are always handled lower-case internally.&lt;br /&gt;
Due to a more complex distributed permission concept, retention policies can not be edited via the API for the MailStore Service Provider Edition.&lt;br /&gt;
&lt;br /&gt;
== SetServiceCertificate ==&lt;br /&gt;
Set the X509 certificate that is used by MailStore Server for incoming connections.&lt;br /&gt;
The certificate must already reside in the computer's local certificate store.&lt;br /&gt;
The thumbprint of the currently used certificate can be retrieved with [[Administration_API_-_Function_Reference#GetServiceConfiguration|GetServiceConfiguration]].&lt;br /&gt;
&lt;br /&gt;
=== Arguments ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! width=150px | Name&lt;br /&gt;
! width=120px | Type&lt;br /&gt;
! Description&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;thumbprint&amp;lt;/tt&amp;gt;&lt;br /&gt;
| string&lt;br /&gt;
| Thumbprint of X509 certificate.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== SetSmtpSettings ==&lt;br /&gt;
Set SMTP configuration.&lt;br /&gt;
&lt;br /&gt;
=== Arguments ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! width=150px | Name&lt;br /&gt;
! width=120px | Type&lt;br /&gt;
! Description&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;settings&amp;lt;/tt&amp;gt;&lt;br /&gt;
| json&lt;br /&gt;
| SMTP configuration.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Argument Values ===&lt;br /&gt;
&lt;br /&gt;
==== settings====&lt;br /&gt;
Example settings object:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;js&amp;quot; smart-tabs=&amp;quot;true&amp;quot; toolbar=&amp;quot;false&amp;quot; gutter=&amp;quot;false&amp;quot;&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
  &amp;quot;hostname&amp;quot;: &amp;quot;mail.example.com&amp;quot;,&lt;br /&gt;
  &amp;quot;port&amp;quot;: 587,&lt;br /&gt;
  &amp;quot;protocol&amp;quot;: &amp;quot;SMTP-TLS&amp;quot;,&lt;br /&gt;
  &amp;quot;ignoreSslPolicyErrors&amp;quot;: false,&lt;br /&gt;
  &amp;quot;authenticationRequired&amp;quot;: true,&lt;br /&gt;
  &amp;quot;username&amp;quot;: &amp;quot;sending.user@example.com&amp;quot;,&lt;br /&gt;
  &amp;quot;password&amp;quot;: &amp;quot;userpassword&amp;quot;,&lt;br /&gt;
  &amp;quot;fromDisplayName&amp;quot;: &amp;quot;Sending User&amp;quot;,&lt;br /&gt;
  &amp;quot;fromEmailAddress&amp;quot;: &amp;quot;sending.user@example.com&amp;quot;,&lt;br /&gt;
  &amp;quot;recipientEmailAddresses&amp;quot;: [&amp;quot;administrator@example.com&amp;quot;, &amp;quot;user@example.com&amp;quot;]&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== SetStoreAutoCreateConfiguration ==&lt;br /&gt;
Set configuration for automatic archive store creation.&lt;br /&gt;
&lt;br /&gt;
=== Arguments ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! width=150px | Name&lt;br /&gt;
! width=120px | Type&lt;br /&gt;
! Description&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;config&amp;lt;/tt&amp;gt;&lt;br /&gt;
| json &lt;br /&gt;
| Archive store automatic creation configuration.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Argument Values ===&lt;br /&gt;
&lt;br /&gt;
==== config ====&lt;br /&gt;
&amp;lt;source lang=&amp;quot;js&amp;quot; smart-tabs=&amp;quot;true&amp;quot; toolbar=&amp;quot;false&amp;quot; gutter=&amp;quot;false&amp;quot;&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
  &amp;quot;sizeThreshold&amp;quot; : int or null,&lt;br /&gt;
  &amp;quot;databaseBaseDirectory&amp;quot; : string,&lt;br /&gt;
  &amp;quot;contentBaseDirectory&amp;quot; : string,&lt;br /&gt;
  &amp;quot;indexBaseDirectory&amp;quot; : string&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== SetStoreProperties ==&lt;br /&gt;
Set properties of archive store.&lt;br /&gt;
&lt;br /&gt;
=== Arguments ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! width=150px | Name&lt;br /&gt;
! width=120px | Type&lt;br /&gt;
! Description&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;id&amp;lt;/tt&amp;gt;&lt;br /&gt;
| number &lt;br /&gt;
| Set properties of archive store.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;type&amp;lt;/tt&amp;gt;&lt;br /&gt;
| string (optional)&lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;databaseName&amp;lt;/tt&amp;gt;&lt;br /&gt;
| string (optional)&lt;br /&gt;
| Name of database on Microsoft SQL Server or PostgreSQL server.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;databasePath&amp;lt;/tt&amp;gt;&lt;br /&gt;
| string (optional)&lt;br /&gt;
| Path to directory in which database folder information and email meta data are stored.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;contentPath&amp;lt;/tt&amp;gt;&lt;br /&gt;
| string (optional)&lt;br /&gt;
| Path to directory in which email headers and contents are stored.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;indexPath&amp;lt;/tt&amp;gt;&lt;br /&gt;
| string (optional)&lt;br /&gt;
| Path to directory in which full text search indexes are stored.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;serverName&amp;lt;/tt&amp;gt;&lt;br /&gt;
| string (optional)&lt;br /&gt;
| Name of Microsoft SQL Server or PostgreSQL server.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;userName&amp;lt;/tt&amp;gt;&lt;br /&gt;
| string (optional)&lt;br /&gt;
| User name for accessing Microsoft SQL Server or PostgreSQL server.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;password&amp;lt;/tt&amp;gt;&lt;br /&gt;
| string (optional)&lt;br /&gt;
| Password for accessing Microsoft SQL Server or PostgreSQL server.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Argument Values ===&lt;br /&gt;
&lt;br /&gt;
==== type ====&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! width=270px | Name&lt;br /&gt;
! Description&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;FileSystemInternal&amp;lt;/tt&amp;gt;&lt;br /&gt;
| Advanced file system-based archive store.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;SQLServer&amp;lt;/tt&amp;gt;&lt;br /&gt;
| Microsoft SQL Server-based archive store.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;PostgreSQL&amp;lt;/tt&amp;gt;&lt;br /&gt;
| PostgreSQL server-based archive store.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== SetStoreRequestedState ==&lt;br /&gt;
Set state of archive store.&lt;br /&gt;
&lt;br /&gt;
=== Arguments ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! width=150px | Name&lt;br /&gt;
! width=120px | Type&lt;br /&gt;
! Description&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;id&amp;lt;/tt&amp;gt;&lt;br /&gt;
| number &lt;br /&gt;
| Unique ID of archive store.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;requestedState&amp;lt;/tt&amp;gt;&lt;br /&gt;
| string (optional)&lt;br /&gt;
| State of archive store after attaching.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Argument Values ===&lt;br /&gt;
&lt;br /&gt;
==== requestedState ====&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! width=270px | Name&lt;br /&gt;
! Description&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;current&amp;lt;/tt&amp;gt;&lt;br /&gt;
| Same as Normal but new messages will be archived in the archive store that is set to Current.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;normal&amp;lt;/tt&amp;gt;&lt;br /&gt;
| The content of archives store is available to users and can be modified if the user has the appropriate permission.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;writeProtected&amp;lt;/tt&amp;gt;&lt;br /&gt;
| The content of write protected archive stores is available to users, but cannot be modified (e.g. delete or move messages, rename or move folders)&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;disabled&amp;lt;/tt&amp;gt;&lt;br /&gt;
| Disabled archive stores are not in use but the instance still knows about their existence. Therefore the content is not available to users.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== SetUserAuthentication ==&lt;br /&gt;
Set authentication settings of a MailStore user.&lt;br /&gt;
&lt;br /&gt;
=== Arguments ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! width=150px | Name&lt;br /&gt;
! width=120px | Type&lt;br /&gt;
! Description&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;userName&amp;lt;/tt&amp;gt;&lt;br /&gt;
| string &lt;br /&gt;
| User name of MailStore user.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;authentication&amp;lt;/tt&amp;gt;&lt;br /&gt;
| string &lt;br /&gt;
| Authentication method. Either 'integrated' or 'directoryServices'.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== SetUserDistinguishedName ==&lt;br /&gt;
Set the LDAP distinguished name of a MailStore user.&lt;br /&gt;
&lt;br /&gt;
=== Arguments ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! width=150px | Name&lt;br /&gt;
! width=120px | Type&lt;br /&gt;
! Description&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;userName&amp;lt;/tt&amp;gt;&lt;br /&gt;
| string &lt;br /&gt;
| User name of MailStore user.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;distinguishedName&amp;lt;/tt&amp;gt;&lt;br /&gt;
| string (optional)&lt;br /&gt;
| LDAP DN string.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== SetUserEmailAddresses ==&lt;br /&gt;
Set email addresses of MailStore user.&lt;br /&gt;
&lt;br /&gt;
=== Arguments ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! width=150px | Name&lt;br /&gt;
! width=120px | Type&lt;br /&gt;
! Description&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;userName&amp;lt;/tt&amp;gt;&lt;br /&gt;
| string &lt;br /&gt;
| User name of MailStore user.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;emailAddresses&amp;lt;/tt&amp;gt;&lt;br /&gt;
| string (optional)&lt;br /&gt;
| List of email addresses.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== SetUserFullName ==&lt;br /&gt;
Set full name of MailStore user.&lt;br /&gt;
&lt;br /&gt;
=== Arguments ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! width=150px | Name&lt;br /&gt;
! width=120px | Type&lt;br /&gt;
! Description&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;userName&amp;lt;/tt&amp;gt;&lt;br /&gt;
| string &lt;br /&gt;
| User name of MailStore user.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;fullName&amp;lt;/tt&amp;gt;&lt;br /&gt;
| string (optional)&lt;br /&gt;
| Full name of MailStore user.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== SetUserLoginPrivileges ==&lt;br /&gt;
Set login privileges of a MailStore user.&lt;br /&gt;
&lt;br /&gt;
=== Arguments ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! width=150px | Name&lt;br /&gt;
! width=120px | Type&lt;br /&gt;
! Description&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;userName&amp;lt;/tt&amp;gt;&lt;br /&gt;
| string &lt;br /&gt;
| User name of MailStore user.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;loginPrivileges&amp;lt;/tt&amp;gt;&lt;br /&gt;
| string &lt;br /&gt;
| Comma separated list of login privileges.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Argument Values ===&lt;br /&gt;
&lt;br /&gt;
==== loginPrivileges ====&lt;br /&gt;
{{Administration_API_User_Login_Privileges}}&lt;br /&gt;
&lt;br /&gt;
== SetUserPassword ==&lt;br /&gt;
Set password of MailStore user.&lt;br /&gt;
&lt;br /&gt;
=== Arguments ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! width=150px | Name&lt;br /&gt;
! width=120px | Type&lt;br /&gt;
! Description&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;userName&amp;lt;/tt&amp;gt;&lt;br /&gt;
| string &lt;br /&gt;
| User name of MailStore user.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;password&amp;lt;/tt&amp;gt;&lt;br /&gt;
| string &lt;br /&gt;
| Password of MailStore user.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== SetUserPop3UserNames ==&lt;br /&gt;
Set POP3 user name of MailStore user.&lt;br /&gt;
&lt;br /&gt;
=== Arguments ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! width=150px | Name&lt;br /&gt;
! width=120px | Type&lt;br /&gt;
! Description&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;userName&amp;lt;/tt&amp;gt;&lt;br /&gt;
| string &lt;br /&gt;
| User name of MailStore user.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;pop3UserNames&amp;lt;/tt&amp;gt;&lt;br /&gt;
| string (optional)&lt;br /&gt;
| Comma separated list of POP3 user names.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== SetUserPrivileges ==&lt;br /&gt;
Set privileges of MailStore user.&lt;br /&gt;
&lt;br /&gt;
=== Arguments ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! width=150px | Name&lt;br /&gt;
! width=120px | Type&lt;br /&gt;
! Description&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;userName&amp;lt;/tt&amp;gt;&lt;br /&gt;
| string &lt;br /&gt;
| User name of MailStore user.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;privileges&amp;lt;/tt&amp;gt;&lt;br /&gt;
| string &lt;br /&gt;
| Comma separated list of privileges.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Argument Values ===&lt;br /&gt;
&lt;br /&gt;
==== privileges ====&lt;br /&gt;
{{Administration_API_User_Privileges}}&lt;br /&gt;
&lt;br /&gt;
== SetUserPrivilegesOnAllFolders ==&lt;br /&gt;
Set privileges on all folders for MailStore user, except for the folders that are excluded&lt;br /&gt;
&lt;br /&gt;
=== Arguments ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! width=150px | Name&lt;br /&gt;
! width=120px | Type&lt;br /&gt;
! Description&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;userName&amp;lt;/tt&amp;gt;&lt;br /&gt;
| string &lt;br /&gt;
| User name of MailStore user.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;privileges&amp;lt;/tt&amp;gt;&lt;br /&gt;
| string &lt;br /&gt;
| Comma separated list of folder privileges.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;excludeFolders&amp;lt;/tt&amp;gt;&lt;br /&gt;
| string (optional)&lt;br /&gt;
| Comma separated list of folders to exclude.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Argument Values ===&lt;br /&gt;
&lt;br /&gt;
==== privileges ====&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! width=270px | Name&lt;br /&gt;
! Description&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;read&amp;lt;/tt&amp;gt;&lt;br /&gt;
| The user is granted read access to the specified folders.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;write&amp;lt;/tt&amp;gt;&lt;br /&gt;
| The user is granted write access to the specified folders. Messages can be moved within an archive.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;delete&amp;lt;/tt&amp;gt;&lt;br /&gt;
| The user is granted delete access to the specified folders.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== SetUserPrivilegesOnFolder ==&lt;br /&gt;
Set privileges on folder for MailStore user.&lt;br /&gt;
&lt;br /&gt;
=== Arguments ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! width=150px | Name&lt;br /&gt;
! width=120px | Type&lt;br /&gt;
! Description&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;userName&amp;lt;/tt&amp;gt;&lt;br /&gt;
| string &lt;br /&gt;
| User name of MailStore user.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;folder&amp;lt;/tt&amp;gt;&lt;br /&gt;
| string &lt;br /&gt;
| Folder name.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;privileges&amp;lt;/tt&amp;gt;&lt;br /&gt;
| string &lt;br /&gt;
| Comma separated list of folder privileges.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Argument Values ===&lt;br /&gt;
&lt;br /&gt;
==== privileges ====&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! width=270px | Name&lt;br /&gt;
! Description&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;none&amp;lt;/tt&amp;gt;&lt;br /&gt;
| The user is denied access to the specified folder. If specified, this value has to be the only value in the list. This effectively removes all privileges on the specified folder.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;read&amp;lt;/tt&amp;gt;&lt;br /&gt;
| The user is granted read access to the specified folder.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;write&amp;lt;/tt&amp;gt;&lt;br /&gt;
| The user is granted write access to the specified folder. Messages can be moved within an archive.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;delete&amp;lt;/tt&amp;gt;&lt;br /&gt;
| The user is granted delete access to the specified folder.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== SyncUsersWithDirectoryServices ==&lt;br /&gt;
Sync users of MailStore instance with directory services.&lt;br /&gt;
&lt;br /&gt;
=== Arguments ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! width=150px | Name&lt;br /&gt;
! width=120px | Type&lt;br /&gt;
! Description&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;dryRun&amp;lt;/tt&amp;gt;&lt;br /&gt;
| bool (optional)&lt;br /&gt;
| Simulate sync only.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== TestSmtpSettings ==&lt;br /&gt;
Test current SMTP configuration.&lt;br /&gt;
&lt;br /&gt;
== TransferStores ==&lt;br /&gt;
Copy the content of one or more archive store into another archive store.&lt;br /&gt;
&lt;br /&gt;
=== Arguments ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! width=150px | Name&lt;br /&gt;
! width=120px | Type&lt;br /&gt;
! Description&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;sourceStores&amp;lt;/tt&amp;gt;&lt;br /&gt;
| string&lt;br /&gt;
| Comma-separated list of one or more source archive stores.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;targetStore&amp;lt;/tt&amp;gt;&lt;br /&gt;
| number (optional)&lt;br /&gt;
| The target store of the messages to be copied. If not given, the archive store in the &amp;quot;current&amp;quot; state will be used.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;startIndex&amp;lt;/tt&amp;gt;&lt;br /&gt;
| string (optional)&lt;br /&gt;
| A string in the format &amp;quot;archiveStoreId:messageId&amp;quot;. The transfer process starts with the this message.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== UnlockStore ==&lt;br /&gt;
Unlock a foreign archive store. In case an archive store from a foreign MailStore installation is attached, this method can be used to unlock that archive store.&lt;br /&gt;
&lt;br /&gt;
=== Arguments ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! width=150px | Name&lt;br /&gt;
! width=120px | Type&lt;br /&gt;
! Description&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;id&amp;lt;/tt&amp;gt;&lt;br /&gt;
| number &lt;br /&gt;
| Unique ID of archive store to unlock.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;passphrase&amp;lt;/tt&amp;gt;&lt;br /&gt;
| string&lt;br /&gt;
| Product key or recovery key of the foreign MailStore installation.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== UpgradeStore ==&lt;br /&gt;
Upgrade an archive store from an older version to the current format.&lt;br /&gt;
&lt;br /&gt;
=== Arguments ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! width=150px | Name&lt;br /&gt;
! width=120px | Type&lt;br /&gt;
! Description&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;id&amp;lt;/tt&amp;gt;&lt;br /&gt;
| number &lt;br /&gt;
| Unique ID of archive store.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== UpgradeStores ==&lt;br /&gt;
Upgrade all archive stores from an older version to the current format.&lt;br /&gt;
&lt;br /&gt;
== VerifyStore ==&lt;br /&gt;
Verify archive stores consistency.&lt;br /&gt;
&lt;br /&gt;
=== Arguments ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! width=150px | Name&lt;br /&gt;
! width=120px | Type&lt;br /&gt;
! Description&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;id&amp;lt;/tt&amp;gt;&lt;br /&gt;
| number &lt;br /&gt;
| The unique identifier of the archive store to be verified.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;includeIndexes&amp;lt;/tt&amp;gt;&lt;br /&gt;
| bool&lt;br /&gt;
| Defines whether to verify the search indexes as well. Default: true. May be slow when running on slow hardware.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== VerifyStores ==&lt;br /&gt;
Verify consistency of all archive stores.&lt;br /&gt;
&lt;br /&gt;
=== Arguments ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! width=150px | Name&lt;br /&gt;
! width=120px | Type&lt;br /&gt;
! Description&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;includeIndexes&amp;lt;/tt&amp;gt;&lt;br /&gt;
| bool&lt;br /&gt;
| Defines whether to verify the search indexes as well. Default: true. May be slow when running on slow hardware.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
[[de:Administration API - Function Reference]]&lt;br /&gt;
[[en:Administration API - Function Reference]]&lt;/div&gt;</summary>
		<author><name>Ltalaschus</name></author>
	</entry>
	<entry>
		<id>https://help.mailstore.com/en/server/index.php?title=Template:SQLDeprecation&amp;diff=7965</id>
		<title>Template:SQLDeprecation</title>
		<link rel="alternate" type="text/html" href="https://help.mailstore.com/en/server/index.php?title=Template:SQLDeprecation&amp;diff=7965"/>
		<updated>2026-01-15T11:14:32Z</updated>

		<summary type="html">&lt;p&gt;Ltalaschus: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;p class=&amp;quot;msnote mswarning&amp;quot;&amp;gt;Since MailStore Server 26.1 it is not possible to create new Microsoft SQL or PostgreSQL based archive stores anymore. Attaching existing archive stores is still possible. Support for Microsoft SQL and PostgreSQL based archive stores will be removed completely in a future version of MailStore Server.&amp;lt;/br&amp;gt;&amp;lt;/br&amp;gt;&lt;br /&gt;
Read [[Moving_the_Archive#Moving_the_Content_of_an_Archive_Store_to_a_different_Archive_Store|this article]] to learn how external archive storage can be replaced.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;noinclude&amp;gt;&lt;br /&gt;
[[de:Vorlage:SQLDeprecation]]&lt;br /&gt;
[[en:Template:SQLDeprecation]]&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>Ltalaschus</name></author>
	</entry>
	<entry>
		<id>https://help.mailstore.com/en/server/index.php?title=Template:SQLDeprecation&amp;diff=7964</id>
		<title>Template:SQLDeprecation</title>
		<link rel="alternate" type="text/html" href="https://help.mailstore.com/en/server/index.php?title=Template:SQLDeprecation&amp;diff=7964"/>
		<updated>2026-01-15T11:10:28Z</updated>

		<summary type="html">&lt;p&gt;Ltalaschus: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;p class=&amp;quot;msnote mswarning&amp;quot;&amp;gt;Since MailStore Server 26.1 it is not possible to create new Microsoft SQL or PostgreSQL based archive stores anymore. Attaching existing archive stores is still possible. Support for Microsoft SQL and PostgreSQL based archive stores will be removed completely in a future version of MailStore Server.&amp;lt;/br&amp;gt;&amp;lt;/br&amp;gt;&lt;br /&gt;
Read [[Moving_the_Archive#Moving_the_Content_of_an_Archive_Store_to_a_different_Archive_Store|this article]] to learn how external archive storage can be replaced.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;noinclude&amp;gt;&lt;br /&gt;
[[de:Vorlage:SQLDeprecation]]&lt;br /&gt;
[[en:Template:SQLDeprecation]]&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>Ltalaschus</name></author>
	</entry>
	<entry>
		<id>https://help.mailstore.com/en/server/index.php?title=HelpTopicIds&amp;diff=7963</id>
		<title>HelpTopicIds</title>
		<link rel="alternate" type="text/html" href="https://help.mailstore.com/en/server/index.php?title=HelpTopicIds&amp;diff=7963"/>
		<updated>2026-01-15T10:56:00Z</updated>

		<summary type="html">&lt;p&gt;Ltalaschus: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;* accs_export - [[Exporting_Email]]&lt;br /&gt;
* accs_extsearch - [[Accessing_the_Archive_with_the_MailStore_Client_software#Advanced_Search]]&lt;br /&gt;
* accs_outlook - [[Accessing_the_Archive_with_the_Microsoft_Outlook_integration]]&lt;br /&gt;
* accs_outlookapp - [[Accessing_the_Archive_with_the_Microsoft_Outlook_App_integration]]&lt;br /&gt;
* accs_preview - [[Accessing_the_Archive_with_the_MailStore_Client_software#Email_Preview]]&lt;br /&gt;
* accs_web - [[Accessing_the_Archive_with_MailStore_Web_Access]]&lt;br /&gt;
* arch_delete - [[Email_Archiving_with_MailStore_Basics#Deleting_Emails_after_Archiving]]&lt;br /&gt;
* arch_filesystem - [[Archiving_Emails_from_External_Systems_(File_Import)]]&lt;br /&gt;
* arch_filepst - [[Archiving_Outlook_PST_Files_Directly]]&lt;br /&gt;
* arch_gateway - [[Archiving_MailStore_Gateway_Mailbox]]&lt;br /&gt;
* arch_nospamproxy - [[Archiving_Emails_from_NoSpamProxy]]&lt;br /&gt;
* gateway_introduction - [[Archiving_MailStore_Gateway_Mailbox]]&lt;br /&gt;
* arch_googleapps_batch - [[Archiving_Emails_from_Google_Workspace#Archiving_Multiple_Mailboxes_Centrally]]&lt;br /&gt;
* arch_googleapps - [[Archiving_Emails_from_Google_Workspace]]&lt;br /&gt;
* arch_googleapps_multidrop - [[Archiving_Emails_from_Google_Workspace#Archiving_Incoming_and_Outgoing_Emails_Directly]]&lt;br /&gt;
* arch_googlemail_installed_app - [[Archiving_Emails_from_Gmail]]&lt;br /&gt;
* arch_outlookcom_modern_auth - [[Archiving_Emails_from_Outlook.com]]&lt;br /&gt;
* arch_icewarp - [[Archiving_Emails_from_IceWarp_Server]]&lt;br /&gt;
* arch_icewarp_mailbox - [[Archiving_Emails_from_IceWarp_Server#Archiving_Individual_Mailboxes]]&lt;br /&gt;
* arch_icewarp_mailboxes - [[Archiving_Emails_from_IceWarp_Server#Archiving_Multiple_Mailboxes_in_One_Step]]&lt;br /&gt;
* arch_icewarp_multidrop - [[Archiving_Emails_from_IceWarp_Server#Archiving_All_Incoming_and_Outgoing_Emails_Directly]]&lt;br /&gt;
* arch_imapbatch - [[Batch-archiving_IMAP_Mailboxes]]&lt;br /&gt;
* arch_inout - [[MailStore_Proxy]]&lt;br /&gt;
* arch_introduction - [[Archiving_Email]]&lt;br /&gt;
* arch_kerio - [[Archiving_Emails_from_Kerio_Connect]]&lt;br /&gt;
* arch_kerio_mailbox - [[Archiving_Emails_from_Kerio_Connect#Archiving_Individual_Mailboxes]]&lt;br /&gt;
* arch_kerio_mailboxes - [[Archiving_Emails_from_Kerio_Connect#Archiving_Multiple_Mailboxes_in_One_Step]]&lt;br /&gt;
* arch_kerio_multidrop - [[Archiving_Emails_from_Kerio_Connect#Archiving_Incoming_and_Outgoing_Emails_Directly]]&lt;br /&gt;
* arch_mailboxes - [[Archiving_Server_Mailboxes]]&lt;br /&gt;
* arch_mailclients - [[Archiving_Email_from_Outlook,_Thunderbird_and_others]]&lt;br /&gt;
* arch_mdaemon - [[Archiving_Emails_from_MDaemon]]&lt;br /&gt;
* arch_mdaemon_mailbox - [[Archiving_Emails_from_MDaemon#Archiving_Individual_Mailboxes]]&lt;br /&gt;
* arch_mdaemon_mailboxes - [[Archiving_Emails_from_MDaemon#Archiving_Multiple_Mailboxes_in_One_Step]]&lt;br /&gt;
* arch_mdaemon_multidrop - [[Archiving_Emails_from_MDaemon#Archiving_Incoming_and_Outgoing_Emails_Directly]]&lt;br /&gt;
* arch_multidrop - [[Archiving_IMAP_and_POP3_Multidrop_Mailboxes]]&lt;br /&gt;
* arch_profiles - [[Archiving_Email]]&lt;br /&gt;
* arch_schedule - [[Email_Archiving_with_MailStore_Basics#Automating_the_Archiving_Process]]&lt;br /&gt;
* arch_results - [[Email_Archiving_with_MailStore_Basics]]&lt;br /&gt;
* arch_selfolders - [[Email_Archiving_with_MailStore_Basics#Archiving_Specific_Folders]]&lt;br /&gt;
* bkup_integrated - [[Backup_and_Restore]]&lt;br /&gt;
* comp_auditing - [[Auditing]]&lt;br /&gt;
* comp_auditlog - [[Audit_Log]]&lt;br /&gt;
* comp_auditlogexport - [[Audit_Log]]&lt;br /&gt;
* comp_auditor - [[Compliance_General]]&lt;br /&gt;
* comp_forcechangepassword - [[Notes_on_Password_Complexity]]&lt;br /&gt;
* comp_general - [[Compliance_General]]&lt;br /&gt;
* comp_manage_passwords - [[Accessing_the_Archive_with_the_MailStore_Client_software#Managing_Passwords]]&lt;br /&gt;
* comp_password_complexity - [[Notes_on_Password_Complexity]]&lt;br /&gt;
* comp_retention - [[Retention_Policies]]&lt;br /&gt;
* comp_message_date - [[Message_Date_of_an_Email]]&lt;br /&gt;
* expo_googleapps - [[Exporting_Email]]&lt;br /&gt;
* gsta_login - [[Accessing_the_Archive_with_the_MailStore_Client_software#Starting_and_Login]]&lt;br /&gt;
* job_jobs - [[Jobs]]&lt;br /&gt;
* job_scheduling - [[Jobs]]&lt;br /&gt;
* job_results - [[Job_Results]]&lt;br /&gt;
* mads_sync - [[Administration]]&lt;br /&gt;
* tech_config - [[MailStore_Server_Service_Configuration]]&lt;br /&gt;
* tech_index - [[Search_Indexes]]&lt;br /&gt;
* tech_mscmd - [[MailStore_Server_Management_Shell]]&lt;br /&gt;
* tech_proxy - [[MailStore_Proxy]]&lt;br /&gt;
* tech_safemode - [[MailStore_Server_Service_Configuration]]&lt;br /&gt;
* tech_smtpsettings - [[SMTP_Settings]]&lt;br /&gt;
* tech_archives - [[Archives]]&lt;br /&gt;
* tech_storageloc - [[Storage_Locations]]&lt;br /&gt;
* tech_productupdates - [[Product_Updates]]&lt;br /&gt;
* tech_extstoremigration - [[Using External Archive Stores]]&lt;br /&gt;
* umgm_privileges - [[Users,_Folders_and_Settings#User_Management]]&lt;br /&gt;
* umgm_users - [[Users,_Folders_and_Settings#User_Management]]&lt;br /&gt;
* xchg_introduction - [[Archiving_Emails_from_Microsoft_Exchange]]&lt;br /&gt;
* xchg_jour_intro - [[Archiving_Emails_from_Microsoft_Exchange]]&lt;br /&gt;
* xchg_mailbox - [[Archiving_Emails_from_Microsoft_Exchange]]&lt;br /&gt;
* xchg_mailboxes - [[Archiving_Emails_from_Microsoft_Exchange]]&lt;br /&gt;
* xchg_archive_mailbox - [[Archiving_Emails_from_Microsoft_Exchange]]&lt;br /&gt;
* xchg_archive_mailboxes - [[Archiving_Emails_from_Microsoft_Exchange]]&lt;br /&gt;
* xchg_public - [[Archiving_Emails_from_Microsoft_Exchange]]&lt;br /&gt;
* impl_noownserver - [[Archiving_Emails_Without_Your_Own_Emailserver|(No own e-mail server)]]&lt;br /&gt;
* impl_exim - [[Archiving_Emails_from_an_Exim_Based_Email_Server|Exim]]&lt;br /&gt;
* impl_hmailserver - [[Archiving_Emails_from_hMailServer|hMailServer]]&lt;br /&gt;
* impl_intranator - [[Archiving_Emails_from_Intra2net_Systems|Intra2net  Appliance Pro / Business Server]]&lt;br /&gt;
* impl_kerioconnect - [[Archiving_Emails_from_Kerio_Connect|Kerio Connect (Kerio MailServer)]]&lt;br /&gt;
* impl_kolab - [[Archiving_Emails_from_Kolab|Kolab]]&lt;br /&gt;
* impl_postfix - [[Archiving_Emails_from_a_Postfix_Based_Email_Server|Postfix]]&lt;br /&gt;
* impl_qmail - [[Archiving_Emails_from_a_Qmail_Based_Email_Server|Qmail]]&lt;br /&gt;
* impl_scalix - [[Archiving_Emails_from_Scalix|Scalix]]&lt;br /&gt;
* impl_sendmail - [[Archiving_Emails_from_a_Sendmail_Based_Email_Server|Sendmail]]&lt;br /&gt;
* impl_smartermail - [[Archiving_Emails_from_SmarterMail|SmarterMail]]&lt;br /&gt;
* impl_tobitdavid - [[Archiving_Emails_from_Tobit_David.fx|Tobit David.fx]]&lt;br /&gt;
* impl_zimbra - [[Archiving_Emails_from_Zimbra|Zimbra Collaboration Suite]]&lt;br /&gt;
* implexch_2003 - [[Archiving_Emails_from_Microsoft_Exchange_2003|Exchange 2003]]&lt;br /&gt;
* implexch_2007 - [[Archiving_Emails_from_Microsoft_Exchange_2007|Exchange 2007]]&lt;br /&gt;
* implexch_2010 - [[Archiving_Emails_from_Microsoft_Exchange_2010|Exchange 2010]]&lt;br /&gt;
* implexch_2013 - [[Archiving_Emails_from_Microsoft_Exchange_2013|Exchange 2013]]&lt;br /&gt;
* implexch_2016 - [[Archiving_Emails_from_Microsoft_Exchange_2016|Exchange 2016]] &lt;br /&gt;
* implexch_2019 - [[Archiving_Emails_from_Microsoft_Exchange_2019|Exchange 2019]]&lt;br /&gt;
* implexch_se - [[Archiving_Emails_from_Microsoft_Exchange_SE|Exchange SE]]&lt;br /&gt;
* implexch_o365 - [[Archiving_Emails_from_Microsoft_Office_365|Office 365]]&lt;br /&gt;
* welc_licensing - [[License_Management]]&lt;br /&gt;
* arch_microsoft365 - [[Archiving_Emails_from_Microsoft_365_(Modern_Authentication)]]&lt;br /&gt;
* arch_microsoft365_single - [[Archiving_Emails_from_Microsoft_365_(Modern_Authentication)#Archiving_Individual_Microsoft.C2.A0365_Mailboxes]]&lt;br /&gt;
* arch_microsoft365_multiple - [[Archiving_Emails_from_Microsoft_365_(Modern_Authentication)#Archiving_Multiple_Microsoft.C2.A0365_Mailboxes_Centrally]]&lt;br /&gt;
* arch_microsoft365_single_archive_mailbox - [[Archiving_Emails_from_Microsoft_365_(Modern_Authentication)#Archiving_Individual_Microsoft.C2.A0365_Archive_Mailboxes]]&lt;br /&gt;
* arch_microsoft365_multiple_archive_mailboxes - [[Archiving_Emails_from_Microsoft_365_(Modern_Authentication)#Archiving_Multiple_Microsoft.C2.A0365_Archive_Mailboxes_Centrally]]&lt;br /&gt;
* arch_microsoft365_public - [[Archiving_Emails_from_Microsoft_365_(Modern_Authentication)#Public_Folders]]&lt;br /&gt;
* expo_microsoft365 - [[Exporting_Email]]&lt;br /&gt;
* arch_m365_ews_migration - [[EWS_Migration]]&lt;br /&gt;
* cred_microsoft365 - [[Synchronizing_User_Accounts_with_Microsoft_365_(Modern_Authentication)#Creating_Credentials_in_MailStore_Server]]&lt;br /&gt;
* expo_mailstorecloudbulk - [[MailStore_Cloud_Help#Migration_from_MailStore_Server_to_MailStore_Cloud]]&lt;br /&gt;
&lt;br /&gt;
[[de:HelpTopicIds]]&lt;br /&gt;
[[en:helpTopicIds]]&lt;/div&gt;</summary>
		<author><name>Ltalaschus</name></author>
	</entry>
	<entry>
		<id>https://help.mailstore.com/en/server/index.php?title=Synchronizing_User_Accounts_with_Microsoft_365_-_Modern_Authentication&amp;diff=7962</id>
		<title>Synchronizing User Accounts with Microsoft 365 - Modern Authentication</title>
		<link rel="alternate" type="text/html" href="https://help.mailstore.com/en/server/index.php?title=Synchronizing_User_Accounts_with_Microsoft_365_-_Modern_Authentication&amp;diff=7962"/>
		<updated>2026-01-14T15:01:58Z</updated>

		<summary type="html">&lt;p&gt;Ltalaschus: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Directory Services Preamble|Microsoft 365 tenant|Microsoft 365|{{#ev:youtube|https://youtu.be/OtJx2EKEW0Y|350|right|''Tech Tip: Preparation of the Microsoft 365 Tenant and User Synchronization''}}|&amp;lt;br/&amp;gt;Our Tech Tip video shows the essential configuration steps in this article.}}&lt;br /&gt;
&amp;lt;br clear=&amp;quot;all&amp;quot;/&amp;gt;&lt;br /&gt;
== Prerequisites, Recommendations and Limitations ==&lt;br /&gt;
* For best user experience, the certificate used by MailStore Server should be trusted by all clients and the used web browsers. Using a certificate that is signed by a trusted certificate authority or [[Using_Lets_Encrypt_Certificates|using Let's Encrypt certificates]] is highly recommended.&lt;br /&gt;
* If you have archived emails from an Exchange server and synchronized users from an Active Directory until now, follow the article [[Changing Archiving from Microsoft Exchange Server to Microsoft 365]]&lt;br /&gt;
* If users are supposed to log in to MailStore Server from outside the organization's network without a VPN using [[Accessing_the_Archive_with_the_MailStore_Client_software|MailStore Client]], [[Accessing_the_Archive_with_the_Microsoft_Outlook_integration|MailStore Outlook Add-in]] or the [[Accessing_the_Archive_with_MailStore_Web_Access|Web Access]], the URIs mentioned in this article must be resolvable via DNS on the Internet and port-forwardings to the MailStore Server computer must be set up on the firewall or router if necessary. &lt;br /&gt;
* When using Microsoft&amp;amp;nbsp;365 to authenticate users at login, [[Accessing_the_Archive_via_Integrated_IMAP_Server|accessing the archive via IMAP]] is not possible for technical reasons.&lt;br /&gt;
* MailStore Server supports the synchronization of user accounts with the global Microsoft Cloud ''Microsoft&amp;amp;nbsp;365'' and ''Office&amp;amp;nbsp;365, operated by 21Vianet''. Other Environments like GCC, GCC&amp;amp;nbsp;High or DoD are not supported. In the following article, only the term Microsoft 365 is used for the sake of simplicity.&lt;br /&gt;
&lt;br /&gt;
== Connecting MailStore Server and Microsoft 365 ==&lt;br /&gt;
In order to synchronize user information from Microsoft 365, MailStore Server has to be connected to your Microsoft 365 tenant and been granted the required permissions. Microsoft 365 relies on Microsoft Entra ID as directory service. Each Microsoft 365 tenant corresponds to an Microsoft Entra ID tenant that stores its user information.&lt;br /&gt;
&lt;br /&gt;
=== Registering of MailStore Server as App in Microsoft Entra ID ===&lt;br /&gt;
Through registration, MailStore Server gets an identity in Microsoft Entra ID that makes it possible to authenticate to the tenant's services and use their resources.&lt;br /&gt;
* Sign in to the [https://portal.azure.com Microsoft Entra ID Portal] as a Global Administrator for your Microsoft 365 tenant.&amp;lt;br/&amp;gt;The Microsoft Entra ID Portal of ''Office 365, operated by 21Vianet'' [https://portal.azure.cn/#view/Microsoft_AAD_IAM/ActiveDirectoryMenuBlade/~/Overview can be accessed here].&lt;br /&gt;
* In the navigation menu (☰), select the option ''Microsoft Entra ID''.&lt;br /&gt;
* On the next page, select ''App registrations'' in the ''Manage'' section of the left navigation menu.&lt;br /&gt;
* Select ''New Registration''. The ''Register an application'' page appears.&lt;br /&gt;
* In the ''Name'' field, enter a meaningful display name, e.g. ''MailStore Server''. This name will be shown to users on logon later on, for example.&lt;br /&gt;
* Leave all other settings on this page to their defaults.&lt;br /&gt;
* Click on ''Register''. If the registration has been successful, you are shown the overview page of the newly registered app.&lt;br /&gt;
The ''Application (client) ID'' shown on this page identifies MailStore Server in your Microsoft Entra ID tenant and has to be copied into MailStore Server next, together with the ''Directory (tenant) ID''. Therefore, for the following steps, leave the overview page open in your web browser.&lt;br /&gt;
&lt;br /&gt;
=== Creating Credentials in MailStore Server ===&lt;br /&gt;
Credentials for Microsoft 365 consist of the aforementioned IDs and a secret that MailStore Server uses to proof its identity to Microsoft Entra ID. Microsoft recommends using certificates as secrets to identify apps in Microsoft Entra ID. When creating credentials, such a certificate is generated automatically by MailStore Server but can also be recreated later on.&lt;br /&gt;
{{Directory Services Accessing Configuration|Microsoft 365 or Microsoft 365 operated by 21 Vianet|Microsoft 365 sync 01.png}}&lt;br /&gt;
* In the ''Connection'' section, click on the button (…) next to the ''Credentials'' drop-down list.&lt;br /&gt;
* In the ''Credential Manager'' that appears, click on ''Create…''&lt;br /&gt;
* In the ''Microsoft Entra ID App Credentials'' dialog, enter the following information in the ''Settings'' section:&lt;br /&gt;
** '''Name'''&amp;lt;br/&amp;gt; A meaningful display name for the credentials, e.g. the name of your Microsoft 365 tenant.&lt;br /&gt;
** '''Application (client) ID'''&amp;lt;br/&amp;gt; The value of the corresponding field that you can copy from the Microsoft Entra ID app overview page in your web browser.&lt;br /&gt;
** '''Directory (tenant) ID'''&amp;lt;br/&amp;gt; The value of the corresponding field that you can copy from the Microsoft Entra ID app overview page in your web browser.&lt;br /&gt;
[[File:Microsoft 365 cred 01.png|center|347px]]&lt;br /&gt;
* In the ''Authentication'' section, click on the drop-down button next to the ''Certificate'' text box und select ''Download Certificate''. Save the certificate on your hard drive.&lt;br /&gt;
* Confirm your entries by clicking ''OK''.&lt;br /&gt;
* The newly created credentials are listed in the ''Credential Manager'' under the name you have entered with the type ''Microsoft 365''. Here you can also edit or delete existing credentials if necessary.&lt;br /&gt;
* Leave the ''Credential Manager'' by clicking ''Close''.&lt;br /&gt;
* The newly created credentials are selected in the corresponding drop-down list by default.&lt;br /&gt;
&lt;br /&gt;
=== Publishing Credentials in Microsoft Entra ID ===&lt;br /&gt;
For Microsoft Entra ID to validate the identity of MailStore Server, the created certificate needs to be published in Microsoft Entra ID.&lt;br /&gt;
* Switch to the Microsoft Entra ID app overview page in your web browser.&lt;br /&gt;
* Select ''Certificates &amp;amp; secrets'' in the ''Manage'' section of the left navigation menu.&lt;br /&gt;
* Click on ''Upload certificate'' in the ''Certificates'' section. Select the certificate file that you have saved previously and upload it to Microsoft Entra ID by clicking ''Add''.&lt;br /&gt;
* If uploading has been successful, the certificate's thumbprint as well as its start and expiry dates appear in the certificates list. You can compare the thumbprint and expiry date with those listed in the MailStore Credential Manager to check that you've uploaded the correct certificate.&lt;br /&gt;
&lt;br /&gt;
=== Configuring App Authentication in Microsoft Entra ID ===&lt;br /&gt;
For Microsoft Entra ID to return the result of a user's authentication request to MailStore Server, the endpoint where MailStore Server expects authentication responses, the so-called ''Redirect URI'', has to be conveyed to Microsoft Entra ID.&lt;br /&gt;
* In the Microsoft Entra ID Portal in the web browser, select ''Authentication'' in the ''Manage'' section of the left navigation menu.&lt;br /&gt;
* Click on the ''Add Redirect URI'' button on the ''Redirect URI configuration'' page.&lt;br /&gt;
* Select ''Web'' in the ''Web applications'' section of the platform selection page.&lt;br /&gt;
* In the '''Implicit grant and hybrid flows''' section perform the following action:&lt;br /&gt;
:'''Enable''' the '''ID tokens''' option.&lt;br /&gt;
[[File:Microsoft_365_sync_id_token.png|center]]&lt;br /&gt;
* In the field ''Redirect URI'', enter a URI in the format (without brackets)&lt;br /&gt;
*: &amp;lt;code&amp;gt;https://&amp;lt;fqdn&amp;gt;[:&amp;lt;port&amp;gt;]/oidc/signin&amp;lt;/code&amp;gt;&lt;br /&gt;
*; with the following components&amp;lt;nowiki&amp;gt;:&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
*: '''https://'''&amp;lt;br/&amp;gt; Specifying the &amp;lt;code&amp;gt;https://&amp;lt;/code&amp;gt; protocol is obligatory. To avoid certificate warnings during user logon, the web browsers on the client machines must trust the [[MailStore_Server_Service_Configuration#Certificate|certificate used by MailStore Server]].&lt;br /&gt;
*: '''FQDN'''&amp;lt;br/&amp;gt;The Fully Qualified Domain Name (FQDN) of your MailStore Server that consists of the machine name and the DNS domain, e.g. &amp;lt;code&amp;gt;mailstore.example.com&amp;lt;/code&amp;gt;. This name must be resolvable by all clients from which users shall be able to log on to MailStore Server.&lt;br /&gt;
*: '''Port'''&amp;lt;br/&amp;gt;The TCP port of the MailStore Web Access (&amp;lt;code&amp;gt;8462&amp;lt;/code&amp;gt; by default). This value must be equal to the port configured in the section ''Base Configuration &amp;gt; Network Settings &amp;gt; MailStore Web Access / Outlook Add-in (HTTPS)'' of the [[MailStore_Server_Service_Configuration#Services|MailStore Server Service Configuration]]. The TCP port has to be specified only if it is different from the default port of the HTTPS protocol (&amp;lt;code&amp;gt;443&amp;lt;/code&amp;gt;).&lt;br /&gt;
*: '''/oidc/signin'''&amp;lt;br/&amp;gt;The endpoint where MailStore Server expects the authentication responses of Microsoft Entra ID. This path has to be specified exactly as stated here at the end of the redirect URI.&lt;br /&gt;
* Leave the field ''Logout URL'' blank.&lt;br /&gt;
* Ensure that the '''ID tokens''' option is set in the '''Implicit grant and hybrid flows''' section.&lt;br /&gt;
* Click on ''Configure'' to finish the configuration of the app authentication in Microsoft Entra ID.&lt;br /&gt;
&amp;lt;div class=&amp;quot;resp-table&amp;quot;&amp;gt;&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;font-size: 85%;&amp;quot;&lt;br /&gt;
|+ Examples for valid redirect URIs&lt;br /&gt;
|-&lt;br /&gt;
! style=&amp;quot;width:80px;&amp;quot; | Product&lt;br /&gt;
! style=&amp;quot;width:80px;&amp;quot; | FQDN&lt;br /&gt;
! style=&amp;quot;width:40px;&amp;quot; | Port&lt;br /&gt;
! Resulting Redirect URI&lt;br /&gt;
|-&lt;br /&gt;
| align=&amp;quot;center&amp;quot;| MailStore Server&lt;br /&gt;
| align=&amp;quot;center&amp;quot;| mailstore.example.com&lt;br /&gt;
| align=&amp;quot;center&amp;quot;| 8462&lt;br /&gt;
| &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;https://mailstore.example.com:8462/oidc/signin&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;Redirect URI with Fully Qualified Domain Name and MailStore Web Access default  port&lt;br /&gt;
|-&lt;br /&gt;
| align=&amp;quot;center&amp;quot;| MailStore Server&lt;br /&gt;
| align=&amp;quot;center&amp;quot;| mailstore.example.com&lt;br /&gt;
| align=&amp;quot;center&amp;quot;| 443&lt;br /&gt;
| &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;https://mailstore.example.com/oidc/signin&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;The port can be ommited if the HTTPS default port 443 has been configured for MailStore Web Access or as source port of a port-forwarding on the firewall or router.&lt;br /&gt;
|-&lt;br /&gt;
| align=&amp;quot;center&amp;quot;| MailStore SPE&lt;br /&gt;
| align=&amp;quot;center&amp;quot;| archive.example.com&lt;br /&gt;
| align=&amp;quot;center&amp;quot;| 443&lt;br /&gt;
| &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;https://archive.example.com/&amp;lt;instanceid&amp;gt;/oidc/signin&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;The ''instanceid'' of the instance is part of the Redirect URI. &lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
:: &amp;lt;p class=&amp;quot;msnote&amp;quot;&amp;gt;'''Important Notice:''' Please note that the redirect URI is case-sensitive. Also review the requirements on resolving URIs in the [[#Prerequisites, Recommendations and Limitations|Prerequisites, Recommendations and Limitations]] section.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:: &amp;lt;p class=&amp;quot;msnote&amp;quot;&amp;gt;'''Important Notice:''' Please note that without setting the ''ID Token'' option, user authentication will not work.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Configuring the Redirect URI in MailStore Server ===&lt;br /&gt;
For MailStore Server to convey the redirect URI to requesting clients, it must be configured there, too.&lt;br /&gt;
* Switch to the ''Directory Services'' page in the MailStore Client.&lt;br /&gt;
* Enter the redirect URI in the corresponding field in the ''Authentication'' section. Just copy the value previously configured in Microsoft Entra ID from the web browser.&lt;br /&gt;
[[File:Microsoft 365 sync 02.png|center|450px]]&lt;br /&gt;
&lt;br /&gt;
=== Configuring API Permissions in Microsoft Entra ID ===&lt;br /&gt;
* Switch again to Microsoft Entra ID in your web browser.&lt;br /&gt;
* Select ''API permissions'' in the ''Manage'' section of the left navigation menu.&lt;br /&gt;
* Click on the ''Add a permission'' button in the ''Configured permissions'' section.&lt;br /&gt;
* On the ''Request API permissions'' menu page, select the API ''Microsoft Graph'' in the ''Commonly used Microsoft APIs'' section.&lt;br /&gt;
* Select the option ''Application permissions''.&lt;br /&gt;
* Enable the ''Directory &amp;gt; Directory.Read.All'' permission in the ''Select permissions'' section.&lt;br /&gt;
* Also enable the ''Mail &amp;gt; Mail.ReadWrite'' permission in the ''Select permissions'' section.&lt;br /&gt;
* Click on ''Add permissions''.&lt;br /&gt;
* The permissions are updated and the ''Directory.Read.All'' and ''Mail.ReadWrite'' permissions appear in the API permissions list under ''Microsoft Graph''.&lt;br /&gt;
* Click on the ''Add a permission'' button in the ''Configured permissions'' section again.&lt;br /&gt;
* On the ''Request API permissions'' menu page, select ''APIs my organization uses''.&lt;br /&gt;
* Search for ''Office 365 Exchange Online'' and click on the corresponding entry.&lt;br /&gt;
* Select the option ''Application permissions''.&lt;br /&gt;
* Enable the ''full_access_as_app'' permission in the ''Select permissions'' section.&lt;br /&gt;
* Also enable the permission ''SMTP.SendAsApp'' in the ''SMTP'' section.&lt;br /&gt;
* Click on ''Add permissions''.&lt;br /&gt;
* The permissions are updated and the ''full_access_as_app'' and ''SMTP.SendAsApp'' permissions appear in the API permissions list under ''Exchange''.&lt;br /&gt;
* Now click on the ''Grant admin consent for &amp;lt;your tenant name&amp;gt;'' button in the ''Configured permissions'' section.&lt;br /&gt;
* Acknowledge the following notice with ''Yes''.&lt;br /&gt;
* The status of all granted permissions is updated to ''Granted for &amp;lt;your tenant name&amp;gt;''.&lt;br /&gt;
The configuration of MailStore Server's connection to Microsoft 365 within Microsoft Entra ID is now complete. You can sign out of your Microsoft Entra ID tenant and close the browser window. Switch to the ''Directory Services'' page in the MailStore Client again, all remaining configuration steps must be done there.&lt;br /&gt;
&lt;br /&gt;
[[File:Microsoft 365 sync 03.png|center]]&lt;br /&gt;
&lt;br /&gt;
=== User Database Synchronization ===&lt;br /&gt;
After configuring the connection settings as described above, you can specify filter criteria for the Microsoft 365 synchronization in this section.&lt;br /&gt;
*'''Synchronize licensed Microsoft Exchange Online users only'''&amp;lt;br/&amp;gt;Only Microsoft 365 user accounts with a Microsoft Exchange Online license assigned to them will be taken into account by the synchronization.&lt;br /&gt;
*'''Synchronize enabled users only'''&amp;lt;br/&amp;gt;Only Microsoft 365 user accounts that do not have their login to Microsoft 365 blocked will be taken into account by the synchronization.&lt;br /&gt;
*'''Sync only these groups'''&amp;lt;br/&amp;gt;Choose one or several Microsoft 365 security groups if you only want their members to be created as MailStore Server users. That way it's possible to exclude certain users from being synchronized to MailStore Server.&lt;br /&gt;
&lt;br /&gt;
{{Directory Services Options|Microsoft 365 tenant}}&lt;br /&gt;
{{Directory Services Assign Default Privileges|Microsoft 365}}&lt;br /&gt;
{{Directory Services Run Synchronization|Microsoft 365 tenant}}&lt;br /&gt;
[[File:Office365_sync_02.png|450px|center]]&lt;br /&gt;
&lt;br /&gt;
{{Directory Services Test Authentication}}&lt;br /&gt;
&lt;br /&gt;
== Updating credentials ==&lt;br /&gt;
The certificate generated by MailStore for logging into Microsoft Entra ID is valid for 3750 days (825 days before version 25.3). In order for user synchronization and archiving to work afterwards, the certificate must be updated before its validity expires.&lt;br /&gt;
&lt;br /&gt;
MailStore Server will show a notification on the dashboard in MailStore Client and in the [[Jobs#Templates|status report]] 28 days before credentials expire. You can also use the [[Administration_API_-_Function_Reference#GetCredentials|GetCredentials API command]] to retrieve the expiration date.&lt;br /&gt;
&lt;br /&gt;
To update the credentials, proceed as follows:&lt;br /&gt;
&lt;br /&gt;
=== Updating credentials in MailStore Server ===&lt;br /&gt;
&lt;br /&gt;
* Log on to MailStore Client as a MailStore Server administrator.&lt;br /&gt;
* Click on ''Administrative Tools'' &amp;gt; ''Users and Archives'' &amp;gt; ''Directory Services''.&lt;br /&gt;
* In the ''Integration section'', make sure that the directory service type is set to ''Microsoft 365 (Modern Authentication)'' or ''Microsoft 365 operated by 21 Vianet (Modern Authentication)''.&lt;br /&gt;
[[File:Microsoft 365 sync 01.png|center|347px]]&lt;br /&gt;
* In the ''Connection'' section, click on the button (…) next to the ''Credentials'' drop-down list.&lt;br /&gt;
* In the ''Credential Manager'' that appears, click on the currently used credential object and click ''Edit…''&lt;br /&gt;
: [[File:Microsoft 365 cred 02.png|center|347px]]&lt;br /&gt;
* In the ''Authentication'' section, click on the drop-down button next to the ''Certificate'' text box und select ''Create Certificate...''.&lt;br /&gt;
* Confirm the process.&lt;br /&gt;
* In the ''Authentication'' section, click on the drop-down button next to the ''Certificate'' text box und select ''Download Certificate''. Save the certificate on your hard drive.&lt;br /&gt;
* Confirm your changes by clicking ''OK''.&lt;br /&gt;
* Leave the ''Credential Manager'' by clicking ''Apply''.&lt;br /&gt;
* The newly created credentials are selected in the corresponding drop-down list by default.&lt;br /&gt;
* If you are using Microsoft 365 in hybrid mode and synchronizing users from your Active Directory, set the directory service back to ''Active Directory''.&lt;br /&gt;
&lt;br /&gt;
=== Updating credentials in Microsoft Entra ID ===&lt;br /&gt;
&lt;br /&gt;
* Sign in to the [https://portal.azure.com Microsoft Entra ID Portal] as a Global Administrator for your Microsoft 365 tenant.&amp;lt;br/&amp;gt;The Microsoft Entra ID Portal of ''Office 365, operated by 21Vianet'' [https://portal.azure.cn/#view/Microsoft_AAD_IAM/ActiveDirectoryMenuBlade/~/Overview can be accessed here].&lt;br /&gt;
* In the navigation menu (☰), select the option ''Microsoft Entra ID''.&lt;br /&gt;
* On the next page, select ''App registrations'' in the ''Manage'' section of the left navigation menu.&lt;br /&gt;
* Select the application that is currently used by MailStore.&lt;br /&gt;
* Select ''Certificates &amp;amp; secrets'' in the ''Manage'' section of the left navigation menu.&lt;br /&gt;
* Click on ''Upload certificate'' in the ''Certificates'' section. Select the certificate file that you have saved previously and upload it to Microsoft Entra ID by clicking ''Add''.&lt;br /&gt;
* If uploading has been successful, the certificate's thumbprint as well as its start and expiry dates appear in the certificates list. You can compare the thumbprint and expiry date with those listed in the MailStore Credential Manager to check that you've uploaded the correct certificate.&lt;br /&gt;
* The previously used certificate can be removed from the list.&lt;br /&gt;
&lt;br /&gt;
[[de:Synchronisieren_von_Benutzerkonten_mit_Microsoft_365_(Modern_Authentication)]]&lt;br /&gt;
[[en:Synchronizing_User_Accounts_with_Microsoft_365_(Modern_Authentication)]]&lt;/div&gt;</summary>
		<author><name>Ltalaschus</name></author>
	</entry>
	<entry>
		<id>https://help.mailstore.com/en/server/index.php?title=File:Microsoft_365_sync_03.png&amp;diff=7961</id>
		<title>File:Microsoft 365 sync 03.png</title>
		<link rel="alternate" type="text/html" href="https://help.mailstore.com/en/server/index.php?title=File:Microsoft_365_sync_03.png&amp;diff=7961"/>
		<updated>2026-01-14T15:00:38Z</updated>

		<summary type="html">&lt;p&gt;Ltalaschus: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Ltalaschus</name></author>
	</entry>
	<entry>
		<id>https://help.mailstore.com/en/server/index.php?title=Synchronizing_User_Accounts_with_Microsoft_365_-_Modern_Authentication&amp;diff=7960</id>
		<title>Synchronizing User Accounts with Microsoft 365 - Modern Authentication</title>
		<link rel="alternate" type="text/html" href="https://help.mailstore.com/en/server/index.php?title=Synchronizing_User_Accounts_with_Microsoft_365_-_Modern_Authentication&amp;diff=7960"/>
		<updated>2026-01-14T14:46:41Z</updated>

		<summary type="html">&lt;p&gt;Ltalaschus: /* Configuring API Permissions in Microsoft Entra ID */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Directory Services Preamble|Microsoft 365 tenant|Microsoft 365|{{#ev:youtube|https://youtu.be/OtJx2EKEW0Y|350|right|''Tech Tip: Preparation of the Microsoft 365 Tenant and User Synchronization''}}|&amp;lt;br/&amp;gt;Our Tech Tip video shows the essential configuration steps in this article.}}&lt;br /&gt;
&amp;lt;br clear=&amp;quot;all&amp;quot;/&amp;gt;&lt;br /&gt;
== Prerequisites, Recommendations and Limitations ==&lt;br /&gt;
* For best user experience, the certificate used by MailStore Server should be trusted by all clients and the used web browsers. Using a certificate that is signed by a trusted certificate authority or [[Using_Lets_Encrypt_Certificates|using Let's Encrypt certificates]] is highly recommended.&lt;br /&gt;
* If you have archived emails from an Exchange server and synchronized users from an Active Directory until now, follow the article [[Changing Archiving from Microsoft Exchange Server to Microsoft 365]]&lt;br /&gt;
* If users are supposed to log in to MailStore Server from outside the organization's network without a VPN using [[Accessing_the_Archive_with_the_MailStore_Client_software|MailStore Client]], [[Accessing_the_Archive_with_the_Microsoft_Outlook_integration|MailStore Outlook Add-in]] or the [[Accessing_the_Archive_with_MailStore_Web_Access|Web Access]], the URIs mentioned in this article must be resolvable via DNS on the Internet and port-forwardings to the MailStore Server computer must be set up on the firewall or router if necessary. &lt;br /&gt;
* When using Microsoft&amp;amp;nbsp;365 to authenticate users at login, [[Accessing_the_Archive_via_Integrated_IMAP_Server|accessing the archive via IMAP]] is not possible for technical reasons.&lt;br /&gt;
* MailStore Server supports the synchronization of user accounts with the global Microsoft Cloud ''Microsoft&amp;amp;nbsp;365'' and ''Office&amp;amp;nbsp;365, operated by 21Vianet''. Other Environments like GCC, GCC&amp;amp;nbsp;High or DoD are not supported. In the following article, only the term Microsoft 365 is used for the sake of simplicity.&lt;br /&gt;
&lt;br /&gt;
== Connecting MailStore Server and Microsoft 365 ==&lt;br /&gt;
In order to synchronize user information from Microsoft 365, MailStore Server has to be connected to your Microsoft 365 tenant and been granted the required permissions. Microsoft 365 relies on Microsoft Entra ID as directory service. Each Microsoft 365 tenant corresponds to an Microsoft Entra ID tenant that stores its user information.&lt;br /&gt;
&lt;br /&gt;
=== Registering of MailStore Server as App in Microsoft Entra ID ===&lt;br /&gt;
Through registration, MailStore Server gets an identity in Microsoft Entra ID that makes it possible to authenticate to the tenant's services and use their resources.&lt;br /&gt;
* Sign in to the [https://portal.azure.com Microsoft Entra ID Portal] as a Global Administrator for your Microsoft 365 tenant.&amp;lt;br/&amp;gt;The Microsoft Entra ID Portal of ''Office 365, operated by 21Vianet'' [https://portal.azure.cn/#view/Microsoft_AAD_IAM/ActiveDirectoryMenuBlade/~/Overview can be accessed here].&lt;br /&gt;
* In the navigation menu (☰), select the option ''Microsoft Entra ID''.&lt;br /&gt;
* On the next page, select ''App registrations'' in the ''Manage'' section of the left navigation menu.&lt;br /&gt;
* Select ''New Registration''. The ''Register an application'' page appears.&lt;br /&gt;
* In the ''Name'' field, enter a meaningful display name, e.g. ''MailStore Server''. This name will be shown to users on logon later on, for example.&lt;br /&gt;
* Leave all other settings on this page to their defaults.&lt;br /&gt;
* Click on ''Register''. If the registration has been successful, you are shown the overview page of the newly registered app.&lt;br /&gt;
The ''Application (client) ID'' shown on this page identifies MailStore Server in your Microsoft Entra ID tenant and has to be copied into MailStore Server next, together with the ''Directory (tenant) ID''. Therefore, for the following steps, leave the overview page open in your web browser.&lt;br /&gt;
&lt;br /&gt;
=== Creating Credentials in MailStore Server ===&lt;br /&gt;
Credentials for Microsoft 365 consist of the aforementioned IDs and a secret that MailStore Server uses to proof its identity to Microsoft Entra ID. Microsoft recommends using certificates as secrets to identify apps in Microsoft Entra ID. When creating credentials, such a certificate is generated automatically by MailStore Server but can also be recreated later on.&lt;br /&gt;
{{Directory Services Accessing Configuration|Microsoft 365 or Microsoft 365 operated by 21 Vianet|Microsoft 365 sync 01.png}}&lt;br /&gt;
* In the ''Connection'' section, click on the button (…) next to the ''Credentials'' drop-down list.&lt;br /&gt;
* In the ''Credential Manager'' that appears, click on ''Create…''&lt;br /&gt;
* In the ''Microsoft Entra ID App Credentials'' dialog, enter the following information in the ''Settings'' section:&lt;br /&gt;
** '''Name'''&amp;lt;br/&amp;gt; A meaningful display name for the credentials, e.g. the name of your Microsoft 365 tenant.&lt;br /&gt;
** '''Application (client) ID'''&amp;lt;br/&amp;gt; The value of the corresponding field that you can copy from the Microsoft Entra ID app overview page in your web browser.&lt;br /&gt;
** '''Directory (tenant) ID'''&amp;lt;br/&amp;gt; The value of the corresponding field that you can copy from the Microsoft Entra ID app overview page in your web browser.&lt;br /&gt;
[[File:Microsoft 365 cred 01.png|center|347px]]&lt;br /&gt;
* In the ''Authentication'' section, click on the drop-down button next to the ''Certificate'' text box und select ''Download Certificate''. Save the certificate on your hard drive.&lt;br /&gt;
* Confirm your entries by clicking ''OK''.&lt;br /&gt;
* The newly created credentials are listed in the ''Credential Manager'' under the name you have entered with the type ''Microsoft 365''. Here you can also edit or delete existing credentials if necessary.&lt;br /&gt;
* Leave the ''Credential Manager'' by clicking ''Close''.&lt;br /&gt;
* The newly created credentials are selected in the corresponding drop-down list by default.&lt;br /&gt;
&lt;br /&gt;
=== Publishing Credentials in Microsoft Entra ID ===&lt;br /&gt;
For Microsoft Entra ID to validate the identity of MailStore Server, the created certificate needs to be published in Microsoft Entra ID.&lt;br /&gt;
* Switch to the Microsoft Entra ID app overview page in your web browser.&lt;br /&gt;
* Select ''Certificates &amp;amp; secrets'' in the ''Manage'' section of the left navigation menu.&lt;br /&gt;
* Click on ''Upload certificate'' in the ''Certificates'' section. Select the certificate file that you have saved previously and upload it to Microsoft Entra ID by clicking ''Add''.&lt;br /&gt;
* If uploading has been successful, the certificate's thumbprint as well as its start and expiry dates appear in the certificates list. You can compare the thumbprint and expiry date with those listed in the MailStore Credential Manager to check that you've uploaded the correct certificate.&lt;br /&gt;
&lt;br /&gt;
=== Configuring App Authentication in Microsoft Entra ID ===&lt;br /&gt;
For Microsoft Entra ID to return the result of a user's authentication request to MailStore Server, the endpoint where MailStore Server expects authentication responses, the so-called ''Redirect URI'', has to be conveyed to Microsoft Entra ID.&lt;br /&gt;
* In the Microsoft Entra ID Portal in the web browser, select ''Authentication'' in the ''Manage'' section of the left navigation menu.&lt;br /&gt;
* Click on the ''Add Redirect URI'' button on the ''Redirect URI configuration'' page.&lt;br /&gt;
* Select ''Web'' in the ''Web applications'' section of the platform selection page.&lt;br /&gt;
* In the '''Implicit grant and hybrid flows''' section perform the following action:&lt;br /&gt;
:'''Enable''' the '''ID tokens''' option.&lt;br /&gt;
[[File:Microsoft_365_sync_id_token.png|center]]&lt;br /&gt;
* In the field ''Redirect URI'', enter a URI in the format (without brackets)&lt;br /&gt;
*: &amp;lt;code&amp;gt;https://&amp;lt;fqdn&amp;gt;[:&amp;lt;port&amp;gt;]/oidc/signin&amp;lt;/code&amp;gt;&lt;br /&gt;
*; with the following components&amp;lt;nowiki&amp;gt;:&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
*: '''https://'''&amp;lt;br/&amp;gt; Specifying the &amp;lt;code&amp;gt;https://&amp;lt;/code&amp;gt; protocol is obligatory. To avoid certificate warnings during user logon, the web browsers on the client machines must trust the [[MailStore_Server_Service_Configuration#Certificate|certificate used by MailStore Server]].&lt;br /&gt;
*: '''FQDN'''&amp;lt;br/&amp;gt;The Fully Qualified Domain Name (FQDN) of your MailStore Server that consists of the machine name and the DNS domain, e.g. &amp;lt;code&amp;gt;mailstore.example.com&amp;lt;/code&amp;gt;. This name must be resolvable by all clients from which users shall be able to log on to MailStore Server.&lt;br /&gt;
*: '''Port'''&amp;lt;br/&amp;gt;The TCP port of the MailStore Web Access (&amp;lt;code&amp;gt;8462&amp;lt;/code&amp;gt; by default). This value must be equal to the port configured in the section ''Base Configuration &amp;gt; Network Settings &amp;gt; MailStore Web Access / Outlook Add-in (HTTPS)'' of the [[MailStore_Server_Service_Configuration#Services|MailStore Server Service Configuration]]. The TCP port has to be specified only if it is different from the default port of the HTTPS protocol (&amp;lt;code&amp;gt;443&amp;lt;/code&amp;gt;).&lt;br /&gt;
*: '''/oidc/signin'''&amp;lt;br/&amp;gt;The endpoint where MailStore Server expects the authentication responses of Microsoft Entra ID. This path has to be specified exactly as stated here at the end of the redirect URI.&lt;br /&gt;
* Leave the field ''Logout URL'' blank.&lt;br /&gt;
* Ensure that the '''ID tokens''' option is set in the '''Implicit grant and hybrid flows''' section.&lt;br /&gt;
* Click on ''Configure'' to finish the configuration of the app authentication in Microsoft Entra ID.&lt;br /&gt;
&amp;lt;div class=&amp;quot;resp-table&amp;quot;&amp;gt;&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;font-size: 85%;&amp;quot;&lt;br /&gt;
|+ Examples for valid redirect URIs&lt;br /&gt;
|-&lt;br /&gt;
! style=&amp;quot;width:80px;&amp;quot; | Product&lt;br /&gt;
! style=&amp;quot;width:80px;&amp;quot; | FQDN&lt;br /&gt;
! style=&amp;quot;width:40px;&amp;quot; | Port&lt;br /&gt;
! Resulting Redirect URI&lt;br /&gt;
|-&lt;br /&gt;
| align=&amp;quot;center&amp;quot;| MailStore Server&lt;br /&gt;
| align=&amp;quot;center&amp;quot;| mailstore.example.com&lt;br /&gt;
| align=&amp;quot;center&amp;quot;| 8462&lt;br /&gt;
| &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;https://mailstore.example.com:8462/oidc/signin&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;Redirect URI with Fully Qualified Domain Name and MailStore Web Access default  port&lt;br /&gt;
|-&lt;br /&gt;
| align=&amp;quot;center&amp;quot;| MailStore Server&lt;br /&gt;
| align=&amp;quot;center&amp;quot;| mailstore.example.com&lt;br /&gt;
| align=&amp;quot;center&amp;quot;| 443&lt;br /&gt;
| &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;https://mailstore.example.com/oidc/signin&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;The port can be ommited if the HTTPS default port 443 has been configured for MailStore Web Access or as source port of a port-forwarding on the firewall or router.&lt;br /&gt;
|-&lt;br /&gt;
| align=&amp;quot;center&amp;quot;| MailStore SPE&lt;br /&gt;
| align=&amp;quot;center&amp;quot;| archive.example.com&lt;br /&gt;
| align=&amp;quot;center&amp;quot;| 443&lt;br /&gt;
| &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;https://archive.example.com/&amp;lt;instanceid&amp;gt;/oidc/signin&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;The ''instanceid'' of the instance is part of the Redirect URI. &lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
:: &amp;lt;p class=&amp;quot;msnote&amp;quot;&amp;gt;'''Important Notice:''' Please note that the redirect URI is case-sensitive. Also review the requirements on resolving URIs in the [[#Prerequisites, Recommendations and Limitations|Prerequisites, Recommendations and Limitations]] section.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:: &amp;lt;p class=&amp;quot;msnote&amp;quot;&amp;gt;'''Important Notice:''' Please note that without setting the ''ID Token'' option, user authentication will not work.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Configuring the Redirect URI in MailStore Server ===&lt;br /&gt;
For MailStore Server to convey the redirect URI to requesting clients, it must be configured there, too.&lt;br /&gt;
* Switch to the ''Directory Services'' page in the MailStore Client.&lt;br /&gt;
* Enter the redirect URI in the corresponding field in the ''Authentication'' section. Just copy the value previously configured in Microsoft Entra ID from the web browser.&lt;br /&gt;
[[File:Microsoft 365 sync 02.png|center|450px]]&lt;br /&gt;
&lt;br /&gt;
=== Configuring API Permissions in Microsoft Entra ID ===&lt;br /&gt;
* Switch again to Microsoft Entra ID in your web browser.&lt;br /&gt;
* Select ''API permissions'' in the ''Manage'' section of the left navigation menu.&lt;br /&gt;
* Click on the ''Add a permission'' button in the ''Configured permissions'' section.&lt;br /&gt;
* On the ''Request API permissions'' menu page, select the API ''Microsoft Graph'' in the ''Commonly used Microsoft APIs'' section.&lt;br /&gt;
* Select the option ''Application permissions''.&lt;br /&gt;
* Enable the ''Directory &amp;gt; Directory.Read.All'' permission in the ''Select permissions'' section.&lt;br /&gt;
* Also enable the ''Mail &amp;gt; Mail.ReadWrite'' permission in the ''Select permissions'' section.&lt;br /&gt;
* Click on ''Add permissions''.&lt;br /&gt;
* The permissions are updated and the ''Directory.Read.All'' and ''Mail.ReadWrite'' permissions appear in the API permissions list under ''Microsoft Graph''.&lt;br /&gt;
* Click on the ''Add a permission'' button in the ''Configured permissions'' section again.&lt;br /&gt;
* On the ''Request API permissions'' menu page, select ''APIs my organization uses''.&lt;br /&gt;
* Search for ''Office 365 Exchange Online'' and click on the corresponding entry.&lt;br /&gt;
* Select the option ''Application permissions''.&lt;br /&gt;
* Enable the ''full_access_as_app'' permission in the ''Select permissions'' section.&lt;br /&gt;
* Also enable the permission ''SMTP.SendAsApp'' in the ''SMTP'' section.&lt;br /&gt;
* Click on ''Add permissions''.&lt;br /&gt;
* The permissions are updated and the ''full_access_as_app'' and ''SMTP.SendAsApp'' permissions appear in the API permissions list under ''Exchange''.&lt;br /&gt;
* Now click on the ''Grant admin consent for &amp;lt;your tenant name&amp;gt;'' button in the ''Configured permissions'' section.&lt;br /&gt;
* Acknowledge the following notice with ''Yes''.&lt;br /&gt;
* The status of all granted permissions is updated to ''Granted for &amp;lt;your tenant name&amp;gt;''.&lt;br /&gt;
The configuration of MailStore Server's connection to Microsoft 365 within Microsoft Entra ID is now complete. You can sign out of your Microsoft Entra ID tenant and close the browser window. Switch to the ''Directory Services'' page in the MailStore Client again, all remaining configuration steps must be done there.&lt;br /&gt;
&lt;br /&gt;
=== User Database Synchronization ===&lt;br /&gt;
After configuring the connection settings as described above, you can specify filter criteria for the Microsoft 365 synchronization in this section.&lt;br /&gt;
*'''Synchronize licensed Microsoft Exchange Online users only'''&amp;lt;br/&amp;gt;Only Microsoft 365 user accounts with a Microsoft Exchange Online license assigned to them will be taken into account by the synchronization.&lt;br /&gt;
*'''Synchronize enabled users only'''&amp;lt;br/&amp;gt;Only Microsoft 365 user accounts that do not have their login to Microsoft 365 blocked will be taken into account by the synchronization.&lt;br /&gt;
*'''Sync only these groups'''&amp;lt;br/&amp;gt;Choose one or several Microsoft 365 security groups if you only want their members to be created as MailStore Server users. That way it's possible to exclude certain users from being synchronized to MailStore Server.&lt;br /&gt;
&lt;br /&gt;
{{Directory Services Options|Microsoft 365 tenant}}&lt;br /&gt;
{{Directory Services Assign Default Privileges|Microsoft 365}}&lt;br /&gt;
{{Directory Services Run Synchronization|Microsoft 365 tenant}}&lt;br /&gt;
[[File:Office365_sync_02.png|450px|center]]&lt;br /&gt;
&lt;br /&gt;
{{Directory Services Test Authentication}}&lt;br /&gt;
&lt;br /&gt;
== Updating credentials ==&lt;br /&gt;
The certificate generated by MailStore for logging into Microsoft Entra ID is valid for 3750 days (825 days before version 25.3). In order for user synchronization and archiving to work afterwards, the certificate must be updated before its validity expires.&lt;br /&gt;
&lt;br /&gt;
MailStore Server will show a notification on the dashboard in MailStore Client and in the [[Jobs#Templates|status report]] 28 days before credentials expire. You can also use the [[Administration_API_-_Function_Reference#GetCredentials|GetCredentials API command]] to retrieve the expiration date.&lt;br /&gt;
&lt;br /&gt;
To update the credentials, proceed as follows:&lt;br /&gt;
&lt;br /&gt;
=== Updating credentials in MailStore Server ===&lt;br /&gt;
&lt;br /&gt;
* Log on to MailStore Client as a MailStore Server administrator.&lt;br /&gt;
* Click on ''Administrative Tools'' &amp;gt; ''Users and Archives'' &amp;gt; ''Directory Services''.&lt;br /&gt;
* In the ''Integration section'', make sure that the directory service type is set to ''Microsoft 365 (Modern Authentication)'' or ''Microsoft 365 operated by 21 Vianet (Modern Authentication)''.&lt;br /&gt;
[[File:Microsoft 365 sync 01.png|center|347px]]&lt;br /&gt;
* In the ''Connection'' section, click on the button (…) next to the ''Credentials'' drop-down list.&lt;br /&gt;
* In the ''Credential Manager'' that appears, click on the currently used credential object and click ''Edit…''&lt;br /&gt;
: [[File:Microsoft 365 cred 02.png|center|347px]]&lt;br /&gt;
* In the ''Authentication'' section, click on the drop-down button next to the ''Certificate'' text box und select ''Create Certificate...''.&lt;br /&gt;
* Confirm the process.&lt;br /&gt;
* In the ''Authentication'' section, click on the drop-down button next to the ''Certificate'' text box und select ''Download Certificate''. Save the certificate on your hard drive.&lt;br /&gt;
* Confirm your changes by clicking ''OK''.&lt;br /&gt;
* Leave the ''Credential Manager'' by clicking ''Apply''.&lt;br /&gt;
* The newly created credentials are selected in the corresponding drop-down list by default.&lt;br /&gt;
* If you are using Microsoft 365 in hybrid mode and synchronizing users from your Active Directory, set the directory service back to ''Active Directory''.&lt;br /&gt;
&lt;br /&gt;
=== Updating credentials in Microsoft Entra ID ===&lt;br /&gt;
&lt;br /&gt;
* Sign in to the [https://portal.azure.com Microsoft Entra ID Portal] as a Global Administrator for your Microsoft 365 tenant.&amp;lt;br/&amp;gt;The Microsoft Entra ID Portal of ''Office 365, operated by 21Vianet'' [https://portal.azure.cn/#view/Microsoft_AAD_IAM/ActiveDirectoryMenuBlade/~/Overview can be accessed here].&lt;br /&gt;
* In the navigation menu (☰), select the option ''Microsoft Entra ID''.&lt;br /&gt;
* On the next page, select ''App registrations'' in the ''Manage'' section of the left navigation menu.&lt;br /&gt;
* Select the application that is currently used by MailStore.&lt;br /&gt;
* Select ''Certificates &amp;amp; secrets'' in the ''Manage'' section of the left navigation menu.&lt;br /&gt;
* Click on ''Upload certificate'' in the ''Certificates'' section. Select the certificate file that you have saved previously and upload it to Microsoft Entra ID by clicking ''Add''.&lt;br /&gt;
* If uploading has been successful, the certificate's thumbprint as well as its start and expiry dates appear in the certificates list. You can compare the thumbprint and expiry date with those listed in the MailStore Credential Manager to check that you've uploaded the correct certificate.&lt;br /&gt;
* The previously used certificate can be removed from the list.&lt;br /&gt;
&lt;br /&gt;
[[de:Synchronisieren_von_Benutzerkonten_mit_Microsoft_365_(Modern_Authentication)]]&lt;br /&gt;
[[en:Synchronizing_User_Accounts_with_Microsoft_365_(Modern_Authentication)]]&lt;/div&gt;</summary>
		<author><name>Ltalaschus</name></author>
	</entry>
	<entry>
		<id>https://help.mailstore.com/en/server/index.php?title=File:Python-api-wrapper.zip&amp;diff=7959</id>
		<title>File:Python-api-wrapper.zip</title>
		<link rel="alternate" type="text/html" href="https://help.mailstore.com/en/server/index.php?title=File:Python-api-wrapper.zip&amp;diff=7959"/>
		<updated>2026-01-14T12:08:35Z</updated>

		<summary type="html">&lt;p&gt;Ltalaschus: Ltalaschus uploaded a new version of File:Python-api-wrapper.zip&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Ltalaschus</name></author>
	</entry>
	<entry>
		<id>https://help.mailstore.com/en/server/index.php?title=EWS_Migration&amp;diff=7954</id>
		<title>EWS Migration</title>
		<link rel="alternate" type="text/html" href="https://help.mailstore.com/en/server/index.php?title=EWS_Migration&amp;diff=7954"/>
		<updated>2026-01-13T11:20:34Z</updated>

		<summary type="html">&lt;p&gt;Ltalaschus: /* What Will Change for MailStore Server and the MailStore SPE? */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Microsoft Is Discontinuing Its Exchange Web Services (EWS) for Microsoft 365 ==&lt;br /&gt;
Microsoft [https://techcommunity.microsoft.com/blog/exchange/retirement-of-exchange-web-services-in-exchange-online/3924440 has announced] that it will no longer support Exchange Web Services (EWS) for Exchange Online as of October 1, 2026. This decision affects all companies that use EWS in combination with Exchange Online (Microsoft 365).&lt;br /&gt;
&lt;br /&gt;
EWS is a technology that was developed specifically for accessing Exchange data. The API enables access to data from Microsoft Exchange Server and Exchange Online, including emails and mailboxes. EWS has been a central interface for third-party solutions such as archiving systems.&lt;br /&gt;
&lt;br /&gt;
What Will Happen in October?&lt;br /&gt;
Microsoft plans to disable EWS for Exchange Online starting October 1. This decision will force manufacturers to switch to the Microsoft Graph API.&lt;br /&gt;
&lt;br /&gt;
Please note: If you use Exchange Online Kiosk, Microsoft Office 365, and Office 365 F1/F3, you should make the change by June. Further information can be found [https://techcommunity.microsoft.com/blog/exchange/update-to-ews-access-for-kiosk--frontline-worker-licensed-users/4474299 here].&lt;br /&gt;
&lt;br /&gt;
== What Will Change for MailStore Server and the MailStore SPE? ==&lt;br /&gt;
The shutdown of EWS initiated by Microsoft will require adjustments to MailStore Server and the MailStore SPE, depending on your archiving strategy.&lt;br /&gt;
This is because archiving methods within MailStore Server and MailStore SPE that were accessing EWS will no longer be available from October 1 and will then run into errors. &lt;br /&gt;
&lt;br /&gt;
The following profiles are expected to be affected from October onwards, Graph API does not expose access to these and support is effectifely dropped:&lt;br /&gt;
&lt;br /&gt;
* Importing Exchange Online archive mailboxes&lt;br /&gt;
* Importing Exchange Online public folders&lt;br /&gt;
&lt;br /&gt;
Regular Exchange Online Mailboxes and Shared Mailboxes are available using Graph API. New [[Archiving_Emails_from_Microsoft_365_-_Modern_Authentication|mailbox archiving profiles]] in MailStore will use Graph API starting with version 26.1. New export profiles will change with version 26.2. Existing EWS archiving and export profiles will work Until October 2026. We will offer a migration path in the coming months.&lt;br /&gt;
&lt;br /&gt;
The [[Email_Archiving_with_MailStore_Basics|summary panel]] of the archiving or export profile tells which protocol is used. Microsoft 365 Journal archiving profiles do not typically use EWS and are therefore not affected.&lt;br /&gt;
&lt;br /&gt;
[[de:EWS Migration]]&lt;br /&gt;
[[en:EWS Migration]]&lt;/div&gt;</summary>
		<author><name>Ltalaschus</name></author>
	</entry>
	<entry>
		<id>https://help.mailstore.com/en/server/index.php?title=EWS_Migration&amp;diff=7953</id>
		<title>EWS Migration</title>
		<link rel="alternate" type="text/html" href="https://help.mailstore.com/en/server/index.php?title=EWS_Migration&amp;diff=7953"/>
		<updated>2026-01-13T11:14:38Z</updated>

		<summary type="html">&lt;p&gt;Ltalaschus: /* What Will Change for MailStore Server and the MailStore SPE? */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Microsoft Is Discontinuing Its Exchange Web Services (EWS) for Microsoft 365 ==&lt;br /&gt;
Microsoft [https://techcommunity.microsoft.com/blog/exchange/retirement-of-exchange-web-services-in-exchange-online/3924440 has announced] that it will no longer support Exchange Web Services (EWS) for Exchange Online as of October 1, 2026. This decision affects all companies that use EWS in combination with Exchange Online (Microsoft 365).&lt;br /&gt;
&lt;br /&gt;
EWS is a technology that was developed specifically for accessing Exchange data. The API enables access to data from Microsoft Exchange Server and Exchange Online, including emails and mailboxes. EWS has been a central interface for third-party solutions such as archiving systems.&lt;br /&gt;
&lt;br /&gt;
What Will Happen in October?&lt;br /&gt;
Microsoft plans to disable EWS for Exchange Online starting October 1. This decision will force manufacturers to switch to the Microsoft Graph API.&lt;br /&gt;
&lt;br /&gt;
Please note: If you use Exchange Online Kiosk, Microsoft Office 365, and Office 365 F1/F3, you should make the change by June. Further information can be found [https://techcommunity.microsoft.com/blog/exchange/update-to-ews-access-for-kiosk--frontline-worker-licensed-users/4474299 here].&lt;br /&gt;
&lt;br /&gt;
== What Will Change for MailStore Server and the MailStore SPE? ==&lt;br /&gt;
The shutdown of EWS initiated by Microsoft will require adjustments to MailStore Server and the MailStore SPE, depending on your archiving strategy.&lt;br /&gt;
This is because archiving methods within MailStore Server and MailStore SPE that were accessing EWS will no longer be available from October 1 and will then run into errors. &lt;br /&gt;
&lt;br /&gt;
The following profiles are expected to be affected from October onwards, Graph API does not expose access to these and support is effectifely dropped:&lt;br /&gt;
&lt;br /&gt;
* Importing Exchange Online archive mailboxes&lt;br /&gt;
* Importing Exchange Online public folders&lt;br /&gt;
&lt;br /&gt;
Regular Exchange Online Mailboxes are available using Graph API. New [[Archiving_Emails_from_Microsoft_365_-_Modern_Authentication|mailbox archiving profiles]] in MailStore will use Graph API starting with version 26.1. New export profiles will change with version 26.2. Existing EWS archiving and export profiles will work Until October 2026. We will offer a migration path in the coming months.&lt;br /&gt;
&lt;br /&gt;
The [[Email_Archiving_with_MailStore_Basics|summary panel]] of the archiving or export profile tells which protocol is used. Microsoft 365 Journal archiving profiles do not typically use EWS and are therefore not affected.&lt;br /&gt;
&lt;br /&gt;
[[de:EWS Migration]]&lt;br /&gt;
[[en:EWS Migration]]&lt;/div&gt;</summary>
		<author><name>Ltalaschus</name></author>
	</entry>
	<entry>
		<id>https://help.mailstore.com/en/server/index.php?title=Archiving_Emails_from_Microsoft_365_-_Modern_Authentication&amp;diff=7952</id>
		<title>Archiving Emails from Microsoft 365 - Modern Authentication</title>
		<link rel="alternate" type="text/html" href="https://help.mailstore.com/en/server/index.php?title=Archiving_Emails_from_Microsoft_365_-_Modern_Authentication&amp;diff=7952"/>
		<updated>2026-01-13T10:43:22Z</updated>

		<summary type="html">&lt;p&gt;Ltalaschus: /* Archiving Individual Microsoft&amp;amp;nbsp;365 Archive Mailboxes */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Implementation Guide Preamble|Exchange&amp;amp;nbsp;Online / Microsoft&amp;amp;nbsp;365|{{#ev:youtube|https://youtu.be/X0Um0cDWGg0|350|right|''Tech Tip: Microsoft 365 Archiving Profiles''}}|&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;Our Tech Tip video shows the essential configuration steps in this article.}}&lt;br /&gt;
&amp;lt;br clear=&amp;quot;all&amp;quot;/&amp;gt;&lt;br /&gt;
{{Multiline Notices|Heading=Important Notices|If you have archived emails from an Exchange server and synchronized users from an Active Directory until now, follow the article [[Changing Archiving from Microsoft Exchange Server to Microsoft 365]].|MailStore Server supports archiving emails from the global Microsoft Cloud ''Microsoft&amp;amp;nbsp;365'' and ''Office&amp;amp;nbsp;365, operated by 21Vianet''. Other Environments like GCC, GCC&amp;amp;nbsp;High or DoD are not supported.|For better readability, the terms ''Microsoft&amp;amp;nbsp;365'' and ''Exchange&amp;amp;nbsp;Online'' are used interchangeably hereinafter instead of ''Exchange&amp;amp;nbsp;Online / Microsoft&amp;amp;nbsp;365''.}}&lt;br /&gt;
&lt;br /&gt;
== App Registration &amp;amp; User Synchronization ==&lt;br /&gt;
Before archiving Microsoft&amp;amp;nbsp;365 mailboxes, registering MailStore Server in your Microsoft&amp;amp;nbsp;365 tenant is required. It is also highly recommended to synchronize users in MailStore Server directly with that tenant to fetch all information that is relevant for archiving such as email addresses. The registration and synchronization procedures are described in the chapter [[Synchronizing User Accounts with Microsoft 365 (Modern Authentication)]] of the MailStore Server manual.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p class=msnote&amp;gt;'''Please note:''' MailStore Server runs as a [[MailStore Server Service Configuration|Windows service]] and thus must use ''Application Permissions'' to access user mailboxes in Microsoft&amp;amp;nbsp;365. By design, on the Microsoft identity platform, which is at the heart of Microsoft&amp;amp;nbsp;365 authentication and authorization, this permission scope encloses the full level of privileges implied by a permission. As a consequence, once registered as described above, MailStore Server has access to all mailboxes in your Microsoft&amp;amp;nbsp;365 tenant. Therefore, with regard to security, access to the Microsoft&amp;amp;nbsp;365 archiving profiles in MailStore Server is limited to MailStore Server administrators.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Including Microsoft&amp;amp;nbsp;365 Shared Mailboxes ===&lt;br /&gt;
In Microsoft&amp;amp;nbsp;365, shared mailboxes are special mailboxes that multiple users have access to. Unlike a normal mailbox, a shared mailbox is not associated to a licensed Microsoft&amp;amp;nbsp;365 user. For MailStore Server to create user entries for shared mailboxes, you must therefore deactivate the option ''Synchronize licensed Microsoft Exchange&amp;amp;nbsp;Online users only'' in the section [[Synchronizing User Accounts with Microsoft 365 (Modern Authentication)#User_Database_Synchronization|User Database Synchronization]].&amp;lt;br/&amp;gt;&lt;br /&gt;
After synchronization you can grant MailStore Server users access to the archive of the shared mailbox by [[Users,_Folders_and_Settings#Folder_Access_.28e.g._Access_to_the_Emails_of_Other_Users.29|assigning privileges]]. For archiving shared mailboxes, just proceed as for individual or multiple mailboxes as detailed below.&lt;br /&gt;
&lt;br /&gt;
== Archiving Individual Microsoft&amp;amp;nbsp;365 Mailboxes ==&lt;br /&gt;
{{Archiving Single Mailbox Preamble|Microsoft&amp;amp;nbsp;365}}&lt;br /&gt;
For each mailbox, please proceed as follows:&lt;br /&gt;
&lt;br /&gt;
* Log on to MailStore Client as MailStore Server administrator.&lt;br /&gt;
* Click on ''Archive Email''.&lt;br /&gt;
* From the ''Email Servers'' list in the ''Create Profile'' area of the ''Archive Email'' page, select ''Microsoft&amp;amp;nbsp;365'' or ''Microsoft&amp;amp;nbsp;365 (21Vianet)'' to create a new archiving profile.&lt;br /&gt;
* A wizard opens to assist in specifying the archiving settings.&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
*; [[File:Microsoft 365 mailbox 01.png|center|347px]]&lt;br /&gt;
* Select ''Single Mailbox'' and click on ''OK''.&lt;br /&gt;
*; [[File:Microsoft 365 mailbox 02.png|center|347px]]&lt;br /&gt;
* Select the Microsoft&amp;amp;nbsp;365 credentials that you have created during the registration of MailStore Server with Microsoft&amp;amp;nbsp;365 from the ''Credentials'' drop-down list. You can also use the button (…) to access the [[Synchronizing_User_Accounts_with_Microsoft_365_(Modern_Authentication)#Creating_Credentials_in_MailStore_Server|Credential Manager]].&lt;br /&gt;
* In the ''Mailbox'' field, enter the primary email address of the user whose mailbox you want to archive.&lt;br /&gt;
* Click on ''Test'' to verify that MailStore Server can access the mailbox.&lt;br /&gt;
* Click on ''Next''.&lt;br /&gt;
* If needed, adjust the settings for the [[Email_Archiving_with_MailStore_Basics#Archiving_Specific_Folders|List of Folders to be Archived]], the [[Email_Archiving_with_MailStore_Basics#Specifying_Filter_Criteria_for_Archiving|filter]] and the [[Email_Archiving_with_MailStore_Basics#Deleting_Emails_after_Archiving|Deletion Rules]]. By default, no emails will be deleted from the mailbox. The ''Timeout'' value only has to be adjusted in specific cases (e.g. with very slow network connections). &lt;br /&gt;
*; [[File:Microsoft_365_mailbox_03.png|center|347px]]&lt;br /&gt;
* Click on ''Next'' to continue.&lt;br /&gt;
* Select the archive of the user for whom the selected mailbox is to be archived. If the user does not exist yet, click on ''Create a New User…''.&lt;br /&gt;
*; [[File:Microsoft_365_mailbox_04.png|center|347px]]&lt;br /&gt;
* Click on ''Next''.&lt;br /&gt;
* In the last step, a name for the archiving profile can be specified. After clicking ''Finish'', the archiving profile will be listed under ''Saved Profiles'' and, if desired, can be run immediately or automatically.&lt;br /&gt;
&lt;br /&gt;
More information on how to execute archiving profiles can be found under the topic [[Email Archiving with MailStore Basics]]&lt;br /&gt;
&lt;br /&gt;
== Archiving Multiple Microsoft&amp;amp;nbsp;365 Mailboxes Centrally ==&lt;br /&gt;
{{Archiving Multiple Mailboxes Preamble|Microsoft&amp;amp;nbsp;365}}&lt;br /&gt;
Please proceed as follows:&lt;br /&gt;
&lt;br /&gt;
* Log on to MailStore Client as MailStore Server administrator.&lt;br /&gt;
* Click on ''Archive Email''.&lt;br /&gt;
* From the ''Email Servers'' list in the ''Create Profile'' area of the ''Archive Email'' page, select ''Microsoft&amp;amp;nbsp;365'' or ''Microsoft&amp;amp;nbsp;365 (21Vianet)'' to create a new archiving profile.&lt;br /&gt;
* A wizard opens to assist in specifying the archiving settings.&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
*; [[File:Microsoft 365 mailboxes 01.png|center|347px]]&lt;br /&gt;
* Select ''Multiple Mailboxes'' and click ''OK''.&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
*; &amp;lt;p class=msnote&amp;gt;{{Archiving_Multiple_or_Multidrop_Note|multiple mailboxes|[[#App_Registration_.26_User_Synchronization|directory synchronization]]}}&amp;lt;/p&amp;gt;&lt;br /&gt;
*; [[File:Microsoft 365 mailboxes 02.png|center|347px]]&lt;br /&gt;
* Select the Microsoft&amp;amp;nbsp;365 credentials that you have created during the registration of MailStore Server with Microsoft&amp;amp;nbsp;365 from the ''Credentials'' drop-down list. You can also use the button (…) to access the [[Synchronizing_User_Accounts_with_Microsoft_365_(Modern_Authentication)#Creating_Credentials_in_MailStore_Server|Credential Manager]].&lt;br /&gt;
* Click on ''Next'' to continue. &lt;br /&gt;
*; [[File:Microsoft 365 mailboxes 03.png|center|347px]]&lt;br /&gt;
* If needed, adjust the settings for the [[Email_Archiving_with_MailStore_Basics#Archiving_Specific_Folders|List of Folders to be Archived]], the [[Email_Archiving_with_MailStore_Basics#Specifying_Filter_Criteria_for_Archiving|filter]] and the [[Email_Archiving_with_MailStore_Basics#Deleting_Emails_after_Archiving|Deletion Rules]]. By default, no emails will be deleted from the mailbox. The ''Timeout'' value only has to be adjusted in specific cases (e.g. with very slow network connections). Please keep in mind that these settings apply to all mailboxes to be archived, as specified in the next step.&lt;br /&gt;
*; {{Archiving_Multiple_Mailboxes_Centrally_Options|Microsoft_365_mailboxes_04.png|Microsoft&amp;amp;nbsp;365}}&lt;br /&gt;
&lt;br /&gt;
== Archiving Incoming and Outgoing Emails Directly ==&lt;br /&gt;
{{Archiving Exchange Journal Mailbox Preamble|Exchange&amp;amp;nbsp;Online}}&lt;br /&gt;
&lt;br /&gt;
=== Step 1: Setup and Configure MailStore Gateway ===&lt;br /&gt;
Please refer to the [https://help.mailstore.com/en/gateway/ MailStore Gateway Manual] for detailed instructions about:&lt;br /&gt;
 &lt;br /&gt;
* Installation and Setup of MailStore Gateway&lt;br /&gt;
* Logging on to MailStore Gateway's Management Console&lt;br /&gt;
* Creating MailStore Gateway mailboxes&lt;br /&gt;
&lt;br /&gt;
After these steps, a mailbox with an individual email address (e.g. mbx-dead1234beef5678@gateway.example.com) should exist.&lt;br /&gt;
&lt;br /&gt;
=== Step 2: Configure MailStore Server ===&lt;br /&gt;
{{Archiving MailStore Gateway Mailbox|''In- and Outbound E-Mail Automatically''|Microsoft 365 journal 01.png|Arch_MailStore_Gateway_Office365_02.png|''Microsoft&amp;amp;nbsp;365''|TargetFolderHint=DontShow|POP3Hint=DontShow|DSLink=[[#App_Registration_.26_User_Synchronization|directory synchronization]]}}&lt;br /&gt;
&lt;br /&gt;
=== Step 3: Creating a Journal Rule ===&lt;br /&gt;
The following steps describe how to set up journaling for your Microsoft&amp;amp;nbsp;365 account.&lt;br /&gt;
&lt;br /&gt;
Since you are planning to use an external mailbox (MailStore Gateway) as the recipient for Journal reports, we highly recommend to first create an external contact with this mail address in your Exchange mailbox administration to prevent any later errors or warnings about an unknown recipient in the process.&lt;br /&gt;
&lt;br /&gt;
* Sign in to the [https://purview.microsoft.com/ Microsoft&amp;amp;nbsp;365 Purview portal] as an Exchange or Global Administrator for your Microsoft&amp;amp;nbsp;365 tenant.&lt;br /&gt;
* In the left navigation menu select ''Settings''.&lt;br /&gt;
* In the now shown ''Settings'' submenu select ''Data Lifecycle Management'' and then select  ''Exchange&amp;amp;nbsp;(legacy)'' or use [https://purview.microsoft.com/settings/application-settings/datalifecyclemanagement this link].&lt;br /&gt;
* Enter a mailbox in the ''Send undeliverable journal reports to'' section. This mailbox receives None Delivery Reports (NDRs) for undeliverable journal reports in case the primary journal mailbox is unreachable.&lt;br /&gt;
** This mailbox should be a dedicated mailbox for this purpose, which cannot reside in any Microsoft 365 tenant.&lt;br /&gt;
** The same journal report non-delivery reports mailbox must not be used for multiple tenants.&lt;br /&gt;
** The receiving mail server must not alter the ''X-MS-Exchange-Message-Is-Ndr'' email header.&lt;br /&gt;
** For this purpose, you can set up a second gateway on another server with an additional mailbox, as described in [[Archiving_Emails_from_Microsoft_365_-_Modern_Authentication#Step_1:_Setup_and_Configure_MailStore_Gateway|Step 1]]. Alternatively you can use any external mailbox that matches the above criteria.&lt;br /&gt;
** MailStore is able to extract the journal reports contained in the NDRs, then archive them like normal journal reports and thus assign the emails they contain to users. You can therefore create a second archiving profile as described in [[Archiving_Emails_from_Microsoft_365_-_Modern_Authentication#Step_2:_Configure_MailStore_Server|Step 2]], which archives from the Microsoft 365 journal report non-delivery reports mailbox.&lt;br /&gt;
* In the leftmost navigation menu select ''Data Lifecycle Management'', then ''Exchange&amp;amp;nbsp;(legacy)'', and finally ''Journal rules'' and therefore leave the ''Settings'' section or use [https://purview.microsoft.com/datalifecyclemanagement/exchange/journalrules this link]. In case ''Data Lifecycle Management'' is not listed, click ''Solutions'' &amp;gt; ''Data Lifecycle Management''.&lt;br /&gt;
* Create a new journaling rule by clicking on ''+ (New rule)''.&lt;br /&gt;
*:[[File:Arch_office365_journal_01.png|center|550px]]&lt;br /&gt;
* Enter the email address of the previously created MailStore Gateway mailbox in the ''Send journal reports to:'' box.&lt;br /&gt;
* Enter a name for the journal rule, e.g. ''Journaling''.&lt;br /&gt;
* In the ''Journal messages sent or received from'' section, select whether the rule should apply to everyone or to specific users or groups.&lt;br /&gt;
* Under ''Type of message to journal'', choose whether to capture all messages, internal messages only, or external messages only.&lt;br /&gt;
* Click on ''Next'', then validate your settings, click ''Submit'' to activate the rule.&lt;br /&gt;
&lt;br /&gt;
== Public Folders ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p class=msnote&amp;gt;'''Please note:''' Support for archiving of Public Folders for Microsoft 365 will reach its End of Life in October 2026. See [[EWS_Migration|here]] for more information.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Archiving Exchange Public Folders Preamble|Exchange&amp;amp;nbsp;Online|Microsoft&amp;amp;nbsp;365}}&lt;br /&gt;
* Sign in to the [https://admin.exchange.microsoft.com/#/publicfolders Microsoft&amp;amp;nbsp;365 Exchange admin center] as an Exchange or Global Administrator for your Microsoft&amp;amp;nbsp;365 tenant.&lt;br /&gt;
* Navigate to ''Public folders'', in case it it not already opened.&lt;br /&gt;
* Click on ''Root permissions''.&lt;br /&gt;
*: [[File:Microsoft_365_pf_01.png|center|480px]]&lt;br /&gt;
* The side-panel ''Folder permissions'' opens. Click on ''+ Add permissions''.&lt;br /&gt;
* Use the text box beneath ''Select User'' to choose the Microsoft&amp;amp;nbsp;365 user you want to grant permissions.&lt;br /&gt;
* Choose ''Custom'' as ''Permission level'' and grant ''Read items'' and ''Delete all'' permissions.&lt;br /&gt;
*: [[File:Microsoft_365_pf_02.png|center|480px]]&lt;br /&gt;
* Click on ''Save Changes''.&lt;br /&gt;
&lt;br /&gt;
=== Step 3: Setting up the Archiving Process ===&lt;br /&gt;
* Log on to MailStore Client as MailStore Server administrator.&lt;br /&gt;
* Click on ''Archive Email''.&lt;br /&gt;
* From the ''Email Servers'' list in the ''Create Profile'' area of the ''Archive Email'' page, select ''Microsoft&amp;amp;nbsp;365'' or ''Microsoft&amp;amp;nbsp;365 (21Vianet)'' to create a new archiving profile.&lt;br /&gt;
* A wizard opens to assist in specifying the archiving settings.&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
*; [[File:Microsoft 365 pf 03.png|center|347px]]&lt;br /&gt;
* Select ''Public Folders'' and click on ''OK''.&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
*; [[File:Microsoft 365 pf 04.png|center|347px]]&lt;br /&gt;
* Select the Microsoft&amp;amp;nbsp;365 credentials that you have created during the registration of MailStore Server with Microsoft&amp;amp;nbsp;365 from the ''Credentials'' drop-down list. You can also use the button (…) to access the [[Synchronizing_User_Accounts_with_Microsoft_365_(Modern_Authentication)#Creating_Credentials_in_MailStore_Server|Credential Manager]].&lt;br /&gt;
* In the ''Mailbox'' field, enter the primary email address of the user that has access to the public folders as described above.&lt;br /&gt;
* The value of the ''Target Folder'' box defines the top level folder below which the public folder hierarchy will be created in the target archive. Usually, you can leave this value to its default.&lt;br /&gt;
* Click on ''Test'' to verify that MailStore can access the public folders.&lt;br /&gt;
* Click on ''Next'' to continue.&lt;br /&gt;
*; [[File:Microsoft 365 pf 05.png|center|347px]]&lt;br /&gt;
* Adjust the settings for the [[Email_Archiving_with_MailStore_Basics#Archiving_Specific_Folders|List of Folders to be Archived]]. By default, all public folders that contain emails will be archived.&lt;br /&gt;
* If needed, adjust [[Email_Archiving_with_MailStore_Basics#Specifying_Filter_Criteria_for_Archiving|the filter]] and the [[Email_Archiving_with_MailStore_Basics#Deleting_Emails_after_Archiving|Deletion Rules]]. By default, no emails will be deleted from the public folders. The ''Timeout'' value only has to be adjusted in specific cases (e.g. with very slow network connections).&lt;br /&gt;
* Click on ''Next'' to continue.&lt;br /&gt;
*; [[File:Microsoft 365 pf 06.png|center|347px]]&lt;br /&gt;
* In the next step, select the archive of the user you have prepared in step 1.&lt;br /&gt;
* In the last step, specify a name for the archiving profile. After clicking ''Finish'' the archiving profile will be listed under ''Saved Profiles'' and can be run immediately or automatically if desired.&lt;br /&gt;
&lt;br /&gt;
== About Archiving Archive Mailboxes ==&lt;br /&gt;
{{Archive_Mailbox_Folder_Structure}}&lt;br /&gt;
&lt;br /&gt;
== Archiving Individual Microsoft&amp;amp;nbsp;365 Archive Mailboxes ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p class=msnote&amp;gt;'''Please note:''' Support for archiving Archive Mailboxes for Microsoft 365 will reach its End of Life in October 2026. See [[EWS_Migration|here]] for more information.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Archiving Single Archive Mailbox Preamble|Microsoft&amp;amp;nbsp;365}}&lt;br /&gt;
For each mailbox, please proceed as follows:&lt;br /&gt;
&lt;br /&gt;
* Log on to MailStore Client as MailStore Server administrator.&lt;br /&gt;
* Click on ''Archive Email''.&lt;br /&gt;
* From the ''Email Servers'' list in the ''Create Profile'' area of the ''Archive Email'' page, select ''Microsoft&amp;amp;nbsp;365'' or ''Microsoft&amp;amp;nbsp;365 (21Vianet)'' to create a new archiving profile.&lt;br /&gt;
* A wizard opens to assist in specifying the archiving settings.&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
*; [[File:Microsoft_365_archive_mailbox 01.png|center|347px]]&lt;br /&gt;
* Select ''Single Archive Mailbox'' and click on ''OK''.&lt;br /&gt;
*; [[File:Microsoft_365_archive_mailbox 02.png|center|347px]]&lt;br /&gt;
* Select the Microsoft&amp;amp;nbsp;365 credentials that you have created during the registration of MailStore Server with Microsoft&amp;amp;nbsp;365 from the ''Credentials'' drop-down list. You can also use the button (…) to access the [[Synchronizing_User_Accounts_with_Microsoft_365_(Modern_Authentication)#Creating_Credentials_in_MailStore_Server|Credential Manager]].&lt;br /&gt;
* In the ''Mailbox'' field, enter the primary email address of the user whose archive mailbox you want to archive.&lt;br /&gt;
* Click on ''Test'' to verify that MailStore Server can access the archive mailbox.&lt;br /&gt;
* Click on ''Next''.&lt;br /&gt;
* If needed, adjust the settings for the [[Email_Archiving_with_MailStore_Basics#Archiving_Specific_Folders|List of Folders to be Archived]], the [[Email_Archiving_with_MailStore_Basics#Specifying_Filter_Criteria_for_Archiving|filter]] and the [[Email_Archiving_with_MailStore_Basics#Deleting_Emails_after_Archiving|Deletion Rules]]. By default, no emails will be deleted from the archive mailbox. The ''Timeout'' value only has to be adjusted in specific cases (e.g. with very slow network connections). &lt;br /&gt;
*; [[File:Microsoft_365_archive_mailbox_03.png|center|347px]]&lt;br /&gt;
* Click on ''Next'' to continue.&lt;br /&gt;
* Select the archive of the user for whom the selected archive mailbox is to be archived. If the user does not exist yet, click on ''Create a New User…''.&lt;br /&gt;
*; [[File:Microsoft_365_archive_mailbox_04.png|center|347px]]&lt;br /&gt;
* Click on ''Next''.&lt;br /&gt;
* In the last step, a name for the archiving profile can be specified. After clicking ''Finish'', the archiving profile will be listed under ''Saved Profiles'' and, if desired, can be run immediately or automatically.&lt;br /&gt;
&lt;br /&gt;
More information on how to execute archiving profiles can be found under the topic [[Email Archiving with MailStore Basics]]&lt;br /&gt;
&lt;br /&gt;
== Archiving Multiple Microsoft&amp;amp;nbsp;365 Archive Mailboxes Centrally ==&lt;br /&gt;
{{Archiving Multiple Archive Mailboxes Preamble|Microsoft&amp;amp;nbsp;365}}&lt;br /&gt;
Please proceed as follows:&lt;br /&gt;
&lt;br /&gt;
* Log on to MailStore Client as MailStore Server administrator.&lt;br /&gt;
* Click on ''Archive Email''.&lt;br /&gt;
* From the ''Email Servers'' list in the ''Create Profile'' area of the ''Archive Email'' page, select ''Microsoft&amp;amp;nbsp;365'' or ''Microsoft&amp;amp;nbsp;365 (21Vianet)'' to create a new archiving profile.&lt;br /&gt;
* A wizard opens to assist in specifying the archiving settings.&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
*; [[File:Microsoft_365_archive_mailboxes_01.png|center|347px]]&lt;br /&gt;
* Select ''Multiple Archive Mailboxes'' and click ''OK''.&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
*; &amp;lt;p class=msnote&amp;gt;{{Archiving_Multiple_or_Multidrop_Note|multiple archive mailboxes|[[#App_Registration_.26_User_Synchronization|directory synchronization]]}}&amp;lt;/p&amp;gt;&lt;br /&gt;
*; [[File:Microsoft_365_archive_mailboxes_02.png|center|347px]]&lt;br /&gt;
* Select the Microsoft&amp;amp;nbsp;365 credentials that you have created during the registration of MailStore Server with Microsoft&amp;amp;nbsp;365 from the ''Credentials'' drop-down list. You can also use the button (…) to access the [[Synchronizing_User_Accounts_with_Microsoft_365_(Modern_Authentication)#Creating_Credentials_in_MailStore_Server|Credential Manager]].&lt;br /&gt;
* Click on ''Next'' to continue. &lt;br /&gt;
*; [[File:Microsoft_365_archive_mailboxes_03.png|center|347px]]&lt;br /&gt;
* If needed, adjust the settings for the [[Email_Archiving_with_MailStore_Basics#Archiving_Specific_Folders|List of Folders to be Archived]], the [[Email_Archiving_with_MailStore_Basics#Specifying_Filter_Criteria_for_Archiving|filter]] and the [[Email_Archiving_with_MailStore_Basics#Deleting_Emails_after_Archiving|Deletion Rules]]. By default, no emails will be deleted from the archive mailbox. The ''Timeout'' value only has to be adjusted in specific cases (e.g. with very slow network connections). Please keep in mind that these settings apply to all mailboxes to be archived, as specified in the next step.&lt;br /&gt;
*; {{Archiving_Multiple_Mailboxes_Centrally_Options|Microsoft_365_archive_mailboxes_04.png|Microsoft&amp;amp;nbsp;365}}&lt;br /&gt;
&lt;br /&gt;
[[de:E-Mail-Archivierung_von_Microsoft_365_(Modern_Authentication)]]&lt;br /&gt;
[[en:Archiving_Emails_from_Microsoft_365_(Modern_Authentication)]]&lt;/div&gt;</summary>
		<author><name>Ltalaschus</name></author>
	</entry>
	<entry>
		<id>https://help.mailstore.com/en/server/index.php?title=Archiving_Emails_from_Microsoft_365_-_Modern_Authentication&amp;diff=7951</id>
		<title>Archiving Emails from Microsoft 365 - Modern Authentication</title>
		<link rel="alternate" type="text/html" href="https://help.mailstore.com/en/server/index.php?title=Archiving_Emails_from_Microsoft_365_-_Modern_Authentication&amp;diff=7951"/>
		<updated>2026-01-13T10:42:46Z</updated>

		<summary type="html">&lt;p&gt;Ltalaschus: /* Public Folders */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Implementation Guide Preamble|Exchange&amp;amp;nbsp;Online / Microsoft&amp;amp;nbsp;365|{{#ev:youtube|https://youtu.be/X0Um0cDWGg0|350|right|''Tech Tip: Microsoft 365 Archiving Profiles''}}|&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;Our Tech Tip video shows the essential configuration steps in this article.}}&lt;br /&gt;
&amp;lt;br clear=&amp;quot;all&amp;quot;/&amp;gt;&lt;br /&gt;
{{Multiline Notices|Heading=Important Notices|If you have archived emails from an Exchange server and synchronized users from an Active Directory until now, follow the article [[Changing Archiving from Microsoft Exchange Server to Microsoft 365]].|MailStore Server supports archiving emails from the global Microsoft Cloud ''Microsoft&amp;amp;nbsp;365'' and ''Office&amp;amp;nbsp;365, operated by 21Vianet''. Other Environments like GCC, GCC&amp;amp;nbsp;High or DoD are not supported.|For better readability, the terms ''Microsoft&amp;amp;nbsp;365'' and ''Exchange&amp;amp;nbsp;Online'' are used interchangeably hereinafter instead of ''Exchange&amp;amp;nbsp;Online / Microsoft&amp;amp;nbsp;365''.}}&lt;br /&gt;
&lt;br /&gt;
== App Registration &amp;amp; User Synchronization ==&lt;br /&gt;
Before archiving Microsoft&amp;amp;nbsp;365 mailboxes, registering MailStore Server in your Microsoft&amp;amp;nbsp;365 tenant is required. It is also highly recommended to synchronize users in MailStore Server directly with that tenant to fetch all information that is relevant for archiving such as email addresses. The registration and synchronization procedures are described in the chapter [[Synchronizing User Accounts with Microsoft 365 (Modern Authentication)]] of the MailStore Server manual.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p class=msnote&amp;gt;'''Please note:''' MailStore Server runs as a [[MailStore Server Service Configuration|Windows service]] and thus must use ''Application Permissions'' to access user mailboxes in Microsoft&amp;amp;nbsp;365. By design, on the Microsoft identity platform, which is at the heart of Microsoft&amp;amp;nbsp;365 authentication and authorization, this permission scope encloses the full level of privileges implied by a permission. As a consequence, once registered as described above, MailStore Server has access to all mailboxes in your Microsoft&amp;amp;nbsp;365 tenant. Therefore, with regard to security, access to the Microsoft&amp;amp;nbsp;365 archiving profiles in MailStore Server is limited to MailStore Server administrators.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Including Microsoft&amp;amp;nbsp;365 Shared Mailboxes ===&lt;br /&gt;
In Microsoft&amp;amp;nbsp;365, shared mailboxes are special mailboxes that multiple users have access to. Unlike a normal mailbox, a shared mailbox is not associated to a licensed Microsoft&amp;amp;nbsp;365 user. For MailStore Server to create user entries for shared mailboxes, you must therefore deactivate the option ''Synchronize licensed Microsoft Exchange&amp;amp;nbsp;Online users only'' in the section [[Synchronizing User Accounts with Microsoft 365 (Modern Authentication)#User_Database_Synchronization|User Database Synchronization]].&amp;lt;br/&amp;gt;&lt;br /&gt;
After synchronization you can grant MailStore Server users access to the archive of the shared mailbox by [[Users,_Folders_and_Settings#Folder_Access_.28e.g._Access_to_the_Emails_of_Other_Users.29|assigning privileges]]. For archiving shared mailboxes, just proceed as for individual or multiple mailboxes as detailed below.&lt;br /&gt;
&lt;br /&gt;
== Archiving Individual Microsoft&amp;amp;nbsp;365 Mailboxes ==&lt;br /&gt;
{{Archiving Single Mailbox Preamble|Microsoft&amp;amp;nbsp;365}}&lt;br /&gt;
For each mailbox, please proceed as follows:&lt;br /&gt;
&lt;br /&gt;
* Log on to MailStore Client as MailStore Server administrator.&lt;br /&gt;
* Click on ''Archive Email''.&lt;br /&gt;
* From the ''Email Servers'' list in the ''Create Profile'' area of the ''Archive Email'' page, select ''Microsoft&amp;amp;nbsp;365'' or ''Microsoft&amp;amp;nbsp;365 (21Vianet)'' to create a new archiving profile.&lt;br /&gt;
* A wizard opens to assist in specifying the archiving settings.&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
*; [[File:Microsoft 365 mailbox 01.png|center|347px]]&lt;br /&gt;
* Select ''Single Mailbox'' and click on ''OK''.&lt;br /&gt;
*; [[File:Microsoft 365 mailbox 02.png|center|347px]]&lt;br /&gt;
* Select the Microsoft&amp;amp;nbsp;365 credentials that you have created during the registration of MailStore Server with Microsoft&amp;amp;nbsp;365 from the ''Credentials'' drop-down list. You can also use the button (…) to access the [[Synchronizing_User_Accounts_with_Microsoft_365_(Modern_Authentication)#Creating_Credentials_in_MailStore_Server|Credential Manager]].&lt;br /&gt;
* In the ''Mailbox'' field, enter the primary email address of the user whose mailbox you want to archive.&lt;br /&gt;
* Click on ''Test'' to verify that MailStore Server can access the mailbox.&lt;br /&gt;
* Click on ''Next''.&lt;br /&gt;
* If needed, adjust the settings for the [[Email_Archiving_with_MailStore_Basics#Archiving_Specific_Folders|List of Folders to be Archived]], the [[Email_Archiving_with_MailStore_Basics#Specifying_Filter_Criteria_for_Archiving|filter]] and the [[Email_Archiving_with_MailStore_Basics#Deleting_Emails_after_Archiving|Deletion Rules]]. By default, no emails will be deleted from the mailbox. The ''Timeout'' value only has to be adjusted in specific cases (e.g. with very slow network connections). &lt;br /&gt;
*; [[File:Microsoft_365_mailbox_03.png|center|347px]]&lt;br /&gt;
* Click on ''Next'' to continue.&lt;br /&gt;
* Select the archive of the user for whom the selected mailbox is to be archived. If the user does not exist yet, click on ''Create a New User…''.&lt;br /&gt;
*; [[File:Microsoft_365_mailbox_04.png|center|347px]]&lt;br /&gt;
* Click on ''Next''.&lt;br /&gt;
* In the last step, a name for the archiving profile can be specified. After clicking ''Finish'', the archiving profile will be listed under ''Saved Profiles'' and, if desired, can be run immediately or automatically.&lt;br /&gt;
&lt;br /&gt;
More information on how to execute archiving profiles can be found under the topic [[Email Archiving with MailStore Basics]]&lt;br /&gt;
&lt;br /&gt;
== Archiving Multiple Microsoft&amp;amp;nbsp;365 Mailboxes Centrally ==&lt;br /&gt;
{{Archiving Multiple Mailboxes Preamble|Microsoft&amp;amp;nbsp;365}}&lt;br /&gt;
Please proceed as follows:&lt;br /&gt;
&lt;br /&gt;
* Log on to MailStore Client as MailStore Server administrator.&lt;br /&gt;
* Click on ''Archive Email''.&lt;br /&gt;
* From the ''Email Servers'' list in the ''Create Profile'' area of the ''Archive Email'' page, select ''Microsoft&amp;amp;nbsp;365'' or ''Microsoft&amp;amp;nbsp;365 (21Vianet)'' to create a new archiving profile.&lt;br /&gt;
* A wizard opens to assist in specifying the archiving settings.&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
*; [[File:Microsoft 365 mailboxes 01.png|center|347px]]&lt;br /&gt;
* Select ''Multiple Mailboxes'' and click ''OK''.&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
*; &amp;lt;p class=msnote&amp;gt;{{Archiving_Multiple_or_Multidrop_Note|multiple mailboxes|[[#App_Registration_.26_User_Synchronization|directory synchronization]]}}&amp;lt;/p&amp;gt;&lt;br /&gt;
*; [[File:Microsoft 365 mailboxes 02.png|center|347px]]&lt;br /&gt;
* Select the Microsoft&amp;amp;nbsp;365 credentials that you have created during the registration of MailStore Server with Microsoft&amp;amp;nbsp;365 from the ''Credentials'' drop-down list. You can also use the button (…) to access the [[Synchronizing_User_Accounts_with_Microsoft_365_(Modern_Authentication)#Creating_Credentials_in_MailStore_Server|Credential Manager]].&lt;br /&gt;
* Click on ''Next'' to continue. &lt;br /&gt;
*; [[File:Microsoft 365 mailboxes 03.png|center|347px]]&lt;br /&gt;
* If needed, adjust the settings for the [[Email_Archiving_with_MailStore_Basics#Archiving_Specific_Folders|List of Folders to be Archived]], the [[Email_Archiving_with_MailStore_Basics#Specifying_Filter_Criteria_for_Archiving|filter]] and the [[Email_Archiving_with_MailStore_Basics#Deleting_Emails_after_Archiving|Deletion Rules]]. By default, no emails will be deleted from the mailbox. The ''Timeout'' value only has to be adjusted in specific cases (e.g. with very slow network connections). Please keep in mind that these settings apply to all mailboxes to be archived, as specified in the next step.&lt;br /&gt;
*; {{Archiving_Multiple_Mailboxes_Centrally_Options|Microsoft_365_mailboxes_04.png|Microsoft&amp;amp;nbsp;365}}&lt;br /&gt;
&lt;br /&gt;
== Archiving Incoming and Outgoing Emails Directly ==&lt;br /&gt;
{{Archiving Exchange Journal Mailbox Preamble|Exchange&amp;amp;nbsp;Online}}&lt;br /&gt;
&lt;br /&gt;
=== Step 1: Setup and Configure MailStore Gateway ===&lt;br /&gt;
Please refer to the [https://help.mailstore.com/en/gateway/ MailStore Gateway Manual] for detailed instructions about:&lt;br /&gt;
 &lt;br /&gt;
* Installation and Setup of MailStore Gateway&lt;br /&gt;
* Logging on to MailStore Gateway's Management Console&lt;br /&gt;
* Creating MailStore Gateway mailboxes&lt;br /&gt;
&lt;br /&gt;
After these steps, a mailbox with an individual email address (e.g. mbx-dead1234beef5678@gateway.example.com) should exist.&lt;br /&gt;
&lt;br /&gt;
=== Step 2: Configure MailStore Server ===&lt;br /&gt;
{{Archiving MailStore Gateway Mailbox|''In- and Outbound E-Mail Automatically''|Microsoft 365 journal 01.png|Arch_MailStore_Gateway_Office365_02.png|''Microsoft&amp;amp;nbsp;365''|TargetFolderHint=DontShow|POP3Hint=DontShow|DSLink=[[#App_Registration_.26_User_Synchronization|directory synchronization]]}}&lt;br /&gt;
&lt;br /&gt;
=== Step 3: Creating a Journal Rule ===&lt;br /&gt;
The following steps describe how to set up journaling for your Microsoft&amp;amp;nbsp;365 account.&lt;br /&gt;
&lt;br /&gt;
Since you are planning to use an external mailbox (MailStore Gateway) as the recipient for Journal reports, we highly recommend to first create an external contact with this mail address in your Exchange mailbox administration to prevent any later errors or warnings about an unknown recipient in the process.&lt;br /&gt;
&lt;br /&gt;
* Sign in to the [https://purview.microsoft.com/ Microsoft&amp;amp;nbsp;365 Purview portal] as an Exchange or Global Administrator for your Microsoft&amp;amp;nbsp;365 tenant.&lt;br /&gt;
* In the left navigation menu select ''Settings''.&lt;br /&gt;
* In the now shown ''Settings'' submenu select ''Data Lifecycle Management'' and then select  ''Exchange&amp;amp;nbsp;(legacy)'' or use [https://purview.microsoft.com/settings/application-settings/datalifecyclemanagement this link].&lt;br /&gt;
* Enter a mailbox in the ''Send undeliverable journal reports to'' section. This mailbox receives None Delivery Reports (NDRs) for undeliverable journal reports in case the primary journal mailbox is unreachable.&lt;br /&gt;
** This mailbox should be a dedicated mailbox for this purpose, which cannot reside in any Microsoft 365 tenant.&lt;br /&gt;
** The same journal report non-delivery reports mailbox must not be used for multiple tenants.&lt;br /&gt;
** The receiving mail server must not alter the ''X-MS-Exchange-Message-Is-Ndr'' email header.&lt;br /&gt;
** For this purpose, you can set up a second gateway on another server with an additional mailbox, as described in [[Archiving_Emails_from_Microsoft_365_-_Modern_Authentication#Step_1:_Setup_and_Configure_MailStore_Gateway|Step 1]]. Alternatively you can use any external mailbox that matches the above criteria.&lt;br /&gt;
** MailStore is able to extract the journal reports contained in the NDRs, then archive them like normal journal reports and thus assign the emails they contain to users. You can therefore create a second archiving profile as described in [[Archiving_Emails_from_Microsoft_365_-_Modern_Authentication#Step_2:_Configure_MailStore_Server|Step 2]], which archives from the Microsoft 365 journal report non-delivery reports mailbox.&lt;br /&gt;
* In the leftmost navigation menu select ''Data Lifecycle Management'', then ''Exchange&amp;amp;nbsp;(legacy)'', and finally ''Journal rules'' and therefore leave the ''Settings'' section or use [https://purview.microsoft.com/datalifecyclemanagement/exchange/journalrules this link]. In case ''Data Lifecycle Management'' is not listed, click ''Solutions'' &amp;gt; ''Data Lifecycle Management''.&lt;br /&gt;
* Create a new journaling rule by clicking on ''+ (New rule)''.&lt;br /&gt;
*:[[File:Arch_office365_journal_01.png|center|550px]]&lt;br /&gt;
* Enter the email address of the previously created MailStore Gateway mailbox in the ''Send journal reports to:'' box.&lt;br /&gt;
* Enter a name for the journal rule, e.g. ''Journaling''.&lt;br /&gt;
* In the ''Journal messages sent or received from'' section, select whether the rule should apply to everyone or to specific users or groups.&lt;br /&gt;
* Under ''Type of message to journal'', choose whether to capture all messages, internal messages only, or external messages only.&lt;br /&gt;
* Click on ''Next'', then validate your settings, click ''Submit'' to activate the rule.&lt;br /&gt;
&lt;br /&gt;
== Public Folders ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p class=msnote&amp;gt;'''Please note:''' Support for archiving of Public Folders for Microsoft 365 will reach its End of Life in October 2026. See [[EWS_Migration|here]] for more information.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Archiving Exchange Public Folders Preamble|Exchange&amp;amp;nbsp;Online|Microsoft&amp;amp;nbsp;365}}&lt;br /&gt;
* Sign in to the [https://admin.exchange.microsoft.com/#/publicfolders Microsoft&amp;amp;nbsp;365 Exchange admin center] as an Exchange or Global Administrator for your Microsoft&amp;amp;nbsp;365 tenant.&lt;br /&gt;
* Navigate to ''Public folders'', in case it it not already opened.&lt;br /&gt;
* Click on ''Root permissions''.&lt;br /&gt;
*: [[File:Microsoft_365_pf_01.png|center|480px]]&lt;br /&gt;
* The side-panel ''Folder permissions'' opens. Click on ''+ Add permissions''.&lt;br /&gt;
* Use the text box beneath ''Select User'' to choose the Microsoft&amp;amp;nbsp;365 user you want to grant permissions.&lt;br /&gt;
* Choose ''Custom'' as ''Permission level'' and grant ''Read items'' and ''Delete all'' permissions.&lt;br /&gt;
*: [[File:Microsoft_365_pf_02.png|center|480px]]&lt;br /&gt;
* Click on ''Save Changes''.&lt;br /&gt;
&lt;br /&gt;
=== Step 3: Setting up the Archiving Process ===&lt;br /&gt;
* Log on to MailStore Client as MailStore Server administrator.&lt;br /&gt;
* Click on ''Archive Email''.&lt;br /&gt;
* From the ''Email Servers'' list in the ''Create Profile'' area of the ''Archive Email'' page, select ''Microsoft&amp;amp;nbsp;365'' or ''Microsoft&amp;amp;nbsp;365 (21Vianet)'' to create a new archiving profile.&lt;br /&gt;
* A wizard opens to assist in specifying the archiving settings.&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
*; [[File:Microsoft 365 pf 03.png|center|347px]]&lt;br /&gt;
* Select ''Public Folders'' and click on ''OK''.&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
*; [[File:Microsoft 365 pf 04.png|center|347px]]&lt;br /&gt;
* Select the Microsoft&amp;amp;nbsp;365 credentials that you have created during the registration of MailStore Server with Microsoft&amp;amp;nbsp;365 from the ''Credentials'' drop-down list. You can also use the button (…) to access the [[Synchronizing_User_Accounts_with_Microsoft_365_(Modern_Authentication)#Creating_Credentials_in_MailStore_Server|Credential Manager]].&lt;br /&gt;
* In the ''Mailbox'' field, enter the primary email address of the user that has access to the public folders as described above.&lt;br /&gt;
* The value of the ''Target Folder'' box defines the top level folder below which the public folder hierarchy will be created in the target archive. Usually, you can leave this value to its default.&lt;br /&gt;
* Click on ''Test'' to verify that MailStore can access the public folders.&lt;br /&gt;
* Click on ''Next'' to continue.&lt;br /&gt;
*; [[File:Microsoft 365 pf 05.png|center|347px]]&lt;br /&gt;
* Adjust the settings for the [[Email_Archiving_with_MailStore_Basics#Archiving_Specific_Folders|List of Folders to be Archived]]. By default, all public folders that contain emails will be archived.&lt;br /&gt;
* If needed, adjust [[Email_Archiving_with_MailStore_Basics#Specifying_Filter_Criteria_for_Archiving|the filter]] and the [[Email_Archiving_with_MailStore_Basics#Deleting_Emails_after_Archiving|Deletion Rules]]. By default, no emails will be deleted from the public folders. The ''Timeout'' value only has to be adjusted in specific cases (e.g. with very slow network connections).&lt;br /&gt;
* Click on ''Next'' to continue.&lt;br /&gt;
*; [[File:Microsoft 365 pf 06.png|center|347px]]&lt;br /&gt;
* In the next step, select the archive of the user you have prepared in step 1.&lt;br /&gt;
* In the last step, specify a name for the archiving profile. After clicking ''Finish'' the archiving profile will be listed under ''Saved Profiles'' and can be run immediately or automatically if desired.&lt;br /&gt;
&lt;br /&gt;
== About Archiving Archive Mailboxes ==&lt;br /&gt;
{{Archive_Mailbox_Folder_Structure}}&lt;br /&gt;
&lt;br /&gt;
== Archiving Individual Microsoft&amp;amp;nbsp;365 Archive Mailboxes ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p class=msnote&amp;gt;'''Please note:''' Archive Mailboxes support for Microsoft 365 will reach its End of Life in October 2026. See [[EWS_Migration|here]] for more information.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Archiving Single Archive Mailbox Preamble|Microsoft&amp;amp;nbsp;365}}&lt;br /&gt;
For each mailbox, please proceed as follows:&lt;br /&gt;
&lt;br /&gt;
* Log on to MailStore Client as MailStore Server administrator.&lt;br /&gt;
* Click on ''Archive Email''.&lt;br /&gt;
* From the ''Email Servers'' list in the ''Create Profile'' area of the ''Archive Email'' page, select ''Microsoft&amp;amp;nbsp;365'' or ''Microsoft&amp;amp;nbsp;365 (21Vianet)'' to create a new archiving profile.&lt;br /&gt;
* A wizard opens to assist in specifying the archiving settings.&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
*; [[File:Microsoft_365_archive_mailbox 01.png|center|347px]]&lt;br /&gt;
* Select ''Single Archive Mailbox'' and click on ''OK''.&lt;br /&gt;
*; [[File:Microsoft_365_archive_mailbox 02.png|center|347px]]&lt;br /&gt;
* Select the Microsoft&amp;amp;nbsp;365 credentials that you have created during the registration of MailStore Server with Microsoft&amp;amp;nbsp;365 from the ''Credentials'' drop-down list. You can also use the button (…) to access the [[Synchronizing_User_Accounts_with_Microsoft_365_(Modern_Authentication)#Creating_Credentials_in_MailStore_Server|Credential Manager]].&lt;br /&gt;
* In the ''Mailbox'' field, enter the primary email address of the user whose archive mailbox you want to archive.&lt;br /&gt;
* Click on ''Test'' to verify that MailStore Server can access the archive mailbox.&lt;br /&gt;
* Click on ''Next''.&lt;br /&gt;
* If needed, adjust the settings for the [[Email_Archiving_with_MailStore_Basics#Archiving_Specific_Folders|List of Folders to be Archived]], the [[Email_Archiving_with_MailStore_Basics#Specifying_Filter_Criteria_for_Archiving|filter]] and the [[Email_Archiving_with_MailStore_Basics#Deleting_Emails_after_Archiving|Deletion Rules]]. By default, no emails will be deleted from the archive mailbox. The ''Timeout'' value only has to be adjusted in specific cases (e.g. with very slow network connections). &lt;br /&gt;
*; [[File:Microsoft_365_archive_mailbox_03.png|center|347px]]&lt;br /&gt;
* Click on ''Next'' to continue.&lt;br /&gt;
* Select the archive of the user for whom the selected archive mailbox is to be archived. If the user does not exist yet, click on ''Create a New User…''.&lt;br /&gt;
*; [[File:Microsoft_365_archive_mailbox_04.png|center|347px]]&lt;br /&gt;
* Click on ''Next''.&lt;br /&gt;
* In the last step, a name for the archiving profile can be specified. After clicking ''Finish'', the archiving profile will be listed under ''Saved Profiles'' and, if desired, can be run immediately or automatically.&lt;br /&gt;
&lt;br /&gt;
More information on how to execute archiving profiles can be found under the topic [[Email Archiving with MailStore Basics]]&lt;br /&gt;
&lt;br /&gt;
== Archiving Multiple Microsoft&amp;amp;nbsp;365 Archive Mailboxes Centrally ==&lt;br /&gt;
{{Archiving Multiple Archive Mailboxes Preamble|Microsoft&amp;amp;nbsp;365}}&lt;br /&gt;
Please proceed as follows:&lt;br /&gt;
&lt;br /&gt;
* Log on to MailStore Client as MailStore Server administrator.&lt;br /&gt;
* Click on ''Archive Email''.&lt;br /&gt;
* From the ''Email Servers'' list in the ''Create Profile'' area of the ''Archive Email'' page, select ''Microsoft&amp;amp;nbsp;365'' or ''Microsoft&amp;amp;nbsp;365 (21Vianet)'' to create a new archiving profile.&lt;br /&gt;
* A wizard opens to assist in specifying the archiving settings.&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
*; [[File:Microsoft_365_archive_mailboxes_01.png|center|347px]]&lt;br /&gt;
* Select ''Multiple Archive Mailboxes'' and click ''OK''.&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
*; &amp;lt;p class=msnote&amp;gt;{{Archiving_Multiple_or_Multidrop_Note|multiple archive mailboxes|[[#App_Registration_.26_User_Synchronization|directory synchronization]]}}&amp;lt;/p&amp;gt;&lt;br /&gt;
*; [[File:Microsoft_365_archive_mailboxes_02.png|center|347px]]&lt;br /&gt;
* Select the Microsoft&amp;amp;nbsp;365 credentials that you have created during the registration of MailStore Server with Microsoft&amp;amp;nbsp;365 from the ''Credentials'' drop-down list. You can also use the button (…) to access the [[Synchronizing_User_Accounts_with_Microsoft_365_(Modern_Authentication)#Creating_Credentials_in_MailStore_Server|Credential Manager]].&lt;br /&gt;
* Click on ''Next'' to continue. &lt;br /&gt;
*; [[File:Microsoft_365_archive_mailboxes_03.png|center|347px]]&lt;br /&gt;
* If needed, adjust the settings for the [[Email_Archiving_with_MailStore_Basics#Archiving_Specific_Folders|List of Folders to be Archived]], the [[Email_Archiving_with_MailStore_Basics#Specifying_Filter_Criteria_for_Archiving|filter]] and the [[Email_Archiving_with_MailStore_Basics#Deleting_Emails_after_Archiving|Deletion Rules]]. By default, no emails will be deleted from the archive mailbox. The ''Timeout'' value only has to be adjusted in specific cases (e.g. with very slow network connections). Please keep in mind that these settings apply to all mailboxes to be archived, as specified in the next step.&lt;br /&gt;
*; {{Archiving_Multiple_Mailboxes_Centrally_Options|Microsoft_365_archive_mailboxes_04.png|Microsoft&amp;amp;nbsp;365}}&lt;br /&gt;
&lt;br /&gt;
[[de:E-Mail-Archivierung_von_Microsoft_365_(Modern_Authentication)]]&lt;br /&gt;
[[en:Archiving_Emails_from_Microsoft_365_(Modern_Authentication)]]&lt;/div&gt;</summary>
		<author><name>Ltalaschus</name></author>
	</entry>
	<entry>
		<id>https://help.mailstore.com/en/server/index.php?title=Archiving_Emails_from_Microsoft_365_-_Modern_Authentication&amp;diff=7950</id>
		<title>Archiving Emails from Microsoft 365 - Modern Authentication</title>
		<link rel="alternate" type="text/html" href="https://help.mailstore.com/en/server/index.php?title=Archiving_Emails_from_Microsoft_365_-_Modern_Authentication&amp;diff=7950"/>
		<updated>2026-01-13T10:39:24Z</updated>

		<summary type="html">&lt;p&gt;Ltalaschus: /* Archiving Individual Microsoft&amp;amp;nbsp;365 Archive Mailboxes */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Implementation Guide Preamble|Exchange&amp;amp;nbsp;Online / Microsoft&amp;amp;nbsp;365|{{#ev:youtube|https://youtu.be/X0Um0cDWGg0|350|right|''Tech Tip: Microsoft 365 Archiving Profiles''}}|&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;Our Tech Tip video shows the essential configuration steps in this article.}}&lt;br /&gt;
&amp;lt;br clear=&amp;quot;all&amp;quot;/&amp;gt;&lt;br /&gt;
{{Multiline Notices|Heading=Important Notices|If you have archived emails from an Exchange server and synchronized users from an Active Directory until now, follow the article [[Changing Archiving from Microsoft Exchange Server to Microsoft 365]].|MailStore Server supports archiving emails from the global Microsoft Cloud ''Microsoft&amp;amp;nbsp;365'' and ''Office&amp;amp;nbsp;365, operated by 21Vianet''. Other Environments like GCC, GCC&amp;amp;nbsp;High or DoD are not supported.|For better readability, the terms ''Microsoft&amp;amp;nbsp;365'' and ''Exchange&amp;amp;nbsp;Online'' are used interchangeably hereinafter instead of ''Exchange&amp;amp;nbsp;Online / Microsoft&amp;amp;nbsp;365''.}}&lt;br /&gt;
&lt;br /&gt;
== App Registration &amp;amp; User Synchronization ==&lt;br /&gt;
Before archiving Microsoft&amp;amp;nbsp;365 mailboxes, registering MailStore Server in your Microsoft&amp;amp;nbsp;365 tenant is required. It is also highly recommended to synchronize users in MailStore Server directly with that tenant to fetch all information that is relevant for archiving such as email addresses. The registration and synchronization procedures are described in the chapter [[Synchronizing User Accounts with Microsoft 365 (Modern Authentication)]] of the MailStore Server manual.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p class=msnote&amp;gt;'''Please note:''' MailStore Server runs as a [[MailStore Server Service Configuration|Windows service]] and thus must use ''Application Permissions'' to access user mailboxes in Microsoft&amp;amp;nbsp;365. By design, on the Microsoft identity platform, which is at the heart of Microsoft&amp;amp;nbsp;365 authentication and authorization, this permission scope encloses the full level of privileges implied by a permission. As a consequence, once registered as described above, MailStore Server has access to all mailboxes in your Microsoft&amp;amp;nbsp;365 tenant. Therefore, with regard to security, access to the Microsoft&amp;amp;nbsp;365 archiving profiles in MailStore Server is limited to MailStore Server administrators.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Including Microsoft&amp;amp;nbsp;365 Shared Mailboxes ===&lt;br /&gt;
In Microsoft&amp;amp;nbsp;365, shared mailboxes are special mailboxes that multiple users have access to. Unlike a normal mailbox, a shared mailbox is not associated to a licensed Microsoft&amp;amp;nbsp;365 user. For MailStore Server to create user entries for shared mailboxes, you must therefore deactivate the option ''Synchronize licensed Microsoft Exchange&amp;amp;nbsp;Online users only'' in the section [[Synchronizing User Accounts with Microsoft 365 (Modern Authentication)#User_Database_Synchronization|User Database Synchronization]].&amp;lt;br/&amp;gt;&lt;br /&gt;
After synchronization you can grant MailStore Server users access to the archive of the shared mailbox by [[Users,_Folders_and_Settings#Folder_Access_.28e.g._Access_to_the_Emails_of_Other_Users.29|assigning privileges]]. For archiving shared mailboxes, just proceed as for individual or multiple mailboxes as detailed below.&lt;br /&gt;
&lt;br /&gt;
== Archiving Individual Microsoft&amp;amp;nbsp;365 Mailboxes ==&lt;br /&gt;
{{Archiving Single Mailbox Preamble|Microsoft&amp;amp;nbsp;365}}&lt;br /&gt;
For each mailbox, please proceed as follows:&lt;br /&gt;
&lt;br /&gt;
* Log on to MailStore Client as MailStore Server administrator.&lt;br /&gt;
* Click on ''Archive Email''.&lt;br /&gt;
* From the ''Email Servers'' list in the ''Create Profile'' area of the ''Archive Email'' page, select ''Microsoft&amp;amp;nbsp;365'' or ''Microsoft&amp;amp;nbsp;365 (21Vianet)'' to create a new archiving profile.&lt;br /&gt;
* A wizard opens to assist in specifying the archiving settings.&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
*; [[File:Microsoft 365 mailbox 01.png|center|347px]]&lt;br /&gt;
* Select ''Single Mailbox'' and click on ''OK''.&lt;br /&gt;
*; [[File:Microsoft 365 mailbox 02.png|center|347px]]&lt;br /&gt;
* Select the Microsoft&amp;amp;nbsp;365 credentials that you have created during the registration of MailStore Server with Microsoft&amp;amp;nbsp;365 from the ''Credentials'' drop-down list. You can also use the button (…) to access the [[Synchronizing_User_Accounts_with_Microsoft_365_(Modern_Authentication)#Creating_Credentials_in_MailStore_Server|Credential Manager]].&lt;br /&gt;
* In the ''Mailbox'' field, enter the primary email address of the user whose mailbox you want to archive.&lt;br /&gt;
* Click on ''Test'' to verify that MailStore Server can access the mailbox.&lt;br /&gt;
* Click on ''Next''.&lt;br /&gt;
* If needed, adjust the settings for the [[Email_Archiving_with_MailStore_Basics#Archiving_Specific_Folders|List of Folders to be Archived]], the [[Email_Archiving_with_MailStore_Basics#Specifying_Filter_Criteria_for_Archiving|filter]] and the [[Email_Archiving_with_MailStore_Basics#Deleting_Emails_after_Archiving|Deletion Rules]]. By default, no emails will be deleted from the mailbox. The ''Timeout'' value only has to be adjusted in specific cases (e.g. with very slow network connections). &lt;br /&gt;
*; [[File:Microsoft_365_mailbox_03.png|center|347px]]&lt;br /&gt;
* Click on ''Next'' to continue.&lt;br /&gt;
* Select the archive of the user for whom the selected mailbox is to be archived. If the user does not exist yet, click on ''Create a New User…''.&lt;br /&gt;
*; [[File:Microsoft_365_mailbox_04.png|center|347px]]&lt;br /&gt;
* Click on ''Next''.&lt;br /&gt;
* In the last step, a name for the archiving profile can be specified. After clicking ''Finish'', the archiving profile will be listed under ''Saved Profiles'' and, if desired, can be run immediately or automatically.&lt;br /&gt;
&lt;br /&gt;
More information on how to execute archiving profiles can be found under the topic [[Email Archiving with MailStore Basics]]&lt;br /&gt;
&lt;br /&gt;
== Archiving Multiple Microsoft&amp;amp;nbsp;365 Mailboxes Centrally ==&lt;br /&gt;
{{Archiving Multiple Mailboxes Preamble|Microsoft&amp;amp;nbsp;365}}&lt;br /&gt;
Please proceed as follows:&lt;br /&gt;
&lt;br /&gt;
* Log on to MailStore Client as MailStore Server administrator.&lt;br /&gt;
* Click on ''Archive Email''.&lt;br /&gt;
* From the ''Email Servers'' list in the ''Create Profile'' area of the ''Archive Email'' page, select ''Microsoft&amp;amp;nbsp;365'' or ''Microsoft&amp;amp;nbsp;365 (21Vianet)'' to create a new archiving profile.&lt;br /&gt;
* A wizard opens to assist in specifying the archiving settings.&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
*; [[File:Microsoft 365 mailboxes 01.png|center|347px]]&lt;br /&gt;
* Select ''Multiple Mailboxes'' and click ''OK''.&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
*; &amp;lt;p class=msnote&amp;gt;{{Archiving_Multiple_or_Multidrop_Note|multiple mailboxes|[[#App_Registration_.26_User_Synchronization|directory synchronization]]}}&amp;lt;/p&amp;gt;&lt;br /&gt;
*; [[File:Microsoft 365 mailboxes 02.png|center|347px]]&lt;br /&gt;
* Select the Microsoft&amp;amp;nbsp;365 credentials that you have created during the registration of MailStore Server with Microsoft&amp;amp;nbsp;365 from the ''Credentials'' drop-down list. You can also use the button (…) to access the [[Synchronizing_User_Accounts_with_Microsoft_365_(Modern_Authentication)#Creating_Credentials_in_MailStore_Server|Credential Manager]].&lt;br /&gt;
* Click on ''Next'' to continue. &lt;br /&gt;
*; [[File:Microsoft 365 mailboxes 03.png|center|347px]]&lt;br /&gt;
* If needed, adjust the settings for the [[Email_Archiving_with_MailStore_Basics#Archiving_Specific_Folders|List of Folders to be Archived]], the [[Email_Archiving_with_MailStore_Basics#Specifying_Filter_Criteria_for_Archiving|filter]] and the [[Email_Archiving_with_MailStore_Basics#Deleting_Emails_after_Archiving|Deletion Rules]]. By default, no emails will be deleted from the mailbox. The ''Timeout'' value only has to be adjusted in specific cases (e.g. with very slow network connections). Please keep in mind that these settings apply to all mailboxes to be archived, as specified in the next step.&lt;br /&gt;
*; {{Archiving_Multiple_Mailboxes_Centrally_Options|Microsoft_365_mailboxes_04.png|Microsoft&amp;amp;nbsp;365}}&lt;br /&gt;
&lt;br /&gt;
== Archiving Incoming and Outgoing Emails Directly ==&lt;br /&gt;
{{Archiving Exchange Journal Mailbox Preamble|Exchange&amp;amp;nbsp;Online}}&lt;br /&gt;
&lt;br /&gt;
=== Step 1: Setup and Configure MailStore Gateway ===&lt;br /&gt;
Please refer to the [https://help.mailstore.com/en/gateway/ MailStore Gateway Manual] for detailed instructions about:&lt;br /&gt;
 &lt;br /&gt;
* Installation and Setup of MailStore Gateway&lt;br /&gt;
* Logging on to MailStore Gateway's Management Console&lt;br /&gt;
* Creating MailStore Gateway mailboxes&lt;br /&gt;
&lt;br /&gt;
After these steps, a mailbox with an individual email address (e.g. mbx-dead1234beef5678@gateway.example.com) should exist.&lt;br /&gt;
&lt;br /&gt;
=== Step 2: Configure MailStore Server ===&lt;br /&gt;
{{Archiving MailStore Gateway Mailbox|''In- and Outbound E-Mail Automatically''|Microsoft 365 journal 01.png|Arch_MailStore_Gateway_Office365_02.png|''Microsoft&amp;amp;nbsp;365''|TargetFolderHint=DontShow|POP3Hint=DontShow|DSLink=[[#App_Registration_.26_User_Synchronization|directory synchronization]]}}&lt;br /&gt;
&lt;br /&gt;
=== Step 3: Creating a Journal Rule ===&lt;br /&gt;
The following steps describe how to set up journaling for your Microsoft&amp;amp;nbsp;365 account.&lt;br /&gt;
&lt;br /&gt;
Since you are planning to use an external mailbox (MailStore Gateway) as the recipient for Journal reports, we highly recommend to first create an external contact with this mail address in your Exchange mailbox administration to prevent any later errors or warnings about an unknown recipient in the process.&lt;br /&gt;
&lt;br /&gt;
* Sign in to the [https://purview.microsoft.com/ Microsoft&amp;amp;nbsp;365 Purview portal] as an Exchange or Global Administrator for your Microsoft&amp;amp;nbsp;365 tenant.&lt;br /&gt;
* In the left navigation menu select ''Settings''.&lt;br /&gt;
* In the now shown ''Settings'' submenu select ''Data Lifecycle Management'' and then select  ''Exchange&amp;amp;nbsp;(legacy)'' or use [https://purview.microsoft.com/settings/application-settings/datalifecyclemanagement this link].&lt;br /&gt;
* Enter a mailbox in the ''Send undeliverable journal reports to'' section. This mailbox receives None Delivery Reports (NDRs) for undeliverable journal reports in case the primary journal mailbox is unreachable.&lt;br /&gt;
** This mailbox should be a dedicated mailbox for this purpose, which cannot reside in any Microsoft 365 tenant.&lt;br /&gt;
** The same journal report non-delivery reports mailbox must not be used for multiple tenants.&lt;br /&gt;
** The receiving mail server must not alter the ''X-MS-Exchange-Message-Is-Ndr'' email header.&lt;br /&gt;
** For this purpose, you can set up a second gateway on another server with an additional mailbox, as described in [[Archiving_Emails_from_Microsoft_365_-_Modern_Authentication#Step_1:_Setup_and_Configure_MailStore_Gateway|Step 1]]. Alternatively you can use any external mailbox that matches the above criteria.&lt;br /&gt;
** MailStore is able to extract the journal reports contained in the NDRs, then archive them like normal journal reports and thus assign the emails they contain to users. You can therefore create a second archiving profile as described in [[Archiving_Emails_from_Microsoft_365_-_Modern_Authentication#Step_2:_Configure_MailStore_Server|Step 2]], which archives from the Microsoft 365 journal report non-delivery reports mailbox.&lt;br /&gt;
* In the leftmost navigation menu select ''Data Lifecycle Management'', then ''Exchange&amp;amp;nbsp;(legacy)'', and finally ''Journal rules'' and therefore leave the ''Settings'' section or use [https://purview.microsoft.com/datalifecyclemanagement/exchange/journalrules this link]. In case ''Data Lifecycle Management'' is not listed, click ''Solutions'' &amp;gt; ''Data Lifecycle Management''.&lt;br /&gt;
* Create a new journaling rule by clicking on ''+ (New rule)''.&lt;br /&gt;
*:[[File:Arch_office365_journal_01.png|center|550px]]&lt;br /&gt;
* Enter the email address of the previously created MailStore Gateway mailbox in the ''Send journal reports to:'' box.&lt;br /&gt;
* Enter a name for the journal rule, e.g. ''Journaling''.&lt;br /&gt;
* In the ''Journal messages sent or received from'' section, select whether the rule should apply to everyone or to specific users or groups.&lt;br /&gt;
* Under ''Type of message to journal'', choose whether to capture all messages, internal messages only, or external messages only.&lt;br /&gt;
* Click on ''Next'', then validate your settings, click ''Submit'' to activate the rule.&lt;br /&gt;
&lt;br /&gt;
== Public Folders ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p class=msnote&amp;gt;'''Please note:''' Puplic Folder support for Microsoft 365 will reach its End of Life in October 2026. See [[EWS_Migration|here]] for more information.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Archiving Exchange Public Folders Preamble|Exchange&amp;amp;nbsp;Online|Microsoft&amp;amp;nbsp;365}}&lt;br /&gt;
* Sign in to the [https://admin.exchange.microsoft.com/#/publicfolders Microsoft&amp;amp;nbsp;365 Exchange admin center] as an Exchange or Global Administrator for your Microsoft&amp;amp;nbsp;365 tenant.&lt;br /&gt;
* Navigate to ''Public folders'', in case it it not already opened.&lt;br /&gt;
* Click on ''Root permissions''.&lt;br /&gt;
*: [[File:Microsoft_365_pf_01.png|center|480px]]&lt;br /&gt;
* The side-panel ''Folder permissions'' opens. Click on ''+ Add permissions''.&lt;br /&gt;
* Use the text box beneath ''Select User'' to choose the Microsoft&amp;amp;nbsp;365 user you want to grant permissions.&lt;br /&gt;
* Choose ''Custom'' as ''Permission level'' and grant ''Read items'' and ''Delete all'' permissions.&lt;br /&gt;
*: [[File:Microsoft_365_pf_02.png|center|480px]]&lt;br /&gt;
* Click on ''Save Changes''.&lt;br /&gt;
&lt;br /&gt;
=== Step 3: Setting up the Archiving Process ===&lt;br /&gt;
* Log on to MailStore Client as MailStore Server administrator.&lt;br /&gt;
* Click on ''Archive Email''.&lt;br /&gt;
* From the ''Email Servers'' list in the ''Create Profile'' area of the ''Archive Email'' page, select ''Microsoft&amp;amp;nbsp;365'' or ''Microsoft&amp;amp;nbsp;365 (21Vianet)'' to create a new archiving profile.&lt;br /&gt;
* A wizard opens to assist in specifying the archiving settings.&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
*; [[File:Microsoft 365 pf 03.png|center|347px]]&lt;br /&gt;
* Select ''Public Folders'' and click on ''OK''.&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
*; [[File:Microsoft 365 pf 04.png|center|347px]]&lt;br /&gt;
* Select the Microsoft&amp;amp;nbsp;365 credentials that you have created during the registration of MailStore Server with Microsoft&amp;amp;nbsp;365 from the ''Credentials'' drop-down list. You can also use the button (…) to access the [[Synchronizing_User_Accounts_with_Microsoft_365_(Modern_Authentication)#Creating_Credentials_in_MailStore_Server|Credential Manager]].&lt;br /&gt;
* In the ''Mailbox'' field, enter the primary email address of the user that has access to the public folders as described above.&lt;br /&gt;
* The value of the ''Target Folder'' box defines the top level folder below which the public folder hierarchy will be created in the target archive. Usually, you can leave this value to its default.&lt;br /&gt;
* Click on ''Test'' to verify that MailStore can access the public folders.&lt;br /&gt;
* Click on ''Next'' to continue.&lt;br /&gt;
*; [[File:Microsoft 365 pf 05.png|center|347px]]&lt;br /&gt;
* Adjust the settings for the [[Email_Archiving_with_MailStore_Basics#Archiving_Specific_Folders|List of Folders to be Archived]]. By default, all public folders that contain emails will be archived.&lt;br /&gt;
* If needed, adjust [[Email_Archiving_with_MailStore_Basics#Specifying_Filter_Criteria_for_Archiving|the filter]] and the [[Email_Archiving_with_MailStore_Basics#Deleting_Emails_after_Archiving|Deletion Rules]]. By default, no emails will be deleted from the public folders. The ''Timeout'' value only has to be adjusted in specific cases (e.g. with very slow network connections).&lt;br /&gt;
* Click on ''Next'' to continue.&lt;br /&gt;
*; [[File:Microsoft 365 pf 06.png|center|347px]]&lt;br /&gt;
* In the next step, select the archive of the user you have prepared in step 1.&lt;br /&gt;
* In the last step, specify a name for the archiving profile. After clicking ''Finish'' the archiving profile will be listed under ''Saved Profiles'' and can be run immediately or automatically if desired.&lt;br /&gt;
&lt;br /&gt;
== About Archiving Archive Mailboxes ==&lt;br /&gt;
{{Archive_Mailbox_Folder_Structure}}&lt;br /&gt;
&lt;br /&gt;
== Archiving Individual Microsoft&amp;amp;nbsp;365 Archive Mailboxes ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p class=msnote&amp;gt;'''Please note:''' Archive Mailboxes support for Microsoft 365 will reach its End of Life in October 2026. See [[EWS_Migration|here]] for more information.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Archiving Single Archive Mailbox Preamble|Microsoft&amp;amp;nbsp;365}}&lt;br /&gt;
For each mailbox, please proceed as follows:&lt;br /&gt;
&lt;br /&gt;
* Log on to MailStore Client as MailStore Server administrator.&lt;br /&gt;
* Click on ''Archive Email''.&lt;br /&gt;
* From the ''Email Servers'' list in the ''Create Profile'' area of the ''Archive Email'' page, select ''Microsoft&amp;amp;nbsp;365'' or ''Microsoft&amp;amp;nbsp;365 (21Vianet)'' to create a new archiving profile.&lt;br /&gt;
* A wizard opens to assist in specifying the archiving settings.&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
*; [[File:Microsoft_365_archive_mailbox 01.png|center|347px]]&lt;br /&gt;
* Select ''Single Archive Mailbox'' and click on ''OK''.&lt;br /&gt;
*; [[File:Microsoft_365_archive_mailbox 02.png|center|347px]]&lt;br /&gt;
* Select the Microsoft&amp;amp;nbsp;365 credentials that you have created during the registration of MailStore Server with Microsoft&amp;amp;nbsp;365 from the ''Credentials'' drop-down list. You can also use the button (…) to access the [[Synchronizing_User_Accounts_with_Microsoft_365_(Modern_Authentication)#Creating_Credentials_in_MailStore_Server|Credential Manager]].&lt;br /&gt;
* In the ''Mailbox'' field, enter the primary email address of the user whose archive mailbox you want to archive.&lt;br /&gt;
* Click on ''Test'' to verify that MailStore Server can access the archive mailbox.&lt;br /&gt;
* Click on ''Next''.&lt;br /&gt;
* If needed, adjust the settings for the [[Email_Archiving_with_MailStore_Basics#Archiving_Specific_Folders|List of Folders to be Archived]], the [[Email_Archiving_with_MailStore_Basics#Specifying_Filter_Criteria_for_Archiving|filter]] and the [[Email_Archiving_with_MailStore_Basics#Deleting_Emails_after_Archiving|Deletion Rules]]. By default, no emails will be deleted from the archive mailbox. The ''Timeout'' value only has to be adjusted in specific cases (e.g. with very slow network connections). &lt;br /&gt;
*; [[File:Microsoft_365_archive_mailbox_03.png|center|347px]]&lt;br /&gt;
* Click on ''Next'' to continue.&lt;br /&gt;
* Select the archive of the user for whom the selected archive mailbox is to be archived. If the user does not exist yet, click on ''Create a New User…''.&lt;br /&gt;
*; [[File:Microsoft_365_archive_mailbox_04.png|center|347px]]&lt;br /&gt;
* Click on ''Next''.&lt;br /&gt;
* In the last step, a name for the archiving profile can be specified. After clicking ''Finish'', the archiving profile will be listed under ''Saved Profiles'' and, if desired, can be run immediately or automatically.&lt;br /&gt;
&lt;br /&gt;
More information on how to execute archiving profiles can be found under the topic [[Email Archiving with MailStore Basics]]&lt;br /&gt;
&lt;br /&gt;
== Archiving Multiple Microsoft&amp;amp;nbsp;365 Archive Mailboxes Centrally ==&lt;br /&gt;
{{Archiving Multiple Archive Mailboxes Preamble|Microsoft&amp;amp;nbsp;365}}&lt;br /&gt;
Please proceed as follows:&lt;br /&gt;
&lt;br /&gt;
* Log on to MailStore Client as MailStore Server administrator.&lt;br /&gt;
* Click on ''Archive Email''.&lt;br /&gt;
* From the ''Email Servers'' list in the ''Create Profile'' area of the ''Archive Email'' page, select ''Microsoft&amp;amp;nbsp;365'' or ''Microsoft&amp;amp;nbsp;365 (21Vianet)'' to create a new archiving profile.&lt;br /&gt;
* A wizard opens to assist in specifying the archiving settings.&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
*; [[File:Microsoft_365_archive_mailboxes_01.png|center|347px]]&lt;br /&gt;
* Select ''Multiple Archive Mailboxes'' and click ''OK''.&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
*; &amp;lt;p class=msnote&amp;gt;{{Archiving_Multiple_or_Multidrop_Note|multiple archive mailboxes|[[#App_Registration_.26_User_Synchronization|directory synchronization]]}}&amp;lt;/p&amp;gt;&lt;br /&gt;
*; [[File:Microsoft_365_archive_mailboxes_02.png|center|347px]]&lt;br /&gt;
* Select the Microsoft&amp;amp;nbsp;365 credentials that you have created during the registration of MailStore Server with Microsoft&amp;amp;nbsp;365 from the ''Credentials'' drop-down list. You can also use the button (…) to access the [[Synchronizing_User_Accounts_with_Microsoft_365_(Modern_Authentication)#Creating_Credentials_in_MailStore_Server|Credential Manager]].&lt;br /&gt;
* Click on ''Next'' to continue. &lt;br /&gt;
*; [[File:Microsoft_365_archive_mailboxes_03.png|center|347px]]&lt;br /&gt;
* If needed, adjust the settings for the [[Email_Archiving_with_MailStore_Basics#Archiving_Specific_Folders|List of Folders to be Archived]], the [[Email_Archiving_with_MailStore_Basics#Specifying_Filter_Criteria_for_Archiving|filter]] and the [[Email_Archiving_with_MailStore_Basics#Deleting_Emails_after_Archiving|Deletion Rules]]. By default, no emails will be deleted from the archive mailbox. The ''Timeout'' value only has to be adjusted in specific cases (e.g. with very slow network connections). Please keep in mind that these settings apply to all mailboxes to be archived, as specified in the next step.&lt;br /&gt;
*; {{Archiving_Multiple_Mailboxes_Centrally_Options|Microsoft_365_archive_mailboxes_04.png|Microsoft&amp;amp;nbsp;365}}&lt;br /&gt;
&lt;br /&gt;
[[de:E-Mail-Archivierung_von_Microsoft_365_(Modern_Authentication)]]&lt;br /&gt;
[[en:Archiving_Emails_from_Microsoft_365_(Modern_Authentication)]]&lt;/div&gt;</summary>
		<author><name>Ltalaschus</name></author>
	</entry>
	<entry>
		<id>https://help.mailstore.com/en/server/index.php?title=Archiving_Emails_from_Microsoft_365_-_Modern_Authentication&amp;diff=7949</id>
		<title>Archiving Emails from Microsoft 365 - Modern Authentication</title>
		<link rel="alternate" type="text/html" href="https://help.mailstore.com/en/server/index.php?title=Archiving_Emails_from_Microsoft_365_-_Modern_Authentication&amp;diff=7949"/>
		<updated>2026-01-13T10:38:55Z</updated>

		<summary type="html">&lt;p&gt;Ltalaschus: /* Public Folders */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Implementation Guide Preamble|Exchange&amp;amp;nbsp;Online / Microsoft&amp;amp;nbsp;365|{{#ev:youtube|https://youtu.be/X0Um0cDWGg0|350|right|''Tech Tip: Microsoft 365 Archiving Profiles''}}|&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;Our Tech Tip video shows the essential configuration steps in this article.}}&lt;br /&gt;
&amp;lt;br clear=&amp;quot;all&amp;quot;/&amp;gt;&lt;br /&gt;
{{Multiline Notices|Heading=Important Notices|If you have archived emails from an Exchange server and synchronized users from an Active Directory until now, follow the article [[Changing Archiving from Microsoft Exchange Server to Microsoft 365]].|MailStore Server supports archiving emails from the global Microsoft Cloud ''Microsoft&amp;amp;nbsp;365'' and ''Office&amp;amp;nbsp;365, operated by 21Vianet''. Other Environments like GCC, GCC&amp;amp;nbsp;High or DoD are not supported.|For better readability, the terms ''Microsoft&amp;amp;nbsp;365'' and ''Exchange&amp;amp;nbsp;Online'' are used interchangeably hereinafter instead of ''Exchange&amp;amp;nbsp;Online / Microsoft&amp;amp;nbsp;365''.}}&lt;br /&gt;
&lt;br /&gt;
== App Registration &amp;amp; User Synchronization ==&lt;br /&gt;
Before archiving Microsoft&amp;amp;nbsp;365 mailboxes, registering MailStore Server in your Microsoft&amp;amp;nbsp;365 tenant is required. It is also highly recommended to synchronize users in MailStore Server directly with that tenant to fetch all information that is relevant for archiving such as email addresses. The registration and synchronization procedures are described in the chapter [[Synchronizing User Accounts with Microsoft 365 (Modern Authentication)]] of the MailStore Server manual.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p class=msnote&amp;gt;'''Please note:''' MailStore Server runs as a [[MailStore Server Service Configuration|Windows service]] and thus must use ''Application Permissions'' to access user mailboxes in Microsoft&amp;amp;nbsp;365. By design, on the Microsoft identity platform, which is at the heart of Microsoft&amp;amp;nbsp;365 authentication and authorization, this permission scope encloses the full level of privileges implied by a permission. As a consequence, once registered as described above, MailStore Server has access to all mailboxes in your Microsoft&amp;amp;nbsp;365 tenant. Therefore, with regard to security, access to the Microsoft&amp;amp;nbsp;365 archiving profiles in MailStore Server is limited to MailStore Server administrators.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Including Microsoft&amp;amp;nbsp;365 Shared Mailboxes ===&lt;br /&gt;
In Microsoft&amp;amp;nbsp;365, shared mailboxes are special mailboxes that multiple users have access to. Unlike a normal mailbox, a shared mailbox is not associated to a licensed Microsoft&amp;amp;nbsp;365 user. For MailStore Server to create user entries for shared mailboxes, you must therefore deactivate the option ''Synchronize licensed Microsoft Exchange&amp;amp;nbsp;Online users only'' in the section [[Synchronizing User Accounts with Microsoft 365 (Modern Authentication)#User_Database_Synchronization|User Database Synchronization]].&amp;lt;br/&amp;gt;&lt;br /&gt;
After synchronization you can grant MailStore Server users access to the archive of the shared mailbox by [[Users,_Folders_and_Settings#Folder_Access_.28e.g._Access_to_the_Emails_of_Other_Users.29|assigning privileges]]. For archiving shared mailboxes, just proceed as for individual or multiple mailboxes as detailed below.&lt;br /&gt;
&lt;br /&gt;
== Archiving Individual Microsoft&amp;amp;nbsp;365 Mailboxes ==&lt;br /&gt;
{{Archiving Single Mailbox Preamble|Microsoft&amp;amp;nbsp;365}}&lt;br /&gt;
For each mailbox, please proceed as follows:&lt;br /&gt;
&lt;br /&gt;
* Log on to MailStore Client as MailStore Server administrator.&lt;br /&gt;
* Click on ''Archive Email''.&lt;br /&gt;
* From the ''Email Servers'' list in the ''Create Profile'' area of the ''Archive Email'' page, select ''Microsoft&amp;amp;nbsp;365'' or ''Microsoft&amp;amp;nbsp;365 (21Vianet)'' to create a new archiving profile.&lt;br /&gt;
* A wizard opens to assist in specifying the archiving settings.&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
*; [[File:Microsoft 365 mailbox 01.png|center|347px]]&lt;br /&gt;
* Select ''Single Mailbox'' and click on ''OK''.&lt;br /&gt;
*; [[File:Microsoft 365 mailbox 02.png|center|347px]]&lt;br /&gt;
* Select the Microsoft&amp;amp;nbsp;365 credentials that you have created during the registration of MailStore Server with Microsoft&amp;amp;nbsp;365 from the ''Credentials'' drop-down list. You can also use the button (…) to access the [[Synchronizing_User_Accounts_with_Microsoft_365_(Modern_Authentication)#Creating_Credentials_in_MailStore_Server|Credential Manager]].&lt;br /&gt;
* In the ''Mailbox'' field, enter the primary email address of the user whose mailbox you want to archive.&lt;br /&gt;
* Click on ''Test'' to verify that MailStore Server can access the mailbox.&lt;br /&gt;
* Click on ''Next''.&lt;br /&gt;
* If needed, adjust the settings for the [[Email_Archiving_with_MailStore_Basics#Archiving_Specific_Folders|List of Folders to be Archived]], the [[Email_Archiving_with_MailStore_Basics#Specifying_Filter_Criteria_for_Archiving|filter]] and the [[Email_Archiving_with_MailStore_Basics#Deleting_Emails_after_Archiving|Deletion Rules]]. By default, no emails will be deleted from the mailbox. The ''Timeout'' value only has to be adjusted in specific cases (e.g. with very slow network connections). &lt;br /&gt;
*; [[File:Microsoft_365_mailbox_03.png|center|347px]]&lt;br /&gt;
* Click on ''Next'' to continue.&lt;br /&gt;
* Select the archive of the user for whom the selected mailbox is to be archived. If the user does not exist yet, click on ''Create a New User…''.&lt;br /&gt;
*; [[File:Microsoft_365_mailbox_04.png|center|347px]]&lt;br /&gt;
* Click on ''Next''.&lt;br /&gt;
* In the last step, a name for the archiving profile can be specified. After clicking ''Finish'', the archiving profile will be listed under ''Saved Profiles'' and, if desired, can be run immediately or automatically.&lt;br /&gt;
&lt;br /&gt;
More information on how to execute archiving profiles can be found under the topic [[Email Archiving with MailStore Basics]]&lt;br /&gt;
&lt;br /&gt;
== Archiving Multiple Microsoft&amp;amp;nbsp;365 Mailboxes Centrally ==&lt;br /&gt;
{{Archiving Multiple Mailboxes Preamble|Microsoft&amp;amp;nbsp;365}}&lt;br /&gt;
Please proceed as follows:&lt;br /&gt;
&lt;br /&gt;
* Log on to MailStore Client as MailStore Server administrator.&lt;br /&gt;
* Click on ''Archive Email''.&lt;br /&gt;
* From the ''Email Servers'' list in the ''Create Profile'' area of the ''Archive Email'' page, select ''Microsoft&amp;amp;nbsp;365'' or ''Microsoft&amp;amp;nbsp;365 (21Vianet)'' to create a new archiving profile.&lt;br /&gt;
* A wizard opens to assist in specifying the archiving settings.&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
*; [[File:Microsoft 365 mailboxes 01.png|center|347px]]&lt;br /&gt;
* Select ''Multiple Mailboxes'' and click ''OK''.&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
*; &amp;lt;p class=msnote&amp;gt;{{Archiving_Multiple_or_Multidrop_Note|multiple mailboxes|[[#App_Registration_.26_User_Synchronization|directory synchronization]]}}&amp;lt;/p&amp;gt;&lt;br /&gt;
*; [[File:Microsoft 365 mailboxes 02.png|center|347px]]&lt;br /&gt;
* Select the Microsoft&amp;amp;nbsp;365 credentials that you have created during the registration of MailStore Server with Microsoft&amp;amp;nbsp;365 from the ''Credentials'' drop-down list. You can also use the button (…) to access the [[Synchronizing_User_Accounts_with_Microsoft_365_(Modern_Authentication)#Creating_Credentials_in_MailStore_Server|Credential Manager]].&lt;br /&gt;
* Click on ''Next'' to continue. &lt;br /&gt;
*; [[File:Microsoft 365 mailboxes 03.png|center|347px]]&lt;br /&gt;
* If needed, adjust the settings for the [[Email_Archiving_with_MailStore_Basics#Archiving_Specific_Folders|List of Folders to be Archived]], the [[Email_Archiving_with_MailStore_Basics#Specifying_Filter_Criteria_for_Archiving|filter]] and the [[Email_Archiving_with_MailStore_Basics#Deleting_Emails_after_Archiving|Deletion Rules]]. By default, no emails will be deleted from the mailbox. The ''Timeout'' value only has to be adjusted in specific cases (e.g. with very slow network connections). Please keep in mind that these settings apply to all mailboxes to be archived, as specified in the next step.&lt;br /&gt;
*; {{Archiving_Multiple_Mailboxes_Centrally_Options|Microsoft_365_mailboxes_04.png|Microsoft&amp;amp;nbsp;365}}&lt;br /&gt;
&lt;br /&gt;
== Archiving Incoming and Outgoing Emails Directly ==&lt;br /&gt;
{{Archiving Exchange Journal Mailbox Preamble|Exchange&amp;amp;nbsp;Online}}&lt;br /&gt;
&lt;br /&gt;
=== Step 1: Setup and Configure MailStore Gateway ===&lt;br /&gt;
Please refer to the [https://help.mailstore.com/en/gateway/ MailStore Gateway Manual] for detailed instructions about:&lt;br /&gt;
 &lt;br /&gt;
* Installation and Setup of MailStore Gateway&lt;br /&gt;
* Logging on to MailStore Gateway's Management Console&lt;br /&gt;
* Creating MailStore Gateway mailboxes&lt;br /&gt;
&lt;br /&gt;
After these steps, a mailbox with an individual email address (e.g. mbx-dead1234beef5678@gateway.example.com) should exist.&lt;br /&gt;
&lt;br /&gt;
=== Step 2: Configure MailStore Server ===&lt;br /&gt;
{{Archiving MailStore Gateway Mailbox|''In- and Outbound E-Mail Automatically''|Microsoft 365 journal 01.png|Arch_MailStore_Gateway_Office365_02.png|''Microsoft&amp;amp;nbsp;365''|TargetFolderHint=DontShow|POP3Hint=DontShow|DSLink=[[#App_Registration_.26_User_Synchronization|directory synchronization]]}}&lt;br /&gt;
&lt;br /&gt;
=== Step 3: Creating a Journal Rule ===&lt;br /&gt;
The following steps describe how to set up journaling for your Microsoft&amp;amp;nbsp;365 account.&lt;br /&gt;
&lt;br /&gt;
Since you are planning to use an external mailbox (MailStore Gateway) as the recipient for Journal reports, we highly recommend to first create an external contact with this mail address in your Exchange mailbox administration to prevent any later errors or warnings about an unknown recipient in the process.&lt;br /&gt;
&lt;br /&gt;
* Sign in to the [https://purview.microsoft.com/ Microsoft&amp;amp;nbsp;365 Purview portal] as an Exchange or Global Administrator for your Microsoft&amp;amp;nbsp;365 tenant.&lt;br /&gt;
* In the left navigation menu select ''Settings''.&lt;br /&gt;
* In the now shown ''Settings'' submenu select ''Data Lifecycle Management'' and then select  ''Exchange&amp;amp;nbsp;(legacy)'' or use [https://purview.microsoft.com/settings/application-settings/datalifecyclemanagement this link].&lt;br /&gt;
* Enter a mailbox in the ''Send undeliverable journal reports to'' section. This mailbox receives None Delivery Reports (NDRs) for undeliverable journal reports in case the primary journal mailbox is unreachable.&lt;br /&gt;
** This mailbox should be a dedicated mailbox for this purpose, which cannot reside in any Microsoft 365 tenant.&lt;br /&gt;
** The same journal report non-delivery reports mailbox must not be used for multiple tenants.&lt;br /&gt;
** The receiving mail server must not alter the ''X-MS-Exchange-Message-Is-Ndr'' email header.&lt;br /&gt;
** For this purpose, you can set up a second gateway on another server with an additional mailbox, as described in [[Archiving_Emails_from_Microsoft_365_-_Modern_Authentication#Step_1:_Setup_and_Configure_MailStore_Gateway|Step 1]]. Alternatively you can use any external mailbox that matches the above criteria.&lt;br /&gt;
** MailStore is able to extract the journal reports contained in the NDRs, then archive them like normal journal reports and thus assign the emails they contain to users. You can therefore create a second archiving profile as described in [[Archiving_Emails_from_Microsoft_365_-_Modern_Authentication#Step_2:_Configure_MailStore_Server|Step 2]], which archives from the Microsoft 365 journal report non-delivery reports mailbox.&lt;br /&gt;
* In the leftmost navigation menu select ''Data Lifecycle Management'', then ''Exchange&amp;amp;nbsp;(legacy)'', and finally ''Journal rules'' and therefore leave the ''Settings'' section or use [https://purview.microsoft.com/datalifecyclemanagement/exchange/journalrules this link]. In case ''Data Lifecycle Management'' is not listed, click ''Solutions'' &amp;gt; ''Data Lifecycle Management''.&lt;br /&gt;
* Create a new journaling rule by clicking on ''+ (New rule)''.&lt;br /&gt;
*:[[File:Arch_office365_journal_01.png|center|550px]]&lt;br /&gt;
* Enter the email address of the previously created MailStore Gateway mailbox in the ''Send journal reports to:'' box.&lt;br /&gt;
* Enter a name for the journal rule, e.g. ''Journaling''.&lt;br /&gt;
* In the ''Journal messages sent or received from'' section, select whether the rule should apply to everyone or to specific users or groups.&lt;br /&gt;
* Under ''Type of message to journal'', choose whether to capture all messages, internal messages only, or external messages only.&lt;br /&gt;
* Click on ''Next'', then validate your settings, click ''Submit'' to activate the rule.&lt;br /&gt;
&lt;br /&gt;
== Public Folders ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p class=msnote&amp;gt;'''Please note:''' Puplic Folder support for Microsoft 365 will reach its End of Life in October 2026. See [[EWS_Migration|here]] for more information.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Archiving Exchange Public Folders Preamble|Exchange&amp;amp;nbsp;Online|Microsoft&amp;amp;nbsp;365}}&lt;br /&gt;
* Sign in to the [https://admin.exchange.microsoft.com/#/publicfolders Microsoft&amp;amp;nbsp;365 Exchange admin center] as an Exchange or Global Administrator for your Microsoft&amp;amp;nbsp;365 tenant.&lt;br /&gt;
* Navigate to ''Public folders'', in case it it not already opened.&lt;br /&gt;
* Click on ''Root permissions''.&lt;br /&gt;
*: [[File:Microsoft_365_pf_01.png|center|480px]]&lt;br /&gt;
* The side-panel ''Folder permissions'' opens. Click on ''+ Add permissions''.&lt;br /&gt;
* Use the text box beneath ''Select User'' to choose the Microsoft&amp;amp;nbsp;365 user you want to grant permissions.&lt;br /&gt;
* Choose ''Custom'' as ''Permission level'' and grant ''Read items'' and ''Delete all'' permissions.&lt;br /&gt;
*: [[File:Microsoft_365_pf_02.png|center|480px]]&lt;br /&gt;
* Click on ''Save Changes''.&lt;br /&gt;
&lt;br /&gt;
=== Step 3: Setting up the Archiving Process ===&lt;br /&gt;
* Log on to MailStore Client as MailStore Server administrator.&lt;br /&gt;
* Click on ''Archive Email''.&lt;br /&gt;
* From the ''Email Servers'' list in the ''Create Profile'' area of the ''Archive Email'' page, select ''Microsoft&amp;amp;nbsp;365'' or ''Microsoft&amp;amp;nbsp;365 (21Vianet)'' to create a new archiving profile.&lt;br /&gt;
* A wizard opens to assist in specifying the archiving settings.&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
*; [[File:Microsoft 365 pf 03.png|center|347px]]&lt;br /&gt;
* Select ''Public Folders'' and click on ''OK''.&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
*; [[File:Microsoft 365 pf 04.png|center|347px]]&lt;br /&gt;
* Select the Microsoft&amp;amp;nbsp;365 credentials that you have created during the registration of MailStore Server with Microsoft&amp;amp;nbsp;365 from the ''Credentials'' drop-down list. You can also use the button (…) to access the [[Synchronizing_User_Accounts_with_Microsoft_365_(Modern_Authentication)#Creating_Credentials_in_MailStore_Server|Credential Manager]].&lt;br /&gt;
* In the ''Mailbox'' field, enter the primary email address of the user that has access to the public folders as described above.&lt;br /&gt;
* The value of the ''Target Folder'' box defines the top level folder below which the public folder hierarchy will be created in the target archive. Usually, you can leave this value to its default.&lt;br /&gt;
* Click on ''Test'' to verify that MailStore can access the public folders.&lt;br /&gt;
* Click on ''Next'' to continue.&lt;br /&gt;
*; [[File:Microsoft 365 pf 05.png|center|347px]]&lt;br /&gt;
* Adjust the settings for the [[Email_Archiving_with_MailStore_Basics#Archiving_Specific_Folders|List of Folders to be Archived]]. By default, all public folders that contain emails will be archived.&lt;br /&gt;
* If needed, adjust [[Email_Archiving_with_MailStore_Basics#Specifying_Filter_Criteria_for_Archiving|the filter]] and the [[Email_Archiving_with_MailStore_Basics#Deleting_Emails_after_Archiving|Deletion Rules]]. By default, no emails will be deleted from the public folders. The ''Timeout'' value only has to be adjusted in specific cases (e.g. with very slow network connections).&lt;br /&gt;
* Click on ''Next'' to continue.&lt;br /&gt;
*; [[File:Microsoft 365 pf 06.png|center|347px]]&lt;br /&gt;
* In the next step, select the archive of the user you have prepared in step 1.&lt;br /&gt;
* In the last step, specify a name for the archiving profile. After clicking ''Finish'' the archiving profile will be listed under ''Saved Profiles'' and can be run immediately or automatically if desired.&lt;br /&gt;
&lt;br /&gt;
== About Archiving Archive Mailboxes ==&lt;br /&gt;
{{Archive_Mailbox_Folder_Structure}}&lt;br /&gt;
&lt;br /&gt;
== Archiving Individual Microsoft&amp;amp;nbsp;365 Archive Mailboxes ==&lt;br /&gt;
{{Archiving Single Archive Mailbox Preamble|Microsoft&amp;amp;nbsp;365}}&lt;br /&gt;
For each mailbox, please proceed as follows:&lt;br /&gt;
&lt;br /&gt;
* Log on to MailStore Client as MailStore Server administrator.&lt;br /&gt;
* Click on ''Archive Email''.&lt;br /&gt;
* From the ''Email Servers'' list in the ''Create Profile'' area of the ''Archive Email'' page, select ''Microsoft&amp;amp;nbsp;365'' or ''Microsoft&amp;amp;nbsp;365 (21Vianet)'' to create a new archiving profile.&lt;br /&gt;
* A wizard opens to assist in specifying the archiving settings.&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
*; [[File:Microsoft_365_archive_mailbox 01.png|center|347px]]&lt;br /&gt;
* Select ''Single Archive Mailbox'' and click on ''OK''.&lt;br /&gt;
*; [[File:Microsoft_365_archive_mailbox 02.png|center|347px]]&lt;br /&gt;
* Select the Microsoft&amp;amp;nbsp;365 credentials that you have created during the registration of MailStore Server with Microsoft&amp;amp;nbsp;365 from the ''Credentials'' drop-down list. You can also use the button (…) to access the [[Synchronizing_User_Accounts_with_Microsoft_365_(Modern_Authentication)#Creating_Credentials_in_MailStore_Server|Credential Manager]].&lt;br /&gt;
* In the ''Mailbox'' field, enter the primary email address of the user whose archive mailbox you want to archive.&lt;br /&gt;
* Click on ''Test'' to verify that MailStore Server can access the archive mailbox.&lt;br /&gt;
* Click on ''Next''.&lt;br /&gt;
* If needed, adjust the settings for the [[Email_Archiving_with_MailStore_Basics#Archiving_Specific_Folders|List of Folders to be Archived]], the [[Email_Archiving_with_MailStore_Basics#Specifying_Filter_Criteria_for_Archiving|filter]] and the [[Email_Archiving_with_MailStore_Basics#Deleting_Emails_after_Archiving|Deletion Rules]]. By default, no emails will be deleted from the archive mailbox. The ''Timeout'' value only has to be adjusted in specific cases (e.g. with very slow network connections). &lt;br /&gt;
*; [[File:Microsoft_365_archive_mailbox_03.png|center|347px]]&lt;br /&gt;
* Click on ''Next'' to continue.&lt;br /&gt;
* Select the archive of the user for whom the selected archive mailbox is to be archived. If the user does not exist yet, click on ''Create a New User…''.&lt;br /&gt;
*; [[File:Microsoft_365_archive_mailbox_04.png|center|347px]]&lt;br /&gt;
* Click on ''Next''.&lt;br /&gt;
* In the last step, a name for the archiving profile can be specified. After clicking ''Finish'', the archiving profile will be listed under ''Saved Profiles'' and, if desired, can be run immediately or automatically.&lt;br /&gt;
&lt;br /&gt;
More information on how to execute archiving profiles can be found under the topic [[Email Archiving with MailStore Basics]]&lt;br /&gt;
&lt;br /&gt;
== Archiving Multiple Microsoft&amp;amp;nbsp;365 Archive Mailboxes Centrally ==&lt;br /&gt;
{{Archiving Multiple Archive Mailboxes Preamble|Microsoft&amp;amp;nbsp;365}}&lt;br /&gt;
Please proceed as follows:&lt;br /&gt;
&lt;br /&gt;
* Log on to MailStore Client as MailStore Server administrator.&lt;br /&gt;
* Click on ''Archive Email''.&lt;br /&gt;
* From the ''Email Servers'' list in the ''Create Profile'' area of the ''Archive Email'' page, select ''Microsoft&amp;amp;nbsp;365'' or ''Microsoft&amp;amp;nbsp;365 (21Vianet)'' to create a new archiving profile.&lt;br /&gt;
* A wizard opens to assist in specifying the archiving settings.&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
*; [[File:Microsoft_365_archive_mailboxes_01.png|center|347px]]&lt;br /&gt;
* Select ''Multiple Archive Mailboxes'' and click ''OK''.&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
*; &amp;lt;p class=msnote&amp;gt;{{Archiving_Multiple_or_Multidrop_Note|multiple archive mailboxes|[[#App_Registration_.26_User_Synchronization|directory synchronization]]}}&amp;lt;/p&amp;gt;&lt;br /&gt;
*; [[File:Microsoft_365_archive_mailboxes_02.png|center|347px]]&lt;br /&gt;
* Select the Microsoft&amp;amp;nbsp;365 credentials that you have created during the registration of MailStore Server with Microsoft&amp;amp;nbsp;365 from the ''Credentials'' drop-down list. You can also use the button (…) to access the [[Synchronizing_User_Accounts_with_Microsoft_365_(Modern_Authentication)#Creating_Credentials_in_MailStore_Server|Credential Manager]].&lt;br /&gt;
* Click on ''Next'' to continue. &lt;br /&gt;
*; [[File:Microsoft_365_archive_mailboxes_03.png|center|347px]]&lt;br /&gt;
* If needed, adjust the settings for the [[Email_Archiving_with_MailStore_Basics#Archiving_Specific_Folders|List of Folders to be Archived]], the [[Email_Archiving_with_MailStore_Basics#Specifying_Filter_Criteria_for_Archiving|filter]] and the [[Email_Archiving_with_MailStore_Basics#Deleting_Emails_after_Archiving|Deletion Rules]]. By default, no emails will be deleted from the archive mailbox. The ''Timeout'' value only has to be adjusted in specific cases (e.g. with very slow network connections). Please keep in mind that these settings apply to all mailboxes to be archived, as specified in the next step.&lt;br /&gt;
*; {{Archiving_Multiple_Mailboxes_Centrally_Options|Microsoft_365_archive_mailboxes_04.png|Microsoft&amp;amp;nbsp;365}}&lt;br /&gt;
&lt;br /&gt;
[[de:E-Mail-Archivierung_von_Microsoft_365_(Modern_Authentication)]]&lt;br /&gt;
[[en:Archiving_Emails_from_Microsoft_365_(Modern_Authentication)]]&lt;/div&gt;</summary>
		<author><name>Ltalaschus</name></author>
	</entry>
	<entry>
		<id>https://help.mailstore.com/en/server/index.php?title=Update_Notices_for_MailStore_Server&amp;diff=7940</id>
		<title>Update Notices for MailStore Server</title>
		<link rel="alternate" type="text/html" href="https://help.mailstore.com/en/server/index.php?title=Update_Notices_for_MailStore_Server&amp;diff=7940"/>
		<updated>2026-01-12T15:03:52Z</updated>

		<summary type="html">&lt;p&gt;Ltalaschus: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== General Information ==&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;p class=&amp;quot;mswarning&amp;quot;&amp;gt;'''Before you start the installation, please check if your current license really allows to upgrade the software.'''&amp;lt;/p&amp;gt;&lt;br /&gt;
* &amp;lt;p class=&amp;quot;mswarning&amp;quot;&amp;gt;'''Before the installation, read the [https://go.mailstore.com?product=MailStore%20Server&amp;amp;target=changelog&amp;amp;lang=en changelog] for information about all changes in the respective versions.'''&amp;lt;/p&amp;gt;&lt;br /&gt;
* &amp;lt;p class=&amp;quot;mswarning&amp;quot;&amp;gt;'''Make sure you have a recent backup of your archive. Learn more about backing up and restoring MailStore Server [[Backup and Restore|here]]'''.&amp;lt;/p&amp;gt;&lt;br /&gt;
* &amp;lt;p class=&amp;quot;mswarning&amp;quot;&amp;gt;'''Make sure the server where MailStore Server is installed on meets the [[System_Requirements|system requirements]]'''.&amp;lt;/p&amp;gt;&lt;br /&gt;
* Close all open MailStore programs on the server, such as the MailStore Server Service Configuration, the MailStore Client, and Outlook. Open programs cannot be overwritten by the installation program, and this will result in an access error 5.&lt;br /&gt;
* The installation process will uninstall older versions of the software automatically. All archives and the configuration data will be kept. There is no need to manually uninstall old versions previously.&lt;br /&gt;
* Installations with version 23.4 or older must first be updated to version 24.4 and all archive stores must be updated to Firebird 4. You can then update to the latest version. Please also read the [[Update Notices for MailStore Server to version 25.1 or newer]].&lt;br /&gt;
* During the installation process the MailStore Server service is automatically stopped and restarted afterwards. Running archiving profiles will be cancelled and may show up as failed. Should stopping the service fail for any reason, please stop the service manually and run the installation again.&lt;br /&gt;
* Carefully check the auto-detected settings during the installation process.&lt;br /&gt;
* Updating the MailStore Client installations and/or the MailStore Outlook Add-In installations is only necessary if this is specifically stated in the version-specific notes.&lt;br /&gt;
*; Further information can be found in the articles [[MailStore Client Deployment]] and [[MailStore Outlook Add-in Deployment]]&lt;br /&gt;
* The following version specific upgrade notices are cumulative. Therefore, also read the notices regarding all version numbers between yours and the one you are going to install.&lt;br /&gt;
* For versions that are not explicitly listed here, the upgrade notices for preceding versions apply accordingly.&lt;br /&gt;
&lt;br /&gt;
== Upgrading to 26.1.0 ==&lt;br /&gt;
&lt;br /&gt;
* External Microsoft SQL and PostgreSQL-based archive stores are deprecated and support will be removed in a future MailStore version.&lt;br /&gt;
* New Microsoft 365 mailbox archiving profiles now use the Graph API. Please ensure you have registered the app in Entra ID according to our instructions; in particular, the Mail.ReadWrite permission is now required.&lt;br /&gt;
&lt;br /&gt;
== Upgrading to 25.4.0 ==&lt;br /&gt;
* MailStore Client prefers Kerberos when Windows Authentication (Single-Sign-on) is configured via GPO.&lt;br /&gt;
&lt;br /&gt;
== Upgrading to 25.3.1 ==&lt;br /&gt;
The known issues of version 25.3.0 have been fixed.&lt;br /&gt;
&lt;br /&gt;
== Upgrading to 25.3.0 ==&lt;br /&gt;
* ''' Microsoft Windows Live Mail '''&lt;br /&gt;
*; Support for the Microsoft Windows Live Mail email client has been removed from MailStore in this version.&lt;br /&gt;
* ''' SmarterMail '''&lt;br /&gt;
*; Support for the SmarterMail email server has been removed from MailStore in this version.&lt;br /&gt;
* ''' Directory Service Synchronization '''&lt;br /&gt;
*; After updating, check your directory service settings for functionality. Support for older authentication methods has been removed from MailStore in this version (Microsoft 365 Basic authentication and Google Workspace IMAP authentication), and third-party components have been updated.&lt;br /&gt;
* ''' SMTP OAuth2 Authentication with Microsoft 365 '''&lt;br /&gt;
*; Please note the [[SMTP Settings]] article if you would like to use your existing app registration in Entra ID to transmit emails via Microsoft 365 server.&lt;br /&gt;
* ''' Gateway archiving '''&lt;br /&gt;
*; Gateway archiving profiles that are meant for Google, generic mail servers and email clients do not extract journal reports and NDRs anymore. When archiving Microsoft 365 journal emails from a MailStore Gateway mailbox ensure you are using the proper Gateway archiving profile before updating. You can tell this because you cannot configure the target path in the archive in the archiving profile and the emails are sorted into the ''Journal Incoming'' and ''Journal Outgoing'' folders.&lt;br /&gt;
&lt;br /&gt;
=== Known Issues ===&lt;br /&gt;
* &amp;lt;p class=&amp;quot;mswarning&amp;quot;&amp;gt;'''PostgreSQL databases cannot be loaded after an upgrade. Do not upgrade if you are using PostgreSQL based archive stores.'''&amp;lt;/p&amp;gt; This bug was fixed with version 25.3.1.&lt;br /&gt;
* In WebAccess, emails that contain only plain text are not displayed correctly. This bug was fixed with version 25.3.1.&lt;br /&gt;
&lt;br /&gt;
== Upgrading to 25.2.0 ==&lt;br /&gt;
There are no notes for this version.&lt;br /&gt;
&lt;br /&gt;
== Upgrading to 25.1.0 ==&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;p class=&amp;quot;mswarning&amp;quot;&amp;gt;'''Only installations with versions 24.2.0 to 24.4.0 can be updated directly.'''&amp;lt;/p&amp;gt;&lt;br /&gt;
* &amp;lt;p class=&amp;quot;mswarning&amp;quot;&amp;gt;'''Until all archive stores have been updated, you must not update to version 25.1.0.'''&amp;lt;/p&amp;gt;&lt;br /&gt;
* It is '''obligatory''' to also note the [[Update Notices for MailStore Server to version 25.1 or newer]].&lt;br /&gt;
&lt;br /&gt;
== Upgrading to 24.4.0 ==&lt;br /&gt;
There are no notes for this version.&lt;br /&gt;
&lt;br /&gt;
== Upgrading to 24.3.0 ==&lt;br /&gt;
* Saved searches containing search criteria that can be interpreted as [[Accessing_the_Archive_with_the_MailStore_Client_software#Searching_for_Alternatives|search for alternatives]] will return different search results than before the update.&lt;br /&gt;
* Retention policies do not support [[Accessing_the_Archive_with_the_MailStore_Client_software#Searching_for_Alternatives|searches for alternatives]]. In case existing retention policies contain search criteria that can be interpreted as searches for alternatives, those have to be changed for retention policies to being able to be processed again.&lt;br /&gt;
&lt;br /&gt;
== Upgrading to 24.2.2 ==&lt;br /&gt;
&lt;br /&gt;
There are no notes for this version.&lt;br /&gt;
&lt;br /&gt;
== Upgrading to 24.2.1 ==&lt;br /&gt;
If you are upgrading from a MailStore version before 24.2.0, please also note the instructions for upgrading to version 24.2.0.&lt;br /&gt;
&lt;br /&gt;
* '''Upgrading Archive Stores''' &amp;lt;br /&amp;gt;If you upgrade from MailStore 24.2.0, the archive stores need to be upgraded. To do this, proceed as follows:&lt;br /&gt;
** Log in as MailStore administrator (admin).&lt;br /&gt;
** Click on ''Administrative Tools'' &amp;gt; ''Storage'' and then ''Storage Locations''.&lt;br /&gt;
** Either click on the yellow info box to upgrade all archive stores at once or right-click on an archive store and select ''Perform Upgrade'' to upgrade a single archive store.&lt;br /&gt;
** Carefully read the notices and click on ''OK'' to start the upgrade process or click on ''Cancel''.&lt;br /&gt;
**: [[File:Fg_upgrade10.png|center]]&lt;br /&gt;
:&amp;lt;p class=&amp;quot;mswarning&amp;quot;&amp;gt;Until all archive stores have been upgraded, retention policies are not available.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Upgrading to 24.2.0 ==&lt;br /&gt;
* '''Upgrade of Master Database'''&amp;lt;br/&amp;gt;The master database is upgraded to Firebird 4 during the first start of the MailStore Server service. This process might extend the time required for the first start of the service by several minutes.&lt;br /&gt;
* '''Upgrading Archive Stores''' &amp;lt;br /&amp;gt;For the update to Firebird 4 the databases of the archive stores must be upgraded. Proceed as follows to upgrade:&lt;br /&gt;
** Log in as MailStore administrator (admin).&lt;br /&gt;
** Click on ''Administrative Tools'' &amp;gt; ''Storage'' and then ''Storage Locations''.&lt;br /&gt;
** Either click on the yellow info box to upgrade all archive stores at once or right-click on an archive store and select ''Perform Upgrade'' to upgrade a single archive store.&lt;br /&gt;
** Carefully read the notices and click on ''OK'' to start the upgrade process or click on ''Cancel''.&lt;br /&gt;
**: [[File:Fg_upgrade10.png|center]]&lt;br /&gt;
:&amp;lt;p class=&amp;quot;mswarning&amp;quot;&amp;gt;Until all archive stores have been upgraded, retention policies are not available.&amp;lt;/p&amp;gt;&lt;br /&gt;
* '''System Requirements'''&lt;br /&gt;
*; Internet Explorer support has been removed from MailStore in this version. For a current list of supported browsers, please refer to [[System Requirements]].&lt;br /&gt;
* ''' Python API Wrapper '''&lt;br /&gt;
*; In order to be able to use the new API commands, an update of the [[Python_API_Wrapper_Tutorial|Python API wrapper library]] is required.&lt;br /&gt;
&lt;br /&gt;
=== Known Issues ===&lt;br /&gt;
* As long as an internal, Firebird-based archive store has not been updated, no recovery records will be written for emails in this archive store. This bug was fixed with version 24.2.1.&lt;br /&gt;
* Users who have been synchronized from an Active Directory and who have MailStore multi-factor authentication (MFA) activated cannot log in using Windows authentication. To work around the issue, disable multi-factor authentication for those users in MailStore or let them use their username and password to log in. This bug was fixed with version 24.2.2.&lt;br /&gt;
&lt;br /&gt;
== Upgrading to 23.4.0 ==&lt;br /&gt;
* '''System Requirements'''&lt;br /&gt;
*; Windows Server 2012 and Windows Server 2012 R2 support has been removed from MailStore in this version. For a current list of supported operating systems, please refer to [[System Requirements]].&lt;br /&gt;
* ''' Python API Wrapper '''&lt;br /&gt;
*; In order to be able to use the new API commands, an update of the [[Python_API_Wrapper_Tutorial|Python API wrapper library]] is required.&lt;br /&gt;
&lt;br /&gt;
== Upgrading to 23.3.0 ==&lt;br /&gt;
* ''' Microsoft Exchange 2013 Support '''&lt;br /&gt;
*; Support for Microsoft Exchange 2013 has been removed from MailStore in this version.&lt;br /&gt;
&lt;br /&gt;
== Upgrading to 23.2.0 ==&lt;br /&gt;
* ''' Outlook Add-in '''&lt;br /&gt;
*; Starting with version 23.2.0, MailStore Server supports multi-factor authentication for users with integrated authentication. To support multi-factor authentication an update of the Outlook Add-in is required.&lt;br /&gt;
*; The Outlook Add-In 23.2.0 is not backward compatible with older MailStore Server versions. When updating, MailStore Server should be updated first and then the Outlook Add-in.&lt;br /&gt;
* ''' Scheduled Tasks, Management API, IMAP Access '''&amp;lt;br /&amp;gt;&lt;br /&gt;
*; When multi-factor authentication is enabled for a user and that user wants to schedule client-side archiving profiles, access the Management API or access the IMAP server, an app password has to be used instead of the regular password.&lt;br /&gt;
* ''' Python API Wrapper '''&lt;br /&gt;
*; In order to be able to use the new API commands, an update of the [[Python_API_Wrapper_Tutorial|Python API wrapper library]] is required.&lt;br /&gt;
&lt;br /&gt;
== Upgrading to 23.1.2 ==&lt;br /&gt;
* &amp;lt;p class=&amp;quot;mswarning&amp;quot;&amp;gt;&amp;lt;b&amp;gt;Important:&amp;lt;/b&amp;gt; Let's Encrypt has announced to change their production request flow permanently on April 24th 2023. After that date, previous versions of MailStore Server will not be able to successfully request certificates from Let's Encrypt.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Upgrading to 23.1.0 ==&lt;br /&gt;
* '''System Requirements'''&lt;br /&gt;
*; Windows 7, Windows 8.1, Windows Server 2008 R2 and Windows Small Business Server 2011 support has been removed from MailStore in this version. For a current list of supported operating systems, please refer to [[System Requirements]].&lt;br /&gt;
&lt;br /&gt;
== Upgrading to 22.4.0 ==&lt;br /&gt;
There are no notes for this version.&lt;br /&gt;
&lt;br /&gt;
== Upgrading to 22.3.0 ==&lt;br /&gt;
* ''' Outlook Add-in '''&lt;br /&gt;
*; Starting with version 22.3.0, failed login attempts will slow down the login process. While this process is backwards compatible to older Outlook Add-ins, we strongly recommend updating the Outlook Add-in for the best user experience.&lt;br /&gt;
&lt;br /&gt;
== Upgrading to 22.2.x ==&lt;br /&gt;
* '''System Requirements'''&lt;br /&gt;
*; Starting with version 22.2 MailStore Server, MailStore Client and MailStore Outlook Add-in require Microsoft .NET Framework version 4.8. Please refer to our [[System Requirements]].&amp;lt;br/&amp;gt;&amp;lt;p class=&amp;quot;mswarning&amp;quot;&amp;gt;If the framework is installed by the MailStore setup, the system might reboot without further notice.&amp;lt;/p&amp;gt;&lt;br /&gt;
* '''External Archive Stores'''&lt;br /&gt;
*; Starting with version 22.2, only versions 10 or newer are supported for PostgreSQL.&lt;br /&gt;
&lt;br /&gt;
== Upgrading to 13.x ==&lt;br /&gt;
* '''Update of MailStore Client and Outlook Add-in'''&amp;lt;br/&amp;gt;Irrespective of MailStore Client's auto-update mechanism, a reinstallation of MailStore Client and the MailStore Outlook Add-in is required to make use of the following improvements:&lt;br /&gt;
** Unified validation of TLS certificates.&lt;br /&gt;
** Unified evaluation of group policies.&lt;br /&gt;
** Distinct error messages for certain certificate errors.&lt;br /&gt;
** Outlook Add-in: Due to the required changes of the login process to support modern authentication with Microsoft 365 and Google Workspace, the Outlook Add-in must be updated to version 13 to be able to connect to MailStore Server 13.x. Connecting to an older version of MailStore Server is no longer supported after the update.&lt;br /&gt;
* '''Unencrypted Connections'''&lt;br /&gt;
*; Support for unencrypted connections to MailStore Server has been fully removed. This affects MailStore Outlook Add-in, and the Legacy Web Access. After updating the Outlook Add-in, it automatically tries to connect to the default HTTPS port (8462) if either the default HTTP port (8461) or no port was set as part of the server name previously. In all other cases, the  initial connections may fail and requires the server name to be adjusted by the user, or by an administrator via group policies.&lt;br /&gt;
* '''HTTP-to-HTTPS Redirect'''&lt;br /&gt;
*; The HTTP-to-HTTPS redirect option, which must be considered insecure without the use of properly configured [[wikipedia:HTTP_Strict_Transport_Security|HTTP Strict Transport Security (HSTS)]], has been removed. Users are required to use the correct HTTPS URL to access MailStore Web Access.&lt;br /&gt;
* '''Windows Authentication'''&lt;br /&gt;
*; The authentication method selection has been removed from the newly design login dialog. Therefore, traditional Windows Authentication available in on-prem Active Directory controlled environments, can only be enabled through group policies. Further information on group policies can be found in [[MailStore Client Deployment]] and [[MailStore Outlook Add-in Deployment]].&lt;br /&gt;
* '''Microsoft 365 Support'''&lt;br /&gt;
*; A new directory service synchronization profile [[Synchronizing_User_Accounts_with_Microsoft_365_(Modern_Authentication)|Microsoft 365 (Modern Authentication)]] as well as new profiles for archiving and exporting emails from or to Microsoft 365 have been introduced. These support modern authentication (OAuth 2.0 &amp;amp; OpenID Connect) and customers of Microsoft 365 are advised to regularly check for Microsoft's announcement on the timeline for removing HTTP Basic Auth from Microsoft Exchange Web Services (EWS) and to plan the migration to the new profiles in advance.&amp;lt;br/&amp;gt;&amp;lt;p class=&amp;quot;mswarning&amp;quot;&amp;gt;Once Microsoft disables support for HTTP Basic Auth in Exchange Web Services on Microsoft 365, the existing directory service synchronization profile ''Microsoft 365 (Basic Auth)'' (formerly named ''Office 365'') and the Microsoft Exchange archiving and export profiles will stop working.&amp;lt;/p&amp;gt;&lt;br /&gt;
* '''Google Workspace Support'''&lt;br /&gt;
*; The [[Google Workspace Integration|Google Workspace directory service synchronization profile]] has been extended with support for modern authentication (OAuth 2.0 &amp;amp; OpenID Connect). Customers of Google Workspace are advised to regularly check for Google's announcement on the timeline for removing support for less secure apps, and should plan the migration to the new setting in advance.&amp;lt;br/&amp;gt;&amp;lt;p class=&amp;quot;mswarning&amp;quot;&amp;gt;Once Google disables support for Less Secure Apps in Google Workspace, the existing directory service synchronization profile ''Google Workspace'' will no longer allow users to login to MailStore as long as the  authentication method is still set to ''IMAP''.&amp;lt;/p&amp;gt;&lt;br /&gt;
* '''IMAP Access to Archive'''&lt;br /&gt;
*; When using either the new ''Microsoft 365 (Modern Authentication)'' or ''Google Workspace'' directory service synchronization profile, user that have been added by these profiles, can not access their archive via the integrated IMAP server as MailStore Server is not able to verify those passwords itself. &lt;br /&gt;
* '''Startup Scripts'''&lt;br /&gt;
*; The [[MailStore Server Service Configuration]] now provides functionality to configure connections to remote SMB/CIFS network shares without having to store credential in a plain text batch file. Therefore, startup scripts are no longer recommended to be used for that purpose. Unless there actually is a startup script found in MailStore Server's program directory, the corresponding menu item ''Startup Script'' will not be shown in the MailStore Server Service Configuration.&lt;br /&gt;
* '''Mobile Web Access'''&lt;br /&gt;
*; The dedicated Mobile Web Access has been removed due to no longer supported third-party components (e.g. jQuery Mobile) and in favor of MailStore Web Access, which has been received major enhancements in terms of performance and usability.&lt;br /&gt;
* '''Legacy Web Access'''&lt;br /&gt;
*; As parts of Legacy Web Access are representing the server-side of the Outlook Add-in, the Legacy Web Access is still present, but no longer advertised on the login screen of the Web Access.&lt;br /&gt;
* '''Group Policies'''&lt;br /&gt;
*; The following group policy settings are no longer supported in MailStore 13:&lt;br /&gt;
** '''MailStore Client: Accept Thumbprint'''&lt;br /&gt;
**; If a server name has been defined by a group policy, the certificate used by MailStore Server must be trusted by the client computer and it must not be revoked or expired. &lt;br /&gt;
** '''MailStore Outlook Add-in: Accept Thumbprint'''&lt;br /&gt;
**; If a server name has been defined by a group policy, the certificate used by MailStore Server must be trusted by the client computer and it must not be revoked or expired.&lt;br /&gt;
** '''MailStore Outlook Add-in: Enable TLS/SSL encryption'''&lt;br /&gt;
**; As MailStore Server no longer supports unencrypted inbound connections and the default behavior of MailStore Outlook Add-in as been modified accordingly, this option is ignored.&lt;br /&gt;
&lt;br /&gt;
== Upgrading to 12.1 ==&lt;br /&gt;
* '''System Requirements'''&lt;br /&gt;
*; Windows Vista, Windows Server 2008, and Windows Small Business Server 2008 support has been removed from MailStore in this version. For a current list of supported operating systems, please refer to [[System Requirements]].&lt;br /&gt;
&lt;br /&gt;
== Upgrading to 12 ==&lt;br /&gt;
* '''Expired Certificates'''&lt;br /&gt;
*; Irrespective of whether the certificate's trust can be verified, no connection is established by MailStore Client to server's whose certificate has expired or was revoked. In such a case, the certificate must be replaced by means of the MailStore Server service configuration tool first.&lt;br /&gt;
* '''Using Certificates'''&lt;br /&gt;
*; If in the past, different certificates were used for the services provided by MailStore Server, the same certificate configuration as for new installations will be shown during the installation. The certificate configured in that step will afterwards be used for all provided services and can be change in the MailStore Server service configuration tool.&lt;br /&gt;
&lt;br /&gt;
== Upgrading to 11 ==&lt;br /&gt;
* '''Upgrading Archive Stores'''&lt;br /&gt;
*; &amp;lt;p class=&amp;quot;mswarning&amp;quot;&amp;gt;'''Depending on the archive size this can take an excessive amount of time. On average 50.000 messages are processed per minute during the upgrade.'''&amp;lt;/p&amp;gt;&lt;br /&gt;
*; Until the archive stores have been upgraded, not all functionality of the software is available. To facilitate&lt;br /&gt;
** retention policies,&lt;br /&gt;
** the search functionality,&lt;br /&gt;
** the improved recovery records,&lt;br /&gt;
*; the databases of the archive stores must be upgraded.&lt;br /&gt;
*;Proceed as follows to upgrade:&lt;br /&gt;
** Log in as MailStore administrator (admin).&lt;br /&gt;
** Click on ''Administrative Tools'' &amp;gt; ''Storage'' and then ''Storage Locations''.&lt;br /&gt;
** Either click on the yellow info box to upgrade all archive stores at once or right-click on an archive store and select ''Perform Upgrade'' to upgrade a single archive store.&lt;br /&gt;
** Carefully read the notices and click on ''OK'' to start the upgrade process or click on ''Cancel''.&lt;br /&gt;
**: [[File:Fg_upgrade10.png|center]]&lt;br /&gt;
* '''Retention Policies'''&amp;lt;br/&amp;gt;If not all attached archive stores are available (State: ''Archive here'', ''Normal''), or their status is ''Write-Protected'', no automatic processing of retention policies takes place. Therefore verify if an archive store is set to ''Disabled'' or ''Write-Protected'' after the upgrade and change it to one of the above states or detach it completely.&lt;br /&gt;
* '''Access via Integrated IMAP Server'''&amp;lt;br/&amp;gt;To access the archive via the integrated IMAP server, an encrypted connection is now mandatory. If necessary, adjust the configuration of your email clients accordingly and enable TLS or STARTTLS.&lt;br /&gt;
* '''Management API Commands Get-/SetComplianceConfiguration'''&amp;lt;br/&amp;gt;The property ''globalRetentionTimeYears'' has been removed from the commands. Own scripts using these commands have to be adjusted accordingly. To manage retention policies, two new commands  are available: ''GetRetentionPolicies'' and ''SetRetentionPolicies''.&lt;br /&gt;
&lt;br /&gt;
== Upgrading to 10.2 ==&lt;br /&gt;
* '''Web Access'''&amp;lt;br/&amp;gt;The new responsive Web Access is exclusively available via the HTTPS port. User who are still using the unencrypted HTTP port to access Web Access, will see a corresponding notice about this circumstance. Thus it is recommended to use a trustworthy certificate signed by an official or internal certificate authority. See [[Using Your Own SSL Certificate]] for details.&lt;br /&gt;
=== Known Issues ===&lt;br /&gt;
* The backend of the new responsive Web Access expects MailStore Server to be reachable on IP address 127.0.0.1 (localhost) and the default TCP port 8460. If you configured MailStore to listen on a specific IP address for MailStore Client connections in the [[MailStore Server Service Configuration]], please reset it to ''(All IP Addresses)'' and ''Port'' 8460. This problem was fixed with version 10.2.3.&lt;br /&gt;
&lt;br /&gt;
== Upgrading to 10.1 ==&lt;br /&gt;
* '''Archiving Emails'''&amp;lt;br/&amp;gt;If not all attached archive stores are available (State: ''Archive here'', ''Normal'', or ''Write-Protected''), no archiving takes place. Running archiving profiles are terminated with an appropriate message. Under certain circumstances this prevents the creation of duplicate emails while archiving. Therefore verify if an archive store is set to ''disabled'' after the upgrade and change it to one of the above states or detach it completely.   &lt;br /&gt;
* '''Status Reports'''&amp;lt;br/&amp;gt;If a longer period should be covered by status reports, it must be ensured that the profile and job results are kept for at least that period. The default value of previous installations is one week and should be adjusted to the new default value of 90 days.&lt;br /&gt;
&lt;br /&gt;
== Upgrading to Version 10 ==&lt;br /&gt;
* '''Encryption Notices'''&amp;lt;br/&amp;gt;Due to enhanced encryption mechanisms, MailStore archives that have been upgraded to version 10 are tied to the Windows-Installation on which MailStore Server has been installed. Under certain conditions some actions (e.g. restoring the default admin, attaching foreign archive stores, etc.) in MailStore require the input of a recovery key. By default this is the product key of the installation.&amp;lt;p class=&amp;quot;mswarning&amp;quot;&amp;gt;Please make sure to store the product key entered during installation in a safe location.&amp;lt;/p&amp;gt;In environments with higher security requirements it is recommended to change the default recovery key and, depending on the backup target, exclude the unencrypted search indexes from backups. Corresponding information can be found in the [[MailStore Server Service Configuration]] article.&lt;br /&gt;
* '''Upgrade of Master Database'''&amp;lt;br/&amp;gt;To facilitate encryption of the master database it is upgraded to Firebird 3 during the first start of the MailStore Server service and encrypted afterwards. This process might extend the time required for the first start of the service by several minutes.&lt;br /&gt;
* '''Upgrading Archive Stores''' &amp;lt;br /&amp;gt;To facilitate encryption the databases of the archive store must be upgraded. Proceed as follows to upgrade:&lt;br /&gt;
** Log in as MailStore administrator (admin).&lt;br /&gt;
** Click on ''Administrative Tools'' &amp;gt; ''Storage'' and then ''Storage Locations''.&lt;br /&gt;
** Either click on the yellow info box to upgrade all archive stores at once or right-click on an archive store and select ''Perform Upgrade'' to upgrade a single archive store.&lt;br /&gt;
** Carefully read the notices and click on ''OK'' to start the upgrade process or click on ''Cancel''.&lt;br /&gt;
**: [[File:Fg_upgrade10.png|center]]&lt;br /&gt;
* '''Archives of Other Users'''&amp;lt;br/&amp;gt;These are no longer visible for MailStore administrators if the ''Archive Access'' (formerly knows as ''E-mail Preview'') is blocked. Administrative functions such as deleting or renaming user archives are accessible through [[Archives|Administrative Tools &amp;gt; Users and Archives &amp;gt; Archives]].&lt;br /&gt;
* '''Export E-mails'''&amp;lt;br/&amp;gt;The previous change may also have an impact on export profiles owned by a MailStore administrator, in case the export scope contains archives of other users. As these are no longer visible to MailStore administrators if the ''Archive Access'' (formerly knows as ''E-mail Preview'') is blocked, they are not taken into account by export profiles.&lt;br /&gt;
* '''Auditing'''&amp;lt;br/&amp;gt;All activities that are exclusively executable by MailStore administrators are displayed as ''Enabled (locked)'' at ''Compliance'' &amp;gt; ''Auditing''. Irrespective of the ''Disabled'' status, all activities of MailStore administrators, excluding ''MessageRetrieveContent'', are written into the audit log.&lt;br /&gt;
* '''Default Password'''&amp;lt;br/&amp;gt;If you have not changed the default MailStore administrators (admin) password yet, you will be asked to set a new password during the first logon after the update. The same occurs when the password has been reset to ''admin'' after restoring the default admin.&lt;br /&gt;
&lt;br /&gt;
== Upgrading to Version 9.7 ==&lt;br /&gt;
* '''Search Indexes'''&amp;lt;br/&amp;gt;Due to changes in the area of indexing email attachment contents, the search index settings should be opened and confirmed after the update, so that MailStore can identify potentially missing or unsupported IFilters.&lt;br /&gt;
* '''Archiving from Gmail'''&amp;lt;br/&amp;gt;This version contains a new Gmail profile, that provides additional functionality such as support for deleting emails from the Gmail mailbox and OAuth2 authentication. Please notice, that it does not support any other folders than &amp;quot;All Mail&amp;quot; and &amp;quot;Sent Items&amp;quot;. This new behavior anticipates scenarios which have been recognized as confusing by users in the past and that where caused by the interaction of Gmail labels, IMAP folders and MailStore's single instance store. Existing Google Mail profiles can still be modified and executed, but no new ones can be created. It is recommended to replace old &amp;quot;Google Mail&amp;quot; profiles by this new Gmail profile.&lt;br /&gt;
&lt;br /&gt;
=== Known Issues ===&lt;br /&gt;
* Indexing the content of Open Document Format email attachments requires a working installation of OpenOffice or LibreOffice, though Microsoft Office 2010 Filter Pack officially provides support for these file types. Additional information can be found in the [[Search Indexes]] article.&lt;br /&gt;
&lt;br /&gt;
== Upgrading to Version 9.6 ==&lt;br /&gt;
* '''Update of MailStore Client and Outlook Add-in'''&amp;lt;br/&amp;gt;Independent of MailStore Client's auto-update mechanism, a reinstallation of MailStore Client and the MailStore Outlook Add-in is required to make use of the following improvements:&lt;br /&gt;
** Client: Pin to taskbar now possible on Windows 7 and newer.&lt;br /&gt;
** Support for different SSL certificate thumbprint formats in group policies.&lt;br /&gt;
** Group policies allow configuration of client and Outlook Add-in language.&lt;br /&gt;
* '''MailStore Proxy'''&amp;lt;br/&amp;gt;Starting with version 9.6, MailStore Proxy requires .NET Framework 4.5.1. Hence the [[MailStore_Proxy#System_Requirements|system requirements of MailStore proxy]] have also changed in regards to the operating system.&lt;br /&gt;
&lt;br /&gt;
== Upgrading to Version 9.3 ==&lt;br /&gt;
* '''Supported SSL certificates''' &amp;lt;br/&amp;gt;Using SSL certificates which utilize MD5-hash based signature algorithms (e.g. ''md5rsa'') is technically no longer possible since version 9.3. For years (approx. 2010) MD5-hash based signature algorithms have no longer been used for signing certificates. However, should the error message ''Authentication failed because the remote party has closed the transport stream.'' occur after installing the upgrade, please follow the instructions in the corresponding [https://cs.mailstore.com/index.php?/Knowledgebase/Article/View/120/5/erro-message-authentication-failed-because-the-remote-party-has-closed-the-transport-stream Knowledgebase article].&lt;br /&gt;
&lt;br /&gt;
== Upgrading to Version 9.x ==&lt;br /&gt;
* '''System Requirements''' &amp;lt;br/&amp;gt;Please ensure that your system configuration matches the updated system requirements. MailStore Server, MailStore Client and MailStore Outlook Add-in now require .NET Framework 4.5.1 and Internet Explorer 8 or higher. Thus Windows Vista SP2 or newer is required.&lt;br /&gt;
* '''Server-side Execution of E-mail-Server Profiles and Internal Backup'''&amp;lt;br/&amp;gt;Archiving from and exporting to email servers as well as the internal backup function is now carried out by the MailStore Server service itself. Thus it is necessary that the MailStore Server computer has the required  permissions to access email servers and network shares where applicable (see [[Using Network Attached Storage (NAS)]]).&amp;lt;br /&amp;gt;&amp;lt;p class=&amp;quot;mswarning&amp;quot;&amp;gt;In either case, verify carefully that all automated tasks are still working properly after updating.&amp;lt;/p&amp;gt;&lt;br /&gt;
* '''Scheduling of Profiles''' &amp;lt;br/&amp;gt;For executing archiving and export profiles of type ''E-mail Servers'', an internal scheduler is now used. This scheduler is used for all newly created profiles as soon as automatic execution is enabled in the profile settings.&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;Existing profiles of type ''E-mail Servers'' are set to manual execution after upgrading to MailStore Server 9. Their execution remains triggered based in the corresponding by task in the Windows Task Scheduler. To completely turn these profiles into independent server-side profiles, remove the corresponding task from the Windows Task Scheduler first and then enable automatic execution in the profile setting in MailStore Server. Further information can be found in [[Email_Archiving_with_MailStore_Basics#Working_with_Archiving_Profiles|Working with Archiving Profiles]] and [[Email_Archiving_with_MailStore_Basics#Automating_the_Archiving_Process|Automating the Archiving Process]]&lt;br /&gt;
* '''Group Policies''' &amp;lt;br/&amp;gt;New ADM and ADMX templates are used for the configuration of MailStore Client and MailStore Outlook Add-in. Group Policies created with the new templates are not compatible with older versions of MailStore Client and MailStore Outlook Add-In, nor does MailStore Client 9 and MailStore Outlook Add-in 9 support Group Policies that have been created based on previous versions of the ADM and ADMX templates. Please replace any existing Group Policies when upgrading to MailStore Server 9. Further information can be found in [[MailStore Client Deployment]] and [[MailStore Outlook Add-in Deployment]].&lt;br /&gt;
* '''Automatic Creation of New Archive Stores''' &amp;lt;br/&amp;gt;A new default threshold of 5 million emails has been introduced for the automatic creation of new archive stores in MailStore Server 9. For existing installations it is recommended to adjust this value after upgrading to MailStore Server 9 as described in [[Storage Locations]]. &lt;br /&gt;
* '''PDF Support of Full Text Search''' &amp;lt;br /&amp;gt;PDF support has been removed from MailStore Server's own indexer. Therefore it is required to either install a recent version of Adobe Reader or an appropriate IFilter driver (i.e. [http://www.adobe.com/support/downloads/detail.jsp?ftpID=5542 Adobe PDF iFilter] on the MailStore Server computer.&lt;br /&gt;
* '''MailStore Server Administration API''' &amp;lt;br /&amp;gt;The API has been completely rewritten. As it does not provide and kind of backward compatibility with previous versions, it is required to carefully verify and, if necessary, to modify scripts that make use of the Administration API.&lt;br /&gt;
* '''AVM KEN! Support Removed''' &amp;lt;br /&amp;gt;After the vendor's support for AVM KEN! has already stopped in September 2010, the support by MailStore ends with MailStore Server 9. Existing AVM KEN! profiles are automatically removed from MailStore - archived emails remain in the archive.&lt;br /&gt;
&lt;br /&gt;
=== Known Issues ===&lt;br /&gt;
* '''Missing Email Headers when Printing from MailStore Web Access''' '''''(resolved in version 9.6)'''''&amp;lt;br /&amp;gt;Due to the technical implementation of the HTML view, emails printed from within MailStore Web Access do not contain information about sender, recipient and subject. Until a fix is available, the workaround is to open the emails in an email client such as Microsoft Outlook or Mozilla Thunderbird for printing.&lt;br /&gt;
&lt;br /&gt;
== Upgrading to Version 8.x ==&lt;br /&gt;
&lt;br /&gt;
* '''System Requirements''' &amp;lt;br/&amp;gt;Please ensure that your system configuration matches the updated system requirements. MailStore Client and MailStore Outlook Add-in now require .NET Framework 3.5 SP1 and Internet Explorer 8 or higher.&lt;br /&gt;
&lt;br /&gt;
== Upgrading to Version 7.0 ==&lt;br /&gt;
&lt;br /&gt;
* '''Management Shell / Batch Scripts''' &amp;lt;br /&amp;gt; The server-side part of the Management Shell command set, which included commands such as &amp;lt;code&amp;gt;user-add&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;filegroup-create&amp;lt;/code&amp;gt;, has completely been replaced by the more powerful [[Administration_API_-_Using_the_API|MailStore Server Administration API]]. If you have written custom scripts (e.g. batch scripts) for user management or store management, please update them so that it uses the new command set. [[MailStore_Server_Management_Shell|More information about the MailStore Server Management Shell]]&lt;br /&gt;
&lt;br /&gt;
== Upgrading to Version 6.0 ==&lt;br /&gt;
&lt;br /&gt;
* '''Upgrading File Groups''' &amp;lt;br /&amp;gt; The file group format has changed to ensure high performance and stability in the future. To upgrade existing file groups to the new format, proceed as follows:&lt;br /&gt;
** Log in as MailStore administrator (admin).&lt;br /&gt;
** Click on ''Administrative Tools'' &amp;gt; ''Storage'' and then ''Storage Locations''.&lt;br /&gt;
** Either click on the yellow info box to upgrade all file groups at once or right-click on a file group and select ''Perform Upgrade'' to upgrade a single file group.&lt;br /&gt;
**: [[File:Fg_upgrade6.png]]&lt;br /&gt;
** Carefully read the notices and click on ''OK'' to start the upgrade process or click on ''Cancel''.&lt;br /&gt;
** While the upgrade process is running, you will see a window showing information about the upgrade progress. You can click on ''Cancel'' at any time to interrupt the upgrade process in order to continue it later.&lt;br /&gt;
* '''Automatic Creation of New File Groups''' &amp;lt;br /&amp;gt; If you are using a scheduled task to create new file groups regularly, we recommend to remove that scheduled task and proceed as described in chapter [[Storage_Locations#Creating_File_Groups_Automatically|Creating File Groups Automatically]] of the MailStore Server manual. Please notice the recommended limit of 500.000 messages per file group; that is the default value for all new installations of MailStore Server 6.&lt;br /&gt;
* '''Active Directory Integration''' &amp;lt;br /&amp;gt; After upgrading to MailStore Server 6 it is required to reconfigure the Active Directory integration with the new Directory Service interface. Please follow the instructions in chapter [[Active Directory Integration]] of the MailStore Server manual. &amp;lt;br /&amp;gt; '''Important notice:''' From MailStore Server 6 on, accessing the Active Directory is done under the security scope of the MailStore Server service (instead of MailStore Client). Therefor, please pay attention to ''Authentication'' under ''Specifying Connection Settings''.&lt;br /&gt;
* '''Generic LDAP Integration''' &amp;lt;br /&amp;gt; After upgrading to MailStore Server 6 it is required to reconfigure the generic LDAP integration with the new Directory Service interface. Please follow the steps in chapter [[Generic LDAP Integration]] of the MailStore Server manual.&lt;br /&gt;
* '''Firewall Settings''' &amp;lt;br /&amp;gt; If you have set up firewall rules manually to allow access to MailStore Server, MailStore Web Access, MailStore Outlook Add-in or the MailStore integrated IMAP server, we recommend to remove the firewall rules before installing MailStore Server 6. If desired, MailStore Server 6 can set up and update firewall rules on its own, after changes have been made in the [[MailStore Server Service Configuration]] (formerly known as MailStore Server Base Configuration).&lt;br /&gt;
* '''No More Separate Downloads''' &amp;lt;br /&amp;gt;  There is only one MailStore Server setup file, that includes all appropriate setup files for MailStore Client, MailStore Outlook Add-in and MailStore Proxy. MailStore Server setup creates a link on your desktop that opens an Explorer window with the setup files. If the desktop link does not exist you can find the setup files in the ''Setup-&amp;lt;version&amp;gt;'' sub-folder of your MailStore Server installation directory.&lt;br /&gt;
&lt;br /&gt;
== Upgrading to Version 5.0 ==&lt;br /&gt;
&lt;br /&gt;
* '''MailStore Outlook Add-In''' &amp;lt;br/&amp;gt; MailStore Outlook Add-in requires access to MailStore Web Access. Should the situation arise that your firewall block the MailStore Web Access ports (default: 8461 for HTTP and 8462 for HTTPS), please reconfigure you firewall accordingly.&lt;br /&gt;
&lt;br /&gt;
== Upgrading to Version 4.5 ==&lt;br /&gt;
&lt;br /&gt;
* '''Database Backups''' &amp;lt;br/&amp;gt;Database backup tasks or profiles which were created with an earlier version of MailStore Server need to be re-created with this version. Use the new backup functionality in Administrative Tools which provides you with several new features.&lt;br /&gt;
* '''Search Indexes''' &amp;lt;br/&amp;gt;If you have created search indexes with a MailStore Server version equal or earlier than 3.0.2, you will be prompted to rebuild them after your first administrator logon to MailStore Server. Depending on the number of users and file groups, this process might take several minutes or hours. You can continue to use MailStore Server during this process, however the search functionality might be limited until the process is finished.&lt;br /&gt;
&lt;br /&gt;
[[de:Hinweise_zum_Update_von_MailStore_Server]]&lt;br /&gt;
[[en:Update Notices for MailStore Server]]&lt;/div&gt;</summary>
		<author><name>Ltalaschus</name></author>
	</entry>
	<entry>
		<id>https://help.mailstore.com/en/server/index.php?title=EWS_Migration&amp;diff=7939</id>
		<title>EWS Migration</title>
		<link rel="alternate" type="text/html" href="https://help.mailstore.com/en/server/index.php?title=EWS_Migration&amp;diff=7939"/>
		<updated>2026-01-12T14:09:30Z</updated>

		<summary type="html">&lt;p&gt;Ltalaschus: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Microsoft Is Discontinuing Its Exchange Web Services (EWS) for Microsoft 365 ==&lt;br /&gt;
Microsoft [https://techcommunity.microsoft.com/blog/exchange/retirement-of-exchange-web-services-in-exchange-online/3924440 has announced] that it will no longer support Exchange Web Services (EWS) for Exchange Online as of October 1, 2026. This decision affects all companies that use EWS in combination with Exchange Online (Microsoft 365).&lt;br /&gt;
&lt;br /&gt;
EWS is a technology that was developed specifically for accessing Exchange data. The API enables access to data from Microsoft Exchange Server and Exchange Online, including emails and mailboxes. EWS has been a central interface for third-party solutions such as archiving systems.&lt;br /&gt;
&lt;br /&gt;
What Will Happen in October?&lt;br /&gt;
Microsoft plans to disable EWS for Exchange Online starting October 1. This decision will force manufacturers to switch to the Microsoft Graph API.&lt;br /&gt;
&lt;br /&gt;
Please note: If you use Exchange Online Kiosk, Microsoft Office 365, and Office 365 F1/F3, you should make the change by June. Further information can be found [https://techcommunity.microsoft.com/blog/exchange/update-to-ews-access-for-kiosk--frontline-worker-licensed-users/4474299 here].&lt;br /&gt;
&lt;br /&gt;
== What Will Change for MailStore Server and the MailStore SPE? ==&lt;br /&gt;
The shutdown of EWS initiated by Microsoft will require adjustments to MailStore Server and the MailStore SPE, depending on your archiving strategy.&lt;br /&gt;
This is because archiving methods within MailStore Server and MailStore SPE that were accessing EWS will no longer be available from October 1 and will then run into errors. &lt;br /&gt;
&lt;br /&gt;
The following profiles are expected to be affected in detail from October onwards:&lt;br /&gt;
&lt;br /&gt;
* Importing Exchange Online archive mailboxes&lt;br /&gt;
* Importing Exchange Online public folders&lt;br /&gt;
&lt;br /&gt;
New [[Archiving_Emails_from_Microsoft_365_-_Modern_Authentication|mailbox archiving profiles]] will use Graph API starting with version 26.1.&lt;br /&gt;
The [[Email_Archiving_with_MailStore_Basics|summary panel]] of the archiving or export profile tells which protocol is used. Microsoft 365 Journal archiving profiles do not typically use EWS and are therefore not affected.&lt;br /&gt;
&lt;br /&gt;
[[de:EWS Migration]]&lt;br /&gt;
[[en:EWS Migration]]&lt;/div&gt;</summary>
		<author><name>Ltalaschus</name></author>
	</entry>
	<entry>
		<id>https://help.mailstore.com/en/server/index.php?title=HelpTopicIds&amp;diff=7938</id>
		<title>HelpTopicIds</title>
		<link rel="alternate" type="text/html" href="https://help.mailstore.com/en/server/index.php?title=HelpTopicIds&amp;diff=7938"/>
		<updated>2026-01-12T13:40:07Z</updated>

		<summary type="html">&lt;p&gt;Ltalaschus: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;* accs_export - [[Exporting_Email]]&lt;br /&gt;
* accs_extsearch - [[Accessing_the_Archive_with_the_MailStore_Client_software#Advanced_Search]]&lt;br /&gt;
* accs_outlook - [[Accessing_the_Archive_with_the_Microsoft_Outlook_integration]]&lt;br /&gt;
* accs_outlookapp - [[Accessing_the_Archive_with_the_Microsoft_Outlook_App_integration]]&lt;br /&gt;
* accs_preview - [[Accessing_the_Archive_with_the_MailStore_Client_software#Email_Preview]]&lt;br /&gt;
* accs_web - [[Accessing_the_Archive_with_MailStore_Web_Access]]&lt;br /&gt;
* arch_delete - [[Email_Archiving_with_MailStore_Basics#Deleting_Emails_after_Archiving]]&lt;br /&gt;
* arch_filesystem - [[Archiving_Emails_from_External_Systems_(File_Import)]]&lt;br /&gt;
* arch_filepst - [[Archiving_Outlook_PST_Files_Directly]]&lt;br /&gt;
* arch_gateway - [[Archiving_MailStore_Gateway_Mailbox]]&lt;br /&gt;
* arch_nospamproxy - [[Archiving_Emails_from_NoSpamProxy]]&lt;br /&gt;
* gateway_introduction - [[Archiving_MailStore_Gateway_Mailbox]]&lt;br /&gt;
* arch_googleapps_batch - [[Archiving_Emails_from_Google_Workspace#Archiving_Multiple_Mailboxes_Centrally]]&lt;br /&gt;
* arch_googleapps - [[Archiving_Emails_from_Google_Workspace]]&lt;br /&gt;
* arch_googleapps_multidrop - [[Archiving_Emails_from_Google_Workspace#Archiving_Incoming_and_Outgoing_Emails_Directly]]&lt;br /&gt;
* arch_googlemail_installed_app - [[Archiving_Emails_from_Gmail]]&lt;br /&gt;
* arch_outlookcom_modern_auth - [[Archiving_Emails_from_Outlook.com]]&lt;br /&gt;
* arch_icewarp - [[Archiving_Emails_from_IceWarp_Server]]&lt;br /&gt;
* arch_icewarp_mailbox - [[Archiving_Emails_from_IceWarp_Server#Archiving_Individual_Mailboxes]]&lt;br /&gt;
* arch_icewarp_mailboxes - [[Archiving_Emails_from_IceWarp_Server#Archiving_Multiple_Mailboxes_in_One_Step]]&lt;br /&gt;
* arch_icewarp_multidrop - [[Archiving_Emails_from_IceWarp_Server#Archiving_All_Incoming_and_Outgoing_Emails_Directly]]&lt;br /&gt;
* arch_imapbatch - [[Batch-archiving_IMAP_Mailboxes]]&lt;br /&gt;
* arch_inout - [[MailStore_Proxy]]&lt;br /&gt;
* arch_introduction - [[Archiving_Email]]&lt;br /&gt;
* arch_kerio - [[Archiving_Emails_from_Kerio_Connect]]&lt;br /&gt;
* arch_kerio_mailbox - [[Archiving_Emails_from_Kerio_Connect#Archiving_Individual_Mailboxes]]&lt;br /&gt;
* arch_kerio_mailboxes - [[Archiving_Emails_from_Kerio_Connect#Archiving_Multiple_Mailboxes_in_One_Step]]&lt;br /&gt;
* arch_kerio_multidrop - [[Archiving_Emails_from_Kerio_Connect#Archiving_Incoming_and_Outgoing_Emails_Directly]]&lt;br /&gt;
* arch_mailboxes - [[Archiving_Server_Mailboxes]]&lt;br /&gt;
* arch_mailclients - [[Archiving_Email_from_Outlook,_Thunderbird_and_others]]&lt;br /&gt;
* arch_mdaemon - [[Archiving_Emails_from_MDaemon]]&lt;br /&gt;
* arch_mdaemon_mailbox - [[Archiving_Emails_from_MDaemon#Archiving_Individual_Mailboxes]]&lt;br /&gt;
* arch_mdaemon_mailboxes - [[Archiving_Emails_from_MDaemon#Archiving_Multiple_Mailboxes_in_One_Step]]&lt;br /&gt;
* arch_mdaemon_multidrop - [[Archiving_Emails_from_MDaemon#Archiving_Incoming_and_Outgoing_Emails_Directly]]&lt;br /&gt;
* arch_multidrop - [[Archiving_IMAP_and_POP3_Multidrop_Mailboxes]]&lt;br /&gt;
* arch_profiles - [[Archiving_Email]]&lt;br /&gt;
* arch_schedule - [[Email_Archiving_with_MailStore_Basics#Automating_the_Archiving_Process]]&lt;br /&gt;
* arch_results - [[Email_Archiving_with_MailStore_Basics]]&lt;br /&gt;
* arch_selfolders - [[Email_Archiving_with_MailStore_Basics#Archiving_Specific_Folders]]&lt;br /&gt;
* bkup_integrated - [[Backup_and_Restore]]&lt;br /&gt;
* comp_auditing - [[Auditing]]&lt;br /&gt;
* comp_auditlog - [[Audit_Log]]&lt;br /&gt;
* comp_auditlogexport - [[Audit_Log]]&lt;br /&gt;
* comp_auditor - [[Compliance_General]]&lt;br /&gt;
* comp_forcechangepassword - [[Notes_on_Password_Complexity]]&lt;br /&gt;
* comp_general - [[Compliance_General]]&lt;br /&gt;
* comp_manage_passwords - [[Accessing_the_Archive_with_the_MailStore_Client_software#Managing_Passwords]]&lt;br /&gt;
* comp_password_complexity - [[Notes_on_Password_Complexity]]&lt;br /&gt;
* comp_retention - [[Retention_Policies]]&lt;br /&gt;
* comp_message_date - [[Message_Date_of_an_Email]]&lt;br /&gt;
* expo_googleapps - [[Exporting_Email]]&lt;br /&gt;
* gsta_login - [[Accessing_the_Archive_with_the_MailStore_Client_software#Starting_and_Login]]&lt;br /&gt;
* job_jobs - [[Jobs]]&lt;br /&gt;
* job_scheduling - [[Jobs]]&lt;br /&gt;
* job_results - [[Job_Results]]&lt;br /&gt;
* mads_sync - [[Administration]]&lt;br /&gt;
* tech_config - [[MailStore_Server_Service_Configuration]]&lt;br /&gt;
* tech_index - [[Search_Indexes]]&lt;br /&gt;
* tech_mscmd - [[MailStore_Server_Management_Shell]]&lt;br /&gt;
* tech_proxy - [[MailStore_Proxy]]&lt;br /&gt;
* tech_safemode - [[MailStore_Server_Service_Configuration]]&lt;br /&gt;
* tech_smtpsettings - [[SMTP_Settings]]&lt;br /&gt;
* tech_archives - [[Archives]]&lt;br /&gt;
* tech_storageloc - [[Storage_Locations]]&lt;br /&gt;
* tech_productupdates - [[Product_Updates]]&lt;br /&gt;
* umgm_privileges - [[Users,_Folders_and_Settings#User_Management]]&lt;br /&gt;
* umgm_users - [[Users,_Folders_and_Settings#User_Management]]&lt;br /&gt;
* xchg_introduction - [[Archiving_Emails_from_Microsoft_Exchange]]&lt;br /&gt;
* xchg_jour_intro - [[Archiving_Emails_from_Microsoft_Exchange]]&lt;br /&gt;
* xchg_mailbox - [[Archiving_Emails_from_Microsoft_Exchange]]&lt;br /&gt;
* xchg_mailboxes - [[Archiving_Emails_from_Microsoft_Exchange]]&lt;br /&gt;
* xchg_archive_mailbox - [[Archiving_Emails_from_Microsoft_Exchange]]&lt;br /&gt;
* xchg_archive_mailboxes - [[Archiving_Emails_from_Microsoft_Exchange]]&lt;br /&gt;
* xchg_public - [[Archiving_Emails_from_Microsoft_Exchange]]&lt;br /&gt;
* impl_noownserver - [[Archiving_Emails_Without_Your_Own_Emailserver|(No own e-mail server)]]&lt;br /&gt;
* impl_exim - [[Archiving_Emails_from_an_Exim_Based_Email_Server|Exim]]&lt;br /&gt;
* impl_hmailserver - [[Archiving_Emails_from_hMailServer|hMailServer]]&lt;br /&gt;
* impl_intranator - [[Archiving_Emails_from_Intra2net_Systems|Intra2net  Appliance Pro / Business Server]]&lt;br /&gt;
* impl_kerioconnect - [[Archiving_Emails_from_Kerio_Connect|Kerio Connect (Kerio MailServer)]]&lt;br /&gt;
* impl_kolab - [[Archiving_Emails_from_Kolab|Kolab]]&lt;br /&gt;
* impl_postfix - [[Archiving_Emails_from_a_Postfix_Based_Email_Server|Postfix]]&lt;br /&gt;
* impl_qmail - [[Archiving_Emails_from_a_Qmail_Based_Email_Server|Qmail]]&lt;br /&gt;
* impl_scalix - [[Archiving_Emails_from_Scalix|Scalix]]&lt;br /&gt;
* impl_sendmail - [[Archiving_Emails_from_a_Sendmail_Based_Email_Server|Sendmail]]&lt;br /&gt;
* impl_smartermail - [[Archiving_Emails_from_SmarterMail|SmarterMail]]&lt;br /&gt;
* impl_tobitdavid - [[Archiving_Emails_from_Tobit_David.fx|Tobit David.fx]]&lt;br /&gt;
* impl_zimbra - [[Archiving_Emails_from_Zimbra|Zimbra Collaboration Suite]]&lt;br /&gt;
* implexch_2003 - [[Archiving_Emails_from_Microsoft_Exchange_2003|Exchange 2003]]&lt;br /&gt;
* implexch_2007 - [[Archiving_Emails_from_Microsoft_Exchange_2007|Exchange 2007]]&lt;br /&gt;
* implexch_2010 - [[Archiving_Emails_from_Microsoft_Exchange_2010|Exchange 2010]]&lt;br /&gt;
* implexch_2013 - [[Archiving_Emails_from_Microsoft_Exchange_2013|Exchange 2013]]&lt;br /&gt;
* implexch_2016 - [[Archiving_Emails_from_Microsoft_Exchange_2016|Exchange 2016]] &lt;br /&gt;
* implexch_2019 - [[Archiving_Emails_from_Microsoft_Exchange_2019|Exchange 2019]]&lt;br /&gt;
* implexch_se - [[Archiving_Emails_from_Microsoft_Exchange_SE|Exchange SE]]&lt;br /&gt;
* implexch_o365 - [[Archiving_Emails_from_Microsoft_Office_365|Office 365]]&lt;br /&gt;
* welc_licensing - [[License_Management]]&lt;br /&gt;
* arch_microsoft365 - [[Archiving_Emails_from_Microsoft_365_(Modern_Authentication)]]&lt;br /&gt;
* arch_microsoft365_single - [[Archiving_Emails_from_Microsoft_365_(Modern_Authentication)#Archiving_Individual_Microsoft.C2.A0365_Mailboxes]]&lt;br /&gt;
* arch_microsoft365_multiple - [[Archiving_Emails_from_Microsoft_365_(Modern_Authentication)#Archiving_Multiple_Microsoft.C2.A0365_Mailboxes_Centrally]]&lt;br /&gt;
* arch_microsoft365_single_archive_mailbox - [[Archiving_Emails_from_Microsoft_365_(Modern_Authentication)#Archiving_Individual_Microsoft.C2.A0365_Archive_Mailboxes]]&lt;br /&gt;
* arch_microsoft365_multiple_archive_mailboxes - [[Archiving_Emails_from_Microsoft_365_(Modern_Authentication)#Archiving_Multiple_Microsoft.C2.A0365_Archive_Mailboxes_Centrally]]&lt;br /&gt;
* arch_microsoft365_public - [[Archiving_Emails_from_Microsoft_365_(Modern_Authentication)#Public_Folders]]&lt;br /&gt;
* expo_microsoft365 - [[Exporting_Email]]&lt;br /&gt;
* arch_m365_ews_migration - [[EWS_Migration]]&lt;br /&gt;
* cred_microsoft365 - [[Synchronizing_User_Accounts_with_Microsoft_365_(Modern_Authentication)#Creating_Credentials_in_MailStore_Server]]&lt;br /&gt;
* expo_mailstorecloudbulk - [[MailStore_Cloud_Help#Migration_from_MailStore_Server_to_MailStore_Cloud]]&lt;br /&gt;
&lt;br /&gt;
[[de:HelpTopicIds]]&lt;br /&gt;
[[en:helpTopicIds]]&lt;/div&gt;</summary>
		<author><name>Ltalaschus</name></author>
	</entry>
	<entry>
		<id>https://help.mailstore.com/en/server/index.php?title=EWS_Migration&amp;diff=7937</id>
		<title>EWS Migration</title>
		<link rel="alternate" type="text/html" href="https://help.mailstore.com/en/server/index.php?title=EWS_Migration&amp;diff=7937"/>
		<updated>2026-01-12T13:31:46Z</updated>

		<summary type="html">&lt;p&gt;Ltalaschus: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Microsoft Is Discontinuing Its Exchange Web Services (EWS) for Microsoft 365 ==&lt;br /&gt;
Microsoft [https://techcommunity.microsoft.com/blog/exchange/retirement-of-exchange-web-services-in-exchange-online/3924440 has announced] that it will no longer support Exchange Web Services (EWS) for Exchange Online as of October 1, 2026. This decision affects all companies that use EWS in combination with Exchange Online (Microsoft 365).&lt;br /&gt;
&lt;br /&gt;
EWS is a technology that was developed specifically for accessing Exchange data. The API enables access to data from Microsoft Exchange Server and Exchange Online, including emails and mailboxes. EWS has been a central interface for third-party solutions such as archiving systems.&lt;br /&gt;
&lt;br /&gt;
What Will Happen in October?&lt;br /&gt;
Microsoft plans to disable EWS for Exchange Online starting October 1. This decision will force manufacturers to switch to the Microsoft Graph API.&lt;br /&gt;
&lt;br /&gt;
Please note: If you use Exchange Online Kiosk, Microsoft Office 365, and Office 365 F1/F3, you should make the change by June. Further information can be found [https://techcommunity.microsoft.com/blog/exchange/update-to-ews-access-for-kiosk--frontline-worker-licensed-users/4474299 here].&lt;br /&gt;
&lt;br /&gt;
== What Will Change for MailStore Server and the MailStore SPE? ==&lt;br /&gt;
The shutdown of EWS initiated by Microsoft will require adjustments to MailStore Server and the MailStore SPE, depending on your archiving strategy.&lt;br /&gt;
This is because archiving methods within MailStore Server and MailStore SPE that were accessing EWS will no longer be available from October 1 and will then run into errors. &lt;br /&gt;
&lt;br /&gt;
The following profiles are expected to be affected in detail from October onwards:&lt;br /&gt;
&lt;br /&gt;
* Importing Exchange Online mailboxes&lt;br /&gt;
* Importing Exchange Online archive mailboxes&lt;br /&gt;
* Importing Exchange Online public folders&lt;br /&gt;
* Exporting emails to Microsoft 365 (bulk export)&lt;br /&gt;
&lt;br /&gt;
New [[Archiving_Emails_from_Microsoft_365_-_Modern_Authentication|mailbox archiving profiles]] will use Graph API starting with version 26.1.&lt;br /&gt;
The [[Email_Archiving_with_MailStore_Basics|summary panel]] of the archiving or export profile tells which protocol is used.&lt;br /&gt;
&lt;br /&gt;
[[de:EWS Migration]]&lt;br /&gt;
[[en:EWS Migration]]&lt;/div&gt;</summary>
		<author><name>Ltalaschus</name></author>
	</entry>
</feed>