Microsoft Exchange Shell - Manage Individual User Junk Mail Settings

Started by James, November 21, 2013, 08:50:38 PM

Previous topic - Next topic

James

Enable / Disable Junk Email Rule for User

Set-MailboxJunkEmailConfiguration "<User>" -Enabled <$true | $false>

-example-

Set-MailboxJunkEmailConfiguration "John Doe" -Enabled $false





Add / Block Trusted Senders or Domains

Set-MailboxJunkEmailConfiguration "<User>" -<TrustedSendersAndDomains | BlockedSendersAndDomains> @{Add="<address or domain>","<address or domain>",...}

-example-

Set-MailboxJunkEmailConfiguration "John Doe" -TrustedSendersAndDomains @{Add="example@contoso.com","anysite.com"}


You can omit the @{Add=""} parameter and just list the addresses and domains to be trusted or blocked. This will overwrite any pre-existing trusted/blocked list and replace it with the newly created specifications.




Review Junk Email Rules for a Specific User

Get-MailboxJunkEmailConfiguration "<User>"

-example-

Get-MailboxJunkEmailConfiguration "JohnDoe@contoso.com"





Review Junk Email Rules for All Users

Get-MailboxJunkEmailConfiguration -Identity * | Where {$_.Enabled -eq $true}




Ref: http://technet.microsoft.com/en-us/library/dd979780%28v=exchg.150%29.aspx
Ref: http://technet.microsoft.com/en-us/library/dd979784%28v=exchg.150%29.aspx