Exchange 2013 - remove default address policy

We are setting up Exchange 2013 as a multi-tenant and followed various documents and this works a treat with 1 exception - the default address policy is also applied.

We have address book policies for companya, companyb etc..  so the emails are bob@companya etc...
but the top level domain is:

When it creates the account, it finds the correct address book policy and applies but it also applies the default one .. so the user is bob@companya AND

We want to still have the default ones as we have users in  ... but tenants do not need this address
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Todd NelsonSystems EngineerCommented:
Will you please clarify your question.
Member_2_7970364Author Commented:

So we have 4 address policies (and a default one)

When I create a user via powershell we say we want to use Address Policy 2  .. and it does it  (which adds to the users account

BUT it also adds what is in the default policy

So when we create the user in powershell and put -AddressBookPolicy 'Policy2' we only want the user to have this policy and not the default one
Todd NelsonSystems EngineerCommented:
"The first email address policy that identifies a recipient configures the recipient's email addresses. All other policies are ignored, even if the first policy is unapplied and can't configure the recipient's email addresses."

You mean to say this isn't happening?
OWASP: Threats Fundamentals

Learn the top ten threats that are present in modern web-application development and how to protect your business from them.

Member_2_7970364Author Commented:
Thats correct ... in our policy list it shows

Policy1 - Priority 1
Policy2 - Priority 2
Default Policy - Lowest

When we select use policy2 .. the email poilcy is applied but then it also applies the default
Todd NelsonSystems EngineerCommented:
Are you using any conditional filtering based on OUs or attributes?
Member_2_7970364Author Commented:
Yes - both for the policy .. so for policy2 it must be in a certain ou and attribute set .. which is working as policy2 is being applied
Todd NelsonSystems EngineerCommented:
You need to somehow set the value for the RecipientFilterApplied to false.  Unfortunately, in my experience, it cannot be done through PowerShell ... :,( .  But if you run through the EMC to "update" that policy you can chose the schedule to apply the policy to "Do not apply".

Alternately, you can set the value for msExchRecipientFilterFlags to 0 for the "Default Policy" through ADSIEdit.

Here is the ADSI Edit path if you need it ... CN=Default Policy,CN=Recipient Policies,CN="YourOrganizationName",CN=Microsoft Exchange,CN=Services,CN=Configuration,DC="Contoso",DC="com"

It won't remove the addresses already set but it should prevent that specific policy from being applied to new users as they are created.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Member_2_7970364Author Commented:
Many Thans
Todd NelsonSystems EngineerCommented:
I assume that change worked for you?
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.