Exchange 2013 Initial Configuration Settings: Setting email address policies (part 2)

Exchange 2013 logo

Following on from the previous post Exchange 2013 Initial Configuration Settings: Setting SMTP accepted domains (Part 1) , in this second part of a series I’ll look at setting up an email address policy.

Until you create a new email address policy any recipients (users, resources, contacts, groups) you create will get their email address from the default email address policy. Therefore we’ll create a new email address policy with settings that we want before creating new recipients.

Another reason for having it in place before you create recipients is in large environments applying an email address policy can take a long time depending on the number of recipients it effects.

1. In the Exchange admin center (https://localhost/ecp) click mail flow from the left hand menu and then click on email address policies.

Exchange 2013 -mail flow- email address policies

2. Click the + symbol to create a new email address policy.

Exchange 2013 - mail flow- email address policies - new email address policy3. Type in a Policy name, then click the + symbol to specify the Email address format.

Exchange 2013 - mail flow- email address policies - new email address policy - select an accepted domain4. Select an accepted domain name created from the previous post, in my case above I’m selecting Then choose the Email address format, the bit before the @ symbol and click save.

Exchange 2013 - mail flow- email address policies - new email address policy - email address format - save5.  Confirm the settings are correct and click save again.

Exchange 2013 - mail flow- email address policies - new email address policy - save6. Click ok to the warning message.

Exchange 2013 - Warning - this policy isnt active yet. Click Apply in the details pane to appy this email address policy.7. With the new policy highlighted click Apply.

Exchange 2013 -mail flow- email address policies - click Apply8. Read the warning and if safe to do so in your environment click yes, otherwise run the Exchange Management command specfied.

Exchange 2013 - Warning - Applying this email address policy may take a long time to finishYou should see the following message.

Exchange 2013 - email address policy was applied

You’ll now see the email address policy has been applied.

Exchange 2013 -mail flow- email address policies - Applied

If you check your recipients, you should see that their email addresses have changed (you may have to click the refresh icon).

Exchange 2013 - recipients - mailboxesNow you are in a position where any new user/mailbox you create will have the correct email address assigned to it.

Exchange Management Shell

As you look through other posts on the site you’ll see there is a lot of PowerShell and Exchange PowerShell, so to perform the same steps above in PowerShell we’ll need to use the Exchange Management Shell and the following cmdlets, Get-EmailAddressPolicy, New-EmailAddressPolicy and Update-EmailAddressPolicy.

Remember in PowerShell to search for a command you can use Get-Command *emailaddress* or GCM *emailaddress* to list all the cmdlets that contain the phrase emailaddress.

Exchange 2013 gcm emailaddress

To view help you can use Get-Help before any command, and you can append -examples, -detailed, -full, -online for further information.

Note: To perform the tasks below I’ve removed the email address policy created in the Exchange admin center.

Lists and returns attributes of existing email address policies.


Creates a new email address policy.

To create the same policy in PowerShell we’ll use the following command.

New-EmailAddressPolicy -Name OxfordSBSGuy -EnabledPrimarySMTPAddressTemplate “” -IncludedRecipients AllRecipients -Priority 1

New-EmailAddressPolicy -Name OxfordSBSGuy -EnabledPrimarySMTPAddressTemplate -IncludedRecipients AllRecipients -Priority 1

Now let’s use Get-EmailAddressPolicy to confirm the policy has been created and to find out whether it has been applied or not. You can use Get-EmailAddressPolicy | fl or format-list to list all the attributes to a policy.

Get-EmailAddressPolicy | ft Name, Priority, RecipientFilter, RecipientFilterApplied

Get-EmailAddressPolicy ft Name Priority RecipientFilter RecipientFilterAppliedSo you can see the new policy exists but hasn’t been applied yet.

We’ll use Update-EmailAddress Policy to apply it to the recipients. Type the following command:

Update-EmailAddressPolicy -Identity OxfordSBSGuy

Update-EmailAddressPolicy -Identity OxfordSBSGuy

Finally we’ll use Get-EmailAddressPolicy again to confirm it has been applied.


In the next part of the series we’ll look at renaming and moving the default mailbox database and logs.

For the other articles in this series please go to: