The New-TransportRule cmdlet finally suffered a big improvement in Exchange 2010 and is now much, much easier to use!
Let’s have a look at how to create the same basic rule but now in 2010. This rule will redirect every e-mail sent from Nuno’s mailbox that has a particular subject to the Quarantine mailbox.
New-TransportRule “Block Non Delivered e-mails from Nuno” -Comments ”Prevent Nuno from forwarding NDRs e-mails” -From “email@example.com” -SentToScope “NotInOrganization” -SubjectContainsWords “FW: There was an error sending your mail”, “FW: Mail delivery failed”, “FW: failure notice” -RedirectMessageTo “firstname.lastname@example.org” -Enabled $True
For more information: