CDOLive LLC The Premier Resource for Microsoft Collaboration Data Objects             

Anonymous Posting

This sample replaces the 'Anonymous Posting' sample, which was originally provided by Microsoft with Microsoft Exchange Server 4.0. It provides a function to submit messages to a particular public folder by replacing the sender's name in the From field with 'Anonymous'. However, it does not support users sending mail directly to other users anonymously. It is designed to support public folder forums where people may otherwise be unwilling to send or post messages.

Known Issues

Don't hide the mailbox or the public folder from the Global Address List (GAL), because the Microsoft Exchange Server Scripting and Routing script will fail to run if the mailbox or the public folder is not visible in the GAL.

Microsoft Exchange Server Scripting and Routing scripts are not running synchronously. It can take up to 60 seconds before the script is fired.

Prerequisites

Make sure that Microsoft Exchange Server 5.5 with the Event Service is installed and running properly. For more information about the Microsoft Exchange Server Scripting and Routing, please take a look at The Secrets of Exchange Server Scripting and Routing.

Checked Build

If you would like to use this sample with another language version of Microsoft Exchange Server or Microsoft Outlook, it is possible that the sample will not work without modifications. Please consult the source code for more information. This sample is built and checked for a proper function using the following environment:

  • Microsoft Windows NT Server 4.0, with Service Pack 3/4/5/6a, US English - international
  • Microsoft Exchange Server 5.5, with Service Pack 1/2/3, US English - international
  • Microsoft Outlook 98, with Security Patch 2 (aka. outptcdiv class="head2"), US English - international
  • Microsoft Outlook 2000, with Service Release 1, US English - international
Installation and Configuration
,
Component Description
'Anonymous' Mailbox The mailbox, which is used to replace the original sender name with the new one.

To create the mailbox start the Microsoft Exchange admin program and add a new recipient called 'Anonymous'. Associate the Microsoft Exchange Server Service account to this mailbox, to make sure that the script can run without problems. On the 'Permissions' tab of the mailbox add your own NT account to make sure that you can open the mailbox and install the Microsoft Exchange Server Scripting and Routing script later.

Use the Microsoft Exchange admin program to add the 'Anonymous' mailbox to the 'Folders\System Folders\Events Root\EventConfig_<Your Servername>' folder with 'Author' (or greater) permissions to make sure that this mailbox can create and modify Microsoft Exchange Server Scripting and Routing scripts.

If you don't see the folder 'Folders\System Folders\Events Root\EventConfig_<Your Servername> in the Microsoft Exchange admin program, it is possible that the Microsoft Exchange Event Service is not installed or you are not running Microsoft Exchange Server 5.5. For more information please take a look at 'The Secrets of Exchange Server Scripting and Routing', Installation.

Create a new MAPI profile on your machine for the Exchange Server Service called 'Anonymous' and add the mailbox 'Anonymous' to the profile.
'Anonymous Posting' Public Folder The public folder, which holds all items created with the 'Anonymous' sender.

To create the public folder start Microsoft Outlook and logon as an Administrator who does have  permissions to create new public folders. In the left hand pane change to the public folders and create a new  Public Folder called 'Anonymous Posting'. Add the mailbox 'Anonymous' with 'Owner' permissions to the public folder.

Open the properties of the public folder 'Anonymous Posting' and select the 'Administration' tab, choose 'Folder Assistant' and add a rule which forwards all messages from the mailbox 'Anonymous' to the mailbox 'Anonymous'. Also select 'Delete' to delete all incoming messages,  Select the 'Advanced' tab of the rule and choose 'Only Items that Do Not Match These Condition'. Select 'OK' until all dialog boxes are closed.

This rule will now forward and delete all messages, which are posted to this public folder were the originator is not the mailbox 'Anonymous'. The reason for this rule is that a Microsoft Exchange Server Scripting and Routing script fires asynchronously and the posted message will be visible for a short time (normally about 60 seconds) if we use a Microsoft Exchange Server Scripting and Routing script on a particular public folder, but a public folder rule will be fired synchronous and so the new item will be moved away just in time.
anonymous.zip (3 Kbyte) Scripting and Routing Script The Anonymous Posting Microsoft Exchange Server Scripting and Routing script.

To install the script, start the Microsoft Outlook client and logon as the mailbox 'Anonymous'. Select the inbox and right-click on it to choose the properties. If you are not able to see the 'Agents' tab you may not have installed Microsoft Outlook 97 8.03 (or later), the Server Scripting add-on is not installed in Microsoft Outlook 97/98 or the permissions are not set properly. For more information please take a look at 'The Secrets of Exchange Server Scripting and Routing', Permissions and Security.

Open the Microsoft Exchange Server Scripting and Routing script with notepad and choose 'Edit', 'Select All' and copy it to the clipboard. Open the properties of the inbox from the mailbox 'Anonymous' and select the 'Agents' tab. Choose 'New...', enter the agent name 'Anonymous Posting' and choose 'A new item is posted to this folder' from the 'When the following event(s) occur:' list. Choose 'Edit Script...' and choose 'Edit', 'Select All' in the editor, which is opened. Paste your Microsoft Exchange Server Scripting and Routing script in the editor and choose 'File', 'Exit'. You now will be asked to save the changes in a particular file. Don't bother about the filename, select 'Yes' and exit all dialog boxes by choosing 'OK'.

To allow the Microsoft Exchange Event Service to update this information wait about 5 minutes and then you can try to start testing your solution.