
Setting up Email DNS Records: A Complete Guide to MX, DKIM, DMARC, SPF & SRV
Email DNS Records Setup Guide
Setting up email DNS records properly ensures reliable email delivery and authentication. Here's how to configure essential records for your domain.
MX Records (Mail Exchange)
- Purpose: Routes emails to correct mail servers
- Add via preset records for common providers (Google Workspace, Microsoft 365, Fastmail, etc.)
- Or manually add custom records:
- Select MX as record type
- Use @ in Host field (or subdomain if applicable)
- Enter priority number (0-255)
- Add mail server URL in Data field

Email Code in Squarespace
DKIM and SPF Records (Authentication)
- Add as TXT or CNAME records
- DKIM authenticates sender
- SPF prevents email spoofing
- Steps:
- Select TXT/CNAME type
- Enter host information or @
- Input provider's DKIM/SPF record
- Multiple SPF records automatically combine
DMARC Records (Domain Verification)
- Add as TXT record
- Host field: enter _dmarc
- Helps prevent spam flagging
- Only one DMARC record allowed per domain
- Multiple records must be combined:
- Separate email addresses with commas
- Use strictest policy values
SRV Records (Service Records) Required information:
- Service name (e.g., _smtp)
- Protocol (e.g., _tcp)
- Priority (optional)
- Weight (single digit)
- Port number
- Target URL
Setup steps:
- Gather provider information
- Select SRV record type
- Enter service._protocol in Host field
- Add priority if provided
- Input "Weight Port Target" in Data field
- Save changes
For optimal email delivery:
- Verify all records are correctly formatted
- Allow 24-48 hours for DNS propagation
- Test email functionality after setup
- Keep provider documentation handy
- Monitor email delivery performance
Related Articles

Domain Propagation: Why DNS Changes Take Up to 48 Hours to Complete
