GFI Software

Welcome to the GFI Software community forum! For support please open a ticket from https://support.gfi.com.

Home » GFI User Forums » Kerio Connect » Cleanup storage directory (Clean-up storage directory -> large emails)
Cleanup storage directory [message #126896] Wed, 06 January 2016 11:06 Go to next message
itn-nieuwdorp is currently offline  itn-nieuwdorp
Messages: 14
Registered: December 2014
Location: Nieuwdorp - The Netherlan...
How can i cleanup my storage directory?

I like to remove every email bigger then 2mb. Inbox/outbox etc.

How to do this.

I have a win10 64bits installation.
Re: Cleanup storage directory [message #126919 is a reply to message #126896] Wed, 06 January 2016 19:06 Go to previous messageGo to next message
Bud Durland is currently offline  Bud Durland
Messages: 586
Registered: December 2013
Location: Plattsburgh, NY
This kind of "behind the scenes" action should be approached with a certain amount of caution, as much mayhem can ensue when things are done outside control of the Mail server.

That said, you will have to come up with some kind of script that will walk the store folder looking for .eml files that are larger than your target size. I've not tried it, but you may be able to use RoboCopy to move the large files from the mail store to a temporary location, then delete the temp location.
Re: Cleanup storage directory [message #126941 is a reply to message #126919] Thu, 07 January 2016 09:10 Go to previous message
itn-nieuwdorp is currently offline  itn-nieuwdorp
Messages: 14
Registered: December 2014
Location: Nieuwdorp - The Netherlan...
Thanks, or are there functions within kerio to solve this?

I try to use the following command now:
Robocopy "D:\Mailserver\mail\" "G:\Temp" *.eml /S /mov /MIN:2000000 /MINAGE:720 /R:10 /W:5
Previous Topic: Outlook 2016 MAC and KC 9.01 setup hanging and group contact problems
Next Topic: webserver/caldavserver logfiles
Goto Forum:
  


Current Time: Thu Jun 01 07:17:09 CEST 2023

Total time taken to generate the page: 0.07754 seconds