Skip to content
Appcyclopedia
Outlook guide

How to export an Outlook mailbox to a .pst before leaving a job

· 45 min task · Tested

By

Elias Brandt writes about marketing, email and analytics tools for Appcyclopedia, working on a ThinkPad X1 Carbon Gen 10 and a Galaxy S25.

  • Windows
  • macOS

Short answer

In classic Outlook for Windows, select File, Open & Export, Import/Export, then Export to a file and Outlook Data File (.pst). In new Outlook, go to Settings, Files, Export. Ask your employer before you do it: company mail is theirs to allow.

The catch: by default, classic Outlook only exports the mail in its cache, which Microsoft says holds the past 12 months. An export that looks complete can be missing everything older.

Below: what to check before exporting, the wizard step by step, what new Outlook and Outlook for Mac can export, and how to test the file before your access ends.

How to export an Outlook mailbox to a .pst, and make sure it is complete

To export an Outlook mailbox to a .pst, settle the permission and the cache first, then run the export and test the file while you still have access. The groups follow that order, with a separate group for new Outlook and Outlook for Mac.

  1. Check before you export

    Ask whether you may take the mail

    Company mail is company data, and it often contains other people’s personal details. Ask your manager or IT before you export, and ask where a sanctioned copy should be kept. Organisations can also restrict .pst files: Microsoft Learn documents controls for both classic and new Outlook.

  2. Find out which Outlook you have

    Classic Outlook for Windows has a File tab on the ribbon. New Outlook for Windows has Settings instead. Legacy Outlook for Mac exports to a different format, .olm, not .pst. The steps differ for each, so check before starting, and do it well before your last day.

  3. Make sure Outlook holds all the mail you want

    In classic Outlook with Cached Exchange Mode, Microsoft Support says only items in the cache are exported, by default the past 12 months. Turn off Cached Exchange Mode, or open Account settings, Account Name and Sync Settings and move the slider to All. Do not save the export to a OneDrive folder; OneDrive blocks .pst sync.

  4. Export in classic Outlook for Windows

    Run the Import/Export wizard

    Select File, Open & Export, Import/Export. Choose Export to a file, Next, Outlook Data File (.pst), Next. Select the account, check Include subfolders, and choose Next. Select Browse, name the file, choose OK, then Finish. One account is exported at a time.

  5. Set a password when Outlook creates the file

    When the Create Outlook Data File box appears, you can enter a password in Password and Verify Password, then choose OK. Microsoft calls it optional and says it must be entered every time the file is opened. Microsoft does not describe how strong this protection is, so treat the file as sensitive either way.

  6. Export from new Outlook or a Mac

    Export mail from new Outlook for Windows

    Go to Settings, Files, Export, select Get started, and follow the wizard to pick the mailbox or folders. Microsoft says calendar and contact items in .pst files are not available in new Outlook, so this route is for email. For contacts and calendar, use classic Outlook.

  7. Export an .olm archive from legacy Outlook for Mac

    On the Tools tab, choose Export, or look under the File menu if the button is missing. Check the items to include in Export to Archive File (.olm), choose Continue, pick where to save, and select Save, then Finish. Microsoft says support for legacy Outlook for Mac ends in October 2026.

  8. Test the file before you lose access

    Open the file and look inside it

    In classic Outlook, select File, Open & Export, Open Outlook Data File, and pick the .pst. It appears at the bottom of the folder pane. In new Outlook, go to Settings, Files, Outlook Data Files, Add file; Microsoft says this needs classic Outlook installed too. Open a few old messages and their attachments.

  9. Repair the file if it will not open

    Close Outlook and run the Inbox Repair tool, SCANPST.EXE, from the Office folder, such as C:\Program Files (x86)\Microsoft Office\root\Office16. Select Browse, pick the .pst, Start, then Repair. Microsoft says you may need to run it several times, and it keeps a .bak backup of the original.

A common case: you export your work mailbox on your last Friday, open the .pst at home, and find nothing before last September. Cached Exchange Mode kept only twelve months. Step 3 before step 4 avoids it: widen the sync to All, let Outlook download the older mail, then export.

The export copies what Outlook holds, not what the server holds, so getting the mail into Outlook comes before running the wizard.

More about Outlook

Microsoft’s email and calendar app, for personal and work accounts.

If it goes wrong

The export stops at about a year back

Cached Exchange Mode limited it. Turn Cached Exchange Mode off, or move the sync slider to All, wait for older mail to download, and export again.

