Solved

Adding Disclaimer for Echange 2003 - for multiple email domains

Posted on 2008-10-15
3
498 Views
Last Modified: 2012-12-20
Hi,

I'm actually attempting to add a disclaimer for my Exchange 2003 using VBScripts. I had a look at the MS article: http://support.microsoft.com/default.aspx?scid=kb;en-us;317680 How to add a disclaimer to outgoing SMTP messages in Visual Basic script and this actually works great.

However, as I am hosting multiple email domains in my exchange environment (ie. @abc.com, @bcd.com, @def.com) I need to ensure that the other email domains are sending it out with the dsclaimer as well. As I understand from this article, it builds an event sink which activates the eventsinkscript.vbs when it finds a parameter of "mail from =*@domainname.com". So this actually only solves part of my problem.

How can I do it so that it will add the disclaimer on all the domains which I'm hosting.

Thanks in Advance.
0
Comment
Question by:pepelepew8
3 Comments
 
LVL 23

Expert Comment

by:Justin Durrant
ID: 22720398
Your best best is going to be a 3rd party product like GFI or http://www.exclaimer.com/
0
 
LVL 1

Accepted Solution

by:
pepelepew8 earned 0 total points
ID: 22727814
Actually, I figued it out. SMTPScriptingHost is actualy just a param, so if I needed to add additional listeners, I would just run the script like this:
C:\ cscript smtpreg.vbs /add 1 onarrival SMTPScriptingHost1 CDO.SS_SMTPOnArrivalSink "mail from=*@seconddomain.com"

This would create a second listener for the second email domain. And if you have more then just run the same line and change theSMTPScriptingHost to SMTPScriptingHost2, SMTPScriptingHost3 an so forth.

Once the listener is in, you can configure it to use the same EventSinkScript.vbs or a different one to use a different disclaimer clause. So to attach the action to the listener is:
C:\cscript smtpreg.vbs /setprop 1 onarrival SMTPScriptingHost1 Sink ScriptName "C:\EventSinkScript.vbs"

Works like a charm. I would love to use GFI but now its not free and my company is currently running on very tight financial budgets aka "CHEAP".
0
 
LVL 1

Expert Comment

by:myself7
ID: 38712174
that's awesome. it works fine on my server.
0

Featured Post

Does Powershell have you tied up in knots?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Utilizing an array to gracefully append to a list of EmailAddresses
Exchange server is not supported in any cloud-hosted platform (other than Azure with Azure Premium Storage).
This video discusses moving either the default database or any database to a new volume.
This video demonstrates how to sync Microsoft Exchange Public Folders with smartphones using CodeTwo Exchange Sync and Exchange ActiveSync. To learn more about CodeTwo Exchange Sync and download the free trial, go to: http://www.codetwo.com/excha…

776 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question