7
Is there a way to rebuild all folders for all domains
Question asked by James Huynh - 8/26/2019 at 1:08 PM
Answered
My server got some ransomware which i've recovered from, but in webmail, our clients mail/folders don't load properly.

Is there a way to rebuild folders for all domains & folders at once?

Thanks        

10 Replies

Reply to Thread
0
Tony Scholz Replied
Employee Post Marked As Answer
Hello, 

This will depend on the version of SmarterMail that you are using. 

SmarterMail version 15 & 16
Here you can use the 'Rebuild' option from the manage section of the system admin interface. 
For earlier version of SmarterMail

Thank you

[EDITED to remove a link to an internal utility]
Tony Scholz System/Network Administrator SmarterTools Inc. (877) 357-6278 www.smartertools.com
4
Dominique September Replied
We actually built our own functionality into SM in order to achieve this.

We still use the same API call, but found that it accepted multiple mailboxes/folders.

We therefore find the user's Mail folder, enumerate all the top(Root) level Directories, and push them through the API to be rebuilt. This has come in quite handy in cases where the Mail Service goes a bit crazy under strain and indexes get corrupted and can't rebuild to show all folders in certain mailboxes again.
Happy to share the code if somebody is interested.

SM 16.x
0
Shaun Peet Replied
SmarterMail - can you please make this an option within the core product?  When folders go "missing" it is an enormous pain to rebuild them all one-at-a-time and requires RDC access to the server just to know what folders exist.
0
Shaun Peet Replied
Just as an FYI, I had a user with missing folders and I got to manually rebuild all 106 root-level folders.  Fun.
1
Randy Armbrecht Replied
I'm in the process of rebuilding a user's mailbox after conversion, and he has 246 root folders.  This is an all day task and frustrating to say the least

1
Matthew Leyda Replied
Try Deleting the root.cfg file and the mailbox.cfg in all the folders. Then login or impersionate the account to rebuild the folders. You will need to stop the SM service while you are deleting the cfg files for this to work.
Kendra Support http://www.kendra.com support@kendra.com 425-397-7911 Junk Email filtered ISP
0
JerseyConnect Team Replied
Along the lines of what Matthew suggested you could also remove and the re-attach the user. Just make a copy or rename their folder before removing. Then remove the cfg files before reattaching. It should achieve the same goal without having to stop the service.
4
Merle Wait Replied
Is SmarterMail considering this???   We just upgraded... and now how several users that we need to do this for. Three of these "mailboxes"  are power users with more than 100 folders a each.   This will certainly take a lot of time
2
+1
Gabriele Maoret - Head of SysAdmins at SERSIS Currently manages 6 SmarterMail installations (1 in the cloud for SERSIS which provides services to a few hundred third-party email domains + 5 on-premise for customers who prefer to have their mail server in-house)
4
Ryan Wittenauer Replied
I'll add that I've had to do rebuilds in the day, not able to shut off the service, and rebuilding users causes a slight downtime where email can get lost, would like a feature to rebuild all folders under a user.

Reply to Thread