Import/Export is missing or the .pst will not attach

Your organisation may control .pst use by policy. Microsoft documents registry controls for classic Outlook and an Exchange Online setting for new Outlook. Only IT can change these.

Rules and folder views are missing from the .pst

Microsoft says the export does not include folder properties, message rules or blocked senders lists. In classic Outlook, export rules separately from File, Manage Rules & Alerts, Options, Export Rules, which saves an .rwz file.

The .pst file is stuck syncing in OneDrive

Microsoft says OneDrive blocks automatic syncing of .pst files. Move the file to a folder OneDrive does not sync.

What an Outlook export actually copies

A .pst export copies what Outlook has on the computer. Microsoft Support says the wizard exports email with attachments, contacts, calendar and tasks when Include subfolders is checked, and leaves the mailbox untouched.

What it copies depends on Outlook’s local cache. With Cached Exchange Mode on, the cache holds 12 months by default, and older items are left out. It also skips folder views, permissions, AutoArchive settings, message rules and blocked senders lists.

Get all the mail into Outlook first, then export.

Match your Outlook to the export route

SituationWhere to look first
Classic Outlook for WindowsFile, Open & Export, Import/Export
New Outlook for Windows, email onlySettings, Files, Export
New Outlook, contacts and calendar neededSwitch to classic Outlook
Legacy Outlook for MacTools, Export, to an .olm file
Only Outlook on the webA desktop Outlook with the account added

The table draws on Microsoft Support’s pages on exporting to a .pst and on exporting from Outlook for Mac.

When the file you find is not an export

Outlook keeps its own data files, and they look like the thing you want. Microsoft says Microsoft 365, Exchange, IMAP and Outlook.com accounts store mail in an .ost file, a synchronised copy of the server that you do not need to back up.

An .ost file is not a portable export. If your organisation archives old mail automatically, you may also have an archive .pst, which Microsoft notes can hold older mail even when day-to-day mail sits in an .ost.

How to leave with only what you need

A whole mailbox is rarely the right thing to take. A few habits keep the copy small and defensible:

  1. Agree with your employer what you may keep, and where it should live.
  2. Where the wizard lets you pick folders, as new Outlook’s does, export only the folders you need.
  3. Test the file at home or on the new machine before your account closes.
  4. Keep the file out of synced folders, and delete it when you no longer need it.

If you are also leaving a Slack workspace, the guide to exporting Slack before closure covers that side.

Permission first, cache second, wizard third

The wizard is the easy part. The two things that go wrong are taking mail you were not allowed to take, and taking a year of mail when you needed five.

Ask first, set the sync to All, export, then open the file before you hand in your laptop.

Common questions

Can I export a mailbox from Outlook on the web?
Microsoft’s instructions use desktop Outlook: classic or new Outlook for Windows for a .pst, or legacy Outlook for Mac for an .olm file. It does not document an export from Outlook on the web.
Does exporting remove mail from my mailbox?
No. Microsoft says the export makes a copy, and the mail stays in Outlook. Attachments are included.
Is a .pst password secure?
Microsoft calls it optional protection and does not say how strong it is. Treat the file as readable by anyone who has it, and store it accordingly.
Will my employer know I exported my mailbox?
Microsoft’s export pages do not say. Organisations can restrict .pst files by policy, so ask before exporting rather than assume nobody can see it.

Share this guide

Was this guide helpful?

Test log

Followed the steps? Tell us how it went on your device. Entries appear here after we check them.

  1. Worked Every step, start to finish · Elias Brandt and Marta Kowalczyk Team
I tested this
How did it go?

Steps performed and confirmed 16 days ago

When you need this

If you need to keep your mail before leaving a job or before a mailbox closes, export it to a PST file from classic Outlook for Windows. Your organisation may restrict the export, and the default settings can leave out everything older than a year.

Describes
Classic Outlook for Windows (Outlook for Microsoft 365, 2016 to 2024), as documented by Microsoft Support, November 2026 · New Outlook for Windows and legacy Outlook for Mac, as documented by Microsoft Support, November 2026
Takes
45 minutes, longer for a large mailbox
Platforms
Windows · macOS
Published
2 November 2026
Facts checked
1 November 2026

Steps repeated and verified by and on

  • Elias Brandt: the Windows steps on a ThinkPad X1 Carbon (Windows 11 Pro).
  • Marta Kowalczyk: the Mac steps on a MacBook Air (macOS 27.0.1).

Next

outlookexportwork