How do I move my MDaemon installation to another drive on the...

Expand / Collapse
 

How do I move my MDaemon installation to another drive on the same machine?


Question:

How do I move my MDaemon installation to another drive on the same machine?

Answer:

1.  From MDaemon's interface, choose Setup -> Preferences -> Windows Service. Confirm that the service has disappeared from Start -> Settings -> Control Panel -> Administrative Tools -> Services (you may need to reboot your machine to ensure this has been removed).

2.  Copy the \MDaemon folder from its current location to the new location on the new drive (e.g.. C:\MDaemon to D:\MDaemon).

3.  Using a text editor (We recommend using Textpad www.textpad.com), update ALL references to the old installation path to reflect the new one in each of the following files:-

\MDaemon\app\*.grp (if path references have been made)

\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\Schedules.dat

\MDaemon\spamassassin\ClamAVPlugin\conf\clamd.conf

\MDaemon\spamassassin\ClamAVPlugin\conf\freshclam.conf

\MDaemon\spamassassin\rules\local.cf

\MDaemon\WebAdmin\webadmin.ini

\MDaemon\Data\AirSync.ini

\MDaemon\WorldClient\worldclient.ini

4. Using a text editor edit the drive letter in the \MDaemon\App\Userlist.dat file to reflect the new location (as this file relies on columns starting a defined line numbers we only recommend modifying the drive letter in this file).

5. On the new drive start MDaemon by navigating to \MDaemon\App\MDaemon.exe (this starts MDaemon as an application).

6. From MDaemon's interface. Choose Setup -> System Service -> Install Service (Note: If you are using MDaemon 10, you'll find this at Setup -> Preferences -> Windows Service).

7. Close MDaemon and then restart it as a service (via Start -> Settings -> Control Panel -> Administrative Tools -> Services).

8. The only thing that should be left to do is update any references to MDaemon at Start -> Programs -> MDaemon and delete the old C:\MDaemon folder once you've confirmed all is now working correctly.

Possible issues to note:

When using the dirreorg command, user mailbox locations are created on the new drive location using the username of mailbox. You may find that historically the mailbox location was something other than this and running this utility may result in the user mailbox appearing to have no mail, calendar, contacts, etc as a result of the migration. To resolve this, just copy the contents of the old named folder - typically \MDaemon\Users\<domain>\<old_user_folder>\ - into the new correctly named folder - typically \MDaemon\Users\<domain>\<username>\ or update the mailbox location value to point to the old foldername via Accounts -> Account Manager -> <username> -> Mailbox.