NetSecTools

All tools / Email Security / SPF & DMARC Record Generator

SPF & DMARC Record Generator

Build valid SPF and DMARC DNS records for your domain with ready-to-copy values and clear warnings.

SPF

Host: @   Type: TXT

    DMARC

    Host: _dmarc   Type: TXT
      Generated records are suggestions. Publish them as TXT records at your DNS provider, wait for DNS to update, and then verify them with the Email Security Checker. A domain must have only one SPF record, so merge with any existing one instead of adding a second. Nothing you enter leaves your browser.

      About this tool

      SPF and DMARC are DNS records that stop other people from sending email in your name. SPF lists which servers may send for your domain. DMARC tells receiving servers what to do with mail that fails the checks and where to send reports.

      Choose your email providers, add any extra servers, and the generator builds a correctly formatted SPF record. Then pick a DMARC policy and reporting address to create the matching record. Both come with the DNS host and type, and with warnings about common mistakes such as too many lookups.

      Security tips

      • Never publish two SPF records. Merge everything into one.
      • Roll out DMARC gradually: p=none with reports, then quarantine, then reject.
      • For domains that do not send email, publish SPF "v=spf1 -all" and DMARC p=reject.

      Frequently asked questions

      Where do I put these records?

      In your DNS provider's control panel as TXT records. SPF goes at the root of your domain (host @). DMARC goes at the host _dmarc.

      Should I use ~all or -all?

      ~all (soft fail) is a safe start and works well alongside DMARC. Move to -all once you are certain every legitimate sender is listed.

      Will this break my email?

      A wrong SPF record can cause legitimate mail to be rejected or sent to spam, so list every service that sends for you. Starting DMARC at p=none is safe because it only reports.

      Related guides

      Related tools