Setup Rule

Glenn Maxwell 11,496 Reputation points
2024-05-20T20:20:09.4+00:00

Hi All,

I have two domains, let's say domain1.com and domain2.com (there is no trust between the two domains). Domain1.com is my domain where my Exchange hybrid environment is hosted. Domain2.com is an external domain to domain1.com. I have applications hosted on domain2.com, and any email from domain2.com is considered external to domain1.com.

I have a distribution list (DL) named DL1@domain1.com with the following setting: Settings > Delivery Management > Allow messages from people inside and outside my organization.

I have a requirement to restrict DL1 so that, except for emails from domain1.com and domain2.com, DL1 members should not receive emails from any other domains. Please guide me on how to create the necessary transport rule.

Microsoft Exchange Online
Exchange Server
Exchange Server
A family of Microsoft client/server messaging and collaboration software.
1,337 questions
Microsoft Exchange Online Management
Microsoft Exchange Online Management
Microsoft Exchange Online: A Microsoft email and calendaring hosted service.Management: The act or process of organizing, handling, directing or controlling something.
4,578 questions
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,669 questions
Microsoft Exchange Hybrid Management
Microsoft Exchange Hybrid Management
Microsoft Exchange: Microsoft messaging and collaboration software.Hybrid Management: Organizing, handling, directing or controlling hybrid deployments.
2,136 questions
0 comments No comments
{count} votes

Accepted answer
  1. Jake Zhang-MSFT 6,615 Reputation points Microsoft Vendor
    2024-05-21T05:06:32.8+00:00

    Hello @Glenn Maxwell,

    Welcome to the Microsoft forum for technical support.

    Based on your description, it is recommended that you follow the steps below to set up this rule:

    1. Log in to the Exchange admin center.
    2. Go to Mail FlowRules.
    3. Click "+" to create a new rule.
    4. In the new rule form, create the rule as shown in the screenshot below.

    User's image

    Please feel free to contact me if you have any queries.

    Best,

    Jake Zhang

    0 comments No comments

5 additional answers

Sort by: Most helpful
  1. Rising Flight 4,596 Reputation points
    2024-05-21T07:01:56.4166667+00:00

    When i tried to create Transport Rule in onprem i am getting this error.

    SentTo predicate does not allow distribution groups. 'DL1'.

    When i try to create Transport rule in online i am getting this error.

    Error:

    Error executing cmdlet: |System.ArgumentException|SentTo predicate does not allow distribution groups. 'DL1@domain1.com'.

    Exception of type 'Microsoft.Exchange.Management.PSDirectInvoke.DirectInvokeCmdletExecutionException' was thrown.


  2. Rising Flight 4,596 Reputation points
    2024-05-21T09:07:49.0133333+00:00

    Will the transport rule work for a distribution list?

    0 comments No comments

  3. Glenn Maxwell 11,496 Reputation points
    2024-05-21T21:26:51.9333333+00:00

    how can i achieve this. Do i need to use message header.


  4. Glenn Maxwell 11,496 Reputation points
    2024-05-23T03:40:08.0166667+00:00

    I am using exchange 2016 hybrid environment. The DL is in onprem and all my users are on exchange online . i.e we create users in onprem and migrate to online. I can create the Transport rule in Exchange online but i dont see the message option in transport rule in exchange onprem. If i create the transport rule in exchange online will it be work. Below screenshot from exchange onprem.

    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.