Solved

Is there a way we can delete a specific email thats sent from ouside the organization to a group of people from there mailboxes before they read it.

Posted on 2010-09-05
9
385 Views
Last Modified: 2012-05-10
Hi,

Is there a way we can delete a specific email thats sent from ouside the organization to a group of people from there mailboxes before they read it.

regards
Sharath
0
Comment
Question by:bsharath
9 Comments
 
LVL 65

Expert Comment

by:rockiroads
ID: 33609099
you need a spam filter I reckon. have a read of this guide http://www.msexchange.org/tutorials/Exchange-Spam.html
0
 
LVL 8

Expert Comment

by:Emptyone
ID: 33609158
If you want to block a specific mail you can use Transport rules. Just be specific enough in what you fill out, so you don't block mails you want to have through. But which version of Exchange is this? And do you mean a mail that's already in their mailbox?
0
 
LVL 11

Author Comment

by:bsharath
ID: 33609177
I dont want to block. But delete mails thats already been sent from every mailbox
Exchange 2007
0
Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

 

Expert Comment

by:integrate-it
ID: 33609267
Hi,

try using ExMerge. I know, it's not offical supported but it works (http://www.exchangeinbox.com/article.aspx?i=88)

best regards
0
 
LVL 2

Expert Comment

by:rupeshsaini
ID: 33609378
You can only filter the message ,you cannot delete it whenever it comes.
0
 
LVL 3

Expert Comment

by:AndrewSwingewood
ID: 33609382
The following powershell commands should do what you need, you just need to modify the command to match your infrastructure:

Across all mailboxes

Get-Mailbox -Server EXCHSVR01 | Add-MailboxPermission -User Admin01 -AccessRights Fullaccess -InheritanceType all
Get-Mailbox -Server EXCHSVR01 | Export-Mailbox -SubjectKeywords “Confidential reports” -StartDate “06/09/2009¿ -DeleteContent

For just certain mailboxes

Get-Mailbox -Identity ktaber | Add-MailboxPermission -User Admin01 -AccessRights Fullaccess -InheritanceType all
Get-Mailbox -Identity ktaber | Export-Mailbox -SubjectKeywords “Confidential reports” -StartDate “06/09/2009¿ -DeleteContent

After running the command the messages will disappear from Outlook immediately.

To see more parameters and examples please visit: http://technet.microsoft.com/en-us/library/aa998579.aspx
0
 
LVL 3

Expert Comment

by:AndrewSwingewood
ID: 33611179
Sorry, as a quick update, there seems to be an issue with the text format (upside-down ?).  The correct format is:

The following powershell commands should do what you need, you just need to modify the command to match your infrastructure:

Across all mailboxes

Get-Mailbox -Server EXCHSVR01 | Add-MailboxPermission -User Admin01 -AccessRights Fullaccess -InheritanceType all

Get-Mailbox -Server EXCHSVR01 | Export-Mailbox -SubjectKeywords “Confidential reports” -StartDate “06/09/2009" -DeleteContent

For just certain mailboxes

Get-Mailbox -Identity ktaber | Add-MailboxPermission -User Admin01 -AccessRights Fullaccess -InheritanceType all

Get-Mailbox -Identity ktaber | Export-Mailbox -SubjectKeywords “Confidential reports” -StartDate “06/09/2009" -DeleteContent
0
 
LVL 12

Assisted Solution

by:GusGallows
GusGallows earned 150 total points
ID: 33627406
I think the -DeleteContent without and argument defaults to false. So for the last line of the code provided by AndrewSwingewood use the following:

Get-Mailbox -Identity ktaber | Export-Mailbox -SubjectKeywords “Confidential reports” -StartDate “06/09/2009" -DeleteContent:$TRUE

Other than that, the powershell code should work. Otherwise you will need a tool like Mail Attender for Exchange to pull specific messages out of mailboxes where it is found.
0
 
LVL 3

Accepted Solution

by:
AndrewSwingewood earned 350 total points
ID: 33627780
I am not sure about the syntax provided by GusGallows.  My syntax may prompt for approval before deleting the item for each box, however this can be overcome by adding the following switch to the end of the line:

-confirm:$false

Get-Mailbox -Identity ktaber | Export-Mailbox -SubjectKeywords “Confidential reports” -StartDate “06/09/2009" -DeleteContent -confirm:$false

The following is code direct from microsoft that outlines the deleting of items from a mailbox:

Get-Mailbox -Database DB1 | Export-Mailbox -SubjectKeywords "Virus message" -DeleteContent

Note that there is no argument supplied to DeleteContent
0

Featured Post

Are your AD admin tools letting you down?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article will help you understand what HashTables are and how to use them in PowerShell.
This script can help you clean up your user profile database by comparing profiles to Active Directory users in a particular OU, and removing the profiles that don't match.
In this video we show how to create a Shared Mailbox in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Recipients >> Sha…
In this video we show how to create a Contact in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Recipients >> Contact ta…

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question