Posts

Showing posts with the label Remove spam emails from Exchange online user mailbox

Remove mails from Exchange online user mailbox

Remove the emails from Exchange online user mailbox When SPAM emails have been delivered to user mailbox, admin must remove the emails from mailboxes by determining recipients of the spam email and deleting them from recipient mailbox. Or in some instances confidential emails shared internally to the wrong user/recipient. For a precaution, I would suggest you have one shared mailbox to be created for such activities and save the deleted emails to this shared mailbox. Connect to Exchange online powershell Run a trace for emails with the below power shell command and the report will be exported into the CSV file. Get-MessageTrace -SenderAddress "sender@spam.com" -StartDate “start date in mm/dd/yyyy” -enddate “end date in mm/dd/yyyy” -Pagesize 5000 | Export-csv “output.csv" Filter the columns based on the subject and copy the recipient field to another csv file which would be the input for the future commands. Ensure the column name is s...