Forum Discussion

AlexandrosAP's avatar
AlexandrosAP
Brass Contributor
May 30, 2023

DLP Rule for Exchange using ExceptIfRecipientDomainIs not working any more

Hello,

 

we had setup a DLP Rule for Exchange workloads that only allows sending to specific external recipients in a list we provide via populating the ExceptIfRecipientDomainIs attribute.

 

This has been working fine until a few days back, when suddenly the rule was failing to apply on end users (domain is listed in the Rule's ExceptIfRecipientDomainIs) and email gets blocked.

 

I then realized that the attribute is not populated anymore via Powershell and comes back empty!

 

(Get-DlpComplianceRule -Identity "DLPRULE").ExceptIfRecipientDomainIs

 At the same time, the Rule on the compliance.microsoft.com portal shows up properly with the domains in question.

 

 

I then noticed that those domains now only appear under the AdvancedRule attribute only.

 

(Get-DlpComplianceRule -Identity "DLPRULE") | select -expand advancedrule

 

So it seems there has been some change in DLP rules by the compliance team at Microsoft?

 

 

3 Replies

  • AlexandrosAP's avatar
    AlexandrosAP
    Brass Contributor

    I have opened a Premier support ticket with Microsoft and it is true, that this is not working anymore. 

    Waiting on the escalation team.

     

    I also posted here.

    https://github.com/MicrosoftDocs/office-docs-powershell/issues/10903
     
    https://github.com/MicrosoftDocs/office-docs-powershell/issues/10900
    • benreiter's avatar
      benreiter
      Copper Contributor

      AlexandrosAP Did you ever find a resolution to this? I am encountering the same behavior (modifying ExceptIfRecipientDomainIs via PowerShell does nothing and the existing domains in Purview are listed in AdvancedRule) and was wondering if you found a solution.

      • DavidDong's avatar
        DavidDong
        Copper Contributor

        This need to use Advanced rule,.And ExceptIfRecipientDomainIs does not work .Need use like this,

        "Operator": "Not",
                "SubConditions": [
                  {
                    "Operator": "Or",
                    "SubConditions": [
                      {
                        "ConditionName": "RecipientDomainIs",
                        "Value": [
                          "condoso.com"
                        ]

         

        Recommend use Not RecipientDomainIs

Resources