Launch offer: 20% off every migration plan until 31 January 2027. See prices
//PST Files → Microsoft 365 or Google Workspace
6 min read
Cross-platform·Cross-Platform

PST Files → Microsoft 365 or Google Workspace

Import Outlook PST files from Azure Blob storage or a file share into Exchange Online or Gmail mailboxes.

PST Files → Microsoft 365 or Google Workspace

Import Outlook PST files into Exchange Online (Microsoft 365) mailboxes or Gmail. Aatrex reads each PST where you put it — an Azure Blob container or a Windows file share — so nothing is uploaded to Aatrex and file size doesn't matter.

For what moves and what doesn't, see What Moves and What Doesn't.


Step 1: Name the files after their users

Aatrex treats each top-level item in the PST location as one user:

In the locationBecomes
alice@contoso.com.pstuser alice@contoso.com, already mapped to the same address
bob/ (a folder holding 2019.pst, old/2015.pst, …)user bob, every PST inside merged into one mailbox

Names that aren't email addresses need a target address: map them in the dashboard, or upload a user CSV with src_email, tgt_email and, if the file or folder is named differently, src_login (for example src_login = Archives/Bob Smith.pst).

Remove PST passwords and repair damaged files with Outlook's scanpst.exe before you start; Aatrex can't open either.

Step 2: Put the PSTs where Aatrex can read them

This is the same upload Microsoft's own PST import uses.

  1. In the Azure portal, create a Storage account (Standard, any region) and a container in it, for example pst.

  2. Upload the files with AzCopy or Azure Storage Explorer:

    azcopy copy "C:\PST\*" "https://<account>.blob.core.windows.net/pst?<SAS>" --recursive
    
  3. Create a SAS token for the container (Container → Shared access tokens) with Read and List permissions and an expiry after the migration ends.

  4. Copy the Blob SAS URL: https://<account>.blob.core.windows.net/pst?sv=…&sig=…. To use a folder inside the container, add it to the path: https://<account>.blob.core.windows.net/pst/finance?sv=….

Delete the container (or let the SAS expire) when the migration is finished.

Option B — Windows file share

Use \\server\share\folder and an account that can read it. The file server must be reachable from Aatrex over SMB (port 445), through a public address or a VPN.

Step 3: Prepare the target

Microsoft 365: in Entra ID, register an app, create a client secret, then add the Microsoft Graph application permissions User.Read.All, Mail.ReadWrite, MailboxItem.ImportExport.All and MailboxFolder.ReadWrite.All, and click Grant admin consent. Mail is written through the Microsoft Graph mailbox API.

Google Workspace: create a service account with a JSON key and authorise its client ID for domain-wide delegation (Admin console → Security → API controls → Domain-wide delegation) with the scope https://mail.google.com/.

Step 4: Create the project

  1. Projects → Create Project → PST / Email Archive → Microsoft 365 (or Google Workspace).
  2. Source:
    • PST Location: the Blob SAS URL, or \\server\share\folder.
    • File Share Username / Password: only for a file share.
  3. Target: your tenant ID, client ID and secret (Microsoft 365), or the service account key and an admin email (Google).
  4. Test Connection — it reports how many PST files and users it found.
  5. Save, then Discover on the Mailboxes tab to create a row per user.

Where the mail lands

  • Folders keep their names and nesting. Inbox, Sent Items and Deleted Items go to the mailbox's own folders, Junk E-mail and Drafts likewise; everything else is created as it is in the PST.
  • Gmail: folders become labels; read mail is marked read and flagged mail is starred.
  • Calendar, contact, task and note items are listed as skipped, with the reason.

Re-running a user copies only what isn't copied yet, so you can stop and resume safely.


Common issues

"Azure refused listing the container (HTTP 403)" The SAS token lacks Read or List, has expired, or was made for a single blob. Create a container SAS with both permissions.

"no PST file or folder named … in …" The row's name doesn't match a file or folder. Rename the file to <name>.pst, or set src_login in the user CSV to its path.

"… can't be read as a PST file" The file is password-protected, damaged, or not a PST (OST files from Outlook's cache aren't supported). Open it in Outlook, remove the password or run scanpst.exe, and upload it again. The user's other PSTs still copy.

PreviousFile Shares, SharePoint Server, Egnyte, ShareFile & ConfluenceNext IMAP → Microsoft 365

Related articles