Any way to easily rebuild root folders?
Question asked by Jay Altemoos - 11/10/2026 at 1:49 PM
Answered
Good day everyone. I have a client that is starting a new domain and wants me to copy their previous folders from another email domain address they host with us on the same server. I did that on the server itself, but the folders were not created under a root folder like Inbox, they were all created as individual root folders, meaning they exist as top level folders just like Inbox, Sent, etc.

They have 400+ folders created this way and the only way I have found so far to get one of the folders to appear is using the rebuild folder option, typing in their email address and in the folder option typing in: \<folder name>

Then that 1 folder appears, I really don't want to have to go through this process 400+ times. If I try to rebuild the root folders by typing in \  and nothing else for the folder name with the recursive option turned on,  I get an error that Smarter cannot create a blank folder.

Is there a eaiser way to do this? Or do I have to use the method I discovered and do this same thing 400+ times. And i already know they won't want to change how it looks and have me put those folders under the Inbox, already thought of that and it's a no go there.
Brandon Murphy Replied
Employee Post
Hello,

Aside from the 'Recursive' toggle in the Rebuild Folder pop up window to rebuild subfolders, manually rebuilding each root folder is the only way to do this in the web interface. However using the API you can loop through each user and each root folder, rebuilding all user folders with one command. The API call that is made when you run the Rebuild Folder feature is the RestoreFolders API call. You can find more information on this API call at [Settings -> API Documentation -> System Admin -> RestoreFolders].

Thank you,
Brandon Murphy
System/Network Administrator
SmarterTools Inc.
Tony Scholz Replied
Employee Post Marked As Answer
Hello, 

Tony Scholz
Lead Network/System Administrator
SmarterTools Inc.
Jay Altemoos Replied
Thank you Brandon and Tony for the information on this. I am leaning towards just putting all the folders under the Inbox where the Rebuild option can be used. That way if there's a situation where I need to rebuild again I can just use the rebuild feature and move on with my day. I appreciate the help.

Reply to Thread

Enter the verification text