Startbootstrap business casual

NT only: How do I move my Mailbox, Program, or PostOffice directories to new location(s)?

Note: If your current configuration is as follows (the MailboxDir is a subdirectory of the ProgramDir directory), or if the MailboxDir is the same directory as ProgramDir you will need to separate your executable files and directories out of the same hierarchy as your configuration files and your mailbox directories. What you will need to do is make another directory in Post.Office called “Apps” and move the postoffice.exe, post.office.dll, Network, Local and Other files and directories into it. Then you will need to edit all references of the Program Directory Path in the Registry.

Post.Office
postoffice.exe
postoffice.dll
Network\
Local\
Other\
Post.Office\mailboxes

It’s not hard to define another location for your Post.Office information. The trick is to make sure the permissions after copying are identical to what they were before!

There are three things that can be moved. Their names and default locations are as follows:

  • The Program Directories and files – \win32app\post.office
  • The Configuration Directories and files – \winnt35\system32\spool\post.office
  • The Mailbox Directories and files – \winnt35\system32\spool\post.office\mailbox

Note: If your mailbox is under your configuration directory, you will still need to change the mailbox registry entry.

Basically you need to:

  1. Login is as the Local NT Administrator of your Post.Office Host, Administrator.
  2. If you are 1.9.3 or greater check your Post.Office Controller for your current file locations: Control Panel -> Post.Office; (i.e. Post.Office Directory; Program Directory, Mailbox Directory)
  3. Go to the locations listed above and document the permissions for those file structures exactly!
  4. Shutdown the Post.Office Service
    v1.9.3 or greater:
    Control Panel -> Post.Office -> Shutdown
    versions before 1.9.3:
    Control Panel -> Services -> Post.Office MTA -> Stop
  5. Use File Manager to copy your directories to new location:
    Move Post.Office Directory; <\winnt35\system32\spool>\Post.Office
    -or – Move Program Directory; \Post.Office>
    -or – Move Mailbox Directory (if not under Post.Office Directory);
  6. Verify that permissions are identical in the new location. (See the section of the FAQ titled Permissions and Directory Locations.)
  7. Using REGEDT32.EXE, edit the Registry Key for Post.Office to point to the
    FULL PATH of the new location(s):
  8. Within HKEY_LOCAL_MACHINE select:
    SOFTWARE -> Software.com ->Dispatch -> Config
  9. Edit the “ProgramDir” Key to have the new drive:\full path of the Program Directory
    -or- Edit the PostOffice Key to have the new drive:\full path of the Post Office Directory
    -or- Edit the MailboxDir Key to have the new drive:\full path of the Mailbox DirectoryNote: If you do not have permission to save this value (or values), you will need to do the following:
    Select the Security Menu Option -> Owner -> Take Ownership
    Select the Security Menu Option again -> Permissions ->
    Highlight or add your administrative self
    Select the Type of Access Pull Down and select Full Control
    Make sure your Post.Office-User is still listed with Full Control
    Select OK.
    Now try to edit the Key.
  10. If you have moved the Program Directory, you will also need to change another value in the Registry Editor:
  11. Within HKEY_LOCAL_MACHINE select:
    SYSTEM -> CurrentControlSet – > Services -> Post.Office
  12. Edit the “ImagePath” Key to have the new drive:\full path of the Program DirectoryNote: If you do not have permission to save this value (or values), you will need to:
    Select the Security Menu Option -> Owner -> Take Ownership
    Select the Security Menu Option again -> Permissions ->
    Highlight or add your administrative self
    Select the Type of Access Pull Down and select Full Control
    Make sure your Post.Office-User is still listed with Full Control
    Select OK.
    Now try to edit the Key.
  13. You will now need start the Post.Office service in your Control Panel – Services Window.

NT only: How do I move Post.Office to another drive letter on same host?

There are four places in the NT Registry information that you will need to modify if you are leaving everything the same, just switching drive letters for Post.Office.

  • HKEY_LOCAL_MACHINE->SOFTWARE -> Software.com -> post.office -> Dispatch -> Config -> MailBoxDir
  • HKEY_LOCAL_MACHINE->SOFTWARE -> Software.com -> post.office -> Dispatch -> Config -> PostOffice
  • HKEY_LOCAL_MACHINE->SOFTWARE -> Software.com -> post.office -> Dispatch -> Config -> ProgramDir
  • HKEY_LOCAL_MACHINE->SOFTWARE-> System -> ControlSet001 -> Services -> Post.Office -> ImagePath
  1. As an NT Administrator open the Registry Editor.
  2. Within HKEY_LOCAL_MACHINE select:
    SOFTWARE -> Software.com -> post.office -> Dispatch -> Config
  3. Double-click on the “MailBoxDir” Key to edit it.
  4. Change the value from old-drive-letter to new-drive-letter and click on OK.
    If you do not have permission to save this value, you will need to: select the Security Menu Option -> Owner…-> Take Ownership; select the Security Menu Option again -> Permissions ->; highlight your administrative self; select the Type of Access Pull Down and select Full Control; select OK, and try the edit the Socket Key.
  5. Within HKEY_LOCAL_MACHINE select:
    SOFTWARE -> Software.com -> post.office -> Dispatch -> Config
  6. Double-click on the “PostOffice” Key to edit it.
  7. Change the value from old-drive-letter to new-drive-letter and click on OK
    (If you do not have permission to save this value, you will need to perform steps as defined above.)
  8. Within HKEY_LOCAL_MACHINE select:
    SOFTWARE -> Software.com -> post.office -> Dispatch -> Config
  9. Double-click on the “ProgramDir” Key to edit it.
  10. Change the value from old-drive-letter to new-drive-letter and click on OK. (If you do not have permission to save this value, you will need to perform steps as defined above.)
  11. Within HKEY_LOCAL_MACHINE
    SOFTWARE-> System -> ControlSet001 -> Services -> Post.Office
  12. Double-click on the “ImagePath” Key to edit it.
  13. Change the value from old-drive-letter to new-drive-letter and click on OK. (If you do not have permission to save this value, you will need to perform steps defined above.)

UNIX only: I want to move my mailbox directories to new location. How do I do this in UNIX Solaris2?

  1. Shutdown Post.Office: post.office/post.office shutdown
  2. Login as your Post.Office : login mta
  3. Copy your mailbox directories to the new location
    cd
    cp -r mailbox
  4. Edit the Post.Office configuration to point MailboxDir to new location
    vi /etc/post.office.conf
    Change MailboxDir=
  5. Login as root: login root
  6. Startup Post.Office: /post.office/post.office startup

UNIX only: How do I move my mailboxes and accounts to another UNIX Host?

Assuming you are running the same version of Post.Office on both, you can move your accounts from one host to another (SUNOS to SUNOS, SOLARIS to SOLARIS, SUNOS to Solaris).

In summary, you will need to copy your mailbox directories and MTA-Accounts information to the new host:

    • On the old and new hosts: Review your /etc/post.office.conf file.
    • You need to copy the “MailboxDir” directory and all it’s sub-directories to your new host’s MailboxDir. Make sure that you keep proper permissions and that the owner and group end up being the correct Post.Office owner and group for the new host.
    • You will need to copy the “PostOffice”/config/MTA-Accounts to you new host’s “PostOffice”/config directory. Make sure that you keep the permissions properly and that the owner and group end up being the correct Post.Office owner and group for the new host.