Using DL Import

DL Import uses the Crystal Reports tool to create the raw data required to generate the distribution lists for buildings, groups, and servers. The server reports are scheduled to run on a daily basis against the Mailbox Administrator to obtain server data. The building and group reports are scheduled to run on a weekly basis against the global address list (GAL).

Some of the data is derived from cross-tabulated tables. Crystal Reports uses cross-tabulated tables to obtain distribution list (DL) aliases and long e-mail addresses.

The scheduled reports are formatted as a .csv file that is sent to a share point. If Crystal Reports fails to create the required data, an automatic e-mail notification is sent to the users defined in the requirements list.

The Windows NT process monitors the share point for a new file. When a new file is detected, it renames the old file and processes the new file. The process parses the .csv file to create the distribution lists. When it has created the distribution lists, it replaces the distribution lists in Microsoft Exchange Server using the designated e-mail address. If a distribution list is not created, the Windows NT process sends an automatic mail notification to the users defined in the requirements list.

Generating Data with Crystal Reports

The first report generated by Crystal Reports contains a list of all mailboxes sorted by the home server distribution list name. This report runs off the Mailbox Administrator table. A user with a site Microsoft Exchange Administrator account can run this report against all servers within that site.

To generate the report

Use the server name to link to the server cross-tabulated table and return the distribution list names and e-mail addresses described in the table below. The result of the server report is exported to a .csv file that is sent to a file share. The server .csv file contains the following attributes: SDL E-mail Address, SDL Alias Name, Recipient E-mail Address, and Recipient Alias Name.

The following table lists the definitions for these field names and data sources:

Field Name

Description

SDL E-mail Address

The distinct e-mail address of the server distribution list (SDL). The data file is sorted on this field and is obtained from the server cross-tabulated table.

SDL Alias Name

The e-mail alias of the server distribution list that is obtained from the server cross-tabulated table. This field is included in the .csv file for maintenance and troubleshooting purposes only.

Recipient E-mail Address

The distinct e-mail address of the mailbox on the specified server.

Recipient Alias Name

The e-mail alias of the mailbox recipient on the specified server that is obtained from the Account field in the personal address book (PAB) table. This field is included in the .csv file for maintenance and troubleshooting purposes only.


Develop a Crystal Report that runs against the global address list (GAL)and contains a list of all mailboxes sorted by the building's distribution list name (DL_Dist_Name). This report is used to generate the raw data for the building and group distribution lists. The groups are defined in the building cross-tabulated table.

Crystal Reports extracts the building numbers by using a specific formula. After the building numbers are extracted, they will be used to link to the building cross-tabulated table and return distribution list names and e-mail addresses as described in the following step.

The result of the building report is exported to a .csv file and sent to a file share. The building .csv file will contain the following attributes: BDL E-mail Address, BDL E-mail Alias Name, GDL E-mail Address, GDL E-mail Alias Name, Recipient E-mail Address, and Recipient E-mail Alias Name.

The following table lists the definitions for these field names and data sources:

Field Name

Description

BDL E-mail Address

The distinct e-mail address of the building distribution list (BDL). The data file is sorted on this field. Obtained from the building cross-tabulated table.

BDL E-mail Alias Name

The e-mail alias of the building distribution list. Obtained from the building cross-tabulated table. This field is included in the .csv file for maintenance and troubleshooting purposes only.

GDL E-mail Address

The distinct e-mail address of the group distribution list. Obtained from the building cross-tabulated table.

GDL Alias Name

The e-mail alias of the group distribution list. Obtained from the building cross-tabulated table. This field is included in the .csv file for maintenance and troubleshooting purposes only.

Recipient E-mail Address

The distinct e-mail address of the mailbox recipient in the specified building.

Recipient E-mail Alias Name

The e-mail alias of the mailbox recipient in the specified building. Obtained from the Account field in the PAB table. This field is included in the .csv file for maintenance and troubleshooting purposes only.


Searching Cross-Tabulated Tables

Crystal Reports needs to attach to a Microsoft Access cross-tabulated table. The Crystal Reports tool then uses either the server name or the building number to search the cross-tabulated tables and return the alias name and e-mail address of the distribution lists.

The following table lists field name descriptions for both the Building and Server cross-tabulated tables:

Field Name

Description

Building Number

