Free tool

SPF & DMARC record generator

Build SPF and DMARC TXT records for your sending domain, with copy buttons and plain notes.

The domain in your From address, for example a secondary domain you use only for outbound.

SPF: who may send for this domain

Copy the exact include from each sending tool's DNS setup page.

Only if you send from your own servers. IPv4, IPv6 and CIDR ranges work.

DMARC: what receivers should do when checks fail

Daily summary reports. Separate several with commas.

SPF record
Type
TXT
Host / name
@
 
DMARC record
Type
TXT
Host / name
_dmarc
 

Checks

    How to use the SPF and DMARC generator

    Fill in the form and copy each record into your DNS provider as a TXT record. Everything is built in your browser; nothing is looked up or sent. This tool does not check your live DNS, so after publishing, confirm the records with your DNS provider's checker or your email platform's domain settings.

    The three records that authenticate email

    RecordWhere it livesWhat it does
    SPFTXT on the domain itself (@)Lists the servers allowed to send mail for the domain
    DKIMTXT or CNAME given by your email providerSigns each message so receivers can tell it was not altered
    DMARCTXT on _dmarc. your domainTells receivers what to do when SPF and DKIM do not line up with the From domain, and where to send reports

    DKIM keys are generated by the service that sends your mail, so copy those from its setup page.

    Rules that trip people up

    • One SPF record per domain. If you already have one, merge the includes into it instead of adding a second.
    • Ten DNS lookups at most. Each include, a, mx and redirect counts, and includes can contain more lookups of their own. Going over makes SPF fail.
    • Start DMARC at p=none. Read the aggregate reports for a few weeks, fix any legitimate senders that fail, then move to quarantine and later reject.
    • Reports to another domain only arrive if that domain publishes a record allowing it. Using an address on the same domain avoids this.

    For the full setup, including a separate sending domain and warm-up, read our deliverability and DNS guide. To plan how many domains and inboxes you need, try the sending volume calculator.