how_to:v3_-_move_to_a_new_folder

How to move VPOP3 V3 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 PostgreSQL
  3. Remove the PostgreSQL service
  4. Move VPOP3 to the new folder
  5. Reassign permissions for PostgreSQL
  6. Install the PostgreSQL service
  7. Reset some paths in the registry
  8. Reinstall VPOP3

Note that we can do this for you remotely if you wish, there is a small charge for this (currently £50 + 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 'PostgreSQL-VPOP3' service

Remove the PostgreSQL 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

pg_ctl unregister -N "PostgreSQL-VPOP3"

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

Install the PostgreSQL service

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

Reset some paths in the registry

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)

  • HKEY_LOCAL_MACHINE\Software\PaulSmith\VPOP3 - MessageStore<VPOP3 folder>\_messages
  • HKEY_LOCAL_MACHINE\Software\PaulSmith\VPOP3\Archiving - MainStore<VPOP3 folder>\_archive
  • HKEY_LOCAL_MACHINE\Software\PaulSmith\VPOP3\Attachments - AttachmentDirectory<VPOP3 folder>\_attach
  • HKEY_LOCAL_MACHINE\Software\PaulSmith\VPOP3\Database - PostGreSQLBinDir<VPOP3 folder>\pgsql\bin
  • HKEY_LOCAL_MACHINE\Software\PaulSmith\VPOP3\FaxServer - ReceivePath<VPOP3 folder>\_fax\in
  • HKEY_LOCAL_MACHINE\Software\PaulSmith\VPOP3\Database - SpoolPath<VPOP3 folder>\_fax\out

Reinstall VPOP3

Reinstall VPOP3 into the new location

If you have any plugins such as “avast! for VPOP3” or the VPOP3 FaxServer you should reinstall those as well

how_to/v3_-_move_to_a_new_folder.txt · Last modified: 2018/12/05 15:25 by paul