How to list multiple domains in an exchange mail flow exception rule?

Rose Ingrande 0 Reputation points
2025-03-10T21:26:06.96+00:00

In Exchange I created a mail rule to prepend a disclaimer for mail outside our organization, however I want to add a list of domains as an exception. The list of domains are our clients. I want to do this so emails do not have the External mail banner if it's a client. Is it possible to specify multiple sender domains?

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,821 questions
0 comments No comments
{count} votes

3 answers

Sort by: Most helpful
  1. Amit Singh 5,221 Reputation points
    2025-03-11T05:01:54.4933333+00:00

    Yes, you can definitely set up a rule to exclude certain domains (like your clients' domains) from having the "External Mail" disclaimer. Follow this:

    1. When you edit the mail rule, there’s an option to add exceptions.
    2. In the exception section, you can specify multiple sender domains. These would be your client domains.

    Let me know if you have any query.


  2. Rose Ingrande 0 Reputation points
    2025-03-11T16:58:02.77+00:00

    The only way I was able to get the exception rule to accept multiple domains was to add each domain separately. If you know a better way, I'm all ears, but this was the only way to avoid the error.

    0 comments No comments

  3. Sharon Zhao-MSFT 25,361 Reputation points Microsoft External Staff
    2025-03-12T03:03:14.5866667+00:00

    Hi @Rose Ingrande,

    Thanks for your input.

    Using the Exchange Admin Center, we do need to add clients' domains one by one. For instance, input 'test01.domain.com' in the text box and click the '+' button. Then, proceed to input the next domain.

    User's image

    Additionally, I’ve identified an alternative approach to add clients’ domains in bulk by executing a command in the Exchange Management Shell.

    Following is an example:

    New-TransportRule -Name "AddDisclaimerToExternalDomains" -SentToScope NotInOrganization -ExceptIfRecipientDomainIs @("test01.domain.com", "test02.domain.com", "test03.domain.com") -ApplyHtmlDisclaimerText "test01" -ApplyHtmlDisclaimerLocation PrependUser's image


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

     

    Note: Please follow the steps in our documentation](https://aka.ms/msftqanotifications)"https://aka.ms/msftqanotifications)") to enable e-mail notifications if you want to receive the related email notification for this thread.


    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.