Another useful configuration property is the ability to restrict the maximum number of recipients per e-mail message. This is useful when helping to prevent misuse of the mail system. After all, the typical
Like Exchange 2003, by default Exchange 2007 restricts the maximum number of recipients to 5,000. That will include all recipients in the To, Cc, and Bcc lines of the message as well as the total number of members of a distribution lists that are included in the address lines. So if a user addresses a message to a distribution group that has 5,001 members, the message will be returned with an non-delivery report. Figure 9.7 shows an example of the undeliverable report that was sent to a user who tried to send to a distribution
Figure 9.7:
Report of undeliverable mail issued when recipient limit is reached
In most organizations (
Get-TransportConfig FL MaxRecipientEnvelopeLimit MaxRecipientEnvelopeLimit : 5000
To change the transport limit to 250, you would type this:
{% if main.adsdop %}{% include 'adsenceinline.tpl' %}{% endif %}
Set-TransportConfig -MaxRecipientEnvelopeLimit:250
Once the global limit is set, you can override it on a mailbox-by-mailbox basis using the EMC. Locate the user's mailbox in the Recipient Configuration work center, display the properties of the mailbox, view the Mail Flow Settings property page, and double-click the Delivery Options selection to see the Delivery Options dialog box (shown in Figure 9.8). Enable the check box
Figure 9.8:
Overriding the maximum number of recipients for a single mailbox
Once this value is overridden, this mailbox will be able to send messages with more recipients than the global defaults (if the global default is smaller) or fewer than the global defaults (if the global default is larger).
If you need to do this in bulk, you can use the EMS. Like many other bulk operations that are applied to a group of objects, you need some method of finding these objects. In this example, we will assume we have a distribution group called E-Mail Entire Company. We will use the Get-DistributionGroupMember and the Set-Mailbox cmdlets to accomplish this. The following command will set all members of the E-Mail Entire Company distribution group's RecipientLimits property to 10,000.
Get-DistributionGroupMember "E-Mail Entire Company" Set-Mailbox -RecipientLimits:10000
That was pretty simple, wasn't it? Once you know just a few of the basic functions in the PowerShell and the EMS, you can start to do things that would have been very difficult in Exchange 2000/2003. You can even create a PowerShell script and schedule it to run periodically and ensure that the limit is always enforced.
Exchange 2007 introduces a new concept called managed folders. Managed folders allow the administrator to define retention policies for default folders such as Deleted Items, Inbox, and Journal as well as create custom folders for users. The users can use these folders to organize their mailboxes based on their organization's e-mail retention policies. We will cover managed folders in more details in Chapter 12, "Managing Folder Content," when we cover messaging records management. However, there is a nice feature of managed folders that is useful when establishing limits.
There is a category of managed folders called Managed Custom Folders that consists of folders that the administrator can define and have automatically created (using a managed folder mailbox policy). The managed custom folders are found in the Mailbox subcontainer of the Organization Configuration work center under the Managed Custom Folders tab. The Managed Custom Folders tab of the results pane is shown in Figure 9.9.
Figure 9.9:
The Managed Custom Folders tab of the results pane
You can define the maximum amount of storage that a folder and all of its
Let's look at an example. Suppose we want to create a folder for faxes in the Managed Folders section of a user's mailbox. We will rely on the
Figure 9.10:
Specifying a limit for a custom folder
If you are inclined to do things through the EMS, you could use the following EMS command to accomplish the same thing.
Set-ManagedFolder "Faxes" -StorageQuota:50MB