how_to:v5_-_move_to_a_new_folder

How to move VPOP3 V5+ to a new folder

This guide assumes you want to move the whole of VPOP3 (including the message store) to a new folder on the same PC

  1. Stop VPOP3
  2. Stop VPOP3DB
  3. Remove the VPOP3DB service
  4. Move VPOP3 to the new folder
  5. Reassign permissions for PostgreSQL
  6. Install the VPOP3DB service
  7. Reset some paths in the settings
  8. Reinstall VPOP3

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.

Stop VPOP3

Go to Control Panel → Administrative Tools → Services, and stop the 'VPOP3 Email Server' service

Stop PostgreSQL

Go to Control Panel → Administrative Tools → Services, and stop the 'VPOP3DB' service

Remove the PostgreSQL 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 VPOP3 to the new folder

Move the VPOP3 folder and ALL sub-folders to the new location

Reassign permissions for PostgreSQL

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.

Install the PostgreSQL service

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

Reset some paths in the settings

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

Reinstall VPOP3 into the new location

If you have any plugins, you may need to reinstall those as well.

how_to/v5_-_move_to_a_new_folder.txt · Last modified: 2021/03/19 16:01 by paul