When the Exchange database transaction logs growing rapidly, it can be different issues. It mostly…
In our previous article, we created a send connector in Exchange. Our next step is to create an email address policy in Exchange Server. An email address is required for emails to be sent and received by a recipient. This article will show how to create an email address policy in Exchange Admin Center and PowerShell.
Table of contents
Configure email address policy in Exchange Server
Sign in to Exchange Admin Center (EAC). Navigate to mail flow > email address policies. A default email address policy is created by default when installing Exchange Server. Click the + icon to add a new email address policy.
Give the policy a name. When done, click the + icon to add the email address format.
Select an accepted domain. Click the email address format John.Smith@contoso.com. That’s because we like to have the email addresses showing as First.Lastname@domain.com. Click Save.
Note: You cannot select an accepted domain if you don’t have it configured. Read the article Add accepted domain in Exchange Server.
The email address format is added. Keep the rest as default. Click Save.
A warning message shows up. Click OK.
The policy isn’t active yet. Click Apply in the details pane to apply this email address policy.
Click on the policy that you created. Click Apply in the right panel.
A warning message shows up that it will may take a long time. Click Yes.
The email address policy is applied. Click Close.
Verify email address policy has been applied
Go to mail flow > email address policies. Click the policy that you configured in the earlier step. Confirm in the right panel that this email address policy has been applied.
Go to recipients > mailboxes. Click a user mailbox and click the edit icon.
Click the email address in the left pane and confirm that you see the type SMTP and email address First.Lastname@domain.com.
Note: The primary SMTP address will show as capital letters “SMTP”. The secondary SMTP addresses will show up in small “smtp” letters.
Create email address policy in Exchange Server with PowerShell
Let’s speed it up and do the same as we did in the previous step, but this time with PowerShell. Run Exchange Management Shell as administrator. Make use of the New-EmailAddressPolicy cmdlet and Update-EmailAddressPolicy cmdlet.
[PS] C:\>New-EmailAddressPolicy -Name "Exoip Main Policy" -IncludedRecipients "AllRecipients" -Priority "1" -EnabledEmailAddressTemplates "SMTP:%email@example.com" Name Priority RecipientFilter ---- -------- --------------- Exoip Main Policy 1 Alias -ne $null [PS] C:\>Update-EmailAddressPolicy -Identity "Exoip Main Policy"
Get the configured email address policies in Exchange Server.
[PS] C:\>Get-EmailAddressPolicy Name Priority RecipientFilter ---- -------- --------------- Default Policy Lowest Alias -ne $null Exoip Main Policy 1 Alias -ne $null
You learned how to create an email address policy in Exchange Server. This can be done in Exchange Admin Center and PowerShell. First, make sure that you add an accepted domain before creating an email address policy. Then, don’t forget to apply the policy. Find more information regarding email address policies in Exchange Server at Microsoft Docs.
Did you enjoy this article? If so, you may like Whitelist domain in Office 365 to bypass SPAM filtering. Don’t forget to follow us and share this article.