SPF, DKIM and DMARC for Marketing Senders: What Each Record Proves

SPF lists the servers a domain authorises to send its mail, and DKIM adds a cryptographic signature through which a domain claims responsibility for a message. DMARC checks that one of those two authenticated domains aligns with the visible From domain, then tells receivers what the domain owner wants done on failure. Marketing senders need all three, because each answers a different question.

Key Takeaways

  • Each record answers a different question: SPF covers authorised hosts, DKIM covers a signing domain's responsibility, and DMARC covers alignment with the From domain.
  • DMARC passes when at least one authenticated domain aligns with the From domain, so a platform that signs with its own domain can pass DKIM and still fail alignment.
  • Google asks senders of more than 5,000 messages per day to Gmail accounts to set up SPF, DKIM and DMARC, and says the DMARC policy can be set to none.
  • SPF evaluation is limited to 10 DNS-querying terms, so each sender you add spends part of a shared budget.
  • We recommend publishing a DMARC record with the none policy first, reading the reports, and moving to quarantine and reject only once every legitimate sender aligns.

What question does each record answer?

Each record answers a separate question, and a receiving server asks all of them. SPF asks whether the sending host is authorised, and DKIM asks whether a signing domain stands behind the message. DMARC asks whether either answer relates to the domain the reader can see.

RecordQuestion it answersWhere the answer comes fromDefined in
SPFIs this host authorised to send for the domain?A record the domain publishes listing the hosts it authorisesRFC 7208
DKIMDoes a signing domain claim responsibility for this message?A cryptographic signature, checked against a public key in the signer's domainRFC 6376
DMARCDoes an authenticated domain align with the From domain, and what should happen if not?A policy record the domain owner publishesRFC 7489

RFC 7208 describes SPF as a way for domains to "explicitly authorize the hosts that are allowed to use their domain names". RFC 6376 says DKIM lets a signing domain "claim some responsibility for a message", and that it "separates the question of the identity of the Signer of the message from the purported author of the message". That gap between signer and visible sender is the one DMARC closes.

Why isn't passing SPF or DKIM enough for DMARC?

DMARC passes when an authenticated domain lines up with the From domain. RFC 7489 puts it this way: "If one or more of the Authenticated Identifiers align with the RFC5322.From domain, the message is considered to pass the DMARC mechanism check." Google says the same for bulk senders: the From domain "must be aligned with either the SPF domain or the DKIM domain".

Here's the trap for marketing teams. If a platform signs with its own domain, DKIM can pass while alignment fails. We recommend asking every platform to sign with a key under a domain you control, and sending from that domain.

What does Gmail require from marketing senders?

Google states that from 01 Feb 2024 all senders to Gmail accounts must set up SPF or DKIM. They must also keep valid forward and reverse DNS records and use a TLS connection.

Senders of more than 5,000 messages per day to Gmail accounts must set up SPF and DKIM, and DMARC too. Google adds that "Your DMARC enforcement policy can be set to none". Marketing and subscribed messages must also support one-click unsubscribe.

Authentication is only part of the picture. Google tells senders to keep spam rates in Postmaster Tools below 0.10% and to avoid ever reaching 0.30% or higher. In our view, authentication gets a message through the door, and complaint rate decides whether your next send is welcome.

Authentication is one part of sender reputation. One CustomerIK case study covers rebuilding it after inbox placement had degraded. For the sending-volume side, see our guide to choosing a dedicated or shared IP.

What do the three DMARC policies do?

The policy tag takes one of three values, and each is a request from the domain owner rather than a command. RFC 7489 also says the policy applies to subdomains unless the "sp" tag says otherwise. That matters if marketing sends from a subdomain.

Policy valueWhat the domain owner requests (RFC 7489 wording)
none"no specific action be taken regarding delivery of messages"
quarantineFailing email is "treated by Mail Receivers as suspicious"
rejectMail Receivers "reject email that fails the DMARC mechanism check"

In what order should a marketing team roll these out?

