Data Protection Issues

Do Exchange Online DLP Policies Apply to IMAP and SMTP Email?

Anum MushtaqAnum Mushtaq Nov 22, 2026 868 views

Question details

Determine whether Exchange Online data loss prevention policies apply to email used with IMAP and SMTP.

Do Exchange Online DLP Policies Apply to IMAP and SMTP Email?
Product
Exchange Online and Microsoft Purview Data Loss Prevention
Device & OS
not provided
Scenario
A user accesses an Exchange Online mailbox through IMAP and wants to know whether email sent through SMTP is subject to DLP rules.
Observed behavior
Applicable DLP rules can inspect messages that pass through Exchange Online mail flow, regardless of the email client used.
Before you start

Confirm that the mailbox and DLP policy have the required Microsoft licensing, and identify the SMTP server used by the email client. You may need administrator access to review the policy and trace messages.

Solution 1Recommended

Check DLP Policy Scope and SMTP Message Routing

Use this approach to determine whether email from an IMAP client is covered by an Exchange Online DLP policy.

IMAP is used to access mailbox messages; it is not the sending protocol. An IMAP client typically sends through SMTP, and an applicable DLP policy can inspect that mail when it passes through Exchange Online.

Reading a message over IMAP does not itself trigger a mail-flow DLP inspection. Do not assume that every message already stored in a mailbox is automatically scanned by an Exchange email DLP rule.

1
Review the DLP policy

In the Microsoft Purview portal, open Data loss prevention > Policies. Select the policy and check that Exchange email is included as a location and that the relevant users or groups are in scope.

2
Check rules and enforcement

Open the policy's rules and review their conditions, exceptions, actions, and policy mode. A policy in test mode may report matches without enforcing the configured actions.

3
Verify the sending server

In the email client's account or server settings, check the outgoing SMTP server. If messages are sent through a third-party server and bypass Exchange Online mail flow, Exchange Online DLP will not inspect them as they are sent.

4
Test and trace a message

Send an authorized test message that matches a rule from the IMAP client. In the Exchange admin center, open Mail flow > Message trace to check its route, then review the available DLP reports or alerts in Microsoft Purview.

Check DLP Policy Scope and SMTP Message Routing
No separate IMAP DLP switch: DLP coverage depends on policy scope, rule conditions, licensing, and message routing—not on a separate IMAP setting.
Free Microsoft Office alternative

Prepare Email Attachments with WPS Office

WPS Office is a free, lightweight alternative for creating and editing Office documents with a familiar interface and compatible file formats. It can help you migrate everyday document work, but it does not configure or enforce Exchange Online DLP.

Create and edit documents and spreadsheets for email attachmentsOpen and save Microsoft Office formats including DOCX, XLSX, and PPTXUse a familiar interface for a smoother move from Microsoft OfficeWork with a free, lightweight office suite
microsoft office alternative - wps office

Frequently Asked Questions

Does retrieving email through IMAP trigger an Exchange Online DLP scan?

No. IMAP retrieval alone does not trigger a mail-flow DLP inspection. Exchange email DLP rules evaluate applicable messages as they pass through Exchange Online mail flow.

Does DLP apply when an IMAP client sends email through SMTP?

It can apply if the message passes through Exchange Online and matches an enabled policy's scope and rule conditions. Check the client's outgoing server settings and the policy in Microsoft Purview.

What happens if the SMTP server is outside Microsoft 365?

If the message bypasses Exchange Online mail flow, Exchange Online DLP will not inspect it as it is sent. Check the outgoing SMTP server and use message trace in the Exchange admin center to investigate the route.

Why didn't a matching message get blocked?

Check Data loss prevention > Policies in Microsoft Purview for the policy mode, included users, rule conditions, exceptions, and actions. A policy in test mode may report a match without blocking the message.