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?
- Follow via:
- RSS
- Email Alert
Question
1
Vote
In Exchange 2007 is there a way to set Message Delivery Restrictions for an AD group?
Updated - 4th Apr 2011
Answers (2)
0
Votes
I may have found the answer
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?
I think this is the way to do it. Can someone tell me if I'm looking in the right place?
Updated - 4th Apr 2011
Replies
Does not work. Gives the following error:
"All Students" is not an individual recipient object.
+CategoryInfo: Invalid Argument (All Students:RecipientIDParameter) [], RecipientTaskEception
+FullyQualifiedErrorId: 91BD8E96
"All Students" is not an individual recipient object.
+CategoryInfo: Invalid Argument (All Students:RecipientIDParameter) [], RecipientTaskEception
+FullyQualifiedErrorId: 91BD8E96
_Mr_West_
17th Apr 2011
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.
_Mr_West_
4th Jul 2011
0
Votes
How about using the EM Console instead of the EM Shell?
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
Updated - 10th Aug 2011

































