Setup DNS

This guide helps you setup the necessary DNS records for your domain

MX record

What is an MX record?

An MX record tells senders how to send email for your domain. When your domain is registered, it’s assigned several DNS records, which enable it to be located on the Internet. These include MX records, which direct the domain’s mail flow. Simply put, an MX record identifies the mail server that is responsible for handling e-mails for that domain name. Properly configured & propagated MX record is necessary to receive emails.

How do I setup an MX record?

Setting up an MX record at your domain registrar/DNS provider (for your domain name) is a very simple process that can be done in under a minute!

General Instructions (Primary MX)

  • Host / Domain → @ / Blank / Domain name
  • Mailserver / MX address / Value → example.mymailcheap.com (Use your own mailserver hostname!)
  • Record type → MX
  • Priority / Preference → 1
  • TTL → 1800 (in seconds)

Tip

Your mailserver hostname, homepage & login credentials are available in the provisioning ticket/email titled “New Product Information” or “Your Mailcheap server has been provisioned”. Refer to email history from the client area by clicking here.

For self installed servers: Mailserver hostname, homepage & login credentials can be found in the installer page. Log in to console > select from the menubar > Setup Utilities > Install wizard > Click ‘View’ link under ‘Details/Install’ column.

Backup MX

  • Backup MX 1 → Host / Domain → @ / Blank / Domain name, Value: alt1.mymailcheap.com, Priority: 5
  • Backup MX 2 → Host / Domain → @ / Blank / Domain name, Value: alt2.mymailcheap.com, Priority: 10

MX records (overview)

Host / Domain Mailserver / MX address / Value Priority
@ / Blank / Domain name example.mymailcheap.com (Use your own mailserver hostname!) 1
@ / Blank / Domain name alt1.mymailcheap.com 5
@ / Blank / Domain name alt2.mymailcheap.com 10

Caution

Make sure to remove your old host’s MX records (if any).

Specific Instructions


SPF record

What is an SPF record?

An SPF record is actually a specific type of TXT record that identifies which mail servers are permitted to send email on behalf of your domain. The purpose of an SPF record is to prevent spammers from sending messages with forged From addresses at your domain. Recipients can refer to the SPF record to determine whether a message purporting to be from your domain comes from an authorized mail server. Properly configured & propagated SPF record is necessary to send emails (using Mailcheap’s Premium relay).

How do I setup an SPF record?

Setting up an SPF record at your domain registrar/DNS provider (for your domain name) is a very simple process that can be done in under a minute!

  • Basic plans/Premium Mail: Configure the record exactly as shown below.

  • Dedicated servers: Your value can be found in ‘Server stats & tools’ portal. From your mailserver’s homepage (mail.yourdomain.com/home), log in to Server stats & tools portal. Once logged in, from the menu bar > select Mail Auth/Signing > SPF

General Instructions

  • Host / Domain → @ / Blank / Domain name
  • TXT value / URL → v=spf1 mx a:relay.mymailcheap.com -all
  • Record type → TXT
  • TTL → 1800 (in seconds)

Caution

Do not change the -all qualifier in the above record to any other value when using Premium relay (mails will be rejected otherwise).

SPF is configured as a TXT record in your DNS manager. SPF should not be configured using the deprecated SPF record type. A domain should have only 1 SPF record; remove your old host’s SPF record (if any).

If you need to authorize multiple servers/services (Mailcheap/third-party), combine everything into 1 SPF record. You may contact support for help with this.

Note

Configure SPF for mailserver hostname → only applicable for dedicated servers with both custom branding and premium relay enabled. Your value can be found in ‘Server stats & tools’ portal. From your mailserver’s homepage (mail.yourdomain.com/home), log in to Server stats & tools portal. Once logged in, from the menu bar > select Mail Auth/Signing > SPF

Specific Instructions


DKIM

What is a DKIM record?

A DKIM record is actually a specific type of TXT record to verify that the messages’ content are trustworthy, meaning that they weren’t changed from the moment the message left the initial mail server.

How do I setup a DKIM record?

Setting up a DKIM record at your domain registrar/DNS provider (for your domain name) is a very simple process that can be done in under a minute!

  • Basic plans/Premium Mail uses Premium relay (by default) which signs outgoing mail with Mailcheap’s DKIM. You can safely skip this step and proceed to configure DMARC; custom DKIM for your domain is available as an addon.

  • Dedicated servers: Your value can be found in ‘Server stats & tools’ portal. From your mailserver’s homepage (mail.yourdomain.com/home), log in to Server stats & tools portal. Once logged in, from the menu bar > select Mail Auth/Signing > DKIM

General Instructions

  • Host / Domain → default._domainkey / default._domainkey.yourdomain.com
  • TXT value / URL → v=DKIM1; k=rsa; p=MIGfM...long hash...DAQAB (Use your own value!)
  • Record type → TXT
  • TTL → 1800 (in seconds)

Specific Instructions

Same as SPF record since SPF, DKIM & DMARC are all entered as TXT records in your DNS manager.


DMARC

What is a DMARC record?

A DMARC record is actually a specific type of TXT record used for email authentication and empowers SPF and DKIM by stating a clear policy which should be used about both the aforementioned tools.

How do I setup a DMARC record?

Setting up a DMARC record at your domain registrar/DNS provider (for your domain name) is a very simple process that can be done in under a minute!

General Instructions

  • Host / Domain → _dmarc / _dmarc.yourdomain.com
  • TXT value / URL → v=DMARC1; p=none
  • Record type → TXT
  • TTL → 1800 (in seconds)

Note

Both SPF and DKIM must be configured before setting up DMARC.

Specific Instructions

Same as SPF record since SPF, DKIM & DMARC are all entered as TXT records in your DNS manager.


Verify DNS

Verify and test your DNS settings in console. Log in to console > from the menu bar > select Tools > DNS status.