none
How can edit the default recipient update policy in Exchange 2010?

    Question

  • How can edit the default recipient update policy in Exchange 2010

    Hi,

    I have tried to edit the default Recipient Policy in Exchange 2010 through Exchange Management Console but I cannot able to do and getting the below alerts. Is this alert saying that I should edit the Recipient Policy through Exchange Management Shell?

    Error Details:

    Summary: 2 item(s). 0 succeeded, 1 failed.
    Elapsed time: 00:00:00


    Edit Default Policy
    Failed

    Error:
    The operation cannot be completed on the default e-mail address policy.

    Exchange Management Shell command attempted:
    set-EmailAddressPolicy -ConditionalDepartment @() -ConditionalCompany @() -ConditionalStateOrProvince @() -ConditionalCustomAttribute1 @() -ConditionalCustomAttribute2 @() -ConditionalCustomAttribute3 @() -ConditionalCustomAttribute4 @() -ConditionalCustomAttribute5 @() -ConditionalCustomAttribute6 @() -ConditionalCustomAttribute7 @() -ConditionalCustomAttribute8 @() -ConditionalCustomAttribute9 @() -ConditionalCustomAttribute10 @() -ConditionalCustomAttribute11 @() -ConditionalCustomAttribute12 @() -ConditionalCustomAttribute13 @() -ConditionalCustomAttribute14 @() -ConditionalCustomAttribute15 @() -RecipientContainer $null -EnabledEmailAddressTemplates 'SMTP:%s.%g@blaze10.com' -Name 'Default Policy' -Identity 'Default Policy'

    Elapsed Time: 00:00:00


    Apply Default Policy
    Cancelled
    ------------------------------------------------------------------------------------------------------------------
    Log Name:      Application
    Source:        MSExchange Configuration Cmdlet - Management Shell
    Date:          6/10/2009 6:01:54 AM
    Event ID:      4
    Task Category: General
    Level:         Error
    Keywords:      Classic
    User:          N/A
    Computer:      W2010MBX.Blaze10.com
    Description:
    (PID 6136, Thread 45) Task Set-EmailAddressPolicy writing error when processing record of index 0. Error: System.InvalidOperationException: The operation cannot be completed on the default e-mail address policy.
    Event Xml:
    <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
      <System>
        <Provider Name="MSExchange Configuration Cmdlet - Management Shell" />
        <EventID Qualifiers="49152">4</EventID>
        <Level>2</Level>
        <Task>1</Task>
        <Keywords>0x80000000000000</Keywords>
        <TimeCreated SystemTime="2009-06-09T22:01:54.000Z" />
        <EventRecordID>1314</EventRecordID>
        <Channel>Application</Channel>
        <Computer>W2010MBX.Blaze10.com</Computer>
        <Security />
      </System>
      <EventData>
        <Data>6136</Data>
        <Data>45</Data>
        <Data>Set-EmailAddressPolicy</Data>
        <Data>0</Data>
        <Data>System.InvalidOperationException: The operation cannot be completed on the default e-mail address policy.</Data>
        <Data>{027e09dc-8766-4484-9f12-af97f5d05b43}</Data>
      </EventData>
    </Event>

    ------------------------------------------------------------------------------------------------------------

    Additional Snaps

    http://cid-31ba948d0da4d57e.skydrive.live.com/self.aspx/.Public/E-mailPolicy.png

    Thanks/Shambhu

     

     

    Tuesday, June 09, 2009 10:46 PM

