PMDF popstore & MessageStore Manager's Guide


Previous Next Contents Index

8.2.2 Migrating OpenVMS Mailboxes

On OpenVMS platforms, the migration utility is the PMDF MOVEIN utility. Its usage is described below.


MOVEIN

Migrate mail files between message stores.

Syntax

PMDF MOVEIN [username [password]]

Command Qualifiers Default
/BEFORE=time
/DEBUG /NODEBUG
/DESTINATION=store-type
/DSTDMN=user-domain
/EXCEPTION_FILE=file-spec
/FORCE_MIGRATE /NOFORCE_MIGRATE
/FORWARD /FORWARD
/HOST=hostname
/INPUT=file-spec
/LOG /NOLOG
/LOWERCASE /NOLOWERCASE
/SINCE=time
/SOURCE=store-type /SOURCE=NATIVE
/SRCDMN=user-domain
/USE_EXISTING /NOUSE_EXISTING
/WASTEBASKET /WASTEBASKET

restrictions

Operating system privileges are required to run this utility.

Parameters

username

Optional name of a single login user account to migrate. If not supplied, then the names of accounts to migrate are read from either an input file or SYS$INPUT.

password

Optional password to set for the new account in the destination message store. Only used when migrating to the popstore or MessageStore.

Description

The PMDF MOVEIN utility migrates inboxes from one message store to another. Presently, the supported message stores are VMS MAIL, the PMDF MessageStore, and the PMDF popstore. Forwardings from the old message store to the new message store are automatically established for each migrated user. As it is not possible to temporarily block delivery of mail to a user by VMS MAIL, the PMDF MOVEIN utility should not be run on an active system. Running it on an active system can lead to loss of mail when the migration utility migrates a user's NEWMAIL folder and, at the same time, VMS MAIL delivers a new message to that same folder. Depending upon the timing, that new message can be left behind and not migrated. To prevent this from happening, ensure that PMDF's local delivery channel is not running (e.g., stop the MAIL$BATCH queue or whatever queue the l channel runs in) and that any other VMS MAIL applications are not running (e.g., no login users using VMS MAIL, no Pathworks users, DECnet MAIL-11 shutdown, etc.). The basic input to the utility is the name of the destination message store, the names of the login user accounts to migrate, and, optionally, passwords to set for the user accounts created in the destination message store. The login username is assumed for the destination store. That is, the name of the account in the destination store must be the same as the login user name. When a username is supplied on the command line, then just that one user account is migrated. To migrate multiple accounts, do not specify a username on the command line and instead use the /INPUT qualifier. Each line of the input file specifies the username of a single source store account to migrate. In addition, a line can specify a password to associate with the new account in the destination store. The password, if supplied, must be on the same input line following the username with one or more white space characters separating the two. Comment lines can appear in the input file: a comment line is any line which begins with a # or ! character. Leading and trailing white space characters on lines are ignored. The following sample input should give the flavor of input files:


! A comment line 
! 
! The next two entries supply passwords 
sue  sues-secret-password 
john johns-secret-password 
! 
! The next entry lacks a password 
alice 
When no username or input file is specified, input lines are read from SYS$INPUT. The format of those input lines is identical to that of lines read from an input file. Input is terminated by typing a CTRL/Z. When migrating to the PMDF MessageStore or popstore, the destination account is automatically created. If a password is supplied, then the password is set in the new account. If no password is supplied, then the new account is marked with the PWD_ELSEWHERE flag. Normally, that causes authentication to then be performed against the SYSUAF database. See the popstore documentation for further information. When migrating from VMS MAIL, The owner field in the new account is set using the owner field from the SYSUAF. If there already is an pre-existing MessageStore or popstore account---such as when migrating from the popstore to MessageStore---then the migration fails unless /USE_EXISTING is specified. Moreover, if the existing account has the MIGRATED flag set, then the migration fails unless /FORCE_MIGRATE is specified. When the account is successfully migrated, the MIGRATED flag is set in the account.

Note

After successfully migrating a user, the user's mail is left intact in their old message store. It is not deleted.
The PMDF MOVEIN utility is extremely careful to back out of a failed migration, leaving the user account in the source message store in its original state. When multiple accounts are migrated, a failure to migrate an account does not terminate the utility. Instead, the utility backs out of the migration for the failed account and continues on to the next account. Failures are reported to SYS$ERROR. The /EXCEPTION_FILE qualifier can be used to log errors in an exception file. The format of the exception file is suitable for re-use as an input file.

Command Qualifiers

/BEFORE=dd-mmm-yyyy:hh:mm:ss

By default, all messages stored in a user's source folders are migrated. The /BEFORE qualifier can be used to only migrate those messages stored on or before the specified time. For instance, to migrate all messages received between 08:30 and 13:00 on 15 November 2010, specify


/SINCE=15-NOV-2010:8:30:00 /BEFORE=15-NOV-2010:13:00:00 

/DEBUG

/NODEBUG (default)

Limited debug output can be enabled with the /DEBUG qualifier.

/DESTINATION=store-type

This required qualifier specifies the name of the target message store. The accepted names are MSGSTORE (PMDF MessageStore) and POPSTORE (PMDF popstore).

