[Migrated from MSDN Exchange Dev] stumped on mail flow rule to emilinate duplicate disclaimers

Joyce Shen - MSFT 16,646 Reputation points
2020-12-21T06:28:34.25+00:00

[Note] This thread was originally posted on MSDN. As the MSDN Exchange Dev forum mainly focuses on developing issues and the TechNet Exchange forums for general questions have been locked down, we manually migrated this one to Microsoft Q&A platform to continue the troubleshooting.

[MSDN thread link] stumped on mail flow rule to emilinate duplicate disclaimers

I'm trying to set up a mail flow rule on exchange admin center. We use office 365.

I have added the confidentiality disclaimer, but I am trying to eliminate duplicate disclaimers from stacking up. It don't want to add the exception "exceptif subject contains RE: or FW:"

I want the disclaimer applied if it is not already there. To do this, I have added a header "X-Disclaimer" and set the value to "Yes". then added the exception "exceptif header X-Disclaimer matches the text pattern 'Yes'" I can confirm that the header is being applied, but it is still duplicating the disclaimer. Any help would be appreciated.

Do the following...

Set audit severity level to 'Do not audit' and Append the message with the disclaimer '…'.

If the disclaimer can't be applied, take no action.

and set message header 'X-Disclaimer' with the value 'Yes'

Except if...

'X-Disclaimer' header matches the following patterns: 'Yes'

Rule comments

Rule mode

Enforce

Additional properties

Sender address matches: Header or envelope

Version: 15.0.1.0

Exchange Server Management
Exchange Server Management
Exchange Server: A family of Microsoft client/server messaging and collaboration software.Management: The act or process of organizing, handling, directing or controlling something.
7,369 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Joyce Shen - MSFT 16,646 Reputation points
    2020-12-21T06:39:45.09+00:00

    Hi,

    I have tried in my environment, you could try using the below configuration to make your rule above work:

    Except if...
    'X-Disclaimer' header contains ''Yes''

    49845-qa-2020-12-21-14-38-21.png


    If an Answer is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.
     

    0 comments No comments