Every time you send an email, the receiving server asks a simple question: is this really coming from the domain it claims to come from? Three DNS records answer that question — SPF, DKIM and DMARC. Together they are the difference between landing in an inbox and landing in a spam folder.
SPF: who is allowed to send?
SPF (Sender Policy Framework) is a DNS TXT record listing the servers allowed to send email for your domain. If a message arrives from a server that is not on the list, the receiver knows something is off.
A typical record looks like this:
v=spf1 include:mailgineer.com ~all
Two rules matter more than anything else:
- One record per domain. Two SPF records break SPF entirely. If you already have one, add the other sender inside it with an
include:. - Keep it short. Every include costs a DNS lookup, and receivers give up after about ten. Long records fail silently.
DKIM: was the message tampered with?
DKIM (DomainKeys Identified Mail) adds a cryptographic signature to your outgoing mail. The signature is verified against a public key published in DNS, which proves two things: the message came from a domain that holds the private key, and nobody changed it on the way.
With Mailgineer this happens automatically. We generate the keys and publish the DNS record for you, so you never manage signing keys by hand.
DMARC: what should happen when both fail?
DMARC tells the receiver what to do with mail that fails SPF or DKIM — and where to send reports. It also requires that at least one of the two aligns with the domain in the From header.
v=DMARC1; p=none; rua=mailto:[email protected]
p=none— monitor only. Nothing is blocked. This is where you should start.p=quarantine— failing mail goes to spam.p=reject— failing mail is refused outright.
The order that works
- Publish SPF and make sure it lists every service that sends for you.
- Turn on DKIM signing and publish the key.
- Publish DMARC with
p=noneand a report address. - Read the reports for two or three weeks, fix whatever still fails.
- Move to
quarantine, then toreject.
Skipping straight to reject is the most common self-inflicted outage we see: a forgotten newsletter tool or invoicing platform suddenly disappears from your customers' inboxes. Walking the path above takes a month and costs nothing.
Every Mailgineer plan configures SPF, DKIM and DMARC for your domains automatically, so you can carry on with the parts of your business that are not DNS.