Deliverability

How to set up MX records & what they are for (with examples)

lemlist team
LAST UPDATED
August 20, 2024
READING TIME
7 min.

If you don’t set up your MX records, your cold email campaign will fail.

Why?

Because when people respond to your emails, you wouldn’t receive the replies!

Understanding how to set up MX records is crucial for email deliverability and the success of your outreach campaigns.

In this article, you'll learn how to configure MX records for different domains and email providers with examples of real-life domain's MX records.

What is a DNS MX record?

An MX record specifies a domain's receiving email server.

It tells the sending server where to route incoming emails.

If your domain lacks a properly configured MX record, you won't be able to receive emails.

For small businesses, MX records are usually provided by your hosting or domain provider, and you only need to worry about them when changing providers.

Here's a more elaborate explanation of what MX records are.

What does the DNS MX record consist of?

A DNS MX record consists of Hostname, Type, TTL, Priority/Preference, and Value.

This is what they stand for:

  • Hostname: This is your domain name. A hostname and IP simply indicate to what domain emails will be sent to.
  • Type: Type specifies the kind of DNS record being created. For MX (Mail Exchange) records, it is essential to set this type correctly to ensure that the DNS record serves its intended purpose of directing email traffic.
  • TTL (Time to Live): Specifies the time in seconds that an MX record is cached by servers. Normally, it’s set to Auto.
  • Priority: You can and should have multiple MX records, so you have backup incoming email servers configured in case the primary server is experiencing issues. The priority setting determines which server(s) should be tried first. A mail server trying to send an email to you will always try the lowest number priority first! If two or more MX records tie for the lowest preference value, the sending mail server randomly picks one for the first delivery attempt.
  • Value: Contains the email server address (MX address of the provider). The priority or preference indicates which mail server will be used if multiple MX records exist.

How do MX records work?

To understand MX records and how they work, think of them as an address to your place.

Think of the receiving email server as the street address, your email address as your specific house or unit number, and the MX records as the map to find the street you’re living in.

To find the street (receiving email server), the sending server consults the map (MX records).

If there was no map (MX records), the sending server would have no idea as to where to deliver the email.

Why do you need DNS MX records?

NS MX (Mail Exchange) records are crucial for ensuring that your cold outreach emails are delivered successfully. Here's why:

1. Routing Emails to Your Mail Server:

MX records tell other mail servers where to deliver emails sent to your domain.

Without correct MX records, emails sent to your domain (e.g., sales@example.com) would not know where to go, leading to non-delivery.

2. Email Deliverability:

Ensuring your MX records are correctly configured is essential for maintaining email deliverability.

Email servers use MX records to verify that your domain is properly set up to receive email.

If your MX records are missing or incorrect, your emails could end up in recipients' spam folders or bounce back.

3. Trust Factor:

When your email domain has correctly configured MX records, it signals to other mail servers that your domain is legitimate and trustworthy.

This trust factor is crucial for cold outreach, where the first impression can significantly impact the recipient's willingness to engage with your email.

4. Email Authentication and Verification:

Properly configured MX records work in conjunction with other email authentication protocols like SPF, DKIM, and DMARC.

These protocols help verify that your emails are coming from legitimate sources.

Email servers often check these records to prevent spam and phishing attempts, improving the chances that your email will be successfully delivered.

5. Failover and Reliability:

By setting up multiple MX records with different priorities, you ensure that your email system has redundancy.

If the primary mail server is unavailable, the email can be routed to a secondary server.

This redundancy is critical for ensuring your email outreach campaign continues smoothly without interruptions.

MX record example

This is the example of how your MX record should look like:

Components of an MX record explained

1. Domain Name:

@ - This symbol represents the root domain (e.g., example.com). It indicates that this MX record applies to the main domain.

2. Record Type:

MX - It stands for "Mail Exchange". This type of DNS record specifies mail servers responsible for receiving email on behalf of the domain.

3. Priority:

