Editing and Applying E-Mail Address Policies
You can manage e-mail address policies in several different ways.
You can edit their properties or apply them to rewrite e-mail addresses
automatically for each recipient to which the policy applies. You can
also change their priority to determine the precedence order for
application in case there are conflicts between policies. When multiple
policies apply to a recipient, the policy with the highest priority is
the one that applies.
You can change the way e-mail address policies work by completing the following steps:
-
In the Exchange Management Console, expand the Organization Configuration node, and select the Hub Transport node.
-
On the E-Mail Address Policies tab, right-click the e-mail address
policy you want to change, and then select Edit. This starts the Edit
E-Mail Address Policy Wizard.
-
Follow steps 3–11 in the Creating E-Mail Address Policies section.
You can change the priority of an e-mail address policy by completing the following steps:
-
In the Exchange Management Console, right-click the policy, and then select Change Priority.
-
In the Change E-Mail Address Policy Priority dialog box, type the desired priority and then click OK.
Note
The valid range for priorities depends on the number of policies you've configured.
You can apply an e-mail address policy immediately or at a scheduled time by completing the following steps:
-
In the Exchange Management Console, right-click the policy, and then
select Apply. This starts the Apply E-Mail Address Policy Wizard.
-
If you want to create and apply the policy immediately, select
Immediately. To schedule the policy application, select At The
Following Time and then set the date and time to apply the policy.
-
Click Next, and then click Apply.
-
On the Completion page, click Finish.
In the Exchange Management Shell, you can use the Set-EmailAddressPolicy cmdlet to modify e-mail address policies, as shown in Example 4. The Update-EmailAddressPolicy cmdlet, used to apply policies, was discussed previously.
Example 4. Set-EmailAddressPolicy cmdlet syntax and usage
Syntax
Set-EmailAddressPolicy -Identity PolicyIdentity
[-ConditionalCompany CompanyNameFilter1, CompanyNameFilter2,...
]
[-ConditionalCustomAttributeN Value1, Value2
, ...]
[-ConditionalDepartment DeptNameFilter1, DeptNameFilter2, ...
]
[-ConditionalStateOrProvince StateNameFilter1, StateNameFilter2, ...
]
[-DisbledEmailAddressTemplates Templates
] [-DomainController DCName
]
[-EnabledEmailAddressTemplates Templates
]
[-EnabledPrimarySMTPAddressTemplate Template
]
[-ForceUpgrade <$true | $false>] [-IncludedRecipients RecipientTypes
]
[-Name PolicyName
] [-Priority Priority
]
[-RecipientContainer OUId
] [-RecipientFilter Filter
]
Usage
Set-EmailAddressPolicy -Identity "Primary E-Mail Address Policy"
-Name "Cpandl.com E-Mail Address Policy"
-IncludedRecipients "MailboxUsers"
-ConditionalCompany "City Power & Light"
-ConditionalDepartment "Sales"
-ConditionalStateOrProvince "Washington"
-Priority "2"
-EnabledEmailAddressTemplates "SMTP:%g.%s@cpandl.com"
Removing E-Mail Address Policies
You can remove an e-mail address policy that is no longer needed by completing the following steps:
-
In the Exchange Management Console, expand the Organization Configuration node, and select the Hub Transport node.
-
On the E-Mail Address Policies tab, right-click the e-mail address policy you want to remove, and then select Remove.
-
When prompted to confirm, click Yes.
In the Exchange Management Shell, you can use the Remove-EmailAddressPolicy cmdlet to remove e-mail address policies. Example 5 provides the syntax and usage.
Example 5. Remove-EmailAddressPolicy cmdlet syntax and usage
Syntax
Remove-EmailAddressPolicy -Identity EmailAddressPolicyIdentity
[-DomainController DCName
]
Usage
Remove-EmailAddressPolicy -Identity "Cpandl.com
E-Mail Address Policy"