Questions

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

Tags:
+
1 Votes
Locked

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

_Mr_West_
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:
  <b>Set-Mailbox -Identity "Jane Doe" -RejectMessagesFrom "All Students"</b>
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?
  • +
    0 Votes
    _Mr_West_

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

    +
    0 Votes
    _Mr_West_

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

    +
    0 Votes
    _Mr_West_

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

    +
    0 Votes
    _Mr_West_

    <html>
    <body>

    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?<br />
    <br />
    <span style="font-weight:bold; text-decoration:underline;">2 steps</span><br />
    Add all members of the distribution group to members (as you would)
    Then add the distribution group to the Message Delivery Group (below)<br />
    <span style="font-style:italic;">Microsoft Exchange<br />
    » Recipient Configuration<br />
    » Distribution Group<br />
    » Group Properties<br />
    » Mail Flow Settings<br />
    » Message Delivery Restrictions<br />
    » Add Distribution Group</span><br />

    </body>
    </html>

    +
    0 Votes
    _Mr_West_

    <html>
    <body>

    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?<br />
    <br />
    <span style="font-weight:bold; text-decoration:underline;">2 steps</span><br />
    Add all members of the distribution group to members (as you would)
    Then add the distribution group to the Message Delivery Group (below)<br />
    <span style="font-style:italic;">Microsoft Exchange<br />
    » Recipient Configuration<br />
    » Distribution Group<br />
    » Group Properties<br />
    » Mail Flow Settings<br />
    » Message Delivery Restrictions<br />
    » Add Distribution Group</span><br />

    </body>
    </html>

  • +
    0 Votes
    _Mr_West_

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

    +
    0 Votes
    _Mr_West_

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

    +
    0 Votes
    _Mr_West_

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

    +
    0 Votes
    _Mr_West_

    <html>
    <body>

    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?<br />
    <br />
    <span style="font-weight:bold; text-decoration:underline;">2 steps</span><br />
    Add all members of the distribution group to members (as you would)
    Then add the distribution group to the Message Delivery Group (below)<br />
    <span style="font-style:italic;">Microsoft Exchange<br />
    » Recipient Configuration<br />
    » Distribution Group<br />
    » Group Properties<br />
    » Mail Flow Settings<br />
    » Message Delivery Restrictions<br />
    » Add Distribution Group</span><br />

    </body>
    </html>

    +
    0 Votes
    _Mr_West_

    <html>
    <body>

    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?<br />
    <br />
    <span style="font-weight:bold; text-decoration:underline;">2 steps</span><br />
    Add all members of the distribution group to members (as you would)
    Then add the distribution group to the Message Delivery Group (below)<br />
    <span style="font-style:italic;">Microsoft Exchange<br />
    » Recipient Configuration<br />
    » Distribution Group<br />
    » Group Properties<br />
    » Mail Flow Settings<br />
    » Message Delivery Restrictions<br />
    » Add Distribution Group</span><br />

    </body>
    </html>