To download the Archive Sink utility and then install the
included script files, follow these steps:
- The
following file is available for download from the Microsoft Download
Center:
Download
the Exchange 2003: Archive Sink package
now.
For additional information about how
to download Microsoft Support files, click the following article number to view
the article in the Microsoft Knowledge Base: 119591 How to Obtain Microsoft Support Files from Online Services
Microsoft scanned this file for viruses. Microsoft used the most
current virus-detection software that was available on the date that the file
was posted. The file is stored on security-enhanced servers that help to
prevent any unauthorized changes to the file.
- There are four files that are included in the
Archivesink.exe file that you must extract to the C:\Program Files\Exchsrvr\bin
folder. These files are named ArchiveSink.doc, ArchiveSink_setup.vbs,
ArchiveSink.dll and eula.txt.
- You must enable archiving by running the
archivesink_setup.vbs script. To do this, follow these steps:
- Click Start, click
Run, type cmd, and then click
OK.
- In the C:\Program Files\Exchsrvr\bin folder, type
cscript archivesink_setup.vbs, and then press ENTER.
You receive the following output.C:\Program Files\Exchsrvr\BIN>cscript archivesink_setup.vbs
Microsoft (R) Windows Script Host Version 5.6
Copyright (C) Microsoft Corporation 1996-2001. All rights reserved.
Not enough command line arguments given.
Syntax: archivesink_setup [install/uninstall/display] [Virtual Server ID] <archivelocation>
Example: To install, cscript archivesink_setup.vbs install 1 d:\archivesink
Example: To uninstall, cscript archivesink_setup.vbs uninstall 1
Example: To display bindings, cscript archivesink_setup.vbs display 1
With this setup script, you can install Archive Sink on a specific SMTP
virtual server and indicate the path of the file system where the archiving
must occur. To do this, type cscript archivesink_setup.vbs install
Virtual Server IDarchive
location, and then press ENTER. In this command,
Virtual Server ID is the virtual server number of
the virtual server to be archived, and archive
location is the folder where you want to put your files.
Note To install Archive Sink on more than one virtual server, you must
run the cscript archivesink_setup.vbs install command on each
virtual server. To remove Archive Sink from Exchange Server 2003, you must run
the cscript archivesink_setup.vbs uninstall command on each
server. For example, you must type cscript archivesink_setup.vbs
uninstall 1 at the command prompt in the
Exchsrvr\bin folder.
- When you install Archive Sink, the required registry
subkeys are created for advanced archiving controls. To enable logging for
detailed message information, you must change the value of the Enable Message
Logging subkey to 1. To do this, follow these steps.
Important This section, method, or task contains steps that tell you how to modify the registry. However, serious problems might occur if you modify the registry incorrectly. Therefore, make sure that you follow these steps carefully. For added protection, back up the registry before you modify it. Then, you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click the following article number to view the article in the Microsoft Knowledge Base: 322756 How to back up and restore the registry in Windows
Note After you enable detailed logging, an .xml file that contains all
message recipients, including recipients on the Bcc line, is created for each
e-mail message. - Click Start, click
Run, type regedit, and then click
OK.
- Locate and then click the following registry subkey:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Exchange\ArchiveSink\1
- Right-click Enable Message Logging in
the right-pane, and then click Modify.
- In the Value data box, type
1, and then click OK.
- Close Registry Editor.
- Restart the IIS Admin Service. To do this, follow these
steps:
- Click Start, point to All
Programs, point to Administrative Tools, and then
click Services.
- Right-click IIS Admin Service in the
right-pane, and then click Restart.
After you install Archive Sink, the script automatically creates
registry key settings for advanced archiving controls. The following example
shows registry key default settings after Archive Sink is installed on virtual
server number 1.
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Exchange\ArchiveSink\1
Value
Name: Archive System Messages
Data Type: REG_DWORD
Radix: Binary
Value: 0
Value Name: Dump P1
Data Type:
REG_DWORD
Radix: Binary
Value: 0
Value
Name: Enable Mapi-Gateway Messages
Data Type: REG_DWORD
Radix: Binary
Value: 1
Value Name: Enable PostCat
Data
Type: REG_DWORD
Radix: Binary
Value: 0
Value Name: Enable PreCat
Data Type: REG_DWORD
Radix: Binary
Value: 1
Value Name: Enable
Smtp Messages
Data Type: REG_DWORD
Radix: Binary Value: 1
Value Name: Mapi Gateway Messages
Data Type:
REG_SZ
Value: d:\ArchiveSink\Mapi Outbound
Value
Name: Smtp Messages
Data Type: REG_SZ
Radix: Binary
Value:
d:\ArchiveSink\Smtp Messages
For the REG_DWORD values, 1
enables the setting, and 0 disables the setting. With these registry entries,
you can turn archiving on or off for SMTP inbound messages, MAPI outbound
messages, or both. By default, when Archive Sink is installed on a virtual
server, archiving is on. Archive Sink archives all messages to the archive
location that is specified in the registry. By default, if the archive location
is not specified in the registry, archiving uses the system Temp folder. For
most Microsoft Windows 2000-based computers, the default location is the
Windows\Temp folder.
The following default settings also apply if the
settings have not been changed:
- Only OnMessageSubmission (PreCat) messages are archived.
- System messages, such as public folder messages and
replication messages, are not archived.
- The "Dump P1" registry key is
disabled.
Important- Universal Naming Convention (UNC) paths are not supported.
You cannot create a file that includes a UNC path.
- Dynamically changed registry settings are not picked up
until you restart the IIS Admin Service.
- For debugging purposes, you can enable the "Dump
P1" registry key to dump the P1 recipients in the message.
- By default, Archive Sink does not archive public folder and
system messages.