Back to Free Tools

    SPF Record Generator

    Build a valid SPF record by selecting your email services, with automatic lookup counting.

    Build an SPF record

    Only used to label your saved share link.

    Separate multiple values with spaces or commas.

    0 / 10 DNS lookups
    v=spf1 ~all
    TXT record — Host: @ · Value:

    Checks

    • Record has no senders

      Add at least one include:, ip4:, or ip6: mechanism before publishing.

    What is an SPF record?

    SPF (Sender Policy Framework) is a DNS TXT record at the root of your domain that lists the IP addresses and hosts allowed to send email as you. Receivers look it up on every inbound message and feed the result into DMARC alignment.

    v=spf1 include:_spf.google.com include:mailgun.org ip4:198.51.100.0/24 ~all

    How to publish the generated record

    1. Copy the TXT value above.
    2. In your DNS provider, add a TXT record with Host = @ (root) and the value pasted in.
    3. Save and wait for propagation (typically a few minutes).
    4. Validate it on the SPF Record Checker.

    Frequently asked questions

    References

    Go beyond one-off checks

    Safer Sender continuously monitors your domain's DMARC, SPF and DKIM, classifies every sender, and guides you safely from p=none to p=reject.