Answers

  • hi,

    just look at this;

    Applies to: Exchange Server 2010 Beta

    E-mail address policies specify how e-mail addresses of the recipients included in the policy should be formatted. You can use the Edit an E-mail Address Policy wizard to modify the settings of a policy.

    Looking for other management tasks related to e-mail address policies? Check out Managing E-Mail Address Policies.

    Caution

    You cannot use the EMC to edit an e-mail address policy if the policy was created by using one of the following methods:

    • Exchange Server 2003   If this is an Exchange Server 2003 e-mail address policy, you must use Exchange System Manager in Exchange 2003 to edit this object or upgrade the object to an Exchange 2010 object. For more information, see Upgrading Custom LDAP filters to OPATH filters.
    • Exchange Management Shell   Some e-mail address policy settings that you can set in the Shell cannot be managed in the EMC. If this is an e-mail address policy that was created or edited by using the Shell, use the Shell to edit this policy.

    What Do You Want to Do?

    Use the EMC to edit an e-mail address policy

     

    To perform this procedure, you must be assigned, either directly or using a universal security group, one of the following management roles:

     

    • Organization Management

     

    While all parameters for this cmdlet are listed in this topic, you may not have access to some parameters if they are not included in the management roles assigned to you. For more information, see Permissions Information for Cmdlet Help and Procedural Topics.

     

    1. In the console tree, navigate to Organization Configuration > Hub Transport,
    2. In the result pane, on the E-mail Address Policies tab, select the policy you want to edit.
    3. In the action pane, click Edit.
    4. On the Introduction page, edit the following fields to define the recipient scope:

      • Name   Type the display name of the e-mail address policy that you are editing. The name can contain as many as 64 characters but cannot include wildcard characters.
      • Select the recipient container where you want to apply the filter   The recipient container filters the recipients that the e-mail address policy will affect based upon their location in Active Directory.
      • Users with Exchange mailboxes   Select this check box if you want your e-mail address policy to apply to users who have Exchange 2010, Exchange Server 2007, and Exchange Server 2003 mailboxes. Users with Exchange mailboxes are those that have a user domain account and a mailbox in the Exchange organization.
      • Users with external e-mail addresses   Select this check box if you want your e-mail address policy to apply to users who have external e-mail addresses. Users with external e-mail accounts have user domain accounts in the Active Directory directory service, but use e-mail accounts that are external to the organization. This enables them to be included in the global address list (GAL) and added to distribution lists.
      • Resource mailboxes   Select this check box if you want your e-mail address policy to apply to Exchange resource mailboxes. Resource mailboxes let you administer company resources through a mailbox, such as a conference room or a company vehicle.
      • Contacts with external e-mail addresses   Select this check box if you want your e-mail address policy to apply to contacts with external e-mail addresses. Mail-enabled groups resemble distribution groups where messages sent to a mail-enabled group account will go to several recipients.
      • Mail-enabled groups   Select this check box if you want your e-mail address policy to apply to security groups or distribution groups that have been mail-enabled.
    5. On the Conditions page, edit the following fields to further filter the recipients who will be affected by this e-mail address policy:

      Step 1: Select condition(s)   Use this section to set one or more conditions for your e-mail address policy. If you do not want to set any conditions for the policy, do not select any of the check boxes.

      You can select from the following conditions:

      • Recipient is in a State or Province   Select this check box if you want the e-mail address policy to only include recipients from specific states or provinces. This information is contained on the Address and Phone tab in the recipient's properties.
      • Recipient is in a Department   Select this check box if you want the e-mail address policy to include only recipients in specific departments. This information is contained on the Organization tab in the recipient's properties.
      • Recipient is in a Company   Select this check box if you want the e-mail address policy to include only recipients in specific companies. This information is contained on the Organization tab in the recipient's properties.

        Note:
        The State or Province, Department, and Company conditions are based on attributes that are applicable only to mailboxes, mail users, and mail contacts. These conditions do not apply to mail-enabled distribution groups. If you configure any of these conditions for an e-mail address policy, you will in effect be excluding all mail-enabled distribution groups.
      • Custom Attribute equals Value   There are 15 custom attributes for each recipient. There is a separate condition for each custom attribute. If you want the e-mail address policy to include only recipients that have a specific value set for a specific custom attribute, select the check box that corresponds to that custom attribute.
      Step 2: Edit the condition(s) (click an underlined value)   If you select any conditions in Step 1, each condition you select will append to the definition of the e-mail address policy. For example, if you selected the Recipient is in a State or Province check box in Step 1, you will see in the specified State or Province(s) condition in Step 2.

      For each condition, click the underlined term to create your condition. By default, the underlined term for new conditions will read specified. After you edit the condition, the underlined term will change to the value that you specified.

      If you click an underlined value for the State or Province, Department, or Company conditions, a dialog box appears in which you can specify the values for the condition. To create values for the condition, use the following buttons in the dialog box.

      • Add   Enter a value in the text box and click Add. You can add more than one value, but you cannot enter duplicate values.
      • Edit   To modify an existing value, select it from the list, and then click Edit.
      • Remove icon   To remove an existing value, select it from the list, and then click Remove icon.
      If you click an underlined value for a custom attribute condition, a dialog box appears in which you can specify the value for the condition. You can specify a single value for each custom attribute. Type the value in the text box, and then click OK.

      Important:
      The values that you enter in these dialog boxes must exactly match those that appear in the recipient's properties. For example, if you enter Washington in the Specify State or Province dialog box, but the Address and Phone tab in the recipient's properties lists the state as WA, the condition will not be met.
      Preview   Click this button to view the recipients that will be contained in the e-mail address policy, based on the conditions that you specified.
    6. On the E-Mail Addresses page, select the e-mail address type that you want to edit, and then click Edit. Depending on the type of address you select, the SMTP E-Mail Address or the Custom Address dialog box appears.
    7. On the Schedule page, complete the following fields:

      Apply the e-mail address policy   Select one of the following schedule settings to specify when the e-mail address policy should be applied:

      • Do not apply   Click this button to update the e-mail address policy without applying it to the intended recipients.
      • Immediately   Select this option to apply the e-mail address policy as soon as the e-mail address policy is edited.
      • At the following time   Select this option and use the corresponding drop-down lists to specify a time to apply the e-mail address policy.
      Cancel tasks that are still running after (hours)   Select this check box and use the corresponding text box to specify how long the e-mail address policy task will run. The default is 8 hours.
    8. On the Edit E-Mail Address Policy page, review your configuration settings. Click Edit to apply your changes to the e-mail address policy. Click Back to make any configuration changes.

      Note:
      Although the process begins when you click Edit, you may have to wait several hours for the process to complete and the e-mail address policy to be applied.
    9. On the Completion page, confirm whether the e-mail address policy was updated successfully. A status of Completed indicates that the wizard completed the task successfully. A status of Failed indicates that the task was not completed. If the task fails, review the summary for an explanation, and then click Back to make any configuration changes.
    10. Click Finish to complete the Edit E-Mail Address Policy wizard.

    Use the Shell to edit an e-mail address policy

     

    To perform this procedure, you must be assigned, either directly or using a universal security group, one of the following management roles:

     

    • Organization Management

     

    While all parameters for this cmdlet are listed in this topic, you may not have access to some parameters if they are not included in the management roles assigned to you. For more information, see Permissions Information for Cmdlet Help and Procedural Topics.

     

    This example edits the South East Offices e-mail address policy that currently includes recipients in Georgia, Alabama, and Louisiana to also include recipients in Texas.

     Copy Code
    Set-EmailAddressPolicy -Identity "South East Offices" -ConditionalStateorProvince "Georgia","Alabama","Louisiana","Texas"
    Note:
    Although the e-mail address policy is already applied to recipients in Georgia, Alabama, and Louisiana, you must include them in the parameter because the parameter overwrites values; it does not append values to existing ones.

    Reference : Exchange v14 Help

    regards,

    NOTE: if you create new E-mail address policy and then applied it to the users. later you can edit it. please try to create new one and apply it...

    Mumin CICEK | Exchange - MVP | www.cozumpark.com | www.mumincicek.com
    • Proposed as answer by Mumin CICEK Monday, June 22, 2009 8:14 AM
    • Marked as answer by Shambhu Sharma Monday, June 22, 2009 4:28 PM
    Wednesday, June 10, 2009 9:08 PM

