Transport Rules

Published 24 July 09 12:46 PM | danielke 

Whilst working for a customer they had a specific requirement to apply a disclaimer to all outbound mail e.g. not to apply disclaimers to mail sent to other users within the Exchange organisation. Their requirement also included to only apply the disclaimer if it had not already been applied (or where it contained the same text). So i created a powershell script to do this:-

 

Get-TransportRulePredicate SubjectOrBodyContains

$Action = get-TransportRuleAction ApplyDisclaimer

$Action.Text = “my test disclaimer”

Get-TransportRulePredicate SubjectOrBodyContains

$Exception = Get-TransportRulePredicate SubjectOrBodyContains

$Exception.Words = @("My test disclaimer”)

$Condition = Get-TransportRulePredicate SentToScope

$Condition.Scope = "NotInOrganization"

New-TransportRule –Name “My test” –Action @($Action) –Exception @($Exception) –Condition @($Condition)

 

Written by Daniel Kenyon-Smith

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Comments

No Comments

Leave a Comment

(required) 
(optional)
(required) 

  
Enter Code Here: Required

About danielke

I’m a Messaging consultant working for Microsoft Consultancy Services in the UK. Find out about all the latest technology, news, tips and tricks in the world of messaging and much more!

Search

This Blog

Microsoft Collaboration

Syndication

Page view tracker