This is an old revision of the document!
This guide assumes you want to move the whole of VPOP3 (including the message store) to a new folder on the same PC
Go to Control Panel → Administrative Tools → Services, and stop the 'VPOP3 Email Server' service
Go to Control Panel → Administrative Tools → Services, and stop the 'PostgreSQL-VPOP3' service
At a command prompt, navigate to your VPOP3 directory, then the pgsql\bin directory under that
Run pg_ctl unregister -N “pgsql-8.3”
If this doesn't work, run
Run pg_ctl unregister -N “PostgreSQL-VPOP3”
Move the VPOP3 folder and ALL sub-folders to the new location
You need to assign permission for the postgres 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 postgres user to have full permission to access this folder. (On an Active Directory Controller, the postgres user is a domain user, on all other types of PC, the postgres user is a local user).
If you want to be slightly more secure, you can give the postgres user read-only permission to the pgsql folder, and full permissions to the pgsql\data folder.
At a command prompt, navigate to your new VPOP3 directory, then the pgsql\bin directory under that
Run pg_ctl register -N “PostgreSQL-VPOP3” -D “<VPOP3 folder>\pgsql\data” -U postgres -P vla8Pi4cluwrouDiERiU
e.g. Run pg_ctl register -N “PostgreSQL-VPOP3” -D “D:\VPOP3\pgsql\data” -U postgres -P vla8Pi4cluwrouDiERiU
Run RegEdit.
You may need to change the following entries to the appropriate subdirectory in the new installation folder. (If you have previously changed them from the default, you may wish not to change them after moving VPOP3)
Reinstall VPOP3 into the new location