---
title: How to move MDaemon's users and/or mail data to a new directory path with DirReorg
description: MDaemon's DirReorg application can move all the user mailbox paths and/or account data from their current location to the path specified in the new account defaults.
---

[Skip to content](https://knowledge.mdaemon.com/move-mdaemon-users-with-dirreorg#main-content)

[![](https://knowledge.mdaemon.com/hs-fs/hubfs/MDaemon-Technologies_logo.png?width=200&height=150&name=MDaemon-Technologies_logo.png)](https://mdaemon.com/)

- [Knowledge Base Home](https://knowledge.mdaemon.com/)
- [Go to www.mdaemon.com](https://mdaemon.com/)

Open main navigation

Close main navigation

- [Knowledge Base Home](https://knowledge.mdaemon.com/)
- [Go to www.mdaemon.com](https://mdaemon.com/)
- [Contact Us](https://mdaemon.com/pages/contact-us)

[Contact Us](https://mdaemon.com/pages/contact-us)

 Knowledge Base

- There are no suggestions because the search field is empty.

1. [Knowledge Base Home](https://knowledge.mdaemon.com/?hsLang=en)
2. [MDaemon Email Server](https://knowledge.mdaemon.com/mdaemon-email-server?hsLang=en)

# How to move MDaemon's users and/or mail data to a new directory path with DirReorg

## MDaemon's DirReorg application can move all the user mailbox paths and/or account data from their current location to the path specified in the new account defaults.

Please backup the \\MDaemon\\Users directory before proceeding.

Enter the mailbox directory path to move the user/data to in the New Account Settings menu in MDaemon.  After making the change, all new user accounts will be created in the new path. 

1. Open MDaemon
2. Select **Accounts**
3. Select **Groups & Templates**
4. Under **Template Manager**, select **New Accounts** to view and/or edit the default **Mail folder** directory path.  
   ![mdaemon\_new\_account\_path](https://knowledge.mdaemon.com/hs-fs/hubfs/KBAs/mdaemon_new_account_path.png?width=688&height=562&name=mdaemon_new_account_path.png)

 The steps below detail how to use DirReorg and Command Prompt to move the existing users from the old path to the path created in the previous step.

1. Open a command line instance or PowerShell.
2. Change directories to the \\MDaemon\\App folder where MDaemon is installed.
3. Type dirreorg and include any options you wish to provide while running the application.  
   ![dirreorg](https://knowledge.mdaemon.com/hs-fs/hubfs/KBAs/dirreorg.png?width=678&height=412&name=dirreorg.png)

DirReorg Command Options

/Q   Quiet - display only errors.  
Use this command line option if you want the program to only display error messages and not other logging.  For example, it will display the message, "Error moving MailDir ...".  
(ie.   DirReorg /Q )

/T   Test - output changes without actually making changes.  
Use this command line option if you want the program to only log the changes, but not actually move the mailboxes or make any changes to the UserList.dat file.  
(ie.   DirReorg /T )

/F   Force - changes the MailDir in UserList.dat.  
Use this command line option if you just want to change the mailbox directory in the UserList.dat.  This optionwill not move the mailbox directory.  
(ie.   DirReorg /F )

If you execute the program without the Force\[/F\] and the Test\[/T\] options, it will attempt to move the old mailbox directory to the new mailbox directory.  

If moving the directory fails, changes will not be made to the user database (UserList.dat).  If moving the directory was successful, the old mailbox directory will be moved to the new location, the old mailbox directory will be deleted, and the UserList.dat will be updated.

- [MDaemon Email Server](https://knowledge.mdaemon.com/mdaemon-email-server?hsLang=en#main-content)

    - [Mobile Device Management](https://knowledge.mdaemon.com/mdaemon-email-server?hsLang=en#mobile-device-management)
- [MDaemon AntiVirus (SecurityPlus)](https://knowledge.mdaemon.com/mdaemon-antivirus-securityplus?hsLang=en)
- [ActiveSync for MDaemon](https://knowledge.mdaemon.com/activesync-for-mdaemon?hsLang=en)
- [MDaemon Connector for Outlook (Outlook Connector)](https://knowledge.mdaemon.com/mdaemon-connector-for-outlook-outlook-connector?hsLang=en)
- [SecurityGateway for Email Servers](https://knowledge.mdaemon.com/securitygateway-for-email-servers?hsLang=en)
- [RelayFax Network Software](https://knowledge.mdaemon.com/relayfax-network-software?hsLang=en)

[![Chill listening crop-3](https://knowledge.mdaemon.com/hs-fs/hubfs/belch.io/template-assets/MDaemon-Technologies_logo.png?width=199&height=41&name=MDaemon-Technologies_logo.png "Chill listening crop-3")](https://www.mdaemon.com)

[Knowledge Base Home](https://knowledge.mdaemon.com?hsLang=en)

<https://www.youtube.com/c/MDaemonTechnologies> <https://www.linkedin.com/company/mdaemon-technologies/> <https://www.facebook.com/MDaemon.Technologies/> <https://www.twitter.com/MDaemon_Email>

Copyright © 2025, MDaemon Technologies