10 and 20 - These numbers indicate the priority of the mail servers. Lower numbers denote higher priority. For example, 10 has a higher priority than 20.

4. Value:

mail1.example.com and mail2.example.com - These are the hostnames of the mail servers. Emails will be routed to these servers based on their priority and availability.

5. TTL (Time To Live):

3600 seconds - This is the amount of time (in seconds) that DNS servers should cache this record. In this case, it's set to 3600 seconds (or 1 hour).

How It Works:

When an email is sent to a user@example.com, the sender's mail server queries the DNS for the MX records of example.com.

The DNS query returns both MX records:

  • 10 mail1.example.com
  • 20 mail1.example.com

The sending mail server will attempt to deliver the email to mail1.example.com first because it has the highest priority (lowest number).

If mail1.example.com is unavailable, the sending server will then try mail2.example.com as a fallback option due to its lower priority (higher number).

Here's an existing MX records example from lemlist:

You can use this tool to find your MX records and whether or not you have them set up.

Check if you have MX records up and running

If you see this, it means your MX setup is correct:

But if you see this, you need to set up your MX record:

Here’s how to set your MX records

Below are the tutorials on how to set your MX records with Google and Microsoft Office.

Google MX records setup

It’s important to note that there are different settings for different hosting.

For some, you need to create MX records manually. In some cases, you can do it much easier.

You need to update your domain's MX records to use Gmail with Google Workspace.

You add and manage MX records on your domain registrar's website and NOT on Google.

Pick your host here and follow the steps to set up your MX records.

Here’s a step-by-step guide to help you configure MX records for your domain using Google Workspace:

1. Log in to Your Domain Registrar: Access the account where you registered your domain.

2. Locate the DNS Management Page: Find the section for managing DNS records, often labeled as "DNS Management," "Name Server Management," or similar.

3. Select the Domain: Choose the specific domain you want to configure.

4. Open the DNS Manager: Navigate to the DNS manager or DNS Zone Editor where you can add or edit DNS records.

5. Delete Existing MX Records (Optional but recommended): If there are any existing MX records, delete them to avoid conflicts.

6. Add Google’s MX Records:

7. Save the MX Records: Click "Save" or "Add Record" to update your DNS settings.

8. Wait for DNS Propagation: DNS changes can take anywhere from a few minutes to up to 48 hours to propagate globally.

9/ Verify MX Record Setup: Use a tool like Google’s Dig tool or any other DNS lookup tool to verify that the MX records have been correctly added to your domain.

It’s important to note that for some domain registrars, Google will automatically do the set-up for you (this is the case for Gandi, for example).

How to set up MX records - for all domain providers

There are different settings for different hostings. For some you need to create MX records manually. In some cases you can do it much easier.

In order to find a better set up for your host - pick your host here and follow the steps there.

How to setup MX records on Google for Namecheap

Now we come to MX record. In most cases you'd need to delete and create MX record manually, but if you use Namecheap, you can do it with just a few clicks:

  1. Go to Advanced DNS settings
  2. Scroll to Mail Settings
  3. Choose "Gmail"
  4. Save it!

How to create a MX records for Google and Cloudflare

We'll need to create MX records manually:

  1. Log in to Cloudflare
  2. Go to Domain list and choose your domain
  3. Go to DNS
  4. Click on "Add new record"
  5. Choose MX record
  6. Put @ in "Name"
  7. Put ASPMX.L.GOOGLE.COM in Mail Server
  8. Choose priority = 1

You should also create 4 more MX records with "@" in Name but different Mail Servers and Priorities:

ALT1.ASPMX.L.GOOGLE.COM priority = 5

ALT2.ASPMX.L.GOOGLE.COM priority = 5

ALT3.ASPMX.L.GOOGLE.COM priority = 10

ALT4.ASPMX.L.GOOGLE.COM priority = 10

Save it!

Google Workspace domain verification for Bluehost