All replies

  • hi,

    just look at this;

    Applies to: Exchange Server 2010 Beta

    E-mail address policies specify how e-mail addresses of the recipients included in the policy should be formatted. You can use the Edit an E-mail Address Policy wizard to modify the settings of a policy.

    Looking for other management tasks related to e-mail address policies? Check out Managing E-Mail Address Policies.

    Caution

    You cannot use the EMC to edit an e-mail address policy if the policy was created by using one of the following methods:

    • Exchange Server 2003   If this is an Exchange Server 2003 e-mail address policy, you must use Exchange System Manager in Exchange 2003 to edit this object or upgrade the object to an Exchange 2010 object. For more information, see Upgrading Custom LDAP filters to OPATH filters.
    • Exchange Management Shell   Some e-mail address policy settings that you can set in the Shell cannot be managed in the EMC. If this is an e-mail address policy that was created or edited by using the Shell, use the Shell to edit this policy.

    What Do You Want to Do?

    Use the EMC to edit an e-mail address policy

     

    To perform this procedure, you must be assigned, either directly or using a universal security group, one of the following management roles:

     

    • Organization Management

     

    While all parameters for this cmdlet are listed in this topic, you may not have access to some parameters if they are not included in the management roles assigned to you. For more information, see Permissions Information for Cmdlet Help and Procedural Topics.

     

    1. In the console tree, navigate to Organization Configuration > Hub Transport,
    2. In the result pane, on the E-mail Address Policies tab, select the policy you want to edit.
    3. In the action pane, click Edit.
    4. On the Introduction page, edit the following fields to define the recipient scope:

      • Name   Type the display name of the e-mail address policy that you are editing. The name can contain as many as 64 characters but cannot include wildcard characters.
      • Select the recipient container where you want to apply the filter   The recipient container filters the recipients that the e-mail address policy will affect based upon their location in Active Directory.
      • Users with Exchange mailboxes   Select this check box if you want your e-mail address policy to apply to users who have Exchange 2010, Exchange Server 2007, and Exchange Server 2003 mailboxes. Users with Exchange mailboxes are those that have a user domain account and a mailbox in the Exchange organization.
      • Users with external e-mail addresses   Select this check box if you want your e-mail address policy to apply to users who have external e-mail addresses. Users with external e-mail accounts have user domain accounts in the Active Directory directory service, but use e-mail accounts that are external to the organization. This enables them to be included in the global address list (GAL) and added to distribution lists.
      • Resource mailboxes   Select this check box if you want your e-mail address policy to apply to Exchange resource mailboxes. Resource mailboxes let you administer company resources through a mailbox, such as a conference room or a company vehicle.
      • Contacts with external e-mail addresses   Select this check box if you want your e-mail address policy to apply to contacts with external e-mail addresses. Mail-enabled groups resemble distribution groups where messages sent to a mail-enabled group account will go to several recipients.
      • Mail-enabled groups   Select this check box if you want your e-mail address policy to apply to security groups or distribution groups that have been mail-enabled.
    5. On the Conditions page, edit the following fields to further filter the recipients who will be affected by this e-mail address policy:

      Step 1: Select condition(s)   Use this section to set one or more conditions for your e-mail address policy. If you do not want to set any conditions for the policy, do not select any of the check boxes.

      You can select from the following conditions:

      • Recipient is in a State or Province   Select this check box if you want the e-mail address policy to only include recipients from specific states or provinces. This information is contained on the Address and Phone tab in the recipient's properties.
      • Recipient is in a Department   Select this check box if you want the e-mail address policy to include only recipients in specific departments. This information is contained on the Organization tab in the recipient's properties.
      • Recipient is in a Company   Select this check box if you want the e-mail address policy to include only recipients in specific companies. This information is contained on the Organization tab in the recipient's properties.

        Note:
        The State or Province, Department, and Company conditions are based on attributes that are applicable only to mailboxes, mail users, and mail contacts. These conditions do not apply to mail-enabled distribution groups. If you configure any of these conditions for an e-mail address policy, you will in effect be excluding all mail-enabled distribution groups.
      • Custom Attribute equals Value   There are 15 custom attributes for each recipient. There is a separate condition for each custom attribute. If you want the e-mail address policy to include only recipients that have a specific value set for a specific custom attribute, select the check box that corresponds to that custom attribute.
      Step 2: Edit the condition(s) (click an underlined value)   If you select any conditions in Step 1, each condition you select will append to the definition of the e-mail address policy. For example, if you selected the Recipient is in a State or Province check box in Step 1, you will see in the specified State or Province(s) condition in Step 2.

      For each condition, click the underlined term to create your condition. By default, the underlined term for new conditions will read specified. After you edit the condition, the underlined term will change to the value that you specified.

      If you click an underlined value for the State or Province, Department, or Company conditions, a dialog box appears in which you can specify the values for the condition. To create values for the condition, use the following buttons in the dialog box.

      • Add   Enter a value in the text box and click Add. You can add more than one value, but you cannot enter duplicate values.
      • Edit   To modify an existing value, select it from the list, and then click Edit.
      • Remove icon   To remove an existing value, select it from the list, and then click Remove icon.
      If you click an underlined value for a custom attribute condition, a dialog box appears in which you can specify the value for the condition. You can specify a single value for each custom attribute. Type the value in the text box, and then click OK.

      Important:
      The values that you enter in these dialog boxes must exactly match those that appear in the recipient's properties. For example, if you enter Washington in the Specify State or Province dialog box, but the Address and Phone tab in the recipient's properties lists the state as WA, the condition will not be met.
      Preview   Click this button to view the recipients that will be contained in the e-mail address policy, based on the conditions that you specified.
    6. On the E-Mail Addresses page, select the e-mail address type that you want to edit, and then click Edit. Depending on the type of address you select, the SMTP E-Mail Address or the Custom Address dialog box appears.
    7. On the Schedule page, complete the following fields:

      Apply the e-mail address policy   Select one of the following schedule settings to specify when the e-mail address policy should be applied:

      • Do not apply   Click this button to update the e-mail address policy without applying it to the intended recipients.
      • Immediately   Select this option to apply the e-mail address policy as soon as the e-mail address policy is edited.
      • At the following time   Select this option and use the corresponding drop-down lists to specify a time to apply the e-mail address policy.
      Cancel tasks that are still running after (hours)   Select this check box and use the corresponding text box to specify how long the e-mail address policy task will run. The default is 8 hours.
    8. On the Edit E-Mail Address Policy page, review your configuration settings. Click Edit to apply your changes to the e-mail address policy. Click Back to make any configuration changes.

      Note:
      Although the process begins when you click Edit, you may have to wait several hours for the process to complete and the e-mail address policy to be applied.
    9. On the Completion page, confirm whether the e-mail address policy was updated successfully. A status of Completed indicates that the wizard completed the task successfully. A status of Failed indicates that the task was not completed. If the task fails, review the summary for an explanation, and then click Back to make any configuration changes.
    10. Click Finish to complete the Edit E-Mail Address Policy wizard.

    Use the Shell to edit an e-mail address policy

     

    To perform this procedure, you must be assigned, either directly or using a universal security group, one of the following management roles:

     

    • Organization Management

     

    While all parameters for this cmdlet are listed in this topic, you may not have access to some parameters if they are not included in the management roles assigned to you. For more information, see Permissions Information for Cmdlet Help and Procedural Topics.

     

    This example edits the South East Offices e-mail address policy that currently includes recipients in Georgia, Alabama, and Louisiana to also include recipients in Texas.

     Copy Code
    Set-EmailAddressPolicy -Identity "South East Offices" -ConditionalStateorProvince "Georgia","Alabama","Louisiana","Texas"
    Note:
    Although the e-mail address policy is already applied to recipients in Georgia, Alabama, and Louisiana, you must include them in the parameter because the parameter overwrites values; it does not append values to existing ones.

    Reference : Exchange v14 Help

    regards,

    NOTE: if you create new E-mail address policy and then applied it to the users. later you can edit it. please try to create new one and apply it...

    Mumin CICEK | Exchange - MVP | www.cozumpark.com | www.mumincicek.com
    • Proposed as answer by Mumin CICEK Monday, June 22, 2009 8:14 AM
    • Marked as answer by Shambhu Sharma Monday, June 22, 2009 4:28 PM
    Wednesday, June 10, 2009 9:08 PM
  • Awesome! I edited my default e-mail address policy through cmdlets. Your reply is really helpful.

    Thanks to you Mumin CICEK.

    Best Regards/Shambhu

    Monday, June 22, 2009 6:50 AM
  • I'm having this same issue. I can't edit my default policy now upgraded to 2010. The default policy is missing an X400 address template thats needed for our remaining Exchange 2003 users. I need to add the X400 template back into the Default Policy.

     

    I get the same message above if I edit the policy thru the EMC or the EMS. 

     help!!

     

    thanks,

    Stephen

    Tuesday, April 06, 2010 4:51 PM
  • I was able to resolve this issue using ADSI edit.

    I thought I'd share the issue to help others:

    Somehow the X400 address was deleted from the Default Recipient Policy and after one of our E2003 servers rebooted the Information Store on that server would not start.

     

    http://www.experts-exchange.com/Software/Server_Software/Email_Servers/Exchange/Q_23898583.html

     

    It is similar to this person's issue and using the suggested solution of adding it back in thru ADSI edit. 

    Using ADSI Edit I copied the X400 address from an employee with a long history with the company mail system, to the Configuration container, CN=Services > CN=Microsoft Exchange > CN="mail domain name" > CN=Recipient Policies. Right click CN=Default Policy, choose Properties >gatewayProxy. I rebooted the Exchange 2003 server and the store and dependants started, Just waiting to see if the 2007 store will stop this time.

     

    I'm not sure how the X400 address got removed though...

    thanks,

    Stephen

    Tuesday, April 06, 2010 8:56 PM