DNS Records required for custom Domain Email

MX Record

MX Records resolve to Machine Hostnames that operate as Mail Servers.

If you have multiple Mail Servers (Highly Available setups), you can specify a priority for which Mail Server should be attempted first.

A Name or CNAME

You will need to ensure you have either an A, AAAA, or CNAME records properly pointing to your Mail Servers to ensure the mail server specified in the MX record is resolvable to an IP address.

SPF - Sender Policy Framework

SPF is a TXT record specify which servers are authorized to send email messages from your domain. It’s essential to validate SPF syntax using a tool to avoid misconfigurations.

Here is an example of a basic SPF record… This record will allow emails coming from email.example.com and the -all will cause a rejection for all other domains.

v=spf1 include:email.example.com -all

DKIM - DomainKeys Identified Mail

DKIM records allow the receiving Mail server validate an email is from a specific domain and was authorized by the owner of that domain. This is done using public key infrastructure and is not exposed to the end users. DKIM involves a private key used by the sender to sign emails and a corresponding public key published in the DNS record. DKIM signatures can be obtained by your Email Service Provider.

DMARC - Domain-based Message Authentication Reporting and Conformance

A DMARC policy will inform Mail servers what to do with your email after it is checked against the Sender Policy Framework and DomainKeys Identified Mail records.

Basic DMARC Rule - v=DMARC1; p=quarantine;

Alignment Modes

Strict = (s) Exact DKIM Match required.

Relaxed = (r) - Subdomain Emails allowed.

Secured DMARC Rule - v=DMARC1; p=reject; adkim=s; aspf=s;

Note that adkim and aspf are optional, and relaxed is the default if unspecified.

p=quarantine: Ask the recipient platform to mark the unauthorized email as spam or quarantine the email.

p=reject: Ask the recipient platform to reject the unauthorized emails. These will not be delivered at all!

p=none: Do not quarantine or reject unauthorized emails. Usually, people only use this policy to troubleshoot or test.

References

CloudFlare - DMARC Management

MXToolbox DMARC Checker

MXToolbox DMARC Tags

Wikipedia - DKIM

2024

New Discord!

less than 1 minute read

Announcing Official Discord Server

Non-Bot Pledge

less than 1 minute read

Nonbot. Our Commitment to Human-made Content

Back to top ↑

2023

Back to top ↑

2022

Back to top ↑