We'll need to create MX records manually:

  1. Log in to Bluehost
  2. Go to Domain list and choose your domain
  3. Go to DNS
  4. Click on "Add new record"
  5. Choose MX record
  6. Put @ in "Name"
  7. Put ASPMX.L.GOOGLE.COM in Mail Server
  8. Choose priority = 1

You should also create 4 more MX records with "@" in Name but different Mail Servers and Priorities:

ALT1.ASPMX.L.GOOGLE.COM priority = 5

ALT2.ASPMX.L.GOOGLE.COM priority = 5

ALT3.ASPMX.L.GOOGLE.COM priority = 10

ALT4.ASPMX.L.GOOGLE.COM priority = 10

Save it!

Microsoft Office MX records setup example

If Microsoft Office 365 is your email provider choice, we got your back.

How to set up MX records - for all domain providers

During the initial set up, you'll be able to add DNS records. Just create the records that Microsoft suggested.

Don't do that if:

  1. You need custom DNS routing for your email, for example, to route traffic through an external spam filtering service
  2. You're already using ‎Exchange‎ on-premises as well as ‎Exchange Online‎ (also called a hybrid deployment)

How to set up MX records on Microsoft Office 365 for Namecheap

Now we come to the MX record. In most cases you'd need to delete and create an MX record manually, but if you use Namecheap, you can do it with just a few clicks:

  1. Go to Advanced DNS settings
  2. Scroll to Mail Settings
  3. Create MX record
  4. Save it!

You can take this MX record from Microsoft during your initial set up:

How to configure MX records for Microsoft Office 365 and Cloudflare

Now we come to the MX record. In most cases you'd need to delete and create an MX record manually, but if you use Namecheap, you can do it with just a few clicks:

  1. Go to Advanced DNS settings
  2. Scroll to Mail Settings
  3. Create MX record
  4. Save it!

You can take this MX record from Microsoft during your initial set-up:

How to add MX records for for Microsoft Office 365 and Bluehost

Now we come to the MX record. In most cases you'd need to delete and create an MX record manually, but if you use Namecheap, you can do it with just a few clicks:

  1. Go to Advanced DNS settings
  2. Scroll to Mail Settings
  3. Create MX record
  4. Save it!

You can take this MX record from Microsoft during your initial set-up:

Email Communication explained

DNS MX records play a huge role in overall email communication. In order to understand its importance, you must understand how email communication works.

What is email communication?

Email communication is a communication method that uses electronic devices to deliver messages across computer networks. In simple language, we call it “email,” which is short for electronic mail.

"Email" refers to both the delivery system and individual messages that are sent and received.

Here’s a step-by-step breakdown of what happens when you send an email:

1. Email Creation: You write and send an email using an email client like Gmail.

2. Initial Sending: The email client connects to your SMTP (Simple Mail Transfer Protocol) server to send the email.

3. DNS Lookup: The sending SMTP server performs a DNS lookup for the recipient’s domain to find the MX (Mail Exchange) records.

4. MX Records Retrieval: The DNS system returns the MX records, which list the mail servers responsible for accepting email for the recipient’s domain. Each MX record has a priority.

Example:

5. Email Routing: The sending SMTP server tries to connect to the highest-priority mail server first (mail1.example.com). If unavailable, it attempts the next priority (mail2.example.com).

6. Mail Server Acceptance: The recipient’s mail server receives the email and stores it.

7. Email Delivery: The recipient’s email client retrieves the email from their mail server using IMAP (Internet Message Access Protocol) or POP3 (Post Office Protocol).

Frequently Asked Questions

Which MX records do you need for lemlist?

You need to set your SPF, DMARC, and DKIM.

Setting them up will ensure a good foundation for email deliverability.

That is why this is a must before running your first campaign or even sending any email.

Can I have multiple MX records for my domain?

Of course. That’s what the priority setting is for.

Setting up multiple MX records allows you to have backup servers if any server experiences issues.

How to check your current MX records?

