Building Home Lab for Exchange 2013

Posted: August 16, 2015 in Exchange

In this blog i installed Exchange Server 2013 as Hyper-V guest.In this blog we will configure Exchange to receive and send mails.I stumbled accross two issues:I have dynamic IP and was unable to send mails (got blacklisted),and i had to,for incoming messages,to forward port 25 to another one (1194) on router my ISP gave me ( is IP address of my Exchange Server)


To send emails to outside world i found SMTP relay service on this blog

So,on my exchange i created new send connector





This connector will send messages for all domains (*) and will use (DC and Exchange is installed on this server,in production environment this shold be avoided)

For internal users to receive mail,we need to create receive connector,i used PowerShell:

[PS] C:\Windows\system32>New-ReceiveConnector "my receive connector" -Bindings -RemoteIPRanges
- -RequireTLS $false -ProtocolLoggingLevel verbose -PermissionGroups anonymoususers -MaxMessageSize 38MB
-MaxLocalHopCount 12

This connector will listen on (exchange server address,port 1194),for any IP addess (,logging is enabled,and max allowed email size is 38 MB),MaxLocalHopCount parameter specifies the maximum number of local hops that a message can take before the message is rejected by the Receive connector

I created AD domain named,it’s for local use only i have not registered this domain.

But,for this lab i bought domain from GoDaddy,to test mail flow.During Excange install,i specified as default accepted domain.Accepted domain is SMTP namespace for which Exchange will accept emails.Now i must tell Exchange that default accepted domain is

[PS] C:\Windows\system32>New-AcceptedDomain -name bigfirm -DomainName -DomainType authoritative

We must configure new domain in default email policy also:

[PS] C:\Windows\system32>Set-EmailAddressPolicy "default policy" -EnabledEmailAddressTemplates

[PS] C:\Windows\system32>Update-EmailAddressPolicy "default policy"


On GoDaddy,in DNS console,i created MX record and pointed it to my physical machine (Host A record with my current public IP address)


For internal users,we need also to create DNS MX (Mail Exchanger) record,in DNS zone.

This record sets as mail server for domain (although it will send mails for


I created test user (this command will create user in AD,as well as create it’s mailbox)

[PS] C:\Windows\system32>New-Mailbox -UserPrincipalName -Name "Don Hall" -OrganizationalUnit Users
-FirstName Don -LastName Hall -DisplayName "Don Hall" -ResetPasswordOnNextLogon $false -Password (ConvertTo-SecureStrin
g -AsPlainText -Force Passw0rd06)

I logged in new user to client computer,and started outlook,mail profile is automatically created.

For testing i used 10 minutes mail portal:

and from account sent email to this temporary account


I replayed to Don Hall:


And message landed to Don Hall’s inbox:



Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s