Setup Transport rule to distribution group

Adam L 61 Reputation points
2021-01-12T23:58:24.443+00:00

I would like to bcc all emails send to and from our domain emails into the appropriate Group email account. i.e. All emails sent or received from *@ourdomain.com that come from *@clientdomain.com will be bcc'd to the ClientDomain@ourdomain.com group email that was created in SharePoint/Teams. I have tried to set up a rule in the Exchange admin but I receive an error message about transport rules not being allowed for distribution lists....We use Microsoft Online 365

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

Accepted answer
  1. KyleXu-MSFT 26,241 Reputation points
    2021-01-13T02:40:06.447+00:00

    @Adam L

    From this article, we can know that this is an expected behavior:
    55917-qa-kyle-10-14-11.png

    So, if you want to BBC email to many users, you many need to add those mailboxes into this transport rule one by one.

    Here many be a workaround for you(Please note: this workaround only work when there doesn't exist nested group for the target group, it there exist nested group, it will fail):

    1. Create a transport rule to BCC emails to one mailbox:
      55927-qa-kyle-10-34-43.png
      55897-qa-kyle-10-33-08.png
    2. Use command below to add group member into this BCC list: Set-TransportRule BCC -BlindCopyTo (Get-DistributionGroupMember group1).name

    55878-qa-kyle-10-36-38.png

    You may need to run this command frequently to ensure that the BCC list users are up to date. If this workaround doesn't suitable for you, you may need to add mailboxes one by one so far.


    If the response 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.


4 additional answers

Sort by: Most helpful
  1. Rick Samuelson 10 Reputation points
    2023-03-03T18:35:01.4366667+00:00

    I'm a bit late to the game, but I'm adding this for the benefit of others searching for a solution.

    The method I use to reference a distribution group as a recipient is to match on the distribution group's email address in the To header.

    User's image

    In a message header condition, you can specify multiple "words," but reference only one header, so to include the CC header, you'd have to create another rule. Adding another condition to the same rule won't work. In a rule with multiple conditions, Exchange uses AND logic, so the match would have to test positive for both the To and CC headers to trigger the action.

    2 people found this answer helpful.

  2. James Kendig 216 Reputation points
    2021-07-09T23:32:48.727+00:00

    I've run into this same issue and solved it with a different approach. Since our DL's tend to change membership, updating the transport rule didn't seem like a viable option for me so I did the following:

    1. I created a shared mailbox and set the ForwardingAddress to my DL. I also set the DeliverToMailboxAndForward to $False since I don't want the email stored in the Shared Mailbox.
    2. Next I created my Transport Rule and set it to BCC my newly created Shared Mailbox.

    I don't like having extra shared mailboxes, but since they don't require a license, I just named them with "FORWARD" so I would know what they were for. I have about 5 of these accounts for special needs and it has solved my issue.

    1 person found this answer helpful.

  3. Adam L 61 Reputation points
    2021-07-12T08:11:53.653+00:00

    Thanks mate - sounds like a good solution, I'll check it out.

    0 comments No comments

  4. Marco Mengoni 0 Reputation points
    2024-07-17T13:38:23.77+00:00

    I had similar problem while attempting to put a DG as recipient into a Transport Rule on Exchange Online and the DG is synced from my on-premise environment.

    In my case having Exchange on-premise in hybrid deployment was the solution as I just created a contact on EXO with same email address as my DG and added this contact as recipient to the Transport Rule on EXO.

    0 comments No comments