The three records that prove you are who you say you are. Authentication is the foundation of deliverability — without it, every other fix is built on sand. Here is what each record does, how they fit together, and the order to deploy them.
Email was designed in the 1970s without any mechanism to verify who was sending it. Anyone could put any address in the "From" field. SPF, DKIM, and DMARC are the three records that fix this problem — they let receiving mail servers verify that a message genuinely came from where it claims to come from.
SPF (Sender Policy Framework) is a DNS record that lists every IP address and sending service authorised to send mail as your domain. When a receiving server gets a message claiming to be from your domain, it checks your SPF record to see if the sending IP is on the list.
v=spf1 include:sendgrid.net include:_spf.google.com ~allThe ~all at the end means "softfail" — mail from unlisted sources is accepted but flagged. -all means "hardfail" — it is rejected. Use -all once you are confident you have listed every sending source.
SPF limitation: SPF only checks the "envelope from" (the technical Return-Path address), not the "From" header that the recipient sees. This is why SPF alone is not enough — you also need DKIM.
DKIM (DomainKeys Identified Mail) adds a digital signature to every outgoing message. The signature is created using a private key that only your mail server holds. Your DNS record publishes the corresponding public key. Receivers use that public key to verify the signature — if it matches, the message has not been tampered with in transit and genuinely came from a server that holds your private key.
DKIM survives email forwarding in a way that SPF does not. When a message is forwarded, the sending IP changes (breaking SPF), but the DKIM signature is preserved in the message headers and can still be verified.
DMARC (Domain-based Message Authentication, Reporting and Conformance) tells receivers what to do when SPF or DKIM fails, and sends you reports about what is happening to your mail.
A DMARC record has three key components:
p=): none (monitor only), quarantine (move to spam), or reject (block the message)rua=): an email address where receivers send aggregate reports about your mailv=DMARC1; p=quarantine; rua=mailto:dmarc@yourdomain.com; pct=100~all (softfail).If the guides aren't enough, book a free 30-minute call. We'll look at your setup, name the layer that's failing, and give you the fix order. No pitch, no obligation.