---
title: How to move MDaemon to a new server or OS using a different directory path
description: Follow the steps below to move MDaemon to a new server with a different directory path of the original installation or if the Windows operating system is upgraded.
---

[Skip to content](https://knowledge.mdaemon.com/move-mdaemon-using-different-directory-path#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 to a new server or OS using a different directory path

## Follow the steps below to move MDaemon to a new server with a different directory path of the original installation or if the Windows operating system is upgraded.

**\*\*NOTE** - MDaemon administrators storing accounts in an Open Database (ODBC) - Please change the account database type back to the USERLIST.DAT file before following these steps. The ODBC data source can be reconfigured once MDaemon is running on the new server/OS.

1. The existing MDaemon service must be removed to move MDaemon to a new directory path or a new machine.
   
   To remove the MDaemon service:  
     1. Select **Setup**
     2. Select **Preferences**
     3. Select **Windows Service**
     4. Select **Remove Service**
     5. Click **OK** in the **Service was successfully removed** pop-up.
     6. Click **OK** in the **Preferences** window.
     7. Select **Yes** when MDaemon asks to restart.
     8. MDaemon will now restart running as an Application.
2. If you are moving MDaemon to a new directory path on the same server, the Ikarus scanserver service must be removed.  If you are moving MDaemon to a new machine and will be uninstalling the original MDaemon installation at a later time, this step can be skipped.
   
   To uninstall the Ikarus scanserver service:  
   1\. Open a command prompt as administrator.  
   2\. Change directories to the **\\MDaemon\\SecurityPlus\\Ikarus\\scan.server\\bin** directory.  
   3\. Enter **scanserver\_w64.exe -remove** to remove the service.
3. Follow the next steps to deactivate MDaemon and any other MDaemon plug-ins.  
   **\*\*NOTE** - Deactivation is necessary to avoid any potential activation issues.
   
   To deactivate your Alt-N Software  
     - Select **Help**
     - Select **Activate Your MDaemon Software**
     - Select **Deactivate MDaemon...**
     - The SMTP, POP3, IMAP, and Webmail servers in the **Servers** section of MDaemon will turn red (inactive).   
       ![migration-mdaemon-01](https://knowledge.mdaemon.com/hs-fs/hubfs/migration-mdaemon-01.png?width=277&name=migration-mdaemon-01.png)
     - Proceed to deactivate any additional MDaemon plug-ins that are activated on the server using the same menu above.
4. Open Windows Explorer and copy the entire MDaemon directory to the new directory on the new server.
5. Use a text editor to edit the following files and point the old directory paths to the new directory paths.  
     - \\MDaemon\\App\\\*.grp (if path references have been made in mailing lists)
     - \\MDaemon\\App\\AccountTemplates.dat
     - \\MDaemon\\App\\AutoResp.dat
     - \\MDaemon\\App\\CFilter.ini
     - \\MDaemon\\App\\cfrules.dat (if any content filter rules pointed to a directory)
     - \\MDaemon\\App\\Gateways.dat
     - \\MDaemon\\App\\MDaemon.ini
     - \\MDaemon\\App\\MDSTATS.INI
     - \\MDaemon\\App\\Plugins.dat
     - \\MDaemon\\App\\Reminders.dat
     - \\MDaemon\\App\\Schedule.dat
     - \\MDaemon\\Data\\AirSync.ini
     - \\MDaemon\\Data\\AutoDiscover.ini  
       or  
       \\MDaemon\\WorldClient\\AutoDiscover.ini
     - \\MDaemon\\Data\\ClstrSvc.ini

1. - \\MDaemon\\Data\\Dynamicscreen.ini
     - \\MDaemon\\SecurityPlus\\ClamAVPlugin\\conf\\clamd.conf
     - \\MDaemon\\SecurityPlus\\ClamAVPlugin\\conf\\freshclam.conf
     - \\MDaemon\\SpamAssassin\\rules\\local.cf
     - \\MDaemon\\WebAdmin\\webadmin.ini
     - \\MDaemon\\WorldClient\\worldclient.ini

1. Install the same version of MDaemon that was installed on the previous server.  
   **\*\*NOTE** - The server configuration, user directories, and other modifications are NOT changed when running the installer. [Click here for prior versions of MDaemon.](https://files.mdaemon.com/mdaemon/release/)  
   **\*\*NOTE** - Please be sure the MDaemon service/application is not running on the new server.
2. Next MDaemon's dirreorg tool must be ran to compile the changes made to the dat/ini files
3. Open a command prompt
4. Navigate to the \\MDaemon\\App directory using the **cd** command
5. Enter **dirreorg /f**
6. Start MDaemon

Additional Comments

If you are changing your IP address(es) in addition to moving, the MDaemon.ini, Domains.dat, and/or Gateways.dat will need to be updated with the new IP address(es). 

If you are using a third-party SSL certificate, that certificate will need to be exported from the Windows Certificate Store and moved to the new machine in order to continue using it. The above process will not move it for you.

 

- [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