SOLVED

Block sending emails containing attached sensitive documents

%3CLINGO-SUB%20id%3D%22lingo-sub-1622646%22%20slang%3D%22en-US%22%3ERe%3A%20Block%20sending%20emails%20containing%20attached%20sensitive%20documents%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1622646%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F712130%22%20target%3D%22_blank%22%3E%40gencv%3C%2FA%3E%26nbsp%3BYes%2C%20see%20this%20article%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Foffice365itpros.com%2F2019%2F12%2F16%2Fblocking-outbound-messages-stamped-office-365-sensitivity-label%2F%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Foffice365itpros.com%2F2019%2F12%2F16%2Fblocking-outbound-messages-stamped-office-365-sensitivity-label%2F%3C%2FA%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1622752%22%20slang%3D%22en-US%22%3ERe%3A%20Block%20sending%20emails%20containing%20attached%20sensitive%20documents%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1622752%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F551905%22%20target%3D%22_blank%22%3E%40bec064%3C%2FA%3E%26nbsp%3Bthank%20you%20for%20the%20feedback.%20Actually%20the%26nbsp%3Blink%20describes%20the%20way%20how%20to%20block%20a%20labeled%20email%2C%20but%20not%20a%20labeled%20attachment.%3CBR%20%2F%3EI%20need%20a%20mail%20flow%20rule%20that%20can%20be%20created%20based%20on%20the%20attachment%20label.%3C%2FP%3E%3CP%3EUse%20case%3A%20I%20label%20an%20email%20as%20General%20and%20attach%20on%20it%20a%20document%20labeled%20as%20Secret.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI'm%20trying%20via%20mail%20flow%20rule%3A%3C%2FP%3E%3CP%3E1.%20Apply%20this%20rule%20if%3A%20the%20recipient%20is%20outside%20the%20organization%3C%2FP%3E%3CP%3Eand%3C%2FP%3E%3CP%3E2.%20Any%20attachment%3A%20has%20these%20properties%2C%20including%20any%20of%20these%20words%3C%2FP%3E%3CP%3EProperty%3A%20Confidentiality%20--%26gt%3B%20Value%3A%20Secret%3C%2FP%3E%3CP%3E3.%20Reject%20the%20message%20with%20the%20explanation%3A%20Secret%20document%20cannot%20be%20sent%20outside%20the%20company%3C%2FP%3E%3CP%3E...but%20so%20far%20it%20doesn't%20work.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1622821%22%20slang%3D%22en-US%22%3ERe%3A%20Block%20sending%20emails%20containing%20attached%20sensitive%20documents%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1622821%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F712130%22%20target%3D%22_blank%22%3E%40gencv%3C%2FA%3E%26nbsp%3BHello%2C%20you%20can%20configure%20it%20for%20attachments%20as%20well.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CEM%3E%22If%20found%2C%20we%20know%20that%20this%20message%20%3CSTRONG%3E(or%20one%20of%20its%20attachments)%3C%2FSTRONG%3E%20is%20protected%20with%20the%20label%2C%20so%20the%20rule%20can%20go%20ahead%20and%20block%20the%20message.%22%3C%2FEM%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3ELook%20at%20this%20example%20for%20guidance%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Finformation-protection%2Fconfigure-exo-rules%23example-2-rule-that-applies-the-encrypt-only-option-to-emails-when-they-have-attachments-that-are-labeled-confidential--partners-and-these-emails-are-sent-outside-the-organization%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Finformation-protection%2Fconfigure-exo-rules%23example-2-rule-that-applies-the-encrypt-only-option-to-emails-when-they-have-attachments-that-are-labeled-confidential--partners-and-these-emails-are-sent-outside-the-organization%3C%2FA%3E%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1622890%22%20slang%3D%22en-US%22%3ERe%3A%20Block%20sending%20emails%20containing%20attached%20sensitive%20documents%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1622890%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F551905%22%20target%3D%22_blank%22%3E%40bec064%3C%2FA%3E%26nbsp%3Bthank%20you!%3C%2FP%3E%3CP%3EThe%20way%20of%20defining%20the%20attachment%20property%20and%20value%20solved%20my%20problem.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThank%20you%20again!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1622623%22%20slang%3D%22en-US%22%3EBlock%20sending%20emails%20containing%20attached%20sensitive%20documents%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1622623%22%20slang%3D%22en-US%22%3E%3CP%3EHi%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIs%20it%20possible%20to%20create%20an%20EXO%20mail%20flow%20rule%20to%20block%20sending%20to%20externals%2C%20emails%20that%20contain%20attached%20labeled%20documents%3F%3C%2FP%3E%3CP%3EDocuments%20are%20labeled%20via%20sensitivity%20labels%20(i.e.%20strictly%20confidential).%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%2C%3C%2FP%3E%3CP%3EGenc%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1622623%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EInformation%20Protection%20%26amp%3B%20Governance%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EMicrosoft%20Information%20Protection%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Occasional Contributor

Hi,

 

Is it possible to create an EXO mail flow rule to block sending to externals, emails that contain attached labeled documents?

Documents are labeled via sensitivity labels (i.e. strictly confidential). 

 

Thanks,

Genc

5 Replies

@ChristianBergstrom thank you for the feedback. Actually the link describes the way how to block a labeled email, but not a labeled attachment.
I need a mail flow rule that can be created based on the attachment label.

Use case: I label an email as General and attach on it a document labeled as Secret.

 

I'm trying via mail flow rule:

1. Apply this rule if: the recipient is outside the organization

and

2. Any attachment: has these properties, including any of these words

Property: Confidentiality --> Value: Secret

3. Reject the message with the explanation: Secret document cannot be sent outside the company

...but so far it doesn't work.

 

best response confirmed by gencv (Occasional Contributor)
Solution

@gencv Hello, you can configure it for attachments as well.

 

"If found, we know that this message (or one of its attachments) is protected with the label, so the rule can go ahead and block the message."

 

Look at this example for guidance https://docs.microsoft.com/en-us/azure/information-protection/configure-exo-rules#example-2-rule-tha...

@ChristianBergstrom thank you!

The way of defining the attachment property and value solved my problem.

 

Thank you again!

You can use powershell to get blocked with a pop up notificiation when sensitive label is Highly Confidential for example :

Set-ExecutionPolicy RemoteSigned
$UserCredential = Get-Credential

$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://ps.compliance.protection.outlook.com/powershell-liveid/ -Credential $UserCredential -Authentication Basic -AllowRedirection
Import-PSSession $Session -DisableNameChecking

(Get-LabelPolicy -Identity "Highly Confidential").settings
# you can get the GUID of your Label
Get-Label | Format-Table -Property DisplayName,Name, Guid -AutoSize
# add your domain here or any other trusted domain that you went to allow
Set-LabelPolicy -Identity "Highly Confidential" -AdvancedSettings @{OutlookBlockTrustedDomains="onmicrosoft.com"}
#use the guid of you label in this command
Set-LabelPolicy -Identity "Highly Confidential" -AdvancedSettings @{OutlookBlockUntrustedCollaborationLabel="GUID of Your Label"}