DNS Configuration Guide for Email Records: MX, DKIM, DMARC, SPF, and SRV Setup

DNS Configuration Guide for Email Records: MX, DKIM, DMARC, SPF, and SRV Setup

By Michael Chen

January 21, 2025 at 01:19 PM

Email DNS Records Setup Guide

Setting up email requires specific DNS records to ensure proper delivery and security. Here's how to configure essential email-related DNS records for your domain.

MX Records (Mail Exchange) MX records direct email traffic to the correct mail servers. To add MX records:

  1. Navigate to DNS Settings
  2. Click Add Record
  3. Select MX as Type
  4. Enter @ in Host field
  5. Add Priority number (0-255)
  6. Input mail server URL in Data field
  7. Save changes

Email Code in Squarespace

Email Code in Squarespace

Authentication Records (DKIM & SPF) These TXT records prevent email spoofing:

DKIM Setup:

  • Select TXT as record Type
  • Enter provider's host information
  • Paste DKIM value in Data field

SPF Setup:

  • Choose TXT as record Type
  • Use @ in Host field
  • Add SPF record starting with "v=spf1"

DMARC Configuration DMARC helps prevent spam filtering:

  1. Select TXT as record Type
  2. Enter "_dmarc" in Host field
  3. Add DMARC policy in Data field
  4. Save record

SRV Records For service connections, gather these details from your provider:

  • Service name (e.g., _smtp)
  • Protocol (e.g., _tcp)
  • Priority number
  • Weight value
  • Port number
  • Target URL

To add SRV record:

  1. Choose SRV as Type
  2. Enter service._protocol in Host
  3. Add Priority if provided
  4. Input "Weight Port Target" in Data field
  5. Save changes

Common Troubleshooting Tips:

  • Verify record syntax
  • Check for duplicate records
  • Allow 24-48 hours for propagation
  • Confirm provider requirements
  • Ensure proper formatting

For preset configurations, many providers offer automatic setup tools for popular services like Google Workspace, Microsoft 365, and Zoho Mail.

Related Articles

Previous Articles