You may still remember that the policies for receiving mail apply in priority order with priority 1 being the highest. The default mailing rule has the lowest priority value, meaning that is determined at the end. After each match, no more programs are implemented, only a single policy can be applied. For example, if the Mailbox Manager - Inbox> 100KB rule has a priority of 1 and Mailbox Manager - Inbox> 50KB has a priority of 2, any user applies the filtering rule for Mailbox Manager - Inbox> 100KB , messages larger than 50KB but less than 100KB will be unmarked in their Inbox folder. On the other hand, Mailbox Manager - Inbox> 50KB rules will not be applied to this user. Figure 2 shows our two policies in Exchange System Manager.
Figure 2: List of regulations for receiving mail.
Notice in Figure 1 that you will see that the policies are configured to transfer the marked messages to the Deleted Items folder, as well as send a message to the affected user. The last part is to configure the process schema for the mailbox manager and send a report to the administrator each time the process takes place. The configuration section is done on the Mailbox Management tab of the server object properties in Exchange System Manager as shown in Figure 3.
Figure 3: Mailbox Manager Schedule (Mailbox Manager Schedule).
There are two users in this organization, named User1 and User2. User1 is a regular user and the Inbox folder will be specified to delete messages larger than 50KB. User2 is a member of the Managers group, defined to delete messages larger than 100KB. User2 currently has 3 unread messages in Inbox, a 2MB attachment with a log file, a 95KB archive with a compressed file and finally a small 1KB message with no attachments. What happens when the next mailbox management program runs all night? User2, as a manager. Log in the next day via Outlook Web Access to see the screen look like the one below.
Figure 4: The mailbox management process is incorrect.
As you can see, a message from System Attendant tells User2 that messages larger than 50KB have been moved to the Deleted Items folder. Why is that? User2 is a member of the Managers group so it is specified that only messages larger than 100KB will be delivered. Obviously a wrong policy is being applied and below I elaborated on which method of verifying policies is really effective. As mentioned in the example above, although everything seems quite simple, the basic principle is the same. The method below uses the LDP.EXE program. You can find LDP.EXE in the Windows 2003 Support Tools, or on the Windows 2003 CD in the SupportTools folder.
Here's how to use LDP to verify which mailbox manager policy applies to a mailbox.
Figure 5: LDP after connecting and successfully connecting.
Figure 6: LDP displays the mail receiving rules.
Figure 7: objectGUID in Default Policy
Figure 8: msExchPoliciesIncluded attribute.
Of course, the question in this particular case is why the default policy is applied to the first case. The answer turned out to be simple: filtering rules for Mailbox Manager - Inbox> 100KB rules are not built to use distinguished names of Managers group, a point that is easily overlooked. In other words, to correctly apply a policy to a group, you must ensure full reference of the distinguished name of the group, such as 'Manager' as in this example. Therefore, in my example, the filter rule will notify that the user's Member Of attribute must be exactly matched with the following distinguished name:
CN = Managers, OU = Exchange Users, DC = ngh, DC = net
Figure 9 illustrates the window when using distinguished names in filtering rules.
Figure 9: Correct Mailbox Manager filter
After the change, rules can be applied and LDP is used to re-check the msExchPoliciesIncluded attribute for User2. The result is shown in Figure 10. You can see the highlighted line contains the objectGUID of the correct Mailbox Manager rule.
Figure 10: Exact match of msExchPoliciesIncluded attribute.
Summary
The specified debugging application can and will be completed by checking the applicable filtering rules. It is also useful to verify which policy Exchange is using by examining various attributes through LDP as introduced in this article.