Forum Discussion

M. Sheeraz Ansari.'s avatar
May 15, 2020
Solved

Dynamic Distribution Group issue in Hybrid Exchange Setup

Dear Folks,
 
For a customer, i have setup Hybrid Exchange based on 2013 CU 23 environment and many users have been migrated to Exchange Online. Now, I am facing an issue regarding Dynamic Distribution Group(DDG).  Well, my scenario is that my migrated users of Office 365 can't send email to Dynamic Distribution Group (DDG). These DDG are in On-Premises Exchange.
 
I have created a contact in Office 365 so that users' can select On-Premises Dynamic Distribution Group and then email can be routed to On-Premises DDG as suggested on this

 https://www.itpromentor.com/dynamic-groups-hybrid/

 
As soon as any user from EXO send email to DDG group by selecting contact from address book - Exchange Online (EXO) users get this error:
 
"Your message to DDG1@abc.com could not be delivered.
DDG1 wasn't found at abc.com"
 
Please suggest, how it can be solved. Thanks.
  • PeterRising 

     

    We finally able to solve this issue while working with Office 365 Support. It has taken a long time due to ping pong between on premises and Exchange Online teams. Anyway, after digging a while - solution turned out be an attribute issue, which solved our problem.

     

    1. we re-run the Hybrid configuration wizard then following command was run on affected Dynamic Distribution Group.

     

    Set-DynamicDistributionGroup DDG1@abc.com -RequireSenderAuthenticationEnabled $false

     

    Hopefully, it may help someone out there. Thanks.

19 Replies

  • Ashkb's avatar
    Ashkb
    Brass Contributor

    Thank you for all 3 previous replies.

    First I would request you to check if the https://support.microsoft.com/en-gb/help/3061396/members-of-a-dynamic-distribution-group-in-an-exchange-hybrid-deployme already shared if the filtering properties are working properly.

     

    Also, run following commands on EMS

    $FTE = Get-DynamicDistributionGroup "Full Time Employees"
    Get-Recipient -RecipientPreviewFilter $FTE.RecipientFilter -OrganizationalUnit $FTE.RecipientContainer

    to check if it returns the results as expected. 

    • Ashkb and PeterRising 

       

      Thanks for your replies guys. Well, when i am running below command as per the article.

       

      Set-DynamicDistributionGroup -Identity DDG1@abc.com -IncludedRecipients "MailboxUsers,MailContacts" -RecipientFilter {((RecipientType -eq 'UserMailbox' -or 'MailUser' -or 'MailContact'))}

       

      I am getting this error:

       

      "Cannot bind parameter 'RecipientFilter' to the target. Exception setting "RecipientFilter": "Invalid filter syntax.
      For a description of the filter parameter syntax see the command help.
      "((RecipientType -eq 'UserMailbox' -or 'MailUser' -or 'MailContact'))" at position 39."
      + CategoryInfo : WriteError: (:) [Set-DynamicDistributionGroup], ParameterBindingException
      + FullyQualifiedErrorId : ParameterBindingFailed,Microsoft.Exchange.Management.RecipientTasks.SetDynamicDistributi
      onGroup"

       

      Please suggest the correct Syntax of command. Thanks.

      • PeterRising's avatar
        PeterRising
        MVP

        M. Sheeraz Ansari. 

         

        Try this command instead,

         

        Set-DynamicDistributionGroup -Identity DDG1@abc.com -RecipientFilter {(RecipientType -eq 'UserMailbox') -or (RecipientType -eq 'MailUser') -or (RecipientType -eq 'MailContact')}

         

Resources