The information in this article applies to:
SUMMARY
This document describes operational details for utilities used to
repair and maintain the database for Microsoft Mail for PC Networks.
We recommend that the use of these programs be restricted to Mail
administrators. The procedures described apply to versions 2.1 and
later of Microsoft Mail, except where noted.
ACCTONME.EXESummaryThe ACCTONME utility rebuilds the postoffice address list (POL) from scratch and works on Mail 2.1 and later postoffices. ACCTONME does not directly access the global address list (GAL) in versions 3.0 and 3.2, but because the GAL contains the names from the local postoffice, it will require rebuilding after this process is complete. See the Microsoft Mail" Administrator's Guide" for assistance with rebuilding the GAL.When to UseUse this utility only when both the ADMIN.NME and ADMINSHD.NME files are deleted or irrevocably damaged. If only one of the files is damaged or missing, you can replace the damaged file with a copy of the undamaged file.For more information on recovering the POL, see the "Alternatives" section below. You can use this information if running ACCTONME is not possible or practical. Side EffectsRunning this utility will result in the loss of all external postoffice names, gateway names, and local group names in the POL. Because of the structure of the address list file and its connection to the group subsystem of the database, you must delete all postoffice groups before proceeding.SyntaxacctonmeProceduresAs with all Microsoft Mail utilities, we highly recommend that you back up your Mail database before running ACCTONME. You must also back up the ADMIN.NME file in the NME subdirectory using the following command from the root of the Mail database:copy \nme\admin.nme \nme\admin.old
Alternatives
DUMPFLD.EXESummaryThe DUMPFLD utility generates a diagnostic dump of a folder file. DUMPFLD will work with version 2.1 and later postoffices. It will not dump information from Microsoft Mail 3.0 or 3.2 Mail message files (MMFs).When to UseUse this utility to verify the contents and/or the integrity of a folder file.Side EffectsNone; this utility performs a read-only function on the folder file.Syntaxdumpfld [-ml] <folder_filename>Where:
ExampleThe following command dumps all information about all items in the folder file 00000002.FLD to the computer screen. Typically, .FLD files are stored in the FOLDERS subdirectory. Private folders are stored in the LOC\000xxxxx directory, where 000xxxxx is the ID number for that user. Public, group, and shared folders are stored in the PUB subdirectory. Folder files can also be stored locally on a user's hard disk drive or on an alternate network location.dumpfld -ml 00000002.fldTo direct the output to a file, use the MS-DOS redirection symbol ">" and a filename. The following command will direct the output of DUMPFLD to the file RESULTS.TXT: dumpfld -ml 00000002.fld > results.txt Other NotesWhen you use the -m option, you may receive the error message "Error: Failure to read record." Disregard this error message. DUMPIDX.EXESummaryThe DUMPIDX utility generates a diagnostic dump of a folder index file. DUMPIDX will work with Mail 2.1 and later postoffices. It will not dump information from Microsoft Mail 3.0 or 3.2 Mail message files (MMFs).When to UseUse this utility to verify the contents and/or the integrity of a folder index file.Side EffectsNone; this utility performs a read-only function on the folder index file.Syntaxdumpidx -[ecpns] <index_filename>Where:
ExampleThe following command will dump folder size information about all items in the index file 00000002.IDX to the computer screen. Typically, .IDX files are stored in the FOLDERS subdirectory. Private folder indexes are stored in the LOC\000xxxxx directory, where 000xxxxx is the ID number for that user. Public, group, and shared folders are stored in the PUB subdirectory. Index files can also be stored locally on a user's hard disk drive or on an alternate network location.dumpidx -s 00000002.idxTo direct the output to a file, use the MS-DOS redirection symbol ">" and a filename. The following command will direct the output of DUMPIDX to the file RESULTS.TXT: dumpidx -s 00000002.idx > results.txt DUMPKEY.EXESummaryA user's online calendar file is not named with the same eight-digit ID number as the user's mail message file (MMF), nor is it named with the user's name (for security reasons). You can use the DUMPKEY utility to find out which online calendar files belong to which users.To use this utility, use the following MS-DOS command to copy the DUMPKEY.EXE file to the CAL subdirectory of the postoffice (this example assumes that the Mail database is located on drive M): copy dumpkey.exe m:\cal\dumpkey.exe When to UseUse this program if you want to find the owner of a particular calendar (.CAL) file on the server.Side EffectsNone; this is a read-only utility.Syntaxdumpkey schedule.keyESCNTLR.EXESummaryThe ESCNTLR utility allows you to turn enhanced security off and on for the postoffice. This utility only works on Mail 3.0 and 3.2 postoffices. Enhanced security is a double-encrypted password that stops Mail 2.x clients from accessing the postoffice and is unrelated to Advanced Security, which is a method of creating a connection to the postoffice that the user cannot access.When to UseUse this program to display or change the status of enhanced security.Side EffectsEnhanced security will be added or removed, and the files containing the user accounts will be modified.Syntaxescntlr <admin> -p<password> [-s] [-r or -i] [-d<drive>] [-?]Where:
ProceduresAs with all Microsoft Mail utilities, we highly recommend that you back up your Mail database before running ESCNTLR. As a minimum, you should back up the GLB subdirectory by typing the following command from the root of the Mail database:xcopy \glb \bak\ /s /vThis command copies the entire GLB subdirectory to a new directory called BAK. AlternativesThe setup program for Mail 3.2 removes or adds enhanced security to the postoffice.ExamplesTo remove enhanced security, type the following command:escntlr admin -p<password> -r;To install enhanced security on drive N, type the following command: escntlr admin -p<password> -i -dnTo view the status of enhanced security on drive N, type the following command: escntlr -dn -s FIXFLD.EXESummaryThe FIXFLD utility attempts to rebuild folder files from their current contents. FIXFLD will work with Mail 2.1 and later postoffices. It has no effect on Mail 3.0 or 3.2 Mail message files (MMFs).When to UseUse this utility only when a public or private folder is corrupted.For more information about recovering folders, see the "Alternatives" section below. You can use this information if running FIXFLD is not possible or practical. Side EffectsNone; this utility affects only the file specified on the command line.Syntaxfixfld <saved_folder_file new_folder_file>Where:
ProceduresAs with all Microsoft Mail utilities, we highly recommend that you back up your Mail database before running FIXFLD. Typically, .FLD files are stored in the FOLDERS subdirectory. Private folders are stored in the LOC\000xxxxx directory, where 000xxxxx is the ID number for that user. Public, group, and shared folders are stored in the PUB subdirectory. Folder files can also be stored locally on a user's hard disk drive or on an alternate network location.
Additional InformationYou only need to perform one folder-compress step for multiple folder rebuilds. If a folder is no longer referenced by its corresponding index file, it is safe to delete the folder file.AlternativesThe following procedures assume the Mail user is not running version 3.0 or 3.2 of the Microsoft Mail Windows client software because this program handles folders differently than other clients.
FIXIDX.EXESummaryThe FIXIDX utility rebuilds the folder index file from records of all of the folders in a subdirectory. FIXIDX will work with version 2.1 and later postoffices. It has no effect on Microsoft Mail version 3.0 or 3.2 Mail message files (MMFs).When to UseUse this utility only when a folder index is deleted or irrevocably damaged.For more information on recovering folders, see the "Alternatives" section below. You can use this information if running FIXIDX is not possible or practical. Side EffectsRunning this program will result in the loss of all folder names. Rebuilding FOLDROOT.IDX when there are group folders on that postoffice will make the group folders inaccessible because FIXIDX resets the group folder type to be that of a shared folder. See the procedure below on how to repair this damage when it occurs.Syntaxfixidx< fld_dir idx_file owner>Where:
ProceduresAs with all Microsoft Mail utilities, we highly recommend that you back up your Mail database before running FIXIDX. You must also back up the folder subdirectory you will be working with.
AlternativesIf the index file for a user's private folders is corrupted or missing, you can reset that user's folder from the Mail Administrator program by selecting Local-Admin, Folders, Reset, selecting the user, and pressing ENTER.Repair Procedure for Group FoldersThe following steps describe how to change the byte to indicate the current status of the folder to be a shared folder. It is not possible to directly change the folder back to a group folder; instead, the folder is designated as a shared folder:
GIMPORT.EXESummaryThe GIMPORT utility creates, deletes, and modifies postoffice address list (POL) groups that contain Microsoft Mail users and X.400, FAX, SMTP, SNADS, PROFS, and MHS gateway users.GIMPORT.EXE requires that the users being added to a group be present in the POL prior to running GIMPORT. You can automatically add users to the POL by using the IMPORT.EXE utility with the [ASCII 150]a option. IMPORT.EXE ships with Microsoft Mail and is present in the MAILEXE subdirectory. Please refer to the Microsoft Mail Administrator[ASCII 146]s Guide for more information on the IMPORT.EXE program. PurposeThe administrator can create groups in the POL that contain users defined on the local postoffice as well as users defined on external postoffices or as gateway addresses. Microsoft Mail has a limitation that any groups that contain external users cannot be exported to other Microsoft Mail postoffices, and these groups cannot be included in directory synchronization. This poses a problem in many organizations that have several Microsoft Mail postoffices and need all their users to be able to send mail to groups containing users on several different postoffices.There is no method for creating such cross-postoffice groups only once and then exporting these groups to other postoffices. The groups can be exported through the Mail Administrator program, and when a user on the postoffice where the group was created sends mail to the group, all users (local and external) receive the message. However, when a user on another postoffice sends mail to an exported group, only those users defined on the postoffice where the group was created receive the mail message; external users in that group do not. Hence, the only way to allow all users on all postoffices to successfully send mail to the same group of users is to create that group on all postoffices. For large organizations with several postoffices and thousands of users, this process of can be very time consuming and prone to error. GIMPORT.EXE makes this process easier. Although you still need to create the groups on every postoffice, you can automate this task to a certain degree. To use GIMPORT, manually create the group on one postoffice, and then extract the group information to a text file. The information in the text file can then be imported to other postoffices. System RequirementsGIMPORT requires the following system hardware and software:
When to UseUse this utility to create, delete, or modify groups on the postoffice. If the group is small (fewer than 20 users), contains only local users, or if the number of groups is small (fewer than 5 groups), the Mail Administrator program can be more efficient in creating and maintaining the group.Side EffectsNew groups are deleted or created, and existing groups are modified.Syntaxgimport admin [-d[drive|path]] [-ffilename] [-i[filename]] [-llogfile] - ppassword [-r] [-s] [-v] [-x[filename]] [-y] [-?]Where:
File FormatsThe output file created with the -f option is a text file containing the group transactions, which consists of the group name, followed by the group members. The format of the IMPORT-compatible file created with the -i option is the same, except the group name is not present. The format of the file used by the extract option (-x) is only the alias of the group, with each alias on a separate line.Group Transaction FileEach group transaction is on a separate line. Each of these lines contains four mandatory entries.First Entry Sample Input File
ProceduresAs with all Microsoft Mail utilities, we highly recommend that you back up your Mail database before you run GIMPORT.EXE. As a minimum, you should back up the following directories.- GLBThe following examples describe how GIMPORT.EXE can be used. Example 1 - Automatically copying a group from one postoffice to another.This example assumes you have created a group named "Test Group" on Postoffice 1 (on drive M) that contains only the user "Administrator" for Postoffice 1 and you want to create this group on Postoffice 2 (on drive N). Run the following command at the MS-DOS prompt:gimport -dm admin -ppassword -xgrpext.inf -fgroups.ext -igrpusers.datGRPEXT.INF is a text file that contains the name of the group to be extracted. For this example, the GRPEXT.INF file contains the following text: Test GroupGROUPS.EXT is the file to which the group information is written out. The following is the contents of GROUPS.EXT after the above command is executed:
GRPUSERS.DAT is the file to which only user information and not group
information is written to. The following is the contents of the
GRPUSERS.DAT after the above command is executed:
To import the group into Postoffice 2, all the users in the group must be
present in the POL on Postoffice 2. To add these names to the POL on
Postoffice 2 run the following command:
import -dn admin -ppassword -a -fgrpusers.datAfter executing this command, you will see warning messages for those users that already exist on the Postoffice 2. These messages can be ignored. To create the group on Postoffice 2 and add the users to it, use the GROUPS.EXT file (containing the G transaction type) and run the following command: gimport -dn admin -ppassword -fgroups.ext Example 2 - Resetting all group files on a postoffice.In certain cases, it may be necessary to reset all the group files on a Microsoft Mail postoffice. This can be done using GIMPORT.EXE with the following command:gimport -dm admin -ppassword -rThe above example assumes that the postoffice on which you wish to reset all the group files, exists on drive m. In the above examples, a log file can be created by using the -l<log file> option. Verbose logging can be turned on by the -v command line option. LISTUSER.EXESummaryThe LISTUSER utility displays a list of all users on a given postoffice, including their associated eight-digit user ID numbers (these numbers are used by the Mail system to identify each individual user). LISTUSER will work with version 2.1 and later postoffices. LISTUSER also shows the size of the .MMF files on the server, and can search for a specific name on the postoffice.When to UseUse this program whenever you need to know the ID number associated with any of your users.Side EffectsNone; this is a read-only utility.Syntaxlistuser <admin> -p<password> [-d<drive>] [-f] [-x] [-n<name>] [-s] [-?]Where:
AlternativesYou can also determine a user's ID number by performing the following steps:
MOVEFOLD.EXESummaryThe MOVEFOLD utility allows a user's private folders to be moved to another postoffice. This utility is typically required when a user is changing physical locations and becomes a member of a new Microsoft Mail postoffice. MOVEFOLD will work only with Mail 2.1x postoffices and Mail 3.0 or 3.2 postoffices that do not have enhanced security enabled, and only affects the MS-DOS client's private folders.When to UseYou can use this program whenever you move a user's folders from one postoffice to another.For more information on moving folders, see the "Alternatives" section below. You can use this information if running MOVEFOLD is not possible or practical. Side EffectsNone; this program performs read-only operations on the Mail database files.Syntaxmovefold <mailbox> -p<password> -d<drive> [-e<exportfile> | -i<importfile>]Where:
ProceduresAs with all Microsoft Mail utilities, we highly recommend that you back up your Mail database before running MOVEFOLD; you must also make a backup of the folder subdirectory you will be working with.
ExampleTo move the folders of a user called Chris, use the following command to export the folders from Chris's user account on the postoffice on drive M to the file CHRFOLD.ARC.movefold chris -ppassword -dm -echrfold.arcThe following command imports the CHRFOLD.ARC file into Chris's user account on drive N: movefold chris -ppassword -dn -ichrfold.arcNOTE: If the destination postoffice is not currently available, the MOVEFOLD import command can be run at a different time. AlternativesFolders can also be moved by the owner of the folders using the following procedure:
MVCAL.EXESummaryA user's online calendar file is not named with the same eight-digit ID number as the user's Mail message file (MMF), nor is it named with the user's name for security reasons. You can use the MVCAL utility to locate a specific user's online calendar file (if the file is damaged, for example).When to UseUse this program if you want to find the owner of a particular calendar (.CAL) file on the server if that CAL file is corrupted or damaged in some way.Side EffectsThis utility will find the calendar file for the user name specified and rename it <username>.BAD. After the calendar file is renamed, a new file will be created the next time the user signs in. This new calendar file will be created from the user's local calendar file.Syntaxmvcal <username> [-d<drive> -p<password>]Where:
ExampleTo rename JohnDoe's calendar file on drive N, where the Schedule+ administrator's password is "password":mvcal JohnDoe -dn -ppassword NETDUMP.EXESummaryThe NETDUMP utility displays information for all external postoffices and gateways defined on the given postoffice. The utility displays the network/postoffice names, the mailbag (.MBG) file for the external postoffice, whether the postoffice is routed indirectly via another postoffice, the definition (.XTN) file where the external postoffice is located, and the connection type (LAN, modem, or X.25) for the postoffice.For gateways, the NETDUMP utility displays (1) the gateway name; (2) the gateway postoffice if the given postoffice is a downstream postoffice; (3) the mailbag for the gateway; (4) the definition (.XTN) file for the gateway; and (5) for FFAPI, PROFS, and SNADS gateways, the node name and node mailbag. The current version of NETDUMP recognizes the PROFS, SNADS, MCI, X.400, MSMAIL (Mail Connection), FAX, SMTP, AT&T, MHS, and FFAPI gateways. When to UseUse this program to display the external postoffice and the gateway routing and definition information.Side EffectsNone; this is a read-only utility.Syntaxnetdump <admin> [-d[<drive>|<path>]] [-f<filename>] [-l<logfile>] -p<password>[-v] [-?]Where:
ExampleTo display the information for a postoffice located on drive M:netdump admin -ppassword -dm REVERT.EXESummaryThe REVERT utility resets the "read"and "new" counters in the Mail Message File (MMF). At times corruption in the MMF can make these counters indicate that a message has not been read, when in fact there are no new or unread messages. The CheckMMF utility that is part of version 3.0b or later of Microsoft Mail for Windows can also reset these numbers, but this method can cause other corruption if the MMF file is not otherwise damaged.Once these counters are reset, the Microsoft Mail for Windows client will recalculate and display the correct values. When to UseUse this program when the "new" or "unread" counters displayed by the Microsoft Mail for Windows client in the MMF are not correct.Use the LISTUSER utility to determine the hexadecimal ID of the user whose MMF needs to be reset. Side EffectsNone.Syntaxrevert <filename>Where:
ExampleTo reset the counter values in the 00000000.MMF file on drive P:revert p:\mmf\00000000.mmf TO OBTAIN THIS DOCUMENTThis document has been posted to the following Internet location:ftp://ftp.microsoft.com/bussys/mail/pcmail-public/WA0641/ Additional query words: 2.1x 3.00 3.20 dbutils
Keywords : kbenv kbfile MailPCDB |
Last Reviewed: November 3, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |