Article ID: 328738 - Last Review: October 25, 2007 - Revision: 6.3 How the Recipient Update Service applies recipient policies
This article was previously published under Q328738 On This PageSUMMARY This article describes how the Recipient Update Service
applies recipient policies and stamps e-mail addresses in the proxyAddresses attribute on recipient objects in Active Directory. There are three ways that the Recipient Update Service searches the directory for objects to update:
MORE INFORMATIONUpdating New and Modified ObjectsThis is the default behavior that the Recipient Update Service exhibits each time it runs to search for objects to update. This is also the default behavior that the Recipient Update Service exhibits when you use Update Now if you do not select the Rebuild option and none of the policies have been modified or applied.The Recipient Update Service constantly keeps track of the latest change that has occurred on the domain controller that the Recipient Update Service is configured to run against. Based on the schedule that is set on the Recipient Update Service object, the Recipient Update Service periodically checks for objects that have been created or updated since it last checked. You can click Update Now in Exchange System Manager to make the Recipient Update Service check for changes to objects at any time. The Update Now function sets the msExchReplicateNow attribute to TRUE and causes the Recipient Update Service to temporarily ignore its schedule and immediately query for any new changes and take any appropriate action on those objects. When the Update Now process is finished, msExchReplicateNow is set back to FALSE. Updating All ObjectsTo update all objects, in Exchange System Manager you can right-click the Recipient Update Service, and then click Rebuild. When you select this option you set the msExchDoFullReplication attribute on the Recipient Update Service to TRUE. After msExchDoFullReplication is set to TRUE, the next time that the Recipient Update Service is started by the schedule or by the Update Now command, the Recipient Update Service starts at the beginning and looks at every object instead of querying only for new objects. When the Rebuild process is finished, msExchDoFullReplication is set back to FALSE.Updating Objects for a Specific PolicyYou can also modify the filter on a policy (the purportedSearch attribute) to make the Recipient Update Service take action outside its default behavior. When you modify the filter on a policy, the policy can apply to a completely different set of users than it did before. Because of this, if the filter on a policy has been modified, the Recipient Update Service will query for every user who matches both the new filter and the old filter the next time that the Recipient Update Service is started by the schedule or by the Update Now command. The Recipient Update Service runs against all users who match either filter and updates their msExchPoliciesIncluded attribute to reflect the filter that they are now subject to.However, users who are subject to a different policy will not automatically have their e-mail addresses regenerated. In order for the addresses on those users to be updated to match the policy that is now responsible for them, you must use the Apply Now command to apply that policy. If you only modify the e-mail addresses on a policy, you do not change the default behavior of the Recipient Update Service. If you have not changed the filter on the policy, the Recipient Update Service does not automatically query for all users who match that policy to update them. Additionally, even if the filter is changed and the Recipient Update Service does query for those users, it will not regenerate their e-mail addresses to match the changed addresses. However, when the e-mail addresses are modified on a policy, the user is prompted with the following message:
Do you want to update all corresponding recipient e-mail addresses to match these new address(es)?
If the user clicks Yes, the modified address on the policy is applied. Applying a PolicyYou can apply a policy in two ways:
When you apply a policy, the result is quite different from the other options that are described in this article. First, the Exchange System Manager populates the gatewayProxy attribute on the Recipient Update Service objects with each address from the applied policy. The gatewayProxy attribute on a Recipient Update Service object acts as the "to do" list". When you apply a policy, you also modify the filter on the policy (the purportedSearch attribute) by either adding a space or removing a space. This modification causes the Recipient Update Service to query for all objects that match this policy the next time that the Recipient Update Service runs instead of querying only for the new changes. After the Recipient Update Service finishes the update to the recipients, the addresses corresponding to that particular policy are removed from gatewayProxy. The "to do" list (the populated gatewayProxy attribute) forces the proxy addresses on a recipient to match the corresponding policy. The Recipient Update Service regenerates existing addresses or removes existing addresses on a recipient only when the "to do" list has been populated with those address types. When you apply a policy, the gatewayProxy attribute on your Recipient Update Service objects is populated with a list of values similar to the following list:
{667A1454-FCD1-434F-B3C6-D9B6D2B4A336}MS: These values contain the objectGUID attribute of the policy followed by the addresses on the policy.
Notice that three of the address types are in uppercase text. This means these
three are primary proxy addresses. The one address type that is in lowercase
text is a secondary proxy address.{667A1454-FCD1-434F-B3C6-D9B6D2B4A336}X400:c=us;a= ;p=Organization;o=Exchange; {667A1454-FCD1-434F-B3C6-D9B6D2B4A336}SMTP:@litwareinc.com {667A1454-FCD1-434F-B3C6-D9B6D2B4A336}smtp:@cpandl.com Also notice that there is an entry for a Microsoft Mail (MSMail) address that has no actual address following it. There are two ways to cause this type of entry to be added to the gatewayProxy attribute:
The other three gatewayProxy entries that are listed are for addresses that have the check box checked. The list contains a Simple Mail Transfer Protocol (SMTP) address and an X400 address type that are in uppercase text, and another SMTP address type in lowercase text. The uppercase address types indicate the primary addresses of that type on the policy. Any secondary addresses on the policy are displayed in lowercase text. When the gatewayProxy attribute is populated as described in this article, the primary X400 and SMTP addresses for users under this policy are regenerated if the addresses do not match the policy. The old primary addresses become secondary proxy addresses. Additionally, a secondary SMTP address that matches the one shown in gatewayProxy is added for any recipients that do not already have a secondary SMTP address that matches the one shown in gatewayProxy. This process is discussed in more detail later in this article. When you use the Apply Now command, you affect all proxy addresses on the policy. The Recipient Update Service performs a search based on the filter on the policy (the purportedSearch attribute) of all objects that are associated with this policy. When the Recipient Update Service finds all objects that must be updated by the policy, the Recipient Update Service adds or removes proxies as detailed by the "to do" list (the populated gatewayProxy attribute) either during the next scheduled update interval or when you start the Recipient Update Service with the Update Now command. Determining What Action to Take on a Specific ObjectWhen the Recipient Update Service is started by its schedule or by Update Now, the way it decides what to do on any particular object is exactly the same:
ExamplesFor example, assume there is a recipient policy that has the following addresses checked:
However, if the policy is applied and gatewayProxy is populated, the process is a little different:
SMTP:user1@litwareinc.com Only the X400 address was unchanged. The other addresses were all
changed. smtp:user1@northwindtraders.com smtp:user1@cpandl.com X400:c=us;a= ;p=Organization;o=Exchange;s=last;g=first; CCMAIL: last, first at SITE | Other Resources Other Support Sites
CommunityGet Help NowArticle Translations
|






Windows Live
Facebook
Twitter
Linkedin
Digg it
Yahoo
Delicious
StumbleUpon
Yammer
Reddit
Technorati
FriendFeed
Email
Back to the top
