• 1. London, UK
  • 2. Sydney, Australia
  • 3. New York, NY
  • 4. Melbourne, Australia
  • 5. Bellevue, WA
  • 6. Paris, France
  • 7. Moscow, Russia
  • 8. Chicago, IL
  • 9. San Francisco, CA
  • 10. Amsterdam, Netherlands

Friday, August 10, 2007

 

New Dynamic Distribution Group quirkiness

Posted by Bharat Suneja at 3:15 PM
I'd written about Devin's observation earlier that all new Distribution Groups created in Exchange Server 2007 do not receive internet/unauthenticated email by default (read previous post "New Distribution Groups do not receive internet email by default").

Here's some more often overlooked Dynamic Distribution Group (DDG, aka "Query-Based Distribution Group" in Exchange/Windows Server 2003) quirkiness. When creating a new Dynamic Distribution Group using the Exchange shell, you need to specify the required OrganizationalUnit parameter. This tells Exchange which OU or Container the new group should be created in. The RecipientContainer property is optional. It sets the scope of the AD query for the Dynamic Distribution Group - only the recipients from that OU or Container are returned (and thus get mail sent to that group).

If you do not specify the RecipientContainer parameter, the shell sets it to the same value as the OrganizationalUnit parameter. As a result, the query may not return any recipients at all, or may not return all the recipients you think it should. The documentation for New-DynamicDistributionGroup does point this out: "If you do not specify a value for RecipientContainer, the default search filter is the location of the dynamic distribution group in Active Directory. This location is specified by using the OrganizationalUnit parameter."

Scenario: If you create all groups in an OU or container called Distribution Groups, which has no users (or recipients other than the groups), the query will not return any users at all because its scope is now set to the Distribution Groups OU or container!

To get the RecipientContainer and OrganizationalUnit parameters of a Dynamic Distribution Group:

Get-DynamicDistributionGroup "MyGroupName" | select Name,RecipientContainer,OrganizationalUnit

The fact that there's no easy way to view "membership" (or rather, the recipients returned by the Dynamic Distribution Group's filter) for Dynamic Distribution Groups created using a custom filter, you can't easily verify whether the group's picking up the right recipients. You may test by sending messages to the new group and request a Delivery Report. However, since no recipients get returned by the filter, the messages disappear into a black hole, never to be heard from again, with no NDRs.

To get a list of recipients picked up by the filter, read previous post "HOW TO: View membership of a Dynamic Distribution Group".

Bottomline, and best-practice: It's a good idea to set the RecipientContainer property when creating new Dynamic Distribution Groups.

Labels: , ,

3 Comments:

August 16, 2007 4:31 PM
Blogger Wendy said...

Is there any way to make the dynamic distribution groups "bold" in the Global Address List, just as the DL's are?

 
February 27, 2008 3:35 PM
Blogger BenHanson said...

I'm trying to find out the same. Why aren't Query based DL's bold in the GAL?

 
June 3, 2008 7:26 AM
Anonymous Anonymous said...

Quirkiness is correct. We have several DDG's in our ex2007 system that have issues with Outlook2007rules that forward email to the DDG's. They work fine for weeks then the rule stops working.

 

Post a Comment

Links to this post:

Create a Link

<< Home