Home > Exchange 2010, Microsoft Exchange, Server 2008 R2 > Exchange 2010 – Cannot edit default E-mail Address Policy

Exchange 2010 – Cannot edit default E-mail Address Policy

I wanted to try out the new version of Exchange and Server 2008 R2, so I downloaded and installed the Server 2008 R2 Enterprise Evaluation VHD (on my Hyper-V Server R2 machine), and installed Exchange 2010 RC.  Now, this problem could very well be limited to the RC, as I have not had a chance to test this on RTM, but I ran into a bit of a problem when trying to edit the default E-mail Address Policy.  I added an external domain name to the Accepted Domains and set it to Default, but when I tried to edit my Default EAP (via the Exchange Management Console) to include this new domain, I got the following:

Error:
The operation can’t be performed 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 ‘X400:c=US;a= ;p=MailOrg;o=Exchange;’,’SMTP:%f%l@v1testing.info’,’smtp:@exchtest.local’-Name ‘Default Policy’ -Identity ‘Default Policy’

I found a few posts out there on the InterWebs about this same problem, but everyone’s solution was to just create a new EAP.  My solution (after a lot of trial and error) was to copy the above command to the Exchange Management Shell and remove the -Name property.  Without this, my command ran fine, so it begs the question: If the -Name property of the set-EmailAddressPolicy cmdlet causes an error, why is it auto-generated from the Exchange Management Console?

Advertisements
  1. Dmitriy Ilyin
    March 17, 2010 at 2:28 am

    don’t work for me for Default email policy 😦

    Like

    • March 17, 2010 at 11:26 am

      I swear this worked for me before…strange. Anyway, I just went back and tried this again, and it seems to fail if I include the conditional properties, recipientcontainer propert, or name property. Try this (substituting your own EmailAddressTemplates of course):

      set-EmailAddressPolicy -EnabledEmailAddressTemplates ‘X400:c=US;a= ;p=MailOrg;o=Exchange;’,’SMTP:%f%l@v1testing.info’,’smtp:@exchtest.local’ -Identity ‘Default Policy’

      Also, what version of Exchange 2010 are you running? I have only had time to try this on the RC, but I’m curious if the problem still exists in the RTM version.

      Liked by 1 person

  2. phunkodelic
    August 5, 2010 at 9:05 am

    This worked for me on Exchange 2010. I removed all the contitional properties and the reciepntcontinaer property and the command ran correctly. The x400 junk was left over from our 2003 to 2010 migration, and has been causing random email errors and bounces. Thanks a bunch!!!!

    Like

    • August 5, 2010 at 9:09 am

      I had posted this issue in a Microsoft newsgroup and never did get a straight answer on why this simple task was overcomplicated. I still maintain that you should be able to do this from the GUI, but oh well. Glad I could help, and thanks for the feedback’ it’s nice to know that I saved someone the headache I went through…

      Like

  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: