Question Locked

In Exchange 2007 is there a way to set Message Delivery Restrictions for an AD group?

0 helpful
5 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I am running Exchange 2007 in a school. We don't allow for students to send emails to each other or they use it as a messaging system and share homework and the school can pretty much become plagiarism central. So the way we deal with this to to make use of the Message Delivery Restrictions feature.

I know we can use the EMS cmdlet:
  Set-Mailbox -Identity "Jane Doe" -RejectMessagesFrom "All Students"
but this is only for the single user Jane Doe.

Is ther a way to set the rule for all the members of an AD group?

5 replies

by _mr_west_

Get-DistributionGroupMember "All Students" | Set-Mailbox -RejectMessagesFrom "All Students"
I think this is the way to do it. Can someone tell me if I'm looking in the right place?

by _mr_west_

Does not work. Gives the following error:
  "All Students" is not an individual recipient object.
  +CategoryInfo: Invalid Argument (All Students:RecipientIDParameter) [], RecipientTaskEception
  +FullyQualifiedErrorId: 91BD8E96

by _mr_west_

The piece that is going wrong is the fact I am trying to set the RejectMessagesFrom to a security group instead of a user mailbox.

by _mr_west_

Instead of setting it so all the members are not able to send to the distribution group, how about setting it so the distribution group blocks it from all the members?

2 steps
Add all members of the distribution group to members (as you would)
Then add the distribution group to the Message Delivery Group (below)
Microsoft Exchange
» Recipient Configuration
» Distribution Group
» Group Properties
» Mail Flow Settings
» Message Delivery Restrictions
» Add Distribution Group

This discussion is closed to new replies.