Friday, November 8, 2013

Manage Junk Filter Configuration from Exchange Powershell

Recently one user had issue on Junk filter, He was  blocked some domains from Junk filter in outlook but emails are delivering to his inbox. I got confused and took remote and checked the user junk filter configuration all seems to be fine.

Thanks to Google.

I have found Microsoft Technet article and came to know that Junk filter can be managed by EMS

http://technet.microsoft.com/en-us/library/dd979780(v=exchg.141).aspx

I have checked the Junk filter for that user and the user was added many domains and email address. I am unable to view all address, again i took help from google and found wonder full article. we can use the below command to view all address on single page.

(Get-MailboxJunkEmailConfiguration myidentity).BlockedSendersAndDomains

Here i don't see the domains and address so i added manually by using the below command

$Temp = Get-MailboxJunkEmailConfiguration "Michele Martin"
$Temp.TrustedSendersAndDomains += "contoso.com","fabrikam.com"
$Temp.BlockedSendersAndDomains += "jane@fourthcoffee.com"
Set-MailboxJunkEmailConfiguration -Identity "Michele Martin" -TrustedSendersAndDomains $Temp.TrustedSendersAndDomains -BlockedSendersAndDomains $Temp.BlockedSendersAndDomains

Confirmed with user now the Junk filter is working fine