/DSTDMN=user-domain

The name of the user domain to use in the destination message store. If not specified, then the default domain is used. Only applicable in conjunction with destination message stores which support user domains.

/EXCEPTION_FILE=file-spec

By default, failures are only written to SYS$ERROR. Failures can also be reported to an exception file. The name of the exception file is given with the /EXCEPTION_FILE qualifier. The file will only be created should a failure occur; the file will have the protection mask (S:RWED,O:RWED,G,W). For each account whose migration fails, an entry will be made to the exception file. The entry takes the form of one or more lines of comments followed by a line containing the failed username and any optional password. The format of the exception file is such that it can be re-used as an input file.

/FORCE_MIGRATE

/NOFORCE_MIGRATE (default)

This qualifier can be used in conjunction with the /USE_EXISTING qualifier. See the description of that qualifier for further details.

/FORWARD (default)

/NOFORWARD

By default, a forwarding address for each migrated user account is established. This forwarding causes undelivered mail sent to the user's VMS MAIL address to be automatically forwarded to their account in the popstore. When migrating an account to the popstore, a forwarding for the VMS MAIL user is is placed both in the PMDF alias database and VMS MAIL's forwarding database. In addition, any pre-existing forwarding in the popstore forwarding database is removed. Specify /NOFORWARD to prevent forwardings from being established. Note, however, that when /NOFORWARD is used, undelivered mail directed to the user's VMS MAIL address will be delivered to VMS MAIL until such time that the login account is deleted or otherwise disabled.

/HOST=hostname

Optional qualifier to specify the host name associated with the destination message store. If omitted, the host name used will be determined from PMDF configuration information: the official local host name when the destination store is the native message store; the host name on the popstore channel when the destination store is the popstore. This host name is used in conjunction with the /FORWARD qualifier to construct a forwarding address for each migrated account.

/INPUT=file-spec

Specify an input file containing names of user accounts to migrate. Can not be used in conjunction with the username command line parameter. See the description above for further information on input files.

/LOG (default)

/NOLOG

By default, the utility reports each successfully migrated account to SYS$ERROR. To suppress this reporting, specify /NOLOG. Note that errors are always reported.

/LOWERCASE

/NOLOWERCASE (default)

By default, each folder name which does not contain mixed case letters is converted to lower case. This default behavior corresponds to /NOLOWERCASE. When /LOWERCASE is specified, all migrated folder names will be converted to lower case. Note that folder names are only migrated when migrating a VMS MAIL user to the MessageStore; the popstore does not have any concept of folders.

/SINCE=dd-mmm-yyyy:hh:mm:ss

By default, all messages stored in a user's source folders are migrated. The /SINCE qualifier can be used to only migrate those messages stored on or after the specified time. See the description of the /BEFORE qualifier for further details.

/SOURCE=store-type

By default, the source message store is assumed to be the native message store, VMS MAIL. The permitted values are NATIVE (VMS MAIL) and POPSTORE (PMDF popstore).

/SRCDMN=user-domain

The name of the user domain to use in the source message store. If not specified, then the default domain is used. Only applicable in conjunction with source message stores which support user domains.

/USE_EXISTING

/NOUSE_EXISTING (default)

By default, a migration to the popstore will fail when there already is a pre-existing popstore account with the same name as the source store account being migrated. To override this behavior, specify /USE_EXISTING. However, if the pre-existing account has the popstore MIGRATED flag set, the migration will fail unless /FORCE_MIGRATE is also specified. Note that when migrating to a pre-existing account, the password for the account is left unchanged and migrated messages are added to those already stored for the account.

/WASTEBASKET (default)

/NOWASTEBASKET

When migrating a VMS MAIL user to the MessageStore, their WASTEBASKET folder will, by default, also be migrated. Specify /NOWASTEBASKET to prevent the WASTEBASKET folder from being migrated.

Examples

#1

$ PMDF MOVEIN /DESTINATION=POPSTORE SUE "SeCreT"
movein: Destination message store host name not supplied; using pop.com
movein: User "SUE" successfully migrated (D1:[USERS.SUE]MAIL.MAI)
      

This example shows migrating to the popstore the login user SUE with the password SeCreT.

#2

$ PMDF MOVEIN /SOURCE=POPSTORE /DESTINATION=MSGSTORE -
_$ /USE_EXISTING SUE
movein: Destination message store host name not supplied; using imap.com
movein: User "sue" successfully migrated
      

This example shows migrating the popstore user sue to the MessageStore. The /USE_EXISTING qualifier instructs the utility to use Sue's existing profile file for her MessageStore account. This way, her password and other usage information is preserved.

#3

$ TYPE USERS.LIS
SUE SeCreT
TOM
$ PMDF MOVEIN /DESTINATION=POPSTORE /INPUT=USERS.LIS
movein: Destination message store host name not supplied; using pop.com
movein: User "SUE" successfully migrated (D1:[USERS.SUE]MAIL.MAI)
movein: User "TOM" successfully migrated (D1:[USERS.TOM]MAIL.MAI)
      

In the above example an input file is used to direct the PMDF MOVEIN utility. The file calls for migrating the login users SUE and TOM. A password is set for SUE in her new popstore account.


Previous Next Contents Index