Wednesday, July 27, 2011

Office 365 and Dynamic Distribution Groups

Updated Dec 8th 2011 to remove reference to LegacyExchangeDN

In Office 365 with Hybrid Deployment, if you create Dynamic Distribution Groups on the on-premises Exchange organization, these objects are not replicated to Office 365 via DirSync. Therefore for mailboxes in the Office 365 cloud they will not see the Dynamic Distribution Group in their Global Address List, and so therefore can only email the members of the list by sending an email directly to their email address.
To show the Dynamic Distribution Group in the GAL in the cloud, you need to add a MailContact to the cloud that represents the Dynamic Distribution Group. This MailContact object should have the following mappings:

On-Premises DDL Cloud MailContact
Name Name
proxyAddress ExternalEmailAddress
Alias Alias

Note that this MailContact object is made in Office 365 or Exchange Online and not in the on-premises AD. It is not replicated to the cloud via DirSync. If it exists on premises then the name for the DDL will appear twice in the on-premise GAL, once as a DDL and once as a contact object.
To determine the information need for the cloud contact object, run the following in Exchange Management Shell on premises:

Get-DynamicDistributionGroup | fl Name,EmailAddresses,LegacyExchangeDN
An alternative is to create the DDL in both the cloud and on-premises, but this can only happen if the attributes you are filtering on on-premises are replicated to the cloud via DirSync.

8 comments:

Jimmy Marchetto said...

If the dynamic distribution group is updated OnPremise, it will not be updated in the cloud, is it ?
It is not easier to schedule a script which creates/update a MailContact every day ?

Regards.

Brian Reid said...

The dynamic distribution list is not synced to the cloud, so no it will not be updated in the cloud - this is the point of this blog. You need to create a contact object that represents the dynamic distribution list in the cloud - the contact is just pointing to the email address of the dynamic distribution group, so you only need to change the contact if you change the email address of the dynamic distribution group.

Jimmy Marchetto said...

Ok :)

Thx for the answer.

Zdenek Stava said...

Hello, we have hybrid coexistence deployment and shared domain. We have same problem. try somebody create the contact on cloud-based Exchange and send email to dynamic distribution group ? Is it functional ? Coud you describe how did you create this contact ? I created external contact on web outlook administration as cloud admin, after that I see this contact in Exchange 2010 console on Cloud-based server. External SMTP address point to on-premise dynamic distr.group address but mail still cannot send from cloud to this on-premise group. I stil recieve NDR, address not found. Coud you help me please?

Brian Reid said...

@Zdenek you need to provide further info. For example, if you have a DDG on-premises with the email address ddg@domain.com, then you need to create a contact who's external mail address in the cloud is ddg@domain.com

Zdenek Stava said...

I resoved it. I create external contact on cloud-based web outlook administration. Todays it work fine. I think that was problem in Outlook cached address. I try send from OWA, it works. Thank you.

Tim Chapman said...

I have created the new mailcontact on exchange online but am struggling to set the legacyexchangedn to match the on-premise one. How do I do that?

Brian Reid said...

I have updated the post to remove the reference to LegacyExchangeDN as that cannot be changed! So therefore it was never needed - sorry for the misinformation!