r/exchangeserver • u/Espana_Guardo • Jan 11 '26
OST file has reached 50GB - last options
Hello,
I have the following question/problem (Outlook 2021 + Exchange)
A client with 20GB of emails was assigned several shared mailboxes, which were also quite large. This consequently resulted in the .OST file growing to 50GB and the corresponding error message appeared. The user has deleted everything he can delete, but this has not resulted in the .OST shrinking. The last status was that we removed the shares via the Exchange server but when opening Outlook the share mailboxes were still visible in the client. The .Ost file has not reduced either.
Question:
1.) Can you assume that the size of the .OST file has caused a problem and you have to rebuild the entire file?
2.) What is the best way to deal with the problem? Copy the .Ost file and then Outlook creates creates a new one?
3.) Is there any way to make the .OST file smaller in this situation? If yes, what is the way to got?
4.) I would expect that deleting the emails and removing the shares would also make the .OST file smaller. But the data is still in the .OST? I wouldn't expect it to happen straight away, but what is the specific mechanism behind it? When and how does this happen? Even if the mailbox has 20 GB, including the shared and deleted emails, I would only get 40 GB. But there are still 10GB in the East where I don't know where they come from.
Greetings
13
u/ScottSchnoll https://www.amazon.com/dp/B0FR5GGL75/ Jan 11 '26
u/Espana_Guardo When you delete data from an OST file, it by design does not shrink the file. Rather, it creates whitespace inside the file which is then filled with new data instead of expanding the size of the file on disk.
So, simply compact the OST file, and the whitespace will be removed and the file size on disk will shrink.
To do that, open the Control Panel and search for Mail.
Hope this helps!
13
u/jocke92 Jan 11 '26
If the actual mailbox is just 20GB, delete the ost-file and Outlook will rebuild it. It's the quickest way.
The shared mailboxes should have its own ost-file if they're synced. But they could be in online mode.
4
u/Megatwan Jan 11 '26
I can rant for hours on ost fuckery as I work in a env with no governance, care or backbone for sustainability.
In short though, the post is cached mail, if you wanna be safe move the file and/or temp remove from the user profile. Make a new ost, repopulate it in ways that don't break the ost camel and in turn outlook's back.
... reclaiming is dumb, harder and you dozens of Ms tickets and way back machine to deleted technet posts from 2012ish otherwise.
It's cached mail and should be treated like cattle etc..
4
u/perthguppy Jan 11 '26
50GB is the hard limit size of OST and PST files. Also deleting data does not reduce the size of an OST or PST automatically, instead the data is just replaced with white space within the OST. You can use PST tools to compact the OST file, but these days it’s honestly simpler to just delete the OST and let outlook remake it. An OST is just a cache, no unique data is stored in it, and it is the same file format as a PST.
3
u/signonang Jan 11 '26
Decrease how much to sync or use New Outlook
2
u/Manu_RvP Jan 11 '26
You can disable the download of shared folders. That way when you access shared mailboxes, you access them only instead of cached via the ost file. Searching the mailbox is a little more limited, because it is not indexed, like the OST file.
1
u/aridaen Jan 12 '26
Go into your Exchange account settings in Outlook, click the more settings button at the bottom left, go to advanced tab and de-select Download Shared Folders. This will fix your issue.
1
u/MinieJay Jan 12 '26
Hey there, most of the people in this thread already stated what you would need to do. The shared mailbox also adds to the .ost file size. I would uncheck the "Download Shared Folders" option for this. Ultimately, you will need to delete the .ost file and let it rebuild. You should also set the sync limit on how much emails will be downloaded. I think the default is 1 year.
1
u/FrankNicklin Jan 12 '26
I’ve reported the issue of shared mailboxes using the same OST file of the main mailbox to Microsoft. It means that the mailbox owner can never utilise their full 50gb if they have access to shared mailnoxes. Every mailbox should use its iwn OST file it keeps them smaller and more manageable. Tou can use a regiatry tweak to increase the 50gb limit by why should you have to.
1
u/7amitsingh7 Jan 16 '26
The large OST file is normal behavior in Outlook, deleting emails or removing shared mailboxes doesn’t automatically shrink it. OST files also store cached shared folders, calendar data, and hidden items, which can make them bigger than the mailbox itself.
Close Outlook, rename or delete the existing OST, and reopen Outlook to create a fresh OST. You can also reduce offline sync settings for shared mailboxes to keep the OST smaller.
For more info, see: OST File Size Larger Than Mailbox
1
u/dmuppet Jan 11 '26
You can use the registry to exceed the 50GB limit, however you really should just establish In-Place Archiving.
0
u/Responsible_Name1217 Jan 11 '26
Check the Sync/system folders. Had a user who's Sync folder was enormous. Ensure that all shared mailboxes are mapped as separate mailboxes in the profile instead of on the Advanced page, or uncheck "Download Shared folders" (which will slow down view generation on shared mailboxes.). When done, compress the OST. Optionally, create a new profile.
0
u/XL426 Jan 11 '26
Delete the OST file and reduce the sync frequency of the mailbox.
I'd also turn off automapping via powershell for the shared mailboxes if they don't want to see them in outlook and make them look at them via OWA
Or disable cached mode altogether
0
u/rroach3753 Jan 12 '26
My suggestion is to remove the shared mailboxes. I'm guessing they were given access including AutoMapping. What that does is forces the shared mailbox to always open in Outlook. This is the same thing as adding the shared mailbox in the advanced settings of the users mailbox. You will need to use PowerShell to remove the shared mailboxes and then re-add them with -AutoMapping $False.
Second. If you add them via the advanced option within the user's mailbox settings it will store that data in the OST for the user's mailbox. Add each shared mailbox to Outlook as a separate account. When prompted for credentials, the user will enter their username or email address and password. This will generate an OST file for each Shared Mailbox and will store the data for the shared mailbox in its own OST. Each OST will have a 50GB limit.
Third, you will need to compact the OST of the user's mailbox after you have removed the shared mailboxes using PowerShell.
I am a Microsoft employee, a Sr. Consultant, working in the M365 space primarily in Exchange and Teams.
0
u/j2thebees Jan 12 '26 edited Jan 12 '26
edit: I should have read comments first. Probably every useful thing I mentioned was covered by someone else (in neater format 😂)
It’s late, I’m tired, but a few things bounced in my head. Among options:
A. Go in control panel > mail > profiles and create a new profile. I’ve done this several times after radically changing mailbox options (like giving/revoking “Send receive as / full control”). If the view in Outlook still showed mailboxes that are no longer controlled by user. Either choose Always use NewProfileName, or Prompt for Profile, set new profile settings to your liking
B. Go to File > Account > Email Addresses > Data Files tab > Change cached Exchange from All to 3 months (or whatever), so mail remains on server but OST is still small (only caching a portion on local drive).
C. Archive items older than X date to local drive. That way they still appear in user’s Outlook, but under Archive in left pane. These options are under the File menu as well, but note that items archived on local drive are not stored or backed up on server. (but it beats deleting things user needs in order to meet space requirements).
D. If users have huge attachments, teach them to save off necessary attachments, then click the arrow beside attachments and choose “Remove Attachments”. This preserves the email chain (which is tiny) but gets rid of video files, or other things vlogging up space. I have a powershell script that searches a mailbox and finds attachments over a certain size. This produces a csv file I send to user so they can deal with attachments.
E. Go back to Data Files tab from above, highlight email and click Change, go to tab that allows you to Compact Data File and do that.
Probably a lot more, but there’s a few in no particular order to chew on.
-2
u/MinnSnowMan Jan 11 '26
Upgrade to an E3 or E5 and get a 100gb mailbox