SOLVED

Adding a Dynamic DL to sender restriction list on another Dynamic DL

Copper Contributor

Hi

 

I'm trying to add one Dynamic Distribution List to sender restriction list of another Dynamic Distribution List using the followin command:

 

Set-DynamicDistributionGroup -Identity <SourceDDLName> -AcceptMessagesOnlyFrom <DDLFQDN that needs to be added to sender restriction list on SourceDDLNAme>

 

However, getting the following error:

 

Write-ErrorMessage :
{"ClassName":"Microsoft.Exchange.Management.Tasks.RecipientTaskException","Message":"\"email address removed for privacy reasons\" isn't an individual recipient.","Data":null,"InnerException":null,"HelpURL":null,"StackTraceString":"","RemoteStackTraceString":null,"RemoteStackIndex":0,"E
xceptionMethod":"8\nThrowError\nMicrosoft.Exchange.Configuration.ObjectModel, Version=15.0.0.0, Culture=neutral,

 

 

Just curious if it is technically possible to do it or I'm missing something?

 

 

Thanks

Taranjeet Singh

 

 

2 Replies
best response confirmed by TaranjeetSM11 (Copper Contributor)
Solution
As the documentation explains, valid values for this parameter are individual senders, such as mailboxes or mail users. For groups, you can use the -AcceptMessagesOnlyFromDLMembers parameter, or the "combined" one, -AcceptMessagesOnlyFromSendersOrMembers.

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

Accepted Solutions
best response confirmed by TaranjeetSM11 (Copper Contributor)
Solution
As the documentation explains, valid values for this parameter are individual senders, such as mailboxes or mail users. For groups, you can use the -AcceptMessagesOnlyFromDLMembers parameter, or the "combined" one, -AcceptMessagesOnlyFromSendersOrMembers.

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

View solution in original post