Archive for the ‘Powershell’ Category

Transport Rule Journal Selective Domain

March 18, 2009 1 comment

If you want to journal a selective domain using a custom transport rule, this example shows how to use a custom transport rule to copy all emails from to a journal mailbox.

Open Exchange Shell and enter the following:

$Condition = Get-TransportRulePredicate FromAddressContains
$Condition.words = @(“”)
$Action = Get-TransportRuleAction Copyto
$Action.Addresses = @(get-mailbox “journal”)
New-TransportRule -Name “copy messages to journal mailbox” -Conditions @($Condition) -Actions @($Action)

This rule sends a copy to ie. CC’s the message to a journal mailbox. You can also opt to BCC by changing third line to:

$Action = Get-TransportRuleAction BlindCopyto


How to Create a New Transport Rule

Transport Rule Actions

Transport Rule Predicates