The building number is used to search the table to retrieve Microsoft Exchange alias names and e-mail addresses for building and group distribution lists. The table must include all building name variations (for example, <201N>). Although the building names can be a combination of letters and numbers, they cannot consist of all letters and no numbers. For example, building names such as "Test" or "Mobile" are not valid.

BDL E-mail Address

The distinct e-mail address of the building distribution list.

BDL E-mail Name

The e-mail alias name of the building distribution list.

GDL E-mail Address

The distinct e-mail address of the group distribution list.

GDL E-mail Name

The e-mail alias name of the group distribution list.


The naming conventions for the building distribution list names are contained in the server name and location table. Following are the field name descriptions for the server name and location table:

Field Name

Description

Site\Server

The name of the server site and home server. This information is used to retrieve Microsoft Exchange alias names and e-mail addresses for server distribution lists.

Server Name

The name of the home server. This information is used to build the Site/Server field.

SDL E-mail Address

The distinct e-mail address of the server distribution list name.

SDL E-mail Name

The e-mail alias of the server distribution list.

Server Site

The site of the specified server. This information is used to build the Site/Server field.


Monitoring the Share Point and Creating New Distribution Lists

The Windows NT service process monitors a share point for a new file to be sent by Crystal Reports. The file names for the .csv files are Svrlist.csv and Bldlist.csv.

When a new file is detected, the Windows NT process creates a backup copy of the old file, and then parses the .csv file to create the distribution lists. The backup file names are: Svr<yy/mm/dd>.csv and Bld<yy/mm/dd>.csv.

When the distribution list's e-mail address changes, the Windows NT process performs processing breaks. This event initiates the creation of a new distribution list.

The Windows NT process must create two different distribution lists from the building .csv file: the building distribution list and the group distribution list. If a row in the file has a null group, then it is not included in the group distribution list because the recipient is not an employee.

Note The Windows NT process needs to be designed so that it knows where it left off if it is interrupted while processing distribution lists, so that it can automatically continue processing where it left off. This type of situation might occur during a server reboot.

After the distribution lists are created, the Windows NT process replaces the distribution lists in Microsoft Exchange and retains the permissions of the original distribution list. Windows NT security is used so that only input from the account running Crystal Reports is accepted.

If a distribution list is not created, the process sends an automatic notification to the users defined in the requirements list, identifies which distribution lists did not get created, and explains why (if the cause is known).

Windows NT Registry Data

DL Import uses Windows NT registry data located in the following hierarchy: \HKEY_LOCAL_MACHINE\SOFTWARE\MSITG\CONSTOOLS\DLIMPORT\

The DL Import tool monitors for an event that indicates that a registry change has been made. The service parameters known at this time are listed below:


Registry Key


Description

Registry Value Type


Default

DLImport_Polling
_Frequency

How often the service inspects the CSV_File_Location for any .csv file to process.

Registry Value Type: REG_DWORD

1 minute

CSV_File_Location

The absolute path where the .csv file will be stored by Crystal Reports on its server.

REG_SZ

\\na-01-rpt\dlimport

CSV_Data_Files

The csv file name if the file is located at CSV_File_Location. Else, a UNC name is supported.

REG_SZ

"bldglistCSV,
empgroupCSV"

CSV_Archive_
Location

The absolute path where the .csv files are archived on the DL Import server.

REG_SZ

The CSV_File_
Location and a subdirectory called Archive. (example: \\na-01-rpt\dlimport\
archive).

Notification_Alias

The list of aliases that DL Import sends notification to when a DL processing error occurs.

REG_MULTISZ

<approved e-mail alias names>

EventLog_Level

The logging level used by the service when writing to the EventLog.

REG_DWORD

5 (debug)

LogFile_Level

The logging level used by the service when writing to the log file.

REG_DWORD

5 (debug)

Exchange_Logon
_Profile

The profile used to connect to the GAL by the DL Import tool.

REG_SZ

"dlimport"


Windows NT Registry Logging Functions

Settings within the Windows NT registry are used to control the level of logging to the log file and the Windows NT EventLog. In other words, the degree of detail contained in the logs can be modified. Predetermined settings are used to control these logs. Documentation on the settings and their necessary location within the registry is provided with the tool

The debug log file for this tool should be named "DLimport.log" and created in the Binaries directory (or a Logs subdirectory).

The debug log file should contain only debug and processing status information. All other information used for an audit trail should be written to the application EventLog.