Diese Seite auf Deutsch anzeigen?

Info icon Folder Synchronization allows the users to get their folder structure from the source email system into their archive mailboxes in the MailStore Cloud archive. This can be user mailboxes or shared mailboxes. It is not useful for journal mailboxes. The typical setup should be Archiving via Journaling and then a Folder Synchronization on actual user mailboxes. This is the ideal way to legally comply archiving and the folder structure that is needed/expected by users when looking into their archived mailboxes.

Folder Synchronization can be done from mailboxes of public cloud services such as Microsoft 365 or Google Workspace, email servers such as Microsoft Exchange, or any Email Server providing Emails by IMAP. POP3 does not have a concept of folders so isn’t assisted for the synchronization task here. Only archiving from POP3 is possible. The actual folder synchronization task is then later executed by a schedule.

Folder Synchronizations

Folder Synchronization Profiles page has various features that can be used to create, edit, and manage your folder synchronization profiles.

 

  • Create folder synchronization profile – Creates a new folder synchronization profile from the beginning.
  • Refresh – The refresh icon can be utilized if needed to refresh the page.
  • Search – Search is an implicit search over Name and ID:
    • Name is a case insensitive “includes” search.
    • ID is a case insensitive “equals” search.
  • Actions
    • Edit – To edit the selected Folder Synchronization Profile.
    • Create Schedule – Define a schedule for execution of this folder synchronization profile. Learn how to create a schedule here.
    • Delete – Only possible if not in use by a schedule.

Common Properties for all profiles

 

  • Name
    • The user should select a unique name that is relevant to the profile.
    • The name can be edited later.
  • Type
    • The Email Server to synchronize the folder structure from.
    • This includes IMAP, Exchange Server, Microsoft 365, and Google Workspace.
    • This cannot be changed when editing.
  • Mode
    • Single or Multiple Mailboxes.
      Note: Microsoft Outlook.com and Gmail are only usable for Single Mailbox Folder Synchronization.
  • Delete in Source Mailbox
    • Never delete
    • Immediate after folder synchronization
      • Deletion of the mail on the server only after successful syncing
    • If archiving date older than …
      • Deletion of the mail on the mail server if the archiving in MailStore Cloud has happened before the configured listed timespan.
      • Allowed spans are in days, weeks, months, and years.
    • If message older then …
      • Deletion of the mail on the mail server if the mail is older then configured listed timespan.
      • Allowed spans are in days, weeks, months, and years.

Test Connection

When all mandatory properties are filled (this includes also the type specific properties, see next section) you can click on the ‘Test Connection’ button to test the given configuration. A new dialog will open and show the result of the connection test.

In case of a ‘Single mailbox’ configuration the test will be executed immediately. In case of a ‘Multiple mailbox’ configuration you must first choose a specific mailbox to be tested.

As the connection test directly communicates with your mail service, you may receive technical error messages in case of a misconfiguration. MailStore Cloud cannot provide localized error messages for all mail services as they are highly individual. Typical error messages could be for example a misspelling of tenant information, a wrong server or invalid credentials.

With the ‘Copy to clipboard’ button you can copy the result of the connection test in case you need further information and want to contact the support.

Individual properties according to the Mode selection

  • Single Mailbox Mode:
    • Mailbox  – Specifies the mailbox on the mail server, usually by its primary mail address.
  • Multiple Mailbox Mode:
    • Directory Service –  Specifies the directory services that has created mailboxes that should now be archived from. Please see the Directory Services article for more information.
    • Synchronize Users – When set the selected directory service will be executed by the scheduler before this Folder Synchronization Profile will be executed. The executed directory service can be seen as individual process in the Process log after execution.
    • Archive Mailboxes – Limit folder synchronization to specific archive mailboxes. You can either synchronize all archive mailboxes or select a subset in a separate dialog. Note: Synchronizing folders for all archive mailboxes is the default. Directory service synchronization must be run at least once before specific archive mailboxes can be selected.

 

Individual properties according to the Type selection

  • Server Name
    • Only used for IMAP and Exchange.
      • Without protocol and port.
  •  Port
    • Only used for IMAP.
    • Must be a valid number between 0 and 65535.
  • Protocol
    • Only used for IMAP.
      • IMAP-SSL or IMAP-TLS.
  • Credentials (See Secrets article for more information)
    • For IMAP, Exchange.
      • Basic Authentication (Username/Password).
    • For Microsoft 365.
      • Certificate Authentication.
    • For Google.
      • Google Workspace specific Authentication.

 Timeout

  • Only for IMAP, Exchange.
  • Must be a valid number between 0 and 2147483. If value is left empty, the default timeout will apply.

Source Mailbox

  • Only appears in Single Mailbox mode for Microsoft 365 and Google Workspace Types.
  • Used when either:
    • Mailbox name differs from the used Credentials UPN – Username.
    • When using impersonation for syncing.

Microsoft 365 specific properties

  • Should be taken from Tenants Microsoft Entra ID page.
    • Application ID
    • Directory ID

Microsoft Outlook.com / Gmail Connection Status

  • Click on the button ‘Authorize’ to authorize MailStore Cloud to read your Microsoft Outlook.com or Gmail emails.
  • You will be redirected to your mail provider to give consent for MailStore Cloud.
  • After giving consent, your source mailbox will automatically be selected (Microsoft Outlook.com and Gmail are always single mailbox profiles).
  • If you want to change the source mailbox by choosing another account, or if the connection was deleted in your email provider, you can click on ‘Reauthorize’.
  • Folder synchronization for mailboxes from other Microsoft domains such as live.com, hotmail.com or msn.com is also possible with the Microsoft Outlook.com profile. For folder synchronization for single Microsoft 365 mailboxes by an administrator, please use the corresponding MS365 archiving profile.

Folder Filter

Filters allows administrators to exclude specific folders from the archiving process. Any folder that matches a configured filter will be skipped and its contents will not be archived.

When adding a new filter, specify:

  • Filter text: The string to match against the folder path.
  • Filter type:
    • Path contains filter: The folder path is excluded if it contains the specified text anywhere in the path.
    • Path starts with filter: The folder path is excluded only if it begins with the specified text.
  • Match case-sensitive:
    • Enabled: Uppercase and lowercase characters must match exactly.
    • Disabled: Matching is performed without considering character case.

Note: Use / as path separator.

You can configure multiple filters. A folder is excluded from archiving if it matches any of the configured filters. The same filters should be defined for archiving and folder synchronization. You can use the ‘Copy to clipboard’ and ‘Paste from clipboard’ buttons to copy the filters from one configuration to another.
Filter settings for Gmail mailboxes: 
To filter on folders in a Gmail mailbox you have to exclude the “All mails” folder as well.
Use Filter: All mails, starts-with, case-sensitive

Examples:

Filter: spam, contains, case-sensitive

Excluded:

  • /mailboxes/john/spam
  • /users/archive/spam/2025
  • /mail/spam-folder/messages
Not excluded:
  • /mailboxes/john/inbox
  • /users/archive/junk
  • /mailboxes/john/SPAM
Filter: /mailboxes/john/archive, starts-with, case-insensitive
Excluded:
  • /mailboxes/john/archive
  • /mailboxes/john/archive/2024

Not excluded:

  • /mailboxes/john/inbox/archive
  • /users/archive/mailboxes/john/archive