The Knowledge Base article you refer to also has a cousin --Microsoft Knowledge Base article 317680, "How to add a disclaimer to outgoing SMTP messages in Visual Basic script." Both articles explain how to use Transport Event Sinks to fire on the On Arrival event.
That approach has two implications:
- It only works for SMTP messages only -- messages delivered locally to the store or to other servers in the same routing group will not get the disclaimer.
- It will not work in single-server environments -- you would have to route messages through another SMTP server. One way of doing this is by implementing an SMTP Connector, and registering the event sink on the SMTP server that serves as a bridgehead for that connector.
There are many third-party applications available that do this job better, including the ability to work in single-server environments and being able to add disclaimers to local mail as well. Some popular ones are Exclaimer, Policy Patrol, and GFI MailEssentials.
If you do want to use the solution outlined in the Knowledge Base article you mentioned, but you do not have any experience with Visual Basic, I recommend using the VBScript example instead. All you need to implement that is Notepad. Copy the script from the article into Notepad and save it as Disclaimer.vbs. Then use the smtpreg.vbs script from the Exchange Software Development Kit to register the event sink.
Where can I find the smtpreg.vbs file?
"Then use the smtpreg.vbs script from the Exchange Software Development Kit to register the event sink."
I installed the tool but the file "smtpreg.vbs" was nowhere to be found. Please advise.
The code for the smtpreg.vbs Event Management Script can also be found at the MSDN Web site.
Bharat Suneja, Exchange Server Administration expert
Do you have comments on this Ask the Expert Q&A? Let us know.
Related information from SearchExchange.com:
This was first published in June 2006