Exchange Server 2016Exchange Server 2019Microsoft

Exchange Server 2016 MX Record Configuration

How To Create MX Record In Your Exchange

Exchange Server 2016 MX Record Configuration

Exchange server MX record configuration: When your Exchange Server organization needs to receive emails from the outsider domain, you need to configure Mx-record on Public Domain.

If you have created a send connector, you can send emails to other domains but in order to receive emails. You need an Mx record.


What Is Mx Record

Mx record is a Mail Exchange record, it decides on which specific IP address email needs to be sent. It works on a priority basis.

The lowest integer has the highest priority.

You can set multiple Mx Record for your domain name


How To Do Exchange Server 2016 Mx Record Configuration

Our Scenario :

Internal Local Domain Name:, Ip =

Public Domain:

We have configured external and internal URL for OWA to

exchange server 2016 mx record setup

Set Host A Record

On local DNS Server, Create a new Host A Record by the name of mymail or any desired name and point to Exchange Server Host.

exchange server mx record setup

By doing this step you will be able to open your outlook web access from the Url  “” internally.

In order to open it from the internet, you need to create the same record on public domain DNS and point to the public IP of your exchange server.

host a record

Note: If your public IP is set on the router, you need to forward all the exchange server related port to exchange server host. 

Ex: Https, POP3, IMAP4, etc. In our case, these ports are forwarded to exchange server Ip =

After doing this step you will be able to open your external URL form internet.


How to Setup Mx Record On Public Domain

Log in to the public domain DNS manager for your domain name.

  1. Locate the Mx Record and set your host to “” ( set the priority to 0

mx record setup


2. Create TXT Record For Spf


spf record

Blur black area on the above picture is a public IP of your exchange server


3. Create Dmarc Record

dmarc record

If you are unsure about SPF and dmarc record Check On Mxtoolbox

Mxtoolbox is a very useful and handy tool when dealing with Exchange Server

Once all these records are published, your exchange server will now receive emails from outside domains.

Note: Propagation of these records may take some time according to their TTL Value.

Check with Microsoft Connectivity Analyzer or to make sure about Exchange DNS Record Propagation.

If Exchange Server Mx Record Configuration configured correctly. You will be able to receive emails from external domains. Now Exchange Server Mail Flow Should Work Fine.

Exchange Server MX Record Setup

Techi Jack

Techi Jack is an alternate internet name for Vikas Jakhmola, an IT professional with more than 12 years' experience. Currently, he is working as a freelancer. His experience includes setting up networks and servers for multiple organizations. He has been working with the server since 2003. TechiJack, or Vikas Jakhmola, shares his expertise and knowledge on his blog and in training courses.
Back to top button