How to Set Up DNS Email Records: MX, DKIM, DMARC & SPF Guide

How to Set Up DNS Email Records: MX, DKIM, DMARC & SPF Guide

By Michael Turner

January 21, 2025 at 12:04 PM

DNS records are essential for setting up and managing email services for your domain. Here's how to configure the main types of email-related DNS records:

MX Records (Mail Exchange)

  • Direct email traffic to your mail servers
  • Multiple MX records can be added with different priorities (0-255)
  • Lower priority numbers indicate preferred servers
  • Format: Host: @ | Priority: [number] | Data: [mail server URL]

DKIM Records (DomainKeys Identified Mail)

  • Authenticate your email and prevent unauthorized sending
  • Added as TXT or CNAME records
  • Format: Host: [provider info or @] | Type: TXT/CNAME | Data: [DKIM value]

Email send error alert

Email send error alert

SPF Records (Sender Policy Framework)

  • Authenticate legitimate email servers
  • Added as TXT records
  • Start with "v=spf1"
  • Multiple SPF records are automatically merged

DMARC Records (Domain-based Message Authentication)

  • Verify domain ownership for email marketing
  • Added as single TXT record
  • Format: Host: _dmarc | Type: TXT | Data: [provider value]
  • Multiple records can be merged by separating email addresses with commas

SRV Records (Service Records) Required components:

  • Service name (starts with _, e.g., _smtp)
  • Protocol (starts with _, e.g., _tcp)
  • Priority (optional)
  • Weight (single digit)
  • Port number
  • Target (host URL) Format: Host: _service._protocol | Priority: [number] | Data: [weight port target]

When adding preset records, options are available for:

  • Google Workspace
  • Microsoft 365
  • Fastmail
  • Proton Mail
  • Neo
  • Titan
  • iCloud
  • Zoho Mail

For custom implementations, add records manually through your DNS settings panel under Custom Records.

Related Articles

Previous Articles