Email Search Issues

Search Microsoft 365 Emails Sent to and from the Same Domain

Bushra ParveenBushra Parveen Nov 22, 2026 868 views

Question details

Find emails sent by and received by addresses at the same domain in a Microsoft 365 compliance search.

Search Microsoft 365 Emails Sent to and from the Same Domain
Product
Microsoft Purview eDiscovery
Device & OS
not provided
Scenario
The user wants to search email using a domain such as abc.com and choose between Equals any of and Contains any of.
Observed behavior
The desired results are email messages whose sender and at least one recipient match the specified domain.
Before you start

Make sure you have the appropriate Microsoft Purview eDiscovery permissions and know which mailboxes or other locations to search. Confirm the domain you want to use and whether you need messages matching both sender and recipient conditions.

Solution 1Recommended

Search for messages with the domain in both sender and recipients

Use a Purview eDiscovery query when both the sender and a recipient must match the domain.

The AND operator requires both conditions to match the same message. This differs from a search for all inbound or outbound messages involving the domain, which uses OR.

1
Open an eDiscovery search

In the Microsoft Purview portal, open eDiscovery, select or create a case, and open Searches to create a search.

2
Select locations

Choose the Exchange mailboxes or other relevant locations to include in the search.

3
Enter the query

In the search query editor, enter (kind:email) AND (from:abc.com) AND (recipients:abc.com), replacing abc.com with your domain.

4
Run and review results

Run the search and preview the results. Check sender and recipient addresses to confirm they belong to the intended domain, especially if similar domains or subdomains appear.

Search for messages with the domain in both sender and recipients
Choose the matching condition: When using a condition builder, choose Contains any of for a domain that appears within a larger email address. Equals any of requires an exact match. Search indexing can affect matches, so verify the results with known messages.
Free Microsoft Office alternative

Review Email Search Data with WPS Office

WPS Office is a free, lightweight Office alternative with a familiar interface and support for Microsoft Office formats, making it easy to move existing files into your workflow. Use WPS Spreadsheets to review exported search data; Microsoft Purview is still required to run the compliance search.

Review and filter exported email search data in WPS SpreadsheetsOpen and edit Microsoft Excel XLSX filesWork with CSV data in a familiar spreadsheet interfaceMove existing Office documents into a lightweight, easy-to-use suite
microsoft office alternative - wps office

Frequently Asked Questions

Should I use Contains any of or Equals any of for a domain?

Use Contains any of when the domain appears within a larger email address. Equals any of is for an exact value. Preview known messages to check how the condition matches your data.

Does the AND query find all email involving a domain?

No. The AND query requires both the sender and a recipient to match. To find messages matching either side, use OR between the from and recipients conditions.

Where do I run the domain search?

In the Microsoft Purview portal, open eDiscovery, select or create a case, and create a search under Searches. Select the relevant mail locations before running the query.

Why should I preview the search results?

Previewing lets you verify the actual sender and recipient addresses and check for unexpected matches, such as similarly named domains or subdomains.