1

I have a spam filter that will mark all emails it thinks are spam as ** SPAM Email Title Here **

I'd like to still send these to the users but make a rule that if ** SPAM is in the title to send it to the Junk mail folder.

Is there a way I can do this globally for all 2000+ users in Exchange 2010? Google has failed me(or I failed Google :P).

2 Answers 2

1

From quick look this should be possible with some powershell scripting : http://www.msexchange.org/articles_tutorials/exchange-server-2010/management-administration/managing-inbox-rules-exchange-server-2010.html

In a nutshell, you would need to pull the users list and then iterate through it using Set-InboxRule cmdlet

1
  • Pretty cool procedure, I found a much simpler way, however :)
    – Jeff
    Dec 27, 2011 at 20:59
0

I found an easy way to do this.
Under Organizational Configuration -> Transport Rules
You can create a new rule that
If ** SPAM is in the Title, set the spam confidence level to 9.
This puts all of these in the proper Junk folder.

I did end up writing

Get-Mailbox | foreach { 
Remove-Inboxrule -Mailbox datacore -Identity “SpamBlocking”
New-InboxRule SpamBlocking -Mailbox $_.Name -SubjectContainsWords '*** SPAM' -MoveToFolder '$_:\Junk E-Mail' -MarkImportance 'Low'
}

That should also work but I never ended up testing it.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .