Hi @Aarushi Rajput
Welcome to Microsoft Q&A platform and thanks for posting your query here.
It seems like you're looking for a way to apply a retention policy to delete emails from a specific sender for all users in your organization. I'll do my best to help you out.
Based on the information you provided, it seems you've explored using a mail flow rule to add a custom header to incoming emails from the sender, and then applying a retention label with a 3-month deletion policy using this header. However, you're unsure how to handle existing emails that do not have this custom header.
Is there a way to enforce the retention policy retroactively to delete all messages from the SMTP sender across the organization without relying solely on the custom header?
Unfortunately, there is no way to enforce the retention policy retroactively to delete all messages from the SMTP sender across the organization without relying solely on the custom header. The retention policy is applied based on the retention label, which is applied to the email based on the custom header. Without the custom header, the retention label cannot be applied, and the retention policy cannot be enforced.
Alternatively, is there a recommended method to tag older emails from this sender so the 3-month retention policy will apply?
One approach you can take is to use a Content Search in the Compliance Center to search for all emails from the specific sender, and then apply a retention label with a 3-month deletion policy to the search results. This will tag the older emails from the sender so that the retention policy will apply.
To do this, follow these steps:
- In the Microsoft 365 Compliance Center, go to Content search.
- Create a new search and specify the search criteria to find all emails from the specific sender.
- Preview the search results to ensure that the correct emails are being returned.
- Apply a retention label with a 3-month deletion policy to the search results.
- Wait for the retention label to be applied to the search results.
- Monitor the retention label to ensure that it is being applied correctly.
If there is another approach or tool within Microsoft 365 that can better meet these needs, please advise.
Unfortunately, there is no other approach or tool within Microsoft 365 that can better meet these needs. The Content Search and Purge in the Compliance Center is the recommended tool for bulk deletion across all mailboxes.
Appreciate if you could share the feedback on our feedback channel. Which would be open for the user community to upvote & comment on. This allows our product teams to effectively prioritize your request against our existing feature backlog and gives insight into the potential impact of implementing the suggested feature.
I hope this helps! Let me know if you have any further questions.