Sequence matters more than speed. A policy published before the sender inventory is done can send legitimate mail to spam. This is the order we recommend.

  1. List every system that sends mail as your domain, including billing and support tools that marketing doesn't own.
  2. Publish a DMARC record with the none policy and a reporting address, then read the reports before changing anything.
  3. For each sender, set up DKIM with a key under your own domain, and confirm the result aligns with the From domain.
  4. Add a sender to SPF only where it needs to be there, and count its DNS lookups against the limit.
  5. Move to quarantine once the reports show every legitimate sender aligning, and to reject only when you're confident nothing legitimate is left.

A DMARC record lives at a TXT name starting with _dmarc. This example uses the placeholder domain from the RFC.

_dmarc.example.com.  TXT  "v=DMARC1; p=none; rua=mailto:dmarc-reports@example.com"

Here's a hypothetical worked example. Say example.com adds a marketing platform, and the none-policy reports show an old billing tool failing alignment. You fix the billing tool first, because a jump straight to reject would have made customer invoices the first casualty.

What breaks SPF as you add senders?

SPF has a hard ceiling. RFC 7208 lists the terms that cause DNS queries as the "include", "a", "mx", "ptr" and "exists" mechanisms and the "redirect" modifier. It says implementations "MUST limit the total number of those terms to 10 during SPF evaluation" and must return "permerror" if the limit is exceeded.

The "all", "ip4" and "ip6" mechanisms don't count towards the limit. Every platform that asks you to add an include spends part of the shared budget of 10. Count before you add the next one, and keep a record of who holds each slot.

If SPF does break, a message with an aligned DKIM signature can still pass DMARC. That's one reason to set DKIM up properly for every sender.

Which mistakes are worth designing against?

  • Publishing reject before the sender inventory is complete. Legitimate mail from forgotten systems fails, and nobody finds out until customers complain.
  • Relying on SPF alone. One extra include can push the record past the lookup limit and fail every message.
  • Letting a platform sign with its own domain. DKIM passes, alignment doesn't, and the dashboard looks healthy.
  • Treating the none policy as the finish line. It asks receivers to take no specific action, so it's a monitoring step, not protection.

If a sender inventory or an SPF record has outgrown its lookup budget, CustomerIK's email reputation recovery service covers domain reputation, SPF, DKIM and DMARC.

Frequently Asked Questions

1. Do I need all three if I send fewer than 5,000 messages a day?

Google asks all senders to set up SPF or DKIM, and senders above 5,000 messages per day to set up SPF, DKIM and DMARC. We recommend setting up all three whatever your volume, because you'll want the DMARC reports before you grow into the higher tier.

2. Can a message pass DMARC if SPF fails?

Yes. RFC 7489 says one or more aligned authenticated identifiers is enough, so an aligned DKIM signature can carry the message.

3. Is a DMARC policy of none acceptable to Gmail?

For senders above 5,000 messages per day, Google says the DMARC enforcement policy can be set to none. That meets the stated requirement, though it doesn't ask receivers to act on failures.

4. What spam rate should I aim for?

Google says to keep spam rates reported in Postmaster Tools below 0.10% and to avoid ever reaching 0.30% or higher. Check that page for the current figures before you set an internal target.

5. Does DMARC replace SPF and DKIM?

No. RFC 7489 describes SPF and DKIM as providing "domain-level authentication", and DMARC adds a policy and reporting layer that checks alignment with the From domain.

Sources

CustomerIK works across email reputation recovery and martech strategy.

If your senders have outgrown one SPF record, let's talk.

Preferences

Privacy is important to us, so you have the option of disabling certain types of storage that may not be necessary for the basic functioning of the website. Blocking categories may impact your experience on the website.

Accept all cookies
Accept all cookies

These items are required to enable basic website functionality.

Always active

These items are used to deliver advertising that is more relevant to you and your interests.

These items allow the website to remember choices you make (such as your user name, language, or the region you are in) and provide enhanced, more personal features.

These items help the website operator understand how its website performs, how visitors interact with the site, and whether there may be technical issues.

Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.