DKIM/SPF Generator
Generate DKIM and SPF DNS records for email authentication.
;; SPF Record
;; Add as a TXT record on example.com
example.com. IN TXT "v=spf1 include:_spf.google.com ~all"
;; DKIM Record
;; Add as a TXT record on google._domainkey.example.com
google._domainkey.example.com. IN TXT "v=DKIM1; k=rsa; p=YOUR_PUBLIC_KEY_HERE"Related Tools
Email Header Analyzer
Parse raw email headers to trace delivery path, authentication, and delays.
Use tool →Email Compatibility
Check HTML email code for rendering issues across Gmail, Outlook, and Apple Mail.
Use tool →Email Signature Generator
Create professional email signatures that work in Gmail, Outlook, and Apple Mail.
Use tool →Subject Line Analyzer
Score email subject lines for length, power words, spam triggers, and mobile preview.
Use tool →How to Set Up DKIM and SPF Records
Pick your email provider, configure your SPF policy and any additional IP addresses or include domains, then enter your DKIM selector and domain. The generator builds the DNS TXT records you need to copy into your domain's DNS settings. If you're using Google Workspace or Microsoft 365, the include domains and selectors are pre-filled — just add your domain name and paste the public key from your provider's admin console.
What Is SPF and Why You Need It
SPF (Sender Policy Framework) tells receiving mail servers which IP addresses and services are allowed to send email on behalf of your domain. Without an SPF record, anyone can forge your domain in the "From" address and your legitimate emails are more likely to land in spam. The record is published as a DNS TXT entry on your root domain and starts with "v=spf1" followed by the mechanisms (include, ip4, mx, a) and a policy directive (~all, -all, or ?all) that tells receivers what to do with unauthorized senders.
Understanding DKIM Authentication
DKIM (DomainKeys Identified Mail) adds a cryptographic signature to every outgoing email. The sending server signs the message with a private key, and the receiving server verifies it using a public key published in your DNS. If the signature matches, the receiver knows the message wasn't tampered with in transit and that it came from an authorized source. The DKIM record is a TXT entry at selector._domainkey.yourdomain.com, where the selector is assigned by your email provider.