Guides › Transactional

SparkPost SPF record & DKIM setup

The exact SPF include for SparkPost, how many of your 10 DNS lookups it costs right now, and how to turn on DKIM so you pass DMARC.

SPF

If SparkPost is your only sender, publish this TXT record at your root domain (@):
v=spf1 include:sparkpostmail.com ~all

Already have an SPF record? Don't add a second one. Add include:sparkpostmail.com before the ~all, or use the SPF merger.

Live lookup cost: 2 lookups

Current record at sparkpostmail.com:

v=spf1 exists:%{i}._spf.sparkpostmail.com ~all

Measured live from DNS and refreshed daily. SparkPost can change this at any time, which is exactly why monitoring matters.

DKIM

TXT record at a selector SparkPost generates for each sending domain.

DMARC

SPF and DKIM only protect you once DMARC ties them to your visible From: address. If you don't have one yet, start with:

TXT record at _dmarc
v=DMARC1; p=none; rua=mailto:dmarc-reports@yourdomain.com;

Official documentation: SparkPost docs

Using SparkPost with another service?

Check that SparkPost is set up correctly on your domain