The short version
Send a test message per scenario and read the result in message trace, the DLP log and an external mailbox you own. Cover four families: attachments, encryption, forwarding to personal addresses, forgotten paths.
Treat every email DLP exception as a rule nobody has tested. Exceptions go in under pressure, for a person or a deadline, and are seldom reviewed once that person or deadline has moved on.
An email DLP test does with synthetic data what a departing salesperson does with the customer file for their territory: zips it “so it gets through” and sends it to a personal Gmail. You send synthetic IBANs or customer files from a real workstation and mailbox, then check what the gateway did with them: blocked, quarantined, encrypted, alerted, or nothing.
This article covers outbound email only, with mostly Exchange Online examples; where Google Workspace differs, we say so. For every other channel, see our page on data exfiltration testing.
How email DLP rules wear down over time
A partner domain allow-listed in March, a relay connector for the ERP in June, an Exchange transport rule added late one evening to unblock an executive: each change had a reason, and none of them raised an alert. Mail that leaves uninspected creates no DLP incident, only an ordinary line in message trace, which is how DLP false negatives hide.
Two causes come up far more often than the rest. The first is rule order and routing: a mail flow rule higher in the list with “Stop processing more rules” switches off the rules below it, and a rule that forces a specific outbound connector can route mail round your third-party gateway. Message trace detail shows which transport rules fired. The second is exceptions by sender or group, granted to senior management, service accounts or shared mailboxes.
The four families of tests to cover
1. Message body and attachments
Every team runs this one first, and often stops there. A synthetic IBAN in a Word document exercises only the simplest detection, so change the container, one variable at a time:
- the same synthetic IBAN in the body, then in a .docx file, then in a PDF or a PowerPoint;
- a PDF from a scan (an image with no text layer); in Purview, OCR is a separate pay-as-you-go setting switched on per location, Exchange included;
- a ZIP, then a ZIP tucked inside a 7z archive, two or three levels deep (MITRE ATT&CK technique T1560);
- a large file, just under and then just over the scan limit your vendor documents; in Exchange Online, the AttachmentProcessingLimitExceeded rule condition catches what goes unscanned;
- an Excel workbook with the sensitive data in a hidden sheet.
Letting an unreadable file through can be a legitimate choice, as long as it is in the policy with a named approver.
2. Encryption
“Encryption” means two different things here.
First, encryption as a DLP action: the rule spots sensitive data and encrypts the message instead of blocking it (in Microsoft 365, with Purview Message Encryption for example). From an external mailbox, check that the recipient gets a protected message and not the plain text under a banner.
Second, encryption that prevents inspection. A password-protected workbook, an AES-encrypted ZIP, an S/MIME message: your gateway cannot read them. Block, quarantine or release with an alert to the SOC: any of the three can be right, but the policy has to name one, or the gateway’s default decides for you.
3. Forwarding to personal addresses
The most mundane insider threat scenario runs over four paths, each governed by different settings. Test them separately:
- manually sending an attachment to Gmail, Yahoo Mail, Outlook.com or Proton Mail;
- forwarding a received message, with its original attachment;
- an automatic forwarding rule created by the user in their mailbox (T1114.003 in MITRE ATT&CK);
- a server-side redirect configured for a shared mailbox.
In Exchange Online, external automatic forwarding depends on AutoForwardingMode in the outbound anti-spam policy (Get-HostedOutboundSpamFilterPolicy shows it) and on AutoForwardEnabled for remote domains; an admin redirect in a mail flow rule is a separate path that needs its own test. In Google Workspace, the switch is under Gmail, End User Access, Automatic forwarding.
4. Forgotten exit paths
Part of your outbound email never goes through Outlook: the ERP that sends its exports through an SMTP relay, the multifunction printer that “scans to email”, the CRM that writes to customers on your behalf. A flow that bypasses the DLP can be legitimate if it sits in the exception register with a compensating control, such as a fixed recipient list on the relay.
This method only sees mail that crosses your tenant or gateway: a file attached in personal webmail leaves over HTTPS and never meets your email DLP.
Email DLP test matrix: expected versus observed
Fill in the observed column for each scenario; every gap becomes a fix.
| Scenario | Expected result | Where to check |
|---|---|---|
| Synthetic IBAN in the body, external recipient | Block with notification to the sender | Message trace, DLP log |
| Same data in a nested archive | Block or quarantine | DLP log, quarantine queue |
| Password-protected document | Behaviour defined by the policy | DLP log, SOC alert |
| Sending to a personal mailbox | Block or justification required | DLP log, incident report |
| External automatic forwarding rule | Refused by the platform | Unified audit log for the rule’s creation; NDR 5.7.520 or message trace for the refusal |
| Sending from an exempted account (senior management) | As per the documented exception | Exception register, DLP log |
| Application export through SMTP relay | Inspection or compensating control | Relay logs |
In Microsoft 365, “where to check” means message trace (Get-MessageTraceV2) for whether the message left, Purview Activity explorer filtered on DLP rule matched for which rule fired, DLP alerts in Defender XDR, and the unified audit log (New-InboxRule, Set-InboxRule, Set-Mailbox) for who set up forwarding; the refusal itself shows as NDR 5.7.520 or in message trace. In Google Workspace, start with Email Log Search.
Close a test only once an analyst has seen the event land in your SIEM, and write the send time and the alert time side by side in the matrix.
From outbox to SOC
Email DLP test example: the exception that grew
Illustrative example, made-up figures. A retail group has just tightened its email DLP. Each send is read as attempted (left the client), transmitted (left the tenant, per message trace) and collected (reached the external test mailbox), then checked against the DLP log. A spreadsheet of 200 synthetic IBANs, unzipped, from a standard account: attempted, not transmitted, incident logged. The same file from an executive assistant in the group exempted for the external accountant: attempted, transmitted, collected, nothing logged. Take the assistant out of the group and run the send again: attempted, not transmitted, incident logged. The exception is the cause.
That exception, approved in January 2024 for three people, now covers 14, and nobody had linked it to mail leaving the company.
Email DLP testing without real business data
Use decoys in the exact format of your data: the FAQ gives the checks, our article on synthetic data in production the approach. Agree a subject-line marker with the SOC so test incidents stay in the alert chain but are easy to tag. Send as a standard user, an exempted account and a shared mailbox, each time to an external mailbox you own.
Rerun after every policy update, new connector or migration, and otherwise each quarter, owned by the DLP policy owner. The exempted accounts deserve a monthly run: the drift in the example came from there.
If your email runs on Microsoft 365, the method applies directly to the policies described in our guide to validating Microsoft Purview™ DLP.
Next step
Past the mail gateway: the HTTPS and Drive routes
Enforcis 1.0 does not test outbound email, but a salesperson stopped at the gateway can still upload the file over HTTPS or to Google Drive, two of the eight channels in our 30-minute demo, which runs on pre-built results with nothing to install and no access to your environment. A POC is quick and usually free: one standard scenario with synthetic data, from a representative machine on your network, through your real egress controls. A paid pilot then covers a limited part of your production.
FAQ
How do you check that automatic forwarding to external addresses is really blocked?
By trying it. From a test mailbox, create an automatic forwarding rule to a Gmail or Outlook.com address you own, then send it a message loaded with synthetic IBANs. Expected result: the forwarded copy never arrives and the sender gets a non-delivery report (5.7.520 in Exchange Online).
What synthetic data should you use for email?
Decoys in the exact format of your sensitive data: IBANs with a valid modulo 97 key, card numbers that pass the Luhn check, UK National Insurance numbers with a prefix HMRC allocates (never GB, NK or TN) and an A to D suffix, US Social Security numbers outside the never-issued ranges (area 000, 666 or 900 to 999). A decoy your detection pattern rejects proves nothing, and you end up chasing a gap that does not exist.
Should you block all sending to personal mailboxes?
Not necessarily. Blocking only when classified data is detected, or asking the sender for a justification, are common settings; whichever you pick gets its own row in the matrix.
What should you do with encrypted content the DLP cannot read?
Target it with an explicit rule, then test that rule with a password-protected ZIP. In Exchange Online, mail flow rules have a condition for this: AttachmentIsPasswordProtected.

