Forum Discussion
TaranjeetSM11
Aug 07, 2023Copper Contributor
Adding a Dynamic DL to sender restriction list on another Dynamic DL
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
- 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
2 Replies
Sort By
- 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- TaranjeetSM11Copper ContributorThanks Vasil.