One of the easiest ways to check the MX records of any domain is to use the command prompt on your computer.

  1. Open the command prompt or terminal
  2. Type or paste the following command and hit enter: “nslookup -type=MX yourdomain.com” Make sure to change the domain name to your domain.
  3. If you already have your MX records set up, you should now see them on your screen.

Alternatively, for a simple check, use our technical setup checker tool below:

Key takeaways

  • Setting up your MX record means allowing for emails to come to your inbox in the first place
  • The setup of MX records isn't difficult as long as you have a tutorial to follow - anybody can do it
  • Need a tutorial for a different domain provider? Go here
  • Can't figure out what your domain host‌ is? Click here

☝️ Once you configure your MX records, the job is not done. You have to set up DKIM next, then audit your email sender reputation.

lemlist team
Your source of actionable outreach tips and strategies that will help you get replies and grow your business.
Get weekly outreach tips
SHARE THIS ARTICLE
Thanks! You've successfully subscribed to lemlist newsletter
Oops! Something went wrong while submitting the form.
G2 Rating
Price
Best for
Standout feature
Con
4.9
star
star
star
star
star
$30/mo
$75/mo
$2,999/mo
Large, distributed sales teams
AI evaluation precision, gamified KPIs
Lack of tracking system
4.6
star
star
star
star
star-half
Not publicly available
Sales operations and finance teams
Powerful configurability
Limited training resources and complex to navigate
4.4
star
star
star
star
star-half
Not publicly available
Mid-market and enterprise businesses
Comprehensive incentive management
Potentially high cost and steep learning curve
4.7
star
star
star
star
star-half
$15/user/mo
$40/user/mo
Enterprise: custom price
Complex sales structures and businesses of all sizes
Complex sales structures and businesses of all sizes
Steep learning curve
4.6
star
star
star
star
star-half
Not publicly available
Collaborative teams
Connected planning
Complexity and steep learning curve
4.6
star
star
star
star
star-half
Not publicly available
Companies with complex sales structures
Complex incentive compensation management (ICM) with high efficiency and accuracy
Complexity for smaller teams and potentially high costs
4.7
star
star
star
star
star-half
Not publicly available
Companies who want to automate commission calculations and payouts
Simplicity and ease of use
Lack of features like redirection
4.7
star
star
star
star
star-half
$30/user/mo
$35/user/mo
Custom: upon request
Businesses that need a comprehensive and user-friendly sales compensation management software
Ease of use and adoption
Lack of ability to configure the product based on user needs
4.8
star
star
star
star
star-half
Not publicly available
Companies with modern sales culture and businesses who want real-time insights
A built-in dispute management and real-time visibility
Users say it works slowly, customer support is slow
4.9
star
star
star
star
star
$30/user/mo
$50/user/mo
Smaller sales teams
Powerful automation
Lesser user base and average user interface
4.7
star
star
star
star
star-half
Not publicly available
Companies with scalable needs
Automated Commission Calculations
Lack of filtering by date, no mobile app
ERP vs. CRM
ERP
CRM
Summary
Backbone of a business's internal operations.
Backbone of customer-centric interactions and operations.
Goal
To centralize and streamline core business processes in a company.
To increase customer experience, satisfaction and loyalty, and boost sales.
Focus
Internal operations and processes across departments (finance, accounting, inventory, supply chain, HR, and sales).
All interactions with leads and customers.
Manages
Internal business data like financial data, inventory levels, production details, supply chain, HR info.
All customer data like contact info, purchase history, communication history, customer preferences and more.
Users
Finance, accounting, operations, supply chain, and HR departments.
Customer-facing teams like sales, marketing, and customer service.
Benefits
Streamlines operations, improves data accuracy, enhances decision-making, boosts collaboration, increases productivity.
Improves customer relationships, increases sales, strengthens customer service, personalizes marketing campaigns, provides insights.
Price
$150 per user per year on average.
$10 to $30 per user per month on average.
PRM Tool
Rating
Feature
Pro
Con
Mobile App
Integrations
Free Plan
Pricing
4.65
star
star
star
star
star-half
Org-wide alignment
User-friendly layout and database
Suboptimal as a personal CRM
square-check
Lack of tracking system
square-check
Team: $20/month
Business: $45/month
4.7
star
star
star
star
star-half
Social Media Integration
Easy contact data collection
No marketing/sales features
square-check
Lack of tracking system
square-xmark
7-day trial
$12/month
4.75
star
star
star
star
star-half
Block Functions
High customization capability
Not a dedicated CRM
square-check
Limited
square-check
Plus: €7.50/month
Business: €14/month
N/A
Open-source
Open-source flexibility
Requires extensive manual input
square-xmark
Limited
square-check
Self-hosted
$9/month or
$90/year
3.1
star
star
star
Simple iOS app
Ideal for non-tech-savvy users
iPhone only
square-check
iOS only
Limited
square-xmark
1-month trial
$1.49/month or
$14.99/month
3.6
star
star
star
star-half
Smart Contact Management
Feature-rich and flexible
Reported bugs
square-check
Rich
square-xmark
7-day trial
Premium: $13.99/month
Teams: $17.99/month
4.4
star
star
star
star
star-half
Customizable Interface
Customizable for teamwork
Pricey for personal use
square-check
Rich
square-xmark
Standard: $24/member
Premium: $39/member
4.7
star
star
star
star
star-half
Integrated Calling
Integrated Calling
Too sales-oriented & pricey
square-check
Rich
square-xmark
14-day trial
Startup: $59/user/month
Professional: $329/user/month
4.8
star
star
star
star
star
Business Card Scanning
Business Card Scanning
Mobile only
square-check
Limited
square-check
$9.99/month
4.45
star
star
star
star
star-half
160+ app integrations
Comprehensive integrations
No free app version
square-check
Rich
square-xmark
14-day trial
$29.90/month or
$24.90/month (billed annually)
Capterra Rating
Free Trial
Free Plan
Starting Price (excluding the free plan)
Maximum Price (for the most expensive plan)
Best for
4.5
star
star
star
star
star-half
square-check
14-day
square-check
€15/month/seat billed annually
€792/month/3 seats billed annually + €45/month for each extra seat
Versatility and free plan
4.2
star
star
star
star
square-check
30-day
square-xmark
But it offers reduced price to authorised nonprofit organisations
€25/user/month
€500/user/month billed annually (includes Einstein AI)
Best overall operational CRM
4.3
star
star
star
star
star-half
square-xmark
square-check
Limited to 3 users
Comprehensive incentive management
€52/user/month billed annually
Small-medium businesses and automation
4.5
star
star
star
star
star-half
square-check
14-day
square-xmark
€14/seat/month billed annually
€99/seat/month billed annually
Sales teams and ease of use
4.1
star
star
star
star
square-xmark
square-check
Limited 10 users
$9.99/user/month billed annually
$64.99/user/month billed annually
Free plan for very small teams up to 10
CRM goal
Increase the sales conversion rate for qualified leads from marketing automation campaigns by 10% in the next 6 months.
SMART Breakdown
1. Specific: It targets a specific area (conversion rate) for a defined segment (qualified leads from marketing automation).
2. Measurable: The desired increase (10%) is a clear metric, and the timeframe (6 months) allows for progress tracking.
3. Achievable: A 10% increase is possible based on historical data and potential improvements.
4. Relevant: Boosting sales from marketing efforts aligns with overall business objectives.
5. Time-bound: The 6-month timeframe creates urgency and a clear target date.
Actions
Step 1: Refine lead qualification criteria to ensure high-quality leads are nurtured through marketing automation.
Step 2: Personalize marketing automation campaigns based on lead demographics, interests, and behavior.
Step 3: Develop targeted landing pages with clear calls to action for qualified leads.
Step 4: Implement lead scoring to prioritize high-potential leads for sales follow-up.
Step 5: Track and analyze campaign performance to identify areas for optimization.
Outcomes
Increased sales and revenue
Improved marketing automation ROI
Marketing and sales alignment
Data-driven marketing optimization
Table
CDP Software
CRM Software
Approach
Data-centric
Customer-centric
Focus
Interactions across various channels and touchpoints, both online and offline.
Sales, marketing, and customer service interactions.
Functionality
Automatically collects, organizes, tags, and makes data available in real-time.
Helps businesses track customer interactions, sales pipelines, prospects, and service requests.
Goals
Personalized customer experiences across all channels.
Better customer relationships, streamlined processes, and improved profitability.
Benefits
Data integration, management, and accessibility, allowing for detailed analysis and segmentation.
Better communication within teams and with customers by organizing information about customer interactions and history.
Data Handling
Handles both identified and anonymous data, stitches together various data points.
Deals primarily with identified customer data.
Use Cases
Personalized marketing campaigns, targeted advertising, content customization across multiple channels.
Managing campaigns and leads, enhancing customer service, providing better customer support, increasing customer satisfaction and loyalty.
Examples
Insider, Bloomreach, Salesforce Marketing Cloud CDP
HubSpot, Salesforce Sales Cloud Lightning Professional, and Zoho CRM
CRM
Free plan
Best feature
Best for
Con
1. HubSpot CRM
square-check
Sales automation
Sales teams
Up to 1,000 contacts
2. Insightly
square-check
Custom fields
Basic needs
Not enough info about the free plan
3. Agile CRM
square-check
Deal and sales pipeline tracking
Small teams
Up to 10 users
4. Zoho CRM
square-check
Lead and contact management
Businesses of all sizes
Limited to 3 users
5. ClickUp
square-check
Unlimited tasks and unlimited members
Personal use
Up to 100MB storage
6. EngageBay
square-check
Live chat
Small and midsize enterprises
Up to 1,000 branded emails per month
7. Bitrix24
square-check
Unlimited users and 5 scrum teams
Big teams
Up to 5GB of cloud storage
8. FreshSales
square-check
Easy to use and simple setup
Beginners
Up to 3 users
9. Mailchimp
square-check
Very beginner friendly
Marketing teams
Send up to 500 branded emails per month
Type of Affiliate Marketing
Unattached
Related
Involved
Format
Paid advertising
Social media or YouTube channels
Dedicated website or blog
Focus
Quick income
Your niche
Your audience
Engagement with your audience
square-xmark
square-check
square-check
square-check
square-check
Very close connection with your audience
Pro
Little effort
Higher credibility thanks to your niche
Long-lasting and scalable
Con
Paid ads cost a lot
Potential for bias since you don’t use the thing you promote
Require time, effort, and dedication

