| Previous | Next | Contents | Index |
On OpenVMS platforms, the migration utility is the PMDF MOVEIN utility. Its usage is described below.
Migrate mail files between message stores.
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
Operating system privileges are required to run this utility.
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 orSYS$INPUT.password
Optional password to set for the new account in the destination message store. Only used when migrating to the popstore or MessageStore.
ThePMDF MOVEINutility 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, thePMDF MOVEINutility 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'sNEWMAILfolder 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 theMAIL$BATCHqueue 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/INPUTqualifier. 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:
When no username or input file is specified, input lines are read from
! A comment line ! ! The next two entries supply passwords sue sues-secret-password john johns-secret-password ! ! The next entry lacks a password aliceSYS$INPUT. The format of those input lines is identical to that of lines read from an input file. Input is terminated by typing aCTRL/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 thePWD_ELSEWHEREflag. Normally, that causes authentication to then be performed against theSYSUAFdatabase. 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 theSYSUAF. 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_EXISTINGis specified. Moreover, if the existing account has the MIGRATED flag set, then the migration fails unless/FORCE_MIGRATEis specified. When the account is successfully migrated, theMIGRATEDflag is set in the account.
The
Note
After successfully migrating a user, the user's mail is left intact in their old message store. It is not deleted.PMDF MOVEINutility 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 toSYS$ERROR. The/EXCEPTION_FILEqualifier 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.
/BEFORE=dd-mmm-yyyy:hh:mm:ss
By default, all messages stored in a user's source folders are migrated. The/BEFOREqualifier 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/DEBUGqualifier./DESTINATION=store-type
This required qualifier specifies the name of the target message store. The accepted names areMSGSTORE(PMDF MessageStore) andPOPSTORE(PMDF popstore)./DSTDMN=user-domain
The name of the user domain to use in the destination message store. If not specified, then thedefaultdomain is used. Only applicable in conjunction with destination message stores which support user domains./EXCEPTION_FILE=file-spec
By default, failures are only written toSYS$ERROR. Failures can also be reported to an exception file. The name of the exception file is given with the/EXCEPTION_FILEqualifier. 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_EXISTINGqualifier. 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/NOFORWARDto prevent forwardings from being established. Note, however, that when/NOFORWARDis 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/FORWARDqualifier 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 toSYS$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/LOWERCASEis 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/SINCEqualifier can be used to only migrate those messages stored on or after the specified time. See the description of the/BEFOREqualifier 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 areNATIVE(VMS MAIL) andPOPSTORE(PMDF popstore)./SRCDMN=user-domain
The name of the user domain to use in the source message store. If not specified, then thedefaultdomain 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 popstoreMIGRATEDflag set, the migration will fail unless/FORCE_MIGRATEis 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, theirWASTEBASKETfolder will, by default, also be migrated. Specify/NOWASTEBASKETto prevent theWASTEBASKETfolder from being migrated.
| #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
SUEwith the passwordSeCreT.
| #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
sueto the MessageStore. The/USE_EXISTINGqualifier 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 MOVEINutility. The file calls for migrating the login usersSUEandTOM. A password is set forSUEin her new popstore account.
| Previous | Next | Contents | Index |