unable to add remote maibox to DL

Roger Roger 6,246 Reputation points
2021-07-21T13:37:52.887+00:00

Hi Experts

i am using exchange 2016 hybrid environment. i have created account in Active Directory and using New RemoteMailbox -Shared syntax in exchange 2016 i have created remote shared mailbox. i have an onprem DL when i am trying give permission to this shared mailbox under Delivery management(Only senders inside your org can send message to this group). i am getting the below error.

The operation on identity "OnpremDL" failed because its out of the current users write scope.
The action 'Set-DistributionGroup' 'AcceptMessageOnlyFromSendersOrMembers',cant be performed on the object "OnpremDL'" because the object is being synchronized from your onpremise organization, even if i unable to give permission for this shared mailbox from exchange online.

So i have disabled the sharedmailbox in exchange onprem and deleted the AD object. I have now created new shared mailbox in exchange onprem with same name and i dont see AD object created for this account.
From Office365 EAC under migration tab-Migrate to ExchangeOnline, i dont see the newly created shared mailbox so that i can migrate it to cloud but i am able to give delivery management permission to this shared mailbox for the DL. Experts guide me

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

Accepted answer
  1. Andy David - MVP 148.1K Reputation points MVP
    2021-07-21T14:51:35.527+00:00

    If the DL is on-prem, then the permission needs needs to be added on-prem as well.
    give it the perms to send to that group on-prem using Exchagne Powershell

    Set-distributiongroup "OnPremDL -AcceptMessagesOnlyFrom @{Add="RemoteSharedMailbox"}  
    

    https://learn.microsoft.com/en-us/powershell/module/exchange/set-distributiongroup?view=exchange-ps

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Joyce Shen - MSFT 16,666 Reputation points
    2021-07-22T05:15:08.41+00:00

    Hi @Roger Roger

    Agree with the suggestion above from Andy, Distribution groups that are created in Office 365 through directory synchronization must be managed in the on-premises environment. Distribution group owners must manage the group by using on-premises tools for Exchange Server such as the following:

    • Exchange Admin Center
    • Exchange Management Console
    • Exchange Management Shell

    Like the issue introduced here: Owners of an on-premises distribution group synced to O365 can't manage the distribution group in Exchange Online

    And the command to add the shared mailbox to the delivery permission can be seen here: Use the Exchange Management Shell to place message delivery restrictions

    This example adds the user named David Pelton to the list of users whose messages will be accepted by the mailbox of Robin Wood.

    Set-Mailbox -Identity "Robin Wood" -AcceptMessagesOnlyFrom @{add="David Pelton"}  
    

    If an Answer 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.

    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.