Skip to main content

how to block / delete email using Transport rule on Exchange 2010?


Issue: how to delete email using Transport rule on Exchange 2010?
Problem Statement:
Sometime you use to get Spam email from external domain and same Spam spread across your internal network. Then you have block and delete those spam thread. You can do the same using exchange transport rule.
Resolution:
Follow the below steps to block and delete Spam email.
1. Log on to the Exchange Server using Organization Management group permission.
2. Open Exchange Management Console > expand 'Organization Configuration' > Click on 'Hub Transport' > then Click 'New Transport Rule'.
Type 'Name' and 'Comment' and make sure that check mark the 'Enable Rule' and click on next. see the attached screenshot. 
3. On Conditions page, select the appropriate condition. If you want to block and delete on basis of "Subject line" then select only subject like, 'When the subject field contains specific words.' and 'delete the message without notifying anyone' 
 
Now you need to click on 'specific words' and then specify the Spam word. e.g. “Spam email" and add the same and Click on 'OK'. See the screenshot for more information. Now click on 'Next>'. 
 
4. Click on "Next >".
5. Click on "New".
5. Finally click on "Finish".
6. Now you will see the newly created rule. I.e. Spam Block.
7. Right click on newly created rule and change the rule priority to "0". So that it will take effect on high priority and do the defined job. 
You may need to delete already delivered email from users mailbox.Script to delete the delivered email from Mailbox:
1.     Delete delivered messages from single mailbox.
Get-Mailbox -Identity baluilag@mydomain.com| Search-Mailbox -SearchQuery 'Subject:"Spam email"' –DeleteContent
2.     Delete delivered messages from all mailbox:
Get-Mailbox | Search-Mailbox -SearchQuery 'Subject:"Spam email"' –DeleteContent

Thank you.

Comments

Popular posts from this blog

Outlook Add-in for Skype meeting getting disable after restarting Outlook.

Issue: Outlook Add-in for Lync meeting getting disable after restarting Outlook.
Problem Statement: Outlook Add-ins gets install automatically when Office 2013 installs (Lync and Skype for Business clients are part of Office package). Add-ins name is Lync Meeting Scheduling Outlook Addin or Skype meeting Add-in for Microsoft Office 2013. Sometime if other add-ins conflict with Outlook add-ins then outlook add-in keep getting disabled. And user has to enable it manually after Outlook restarts. 
Resolution: By default Lync Meeting Scheduling Outlook Addin or Skype Meeting Add-in for Microsoft Office 2013 installs wit load behavior "Load at Startup". However due to some conflict users Lync or Skype add-ins load behavior get changed to loaded instead of "Load at Startup" had to re-enable Lync Meeting Add-In in each time Outlook 2013 was started as it was not set to "Load at Startup". Look at the below screenshot. Now question is how we can change load behavior …

Unable to share desktop in Skype for Business?

Unable to share desktop in Skype for Business?
You can show your entire desktop or just a program to everyone in a Skype for Business Meeting, call, or instant messaging (IM) conversation. However sometime this feature does not work and give different errors.  Error message: ·Cannot start Desktop/Application Sharing due to network issues. ·An error occurred during the screen presentation. Resolution: There are multiple thing which may affect application/desktop sharing. 1.Make sure application / desktop sharing enabled on Skype for Business / Lync Server. SfB /Lync Control Panel > Conferencing > Conferencing policy > select Global or create new policy and set enable ‘Enable application and desktop sharing’. Refer below image. 2.Make sure your Skype for Business (Lync) client is updated with latest cumulative updates. Download latest update Skype (Lync) client. 3.Update your Video and Display drivers. a.Go to Start > Control panel. b.Search for Device Manager, and then open it. c.Find V…

Unable to login to Skype for Business client?

Unable to login to Skype for Business client? In order to sign-in on Skype (Lync) you must have login credential provided to you from your organization. ·Sign-in address: bilag@orgname.com ·User name: orgname\bilag ·Password: ************
Note: Orgname.com is my SIP domain name. Here are the most common mistake people make while sign-in on Skype for Business (Lync).
1.If you have login credential however still unable to sign-in then make sure you are putting proper login credential. Below error shows when you are wrong entering your sign-in address:
2.If you are writing correct Sign-in address however getting DNS error then contact administrator/ Support team there may be a DNS resolution or configuration issue. Administrator need to verify the SfB (Lync) AutoDiscover DNS records. 3.Sometime users password may expired/ lockout: Make sure that you password is not expire and lockout. If yes then call to helpdesk and reset your password / unlock. 4.Make user to have updated Skype for Business cli…