This guide assumes you want to move the whole of VPOP3 (including the message store) to a new folder on the same PC
Note that we can do this for you remotely if you wish, there is a small charge for this (currently £40 + VAT). Contact us on 01484 855800 if you wish us to do it for you.
Go to Control Panel → Administrative Tools → Services, and stop the 'VPOP3 Email Server' service
Go to Control Panel → Administrative Tools → Services, and stop the 'VPOP3DB' service
Open a command prompt using 'Run As Administrator', then navigate to your VPOP3 directory, then the pgsql\bin directory under that
Run
pg_ctl unregister -N "VPOP3DB"
Move the VPOP3 folder and ALL sub-folders to the new location
You need to assign permission for the vpop3postgres user to the VPOP3\pgsql folder
To do this, go to the VPOP3 folder in Windows Explorer. Right-click the pgsql folder and choose Properties, then Security. Add permission for the vpop3postgres user to have full permission to access this folder. (On an Active Directory Controller, the vpop3postgres user is a domain user, on all other types of PC, the vpop3postgres user is a local user).
If you want to be slightly more secure, you can give the vpop3postgres user read-only permission to the pgsql folder, and full permissions to the pgsql\data folder.
At a 'Run as Administrator' command prompt, navigate to your new VPOP3 directory, then the pgsql\bin directory under that
Run
pg_ctl register -N "VPOP3DB" -D "<VPOP3 folder>\pgsql\data" -U vpop3postgres -P Nc6ACboDt2jVL6
e.g. Run
pg_ctl register -N "VPOP3DB" -D "D:\VPOP3\pgsql\data" -U vpop3postgres -P Nc6ACboDt2jVL6
Start the VPOP3DB service
This needs a little utility. You can download it from http://www.pscs.co.uk/downloads/vpop3settings.zip if you don't already have it (it is included in the latest versions of VPOP3). Download this file, and extract the contents into the new VPOP3 installation directory
At a command prompt, find the VPOP3 installation directory and run
vpop3settings replacepaths <old path> <new path>
e.g. Run
vpop3settings replacepaths c:\vpop3 d:\vpop3
The utility will display all the settings which used the old location and ask if you want to change them to the new location. Check the settings, and press 'Y' if they are correct
Reinstall VPOP3 into the new location
If you have any plugins, you may need to reinstall those as well.