Delivery Restrictions is a feature of Exchange Server which has been around since Exchange 2000 and allows companies to easily limit who can send to a distribution list or mailbox. A very common use of Delivery Restrictions is to limit who can send to the "All Users" or "All Staff" distribution group.
In previous releases of Exchange such as 2010, 2007 and even 2003 - delivery restrictions were very easy to configure via the Graphic User Interface (GUI).
In later revisions of Exchange, Delivery Restrictions have been left out of the GUI and now must be configured by PowerShell.
This can be easily configured by using the "AcceptMessageOnlyFrom" attribute on DistributionGroups and Mailboxes for which you want to configure Delivery Restrictions. The "AcceptMessagesOnlyFromDLMembers" is when you want to limit the group/mailbox to a Group of users who are allowed to send.
To set this, simple:
Set-DistributionGroup "Avantgarde Users" -AcceptMessageOnlyFrom "Clint Boessen"
However what if you want to configure multiple users or groups who need delivery restrictions on a mailbox or distribution group? The -AcceptMessageOnlyFrom attribute does not allow you to comma separate values.
This is where it becomes more complicated...
Here is the syntax to add multiple groups or users to Delivery Restrictions in PowerShell:
In previous releases of Exchange such as 2010, 2007 and even 2003 - delivery restrictions were very easy to configure via the Graphic User Interface (GUI).
In later revisions of Exchange, Delivery Restrictions have been left out of the GUI and now must be configured by PowerShell.
This can be easily configured by using the "AcceptMessageOnlyFrom" attribute on DistributionGroups and Mailboxes for which you want to configure Delivery Restrictions. The "AcceptMessagesOnlyFromDLMembers" is when you want to limit the group/mailbox to a Group of users who are allowed to send.
To set this, simple:
Set-DistributionGroup "Avantgarde Users" -AcceptMessageOnlyFrom "Clint Boessen"
However what if you want to configure multiple users or groups who need delivery restrictions on a mailbox or distribution group? The -AcceptMessageOnlyFrom attribute does not allow you to comma separate values.
This is where it becomes more complicated...
Here is the syntax to add multiple groups or users to Delivery Restrictions in PowerShell:
Set-DistributionGroup -Identity "All Staff" -AcceptMessagesOnlyFromDLMembers "All Managers"
Set-DistributionGroup "All Staff" -AcceptMessagesOnlyFromDLMembers((Get-DistributionGroup "All Staff").AcceptMessagesOnlyFromDLMembers + "Executive Assistant")
Set-DistributionGroup "All Staff" -AcceptMessagesOnlyFromDLMembers((Get-DistributionGroup "All Staff").AcceptMessagesOnlyFromDLMembers + "Executive Group")
ConversionConversion EmoticonEmoticon