What you should look at next

Deliverability

What's the Difference Between SPF and DKIM? [2024 Update]

Learn the key differences between the email authentication protocols SPF and DKIM. Understand how these essential DNS operate and how they can boost your open rates.
June 27, 2024
June 27, 2024
Deliverability

Low open rates? Take a free email deliverability test

Improve your email open rates and deliverability with free email deliverability tests that can help your emails reach the inbox and maintain a strong sender reputation.
June 25, 2024
June 24, 2024
Deliverability

Understanding email bounces - soft vs hard bounces

Learn about the different types of bounces, why they're bad for your sender reputation, and 3 steps to reduce them and maximize your email outreach ROI.
June 7, 2024
June 7, 2024
Deliverability

Outlook Attachment Size Limits (and how to work around them)

If you're using Outlook and find yourself bumping into size limit warnings, this is the article for you!
April 18, 2024
Deliverability

DMARC - What It Is, Why It Matters, and How to Set It Up

Find out what DMARC is, why it’s essential for email outreach, and how to set it up quickly.
February 1, 2024

What you should look at next

Receive weekly outreach tips in your inbox, sent to 210 000+ salespeople, marketers, founders, and entrepreneurs worldwide!

Subscribe to the lemlist newsletter
You've successfully subscribed to the lemlist newsletter!
Oops! Something went wrong while submitting the form.