Following on from previous posts on How to install Exchange 2013 SP1 and Exchange 2013 Initial Configuration Settings, in this first part of a series of posts I’ll look at setting the SMTP accepted domain.
By default when you install Exchange 2013 the default accepted domain will be the fully qualified domain name of the Active Directory domain you installed the server into.
In my demo environment the AD domain is ad.oxfordsbsguy.com, so the default accepted domain is ad.oxfordsbsguy.com. Obviously we want to remove the ad part of the address to hide the internal ad structure and make the actual email address more useable, so let’s look at adding another accepted domain.
1. In the Exchange admin center, initially accessible via https://localhost/ecp/ click mail flow from the left hand menu, and then click on accepted domains. I usually use Internet Explorer for making changes in the ECP to ensure no compatibility issues with other browsers.
2. Click the + symbol to create a new accepted domain. Type in a name and for the domain and the fqdn in the accepted domain. Select whether the domain is Authoritative, an Internal relay, or an External Relay domain, and click save.
The one thing you don’t see when setting up a new accepted domain and couldn’t see in the Exchange admin center image above is the default domain. Currently it is still set to the originally created accepted domain.
3. To change the default domain highlight the new domain and then click the pencil icon (in the image above it is greyed out as no domains are selected). Put a tick in the check box, Make this the default domain, then click save.
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-AcceptedDomain, New-AcceptedDomain and Set-AcceptedDomain.
Remember in PowerShell to search for a command you can use Get-Command *domain* or GCM *domain* to list all the cmdlets that contain the word domain.
To view help you can use Get-Help before any command, and you can append -examples, -detailed, -full, -online for further information.
This shows us the accetped domains setup.
Will create a new accepted domain.
So to create OxfordSBSGuy.com as an accepted domain the command will be:
New-AcceptedDomain -DomainName oxfordsbsguy.com -Name OxfordSBSGuy -DomainType Authoritative
Can be used to configure an existing accepted domain.
To make OxfordSBSGuy.com the default domain we’ll use the command:
Set-AcceptedDomain -Identity OxfordSBSGuy -MakeDefault $true
So you can now setup accepted domains in the Exchange admin center and in PowerShell.
In the next part of the series we’ll look at how to configure email address policies so we can define how email addresses are assigned to new recipients.
For the other articles in this series please go to:
- Exchange 2013 Cumulative Update installation tips and best practices
- How to install Exchange 2013 (SP1) on Windows Server 2012 R2
- Exchange 2013 Initial Configuration Settings
- Exchange 2013 Initial Configuration Settings: Setting SMTP accepted domains (Part 1)
- Exchange 2013 Initial Configuration Settings: Setting email address policies (Part 2)
- Exchange 2013 Initial Configuration Settings: Rename and move the default mailbox database and logs (Part 3)
- Exchange 2013 Initial Configuration Settings: Change mailbox size limits (Part 4)
- Exchange 2013 Initial Configuration Settings: Create a send connector (Part 5)
- Exchange 2013 Initial Configuration Settings: Set the offline address book (Part 6)
- Exchange 2013 Initial Configuration Settings: Enter the Product Key (Part 7)
- Exchange 2013 Initial Configuration Settings: How to configure a Postmaster Address (Part 8)
- Exchange 2013 Initial Configuration Settings: How to change the FQDN on the default frontend receive connector (Part 9)
- Exchange 2013 Initial Configuration Settings: How to configure the virtual directories (part 10)
- Create and apply an SSL certificate (work in progress)