Step by Step SendGrid Domain Authentication Setup with DNS Records
Secure your SendGrid domain with proper DNS authentication. Step-by-step guide to SPF, DKIM, and DMARC records for inbox placement and deliverability.
Why SendGrid domain authentication matters for inbox placement
You’ve sent your email campaign through SendGrid, but a third of your audience never saw it. The inbox? Empty. The bounce rate? Spiking. Why? Because without proper DNS authentication, your emails aren’t trusted.
Think of domain authentication like a digital ID badge. Without it, even if your message is legitimate, the receiving server won’t know who you are. SendGrid doesn’t send on your behalf unless you prove you own the domain—and that proof lives in DNS records.
Setting up SPF, DKIM, and DMARC through DNS isn’t just technical legwork. It directly affects whether your emails land in the inbox, not the spam folder. A failed authentication means lost engagement, damaged sender reputation, and higher bounce rates.
Key takeaways
- Domain authentication prevents emails from being marked as spam or rejected by recipient servers.
- SPF, DKIM, and DMARC records must all be configured in DNS to establish full trust with mailbox providers.
- Proper setup reduces sender reputation risk and increases inbox placement rates over time.
What DNS records are needed for SendGrid domain authentication
You need three DNS records for full SendGrid domain authentication: an SPF record to authorize SendGrid’s mail servers, a DKIM record to add cryptographic signing for email integrity, and a DMARC record to define how receivers should handle unauthenticated messages and enable feedback loops. These records work together to improve deliverability and reduce inbox placement issues.
SPF: Authorizing Sending Servers
SPF lets you specify which mail servers are allowed to send email on behalf of your domain. For SendGrid, this means adding a include:sendgrid.net directive to your SPF record. Without it, emails from your domain may fail authentication checks and end up in spam folders.
DKIM: Verifying Message Integrity
DKIM signs outgoing messages with a cryptographic key, proving they weren’t altered in transit. SendGrid provides a unique DKIM selector and public key that you add as a TXT record in your DNS. This ensures recipients can verify the authenticity of your emails.
DMARC: Enforcement and Reporting
DMARC tells receiving mail servers what to do with messages that fail SPF or DKIM checks. It also enables you to receive reports about email authentication results. You start with a monitoring policy (p=none) and adjust to p=quarantine or p=reject after testing.
Together, these records form the technical foundation of email authentication. They’re defined in industry standards: SPF, DKIM, and DMARC. Implementing them properly reduces bounce rates and increases inbox placement, especially for bulk sends.
| Record Type | Role | SendGrid-Specific Setup | Example Value |
|---|---|---|---|
| SPF | Authorizes mail servers to send from your domain | Add include:sendgrid.net to your existing SPF record |
v=spf1 include:sendgrid.net -all |
| DKIM | Verifies email content wasn’t altered | Add a TXT record with the selector and public key from SendGrid | authentication.example.com. TXT "v=DKIM1; k=rsa; p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQC..." |
| DMARC | Defines policy for failed authentication and enables reporting | Set a policy with _dmarc.example.com TXT record |
_dmarc.example.com. TXT "v=DMARC1; p=none; rua=mailto:[email protected]" |
After setting up these records, use a tool like inbox placement testing to validate deliverability across major providers. This step confirms your configuration works in practice, not just in theory.
Step by step SendGrid domain authentication setup with DNS records
You can authenticate your domain in SendGrid by logging in, going to Settings > Authentication, adding your domain, then copying and pasting three DNS records—SPF, DKIM, and DMARC—into your DNS provider’s dashboard. Once saved, wait 15–30 minutes for propagation, then verify in SendGrid. Proper setup improves deliverability and sender reputation, reducing spam flags and bounces.
What each DNS record does
SPF (Sender Policy Framework) tells receiving servers which IPs are allowed to send emails on your domain’s behalf. DKIM (DomainKeys Identified Mail) adds a digital signature to verify email integrity. DMARC (Domain-based Message Authentication, Reporting & Conformance) defines what to do if SPF or DKIM fails and sets up reporting. Together, they’re an industry-standard defense against spoofing and phishing.
- Log in to SendGrid and go to Settings > Authentication. This is where you manage your domain’s identity. You’ll find Domain Authentication under the Security section—it’s the first step to proving you own the domain and are authorized to send emails from it.
- Click Domain Authentication and enter your domain, like
example.com. SendGrid validates ownership by checking DNS records later, but you must confirm access from a verified admin email or via DNS. - SendGrid generates three DNS records: SPF, DKIM, and DMARC. These are not optional. The SPF record lists authorized sending IPs. The DKIM record contains a public key for email signing. The DMARC record sets policies for handling failed authentication and directs reports to you.
- Copy the full value for each record as provided. Don’t edit, truncate, or modify these lines. Even a missing space or incorrect selector breaks DMARC alignment. Use the exact syntax from SendGrid’s UI.
- Log in to your DNS provider’s dashboard, like Cloudflare, GoDaddy, or AWS Route 53. These systems manage the DNS records for your domain. You must access the correct zone file where your domain’s records are stored.
- Add the SPF record as a TXT record. Enter the full value SendGrid provides, usually starting with
v=spf1. Some systems allow multiple TXT records, but only one should exist for SPF per domain. Multiple records can trigger validation errors. - Add the DKIM record as a TXT record using the selector and value. The selector (e.g.,
sendgrid._domainkey) is used in the DNS name. The value is a public key. This enables email signing and verification. - Add the DMARC record as a TXT record with the name
_dmarcand a policy likev=DMARC1; p=none; rua=mailto:[email protected]. This tells receivers how to handle failed messages and where to send forensic reports. Start withp=noneto monitor before enforcing. - Save changes and wait 15–30 minutes. DNS propagation can take time, especially with global caching. Use tools like MXToolbox or RFC 7483 to verify records exist without errors.
- Return to SendGrid and click Verify. SendGrid checks DNS in real time. If all records are correct and propagated, it shows a green checkmark—your domain is authenticated.
After setup, your emails will have higher inbox placement. You can test deliverability with a real email list using MailTester’s inbox placement tool, which checks whether your messages land in inboxes or spam folders across providers.
How DNS propagation affects your authentication timeline
DNS changes can take anywhere from 15 minutes to 48 hours to propagate worldwide. Until your SPF, DKIM, and DMARC records are live across the internet, SendGrid can’t validate them — so immediate verification isn’t possible. You’ll see “pending” status even after adding records, especially if you’re testing in a hurry.
Why propagation delays happen
Every DNS resolver caches records for a set period (TTL), usually between 300 seconds (5 minutes) and 86,400 seconds (24 hours). When you update your DNS, older cached versions persist until they expire. This means some users may still see the old version even after you’ve made changes.
For example, a resolver in Europe might still return the previous record while one in Asia already reflects your update. This fragmentation delays full validation — even if you’re using SendGrid’s real-time verification tools.
Check DNS records before relying on SendGrid
Don’t wait for SendGrid to confirm. Let’s make this real: use MxToolbox or the command-line dig to query your domain and verify the records are now correct. This is a simple, fast step that prevents false positives.
Run dig TXT yourdomain.com or use the MXToolbox DNS lookup to confirm SPF, DKIM, and DMARC entries are published and visible. If they’re missing or incorrect, SendGrid will show failure — even if you think you’ve done it right.
Once you’re confident the records are live globally, you can trust SendGrid’s status check. But remember: propagation doesn't stop at “confirmed.” It only means the current state is consistent across the network.
For faster troubleshooting, you can also verify sender reputation and deliverability in advance with a real inbox placement test. Try our inbox placement tester to see how your authenticated domain performs across real inboxes before sending.
Bottom line: DNS isn’t just a technical step. It’s a timing bottleneck. If you’re sending time-sensitive campaigns, validate propagation early — don’t assume SendGrid is done when the portal says “verified.”
Common DNS setup mistakes and how to avoid them
You’re likely to hit a deliverability wall if you misconfigure your SendGrid domain authentication because DNS errors silently break email delivery. The biggest traps? Duplicate SPF records, mismatched DKIM selectors, wrong record names (especially for DMARC), and missing trailing dots in TXT values. Catch these early with a systematic check, or risk bounces, spam placement, or outright blocklists.
SPF, DKIM, and DMARC record pitfalls
- Don’t create multiple SPF TXT records. Only one SPF record is valid per domain. Combine all authorized sending sources (like SendGrid’s SPF) into a single record using the
includemechanism — e.g.,v=spf1 include:sendgrid.net ~all. - Ensure your DKIM selector matches exactly what SendGrid provides. If your selector is
sendgrid, the record must be namedsendgrid._domainkey.yourdomain.com— notsg._domainkeyor anything else. - Use the correct record name for DMARC. It must be
_dmarc.yourdomain.com— notdmarcordmarc.yourdomain. Missing the underscore or misplacing the domain part breaks alignment. - Always end a TXT record value with a trailing dot. Omitting it can cause the DNS resolver to append the domain name incorrectly, turning
“v=DMARC1; p=none”intov=DMARC1; p=none.yourdomain.com, which is invalid. This is a common cause of failed SPF/DKIM checks.
Why these errors matter
Each mistake can trigger a failure in email authentication chains. Even a single misconfigured record can cause the receiving server to reject your messages or mark them as spam. According to RFC 7208 (the DMARC standard), improper record syntax leads to inconsistent enforcement across receiving systems.
Use tools like MXToolbox or DNSChecker.org to validate your records in real time. Test both propagation and syntax before sending any production emails.
Before sending to a list, verify addresses with a tool that checks real-time deliverability — not just syntax. MailTester’s inbox placement tester simulates real delivery conditions across major providers and flags authentication issues before they impact your campaign.
How to test your DNS records after setup
You can verify your SendGrid domain authentication setup by using public DNS lookup tools to confirm your TXT records are live and correct, checking that SPF includes include:sendgrid.net, validating DKIM signatures in actual email headers, and ensuring DMARC is set to p=none during testing to avoid blocking legitimate emails. These steps confirm your domain is properly authenticated and ready to send.
Verify DNS records with public tools
- Use MxToolbox or DNSChecker.org to look up your domain’s TXT records. Enter your domain name and check that the record matches what SendGrid provided.
- Look for a TXT record with the value
v=spf1 include:sendgrid.net ~all— this confirms SPF is correctly set. - Run a DNS lookup for DKIM — you should see a TXT record starting with
mail._domainkey.and a selector-specific key value. - Wait up to 48 hours after DNS changes: propagation varies, and some tools may show outdated results if queried too soon.
Validate authentication alignment and headers
- Send a test email from your verified domain using SendGrid’s API or interface.
- Open the email header in your inbox (using “Show original” in Gmail or equivalent) and look for a
dkim-signaturefield. A valid signature means DKIM is configured properly. - Check that the
Authentication-Resultsheader includesdkim=passandspf=pass. This confirms both SPF and DKIM passed. - Set your DMARC record to
p=noneduring testing. This lets you monitor reports without blocking emails. Use DMARC.org for guidance on policy syntax and best practices. - If your domain appears in spam reports, it’s usually due to incorrect alignment or missing authentication. Recheck records and validate header results.
Once these checks pass, you’re ready to move to active sending with confidence. If you're verifying large lists, you can also use MailTester’s bulk verification tool to clean your send list before you begin — this reduces bounces and protects sender reputation.
What to do if SendGrid says authentication failed
If SendGrid reports authentication failure, your DNS records are likely misconfigured. Double-check every character, confirm they’re set at the root domain, wait for propagation, eliminate overlapping records, and contact SendGrid support with proof if issues persist. This is the fastest way to resolve it.
Verify your DNS records carefully
- Check every character in your SPF, DKIM, and DMARC records—spaces, quotes, and hyphens matter. A single typo breaks authentication.
- Ensure the record is added at the root domain level (e.g.,
example.com), not a subdomain likemail.example.com. SendGrid validates the root. - Use a public DNS lookup tool like MXToolbox or DNSChecker.org to confirm the record is live and visible worldwide.
Check for conflicting records
- Look for duplicate or overlapping records in your DNS zone—having two TXT records for SPF, for example, can break validation.
- Ensure no third-party service has introduced conflicting entries (like a separate email provider or security tool).
- Remove or merge conflicting entries. Only one SPF record per domain is allowed by standards (RFC 7208), though multiple TXT records can exist if properly combined.
If your records pass inspection, wait at least 10 minutes, but up to 48 hours, for DNS propagation to complete, especially after recent changes.
If the issue continues, contact SendGrid support. Include a screenshot or a live DNS lookup result showing your record has propagated correctly. They can validate the record on their end.
Before sending bulk mail, verify your entire list with a trusted tool like MailTester’s bulk verification—it checks deliverability health, catch-all detection, and role accounts, helping you avoid sender reputation damage from invalid addresses.
How domain authentication improves sender reputation and deliverability
Authenticating your SendGrid domain with DNS records directly strengthens your sender reputation by proving to email providers that your messages come from a legitimate source. This reduces the odds of your emails being flagged as spoofing, improves inbox placement, and lowers bounce and spam complaint rates—key factors in maintaining a healthy sending reputation. You’re not just setting up SPF and DKIM; you’re building trust with inbox providers.
Spam filters recognize authenticated sources
When you authenticate your domain, you’re telling mailbox providers like Gmail, Yahoo, and Outlook: “This email is really from us.” Without it, your messages may be treated as suspicious—especially if your sending volume is high or your domain is new. Authentication reduces the chance of messages landing in spam or being blocked altogether, which is especially important for transactional or marketing emails.
According to industry standards set by RFC 7052, authenticated domains are treated with higher trust by receiving servers. This is not just theory—Spamhaus and MxToolbox both list common unauthenticated senders in their reputation feeds, meaning failure to authenticate increases your exposure to blacklists.
Inbox placement, bounce rates, and long-term sender health
Domains with proper authentication typically see better inbox placement rates. Servers are more likely to accept messages from domains that can prove their identity through SPF, DKIM, and DMARC. This is directly tied to reduced bounce rates—especially hard bounces from invalid or non-existent addresses—and fewer spam complaints from recipients who don’t expect your emails.
When recipients mark your emails as spam, it harms your sender reputation. But DMARC reports let you monitor unauthorized use of your domain. If someone else sends emails claiming to be from your domain, you’ll see it in DMARC reports. This visibility helps you catch impersonation attempts, tighten your policies, and protect your domain’s integrity.
Let’s be clear: authentication doesn’t guarantee inbox placement, but it removes a major barrier. A domain that’s properly aligned and monitored is far less likely to be flagged or quarantined.
For teams sending at scale, you can use tools like MailTester’s inbox placement test to verify how your authenticated emails perform across major providers. You can also check individual addresses before sending with our email checker to reduce bounce risk from invalid or risky addresses.
Using MailTester to verify your SendGrid email deliverability
You can use MailTester to validate your SendGrid email list quality before sending by checking individual addresses or entire lists for validity, catch-all status, role accounts, and disposable domains. After setting up SPF, DKIM, and DMARC in your DNS, test your domain’s deliverability with real-time inbox placement testing to confirm your emails reach inboxes, not spam folders. MailTester’s 98.9% accuracy identifies risky addresses so you only send to valid, engaged recipients.
Verify recipients before sending via API or bulk check
Once your SendGrid domain is authenticated, plug your email list into MailTester’s bulk verification tool to clean it at scale. This process flags undeliverable addresses, catch-alls, and disposable domains that’d otherwise cause bounces or hurt sender reputation. You can also use MailTester’s real-time verification API to validate addresses on-the-fly as they enter your system, such as during a signup funnel. Both methods help prevent sends that waste credit and damage deliverability.
Test inbox placement and detect deliverability risks
Use MailTester’s Inbox Placement tool to send a test email from your authenticated SendGrid domain and see whether it lands in the inbox, spam folder, or gets blocked altogether. This real-world test simulates how ISPs like Gmail, Outlook, and Yahoo treat your messages based on alignment with industry standards such as DMARC and authentication protocols. If your test fails, it signals a misconfiguration in your DNS or a broader reputation issue — both of which can be diagnosed and fixed before bulk sending.
MailTester detects high-risk recipient patterns like admin@, marketing@, or [email protected] using behavior-based intelligence and real-time domain reputation data. These addresses are statistically more likely to result in bounces, spam complaints, or inactivity. By detecting them early, you reduce the risk of triggering blacklists, which is a common issue with unverified lists.
For reference, SPF, DKIM, and DMARC are foundational to email authentication. They prevent spoofing and help ISPs validate the origin of your messages. Learn more from RFC 7208 (SPF) and RFC 7672 (DMARC). These mechanisms alone don’t guarantee inbox placement — but they’re required to be taken seriously by major email providers.
Start by testing your current list. Check a few addresses first with MailTester’s single email checker, then scale to bulk verification with your full list. You’ll get a clean, deliverable list before it ever hits SendGrid.
Why domain authentication is part of long-term email strategy
You don’t authenticate your domain just to pass a one-time check. You do it because inbox placement, sender reputation, and long-term deliverability depend on it. Without proper DNS records like SPF, DKIM, and DMARC, even a clean email list can get blocked by enterprise filters or flagged as spam. Authentication is a foundational layer — not a fix for poor list quality, but a guardrail for what you send.
Authentication vs. List Hygiene: What It Actually Does
Let’s be clear: setting up SPF, DKIM, and DMARC won’t fix a list full of invalid or spam-trap emails. If your list is outdated, purchased, or poorly sourced, authentication won’t save you. But if you’re sending to engaged, opted-in recipients, it protects that clean send from being derailed by gateway filters.
Think of authentication as your domain’s ID badge. It says, "Yes, this is really us." Without it, even legitimate messages can be rejected or quarantined, especially at organizations with strict security policies. According to RFC 7001 (the standard for DMARC), domain-level authentication is required for reliable email delivery at scale — especially for transactional or high-volume outbound email.
You’re not just enabling SendGrid to send on your behalf. You’re proving to gateways that you’ve taken responsibility for your email stream.
It’s Required for Scale, Not Just Setup
Once you set up your domain authentication, you’re not done. You’ve unlocked the ability to warm up your domain, run mass campaigns, and send transactional messages without hitting soft bounces or inbox filters.
When you're rolling out a new campaign or onboarding hundreds of users via automated triggers, a domain that’s authenticated is far more likely to land in the inbox — especially at Gmail, Outlook, and corporate mail systems. These gateways use reputation signals over time, and authentication is one of the first signals they trust.
You can't skip this step and expect consistent delivery. Even with strong sender reputation, unauthenticated domains face higher scrutiny. A domain with missing or misconfigured DNS records is automatically treated as lower risk — not higher — by email providers.
Before you start any long-term campaign, make sure your DNS records are correct. Double-check SPF record limits, ensure DKIM signatures are generated, and deploy DMARC with monitoring. If you're unsure, run an inbox placement test to see how your messages are treated in real environments.
For a real-world preview, try verifying your domain’s full deliverability path with a free inbox placement test: run an inbox placement test to see how your messages perform in real inboxes across major providers.
Final checklist before sending emails via SendGrid
Authentication is the foundation of deliverability. Ensure SPF, DKIM, and DMARC records are published and verified in your SendGrid account. Without correct DNS records, your emails risk being flagged as spam or blocked entirely.
Verification and testing
- Confirm DNS propagation completed using a public lookup tool like MXToolbox or Google’s dig.
- Use MailTester to clean your email list—remove invalid, catch-all, disposable, and role-based addresses before sending.
- Set your DMARC policy to
p=noneorp=quarantineto monitor alignment without affecting delivery. - Test a sample email via MailTester’s inbox placement feature to check real-world delivery to major inboxes.
- Review results for any spam complaints or bounces during testing.
Once all steps are verified, your email setup is aligned with industry standards. Sending reliably begins with clean data and correct authentication.
Sources
- 52.1% of the world's top 1.8 million domains (937,931 domains) now publish a valid DMARC record, up from 29.1% in 2023. — EasyDMARC 2026 DMARC Adoption & Enforcement Report (2026)
- Google reported 265 billion fewer unauthenticated messages sent to Gmail users in 2024 — a 65% reduction — after its bulk-sender rules took effect, with 500,000+ top domains publishing DMARC records in response. — Google (via MailOver bulk-sender requirements guide) (2024)
Keep reading
- Email authentication: SPF, DKIM, DMARC, BIMI and MTA-STS (complete guide)
- Testing Your DMARC Policy After a DNS Provider Switch
- Testing DKIM Signature Validity After Changing DNS Host
- Confirming SPF Record Integrity After DNS Provider Transition
- Amazon SES Sandbox to Production: DNS Records for Deliverability
Ready to put this into practice? MailTester verifies emails with 98.9% accuracy — start with 100 free verifications.
Frequently asked questions
How long does it take for DNS records to work after setup?
DNS changes typically propagate within 15 minutes to 48 hours, depending on your DNS provider and TTL settings.
Can I use SendGrid without domain authentication?
Yes, but emails may fail to deliver or be marked as spam. Domain authentication is required for reliable inbox placement.
What happens if I have conflicting SPF records?
Multiple SPF records cause validation failure. Combine all authorized IPs and services into a single SPF TXT record.
Do I need to authenticate subdomains separately?
Only if they send emails. Subdomains like mail.example.com require their own authentication if used to send mail.
What does ‘p=none’ mean in DMARC?
It instructs receivers to monitor unauthenticated messages but not take action—ideal for initial setup.
How can I verify my DKIM signature is working?
Check the email header for a valid 'dkim-signature' field. Tools like MailTester can also validate it.
Why should I use MailTester after setting up SendGrid?
MailTester checks for invalid, role, catch-all, and disposable addresses, ensuring your list is clean before sending.
Can I remove the DMARC record after setup?
No, keeping DMARC active helps detect spoofing attempts. Start with p=none, then move to p=quarantine or p=reject as needed.
What if SendGrid says authentication failed even with correct DNS?
Check for typos, incorrect record names, TTLs that are too high, or firewall rules blocking DNS queries.
Is domain authentication required for transactional emails?
Yes. Even transactional emails need authentication to be delivered reliably and avoid being blocked.