How to Fix DMARC Alignment with Indirect Senders (RFC 7960)
Fix DMARC alignment issues when using third-party senders. Learn the RFC 7960 rules, alignment requirements, and how to verify sender validity with.
Why does DMARC alignment break when using indirect senders?
You send emails through a trusted platform—your ESP, marketing automation tool, or CRM—yet DMARC fails. The inbox doesn’t deliver. Why? It’s not because of spam. It’s because of alignment.
When your system sends on your behalf, it often uses a different domain in the SMTP envelope sender (MAIL FROM) than the one in the email’s From header. DMARC checks both domains. If they don’t align, the message fails DMARC, and receivers reject it or mark it as suspicious.
Even though RFC 7960 clearly defines how indirect senders should be authorized, many configurations get this wrong—leading to real email delivery failures. You might have valid content, solid sender reputation, and proper SPF and DKIM, but DMARC alignment still breaks without a fix.
Key takeaways
- DMARC alignment fails when the envelope sender domain (MAIL FROM) differs from the From header domain, a common issue with indirect senders like ESPs.
- RFC 7960 allows authorized indirect senders to avoid alignment failure by defining proper use of sender policy and identity verification.
- Proper DMARC alignment under RFC 7960 requires explicit authorization via DMARC records and correct configuration of MAIL FROM, SPF, and DKIM for the sending domain.
What does RFC 7960 actually say about indirect senders and DMARC?
RFC 7960 clarifies that DMARC alignment isn’t required for messages sent by authorized indirect senders—like SendGrid, Mailchimp, or Amazon SES—if the domain used in the MAIL FROM command is listed in a valid SPF record. This means you can still pass DMARC even if the From header domain doesn’t align, as long as the sending domain is properly authorized via SPF and the MAIL FROM domain matches the SPF-authorized one. This exception exists to support real-world email workflows where senders operate under domains you don’t control.
The alignment logic is tied to MAIL FROM, not the From header
DMARC alignment checks the MAIL FROM domain (used in the SMTP protocol) against the SPF-authorized domain, not the From header you see in the message. This is a key distinction. If you’re using an indirect sender and the MAIL FROM domain is in your SPF record, RFC 7960 allows you to bypass alignment requirements for the From header, even if it points to a different domain.
Let’s say you send via SendGrid using your own domain in the From header, but the MAIL FROM domain is yourbrand.sendgrid.net. As long as yourbrand.sendgrid.net is in your SPF record and your SPF is valid, DMARC alignment will pass — even if the From header domain is different.
This exception exists because many organizations outsource email delivery to third-party providers. RFC 7960 acknowledges this reality and prevents strict alignment rules from breaking legitimate workflows.
But there’s a limit: this only applies if the sending domain (e.g., sendgrid.net) is properly authorized via SPF. You can’t just claim legitimacy by saying “I use SendGrid” — the SPF record must explicitly include the sending domain.
For the full logic, refer to the official document at RFC 7960, which explains the conditions and scope of indirect sender handling. It also discusses the broader context of email authentication in RFC 5322 and authentication practices in RFC 7208.
When you’re setting up campaigns with bulk senders, verifying SPF and MAIL FROM alignment is non-negotiable. Tools like MailTester’s bulk verification can help validate your sender setup and catch issues before they impact deliverability.
When does DMARC alignment fail under indirect sending?
DMARC alignment fails when the domain in the From header doesn't match the domain used in the MAIL FROM (also known as the envelope sender) unless that sending domain is explicitly authorized. This commonly happens when you send from a third-party service (like SendGrid or AWS SES) but keep your own domain in the From header. Even with valid SPF and DKIM, strict DMARC policies will reject messages if alignment fails—especially in organizations with enforcement set to reject or quarantine. RFC 7960 clarifies this, but misreading it leads many teams to misconfigure SPF records or incorrectly assume they can skip formal authorization.
Common failure points in indirect sending
- Using a third-party sender (e.g.,
[email protected]) while settingFrom: yourcompany.com—DMARC checks both domains and fails alignment. - Expecting SPF to override DMARC alignment—SPF only validates the
MAIL FROMdomain, not theFromheader. - Assuming DKIM signing alone fixes alignment—DKIM must use the
Fromdomain’s private key, and the selector must be published correctly. - Adding SPF records to the wrong domain (e.g., adding SPF to your own domain when sending through a subdomain of a third-party provider).
- Skipping formal authorization of indirect senders in DMARC policies, especially when using a
policy=rejectsetting.
Correct alignment under RFC 7960
Under RFC 7960, “indirect sending” refers to sending through a service provider. To maintain alignment in strict mode, the From domain must either:
- Be the same as the
MAIL FROMdomain (direct sending), or - Have the sending provider explicitly authorized via a
spfordkimmechanism in the DMARC record.
You can test these configurations using real-world inbox placement tools—our inbox tester helps identify alignment issues before they cause real delivery failure. Test your message’s DMARC alignment and deliverability today. According to the IETF, this model is designed to prevent spoofing while enabling scalable email operations. Misunderstandings often arise when teams assume SPF alone prevents blocks, but RFC 7960 makes it clear that alignment is its own required check. Learn more about indirect sending in the official specification.
How to properly align DMARC when using a third-party sender
You can fix DMARC alignment when using indirect senders like SendGrid or Mailchimp by ensuring your SPF record includes the third-party’s domain, aligning the From domain with your brand, and verifying that both the From and MAIL FROM domains are authorized and consistent with your DMARC policy. Failure here leads to alignment failures and deliverability loss.
Step-by-step alignment process
- Include the third-party sender domain in your SPF record. If you use SendGrid, add
include:sendgrid.netto your SPF record. This authorizes SendGrid to send on your behalf. Without it, SPF fails and DMARC fails, regardless of other settings. - Use your brand domain in the From header. Always set the From header to your own domain (e.g.,
[email protected]), even when sending via a third-party. This ensures the From domain aligns with your brand and your DMARC policy. - Verify the MAIL FROM domain is authorized via SPF. The MAIL FROM domain (often the third-party’s domain, like
sendgrid.net) must be authorized in SPF. You can check this using MXToolbox or an SPF validator. Misalignment here is a common cause of DMARC failure. - Ensure SPF alignment between From and MAIL FROM domains. If you're using a shared sending domain (e.g., sending from
yourbrand.comvia SendGrid), confirm that SendGrid’s SPF record includes your domain viainclude:yourbrand.com, if required. Some senders require this for proper alignment. - Test your configuration with real-world email placement. Use tools like inbox placement testing to verify that messages from third-party senders reach inboxes and pass DMARC checks. Real delivery tests catch issues that SPF/DMARC validators miss.
Common pitfalls to avoid
Many teams assume that just having a valid SPF record fixes everything. But DMARC requires both alignment and authorization. A common mistake is using a third-party’s domain in the From header while relying on a different MAIL FROM domain. This breaks alignment and causes rejection.
Another issue is assuming shared sending domains (like sendgrid.net) automatically align with your brand. They don’t — you must ensure both SPF and DMARC are configured correctly across all layers. Refer to RFC 7960 for guidance on handling indirect senders and alignment.
Let’s be clear: you can’t fix alignment by changing headers alone. You must also align the underlying authentication and authorization. A real-world test is the only way to confirm it works.
What happens if your indirect sender isn't in SPF and alignment fails?
If your indirect sender (like a marketing service or email platform) isn't listed in your SPF record and DMARC alignment fails, your email will likely be rejected or quarantined by providers like Gmail or Outlook—especially if the message is sent on your behalf without proper alignment. This happens even if DKIM signs the email, because DMARC checks both SPF and DKIM alignment independently, and alignment is required for policy enforcement.
DMARC enforcement kicks in even with valid DKIM
Even if DKIM is properly signed, DMARC alignment fails if the domain in the From header doesn’t match the domain used in the DKIM signature or the SMTP MAIL FROM. When alignment fails and the DMARC policy is set to reject or quarantine, the message never reaches the inbox—often ending up in spam or being silently dropped.
Reputational risk creeps in even when delivery seems intact
Even if a message slips through, repeated alignment failures from unauthorized senders can hurt your sender reputation. Email providers track behavioral signals: if a domain sends messages that don’t align with authorized sources, it signals potential spoofing or poor sender hygiene. This can lead to long-term deliverability issues, even if your SPF and DKIM are technically valid.
Let’s be clear: alignment isn’t optional. DMARC policies are enforced across major providers. According to RFC 7960 and industry practices, strict alignment is required for DMARC to pass. If your indirect sender is excluded from SPF and doesn’t align with DKIM, you’re essentially sending unverified messages under your domain name—this is a red flag to filters.
That’s why tools like MailTester help: they check whether a domain is in your SPF record, validate DKIM alignment, and test inbox placement under real conditions. Real-time verification can flag misaligned senders before they hurt your reputation. Use the bulk verification tool to clean sender lists, or the inbox placement tester to see how your messages land in Gmail or Outlook with different configurations.
Even small misalignments—like a mismatch between the From domain and the DKIM selector domain—can trigger DMARC rejection. If you use third-party services, make sure they’re explicitly listed in your SPF or use DMARC-compliant routing. It’s not enough to have a valid DKIM signature. Alignment is the gatekeeper.
How to test DMARC alignment and indirect sender configurations
You can validate DMARC alignment with indirect senders by sending real test messages to inboxes and checking the full headers. Use MailTester’s inbox-placement testing to simulate delivery and inspect SPF, DKIM, and DMARC results as they land. Confirm the MAIL FROM domain is covered in your SPF record using tools like MxToolbox, and verify alignment outcomes directly in actual delivered message headers via MailTester’s API.
Step-by-step verification process
- Send test messages through your indirect sender — Use MailTester’s inbox-placement tester to send messages from a third-party service (like a marketing platform) that acts as an indirect sender. Choose a real mailbox that reflects your target audience and check how your mail is delivered, including DMARC status.
- Inspect the full message headers — After delivery, retrieve the raw headers from the delivered message. Look for the
Authentication-Resultsfield, which shows the results of SPF, DKIM, and DMARC checks from the recipient's email system. Confirm that DMARC alignment is marked as Pass for both theFrom:domain and theReturn-Path(MAIL FROM) domain. - Verify MAIL FROM domain is in SPF — Use MxToolbox or
dig TXTto query your SPF record. Ensure the domain used in the MAIL FROM field (e.g., your vendor’s domain or a subdomain) is explicitly allowed. Per RFC 7960, this must be true for indirect senders to pass SPF validation. - Check alignment via MailTester’s API — Integrate with MailTester’s verification API to programmatically test configurations. The API returns granular alignment verdicts, including whether the
From:domain aligns with SPF and DKIM, and whether DMARC policy is enforced or relaxed. - Validate sender reputation and domain trust — Use the test results to assess overall sender reputation. If DMARC fails, review whether the indirect sender has reputation issues or misconfigured authentication. A well-aligned message still may not reach inbox if the sender IP or domain is flagged.
Why this matters: real-world alignment failure
Even with correct SPF and DKIM settings, DMARC alignment fails when the From: domain doesn’t match the Return-Path domain used in SPF validation. Indirect senders often use different domains than the sender’s primary domain, so misalignment is common. Without checking actual delivered headers, you won’t catch these issues until emails are blocked.
RFC 7960 explicitly requires that indirect senders be authorized through proper alignment policies. Testing in real inboxes — not just validation tools — ensures compliance under actual email system behavior.
What verdicts does MailTester return when verifying senders under indirect configurations?
You’ll see one of four verdicts when verifying senders under indirect configurations: valid (if SPF passes and mail flow works), catch-all (if the domain accepts all addresses), risky (if alignment is broken or the sender isn’t authorized), or invalid (if the address or domain doesn’t exist or is blocked). These verdicts help you identify alignment issues before they cause DMARC failures.
How each verdict reflects alignment and authorization
Understanding what each verdict means is key to troubleshooting DMARC alignment under RFC 7960. A valid result confirms SPF alignment and operational delivery — your indirect sender is authorized and capable.
A catch-all verdict is a red flag. It means the domain accepts all email addresses, making it impossible to validate recipients. This behavior breaks reliable deliverability and violates SMTP best practices. Such domains are common with some bulk email providers and pose a risk under DMARC.
A risky verdict usually means either alignment is broken (sender domain doesn’t match the From domain) or the sender domain isn’t authorized to send on your behalf. You might be using a third-party mailer incorrectly — for example, not configuring the return-path or not properly setting up SPF for the indirect sender.
A invalid result confirms the address or domain doesn’t exist. This is often due to typos, outdated data, or domains that are intentionally blocked (e.g., by a reputation system).
Real-time verification and alignment diagnostics
Using MailTester’s real-time verification API or bulk verification tool lets you test hundreds of addresses at once and catch these alignment problems early. It’s not enough to see a DMARC pass — you must ensure the actual sending domain aligns with the From domain.
For example, if your campaign is sent via a third-party service (like a newsletter platform), you must ensure that the return-path or SPF records correctly reflect that sender. If not, DMARC alignment fails — even if SPF passes. This is why RFC 7960 exists: to enforce alignment between the envelope and header domains.
| Verdict | Meaning | Typical Cause | Recommended Action |
|---|---|---|---|
valid |
SPF passes and mail flow works | Correct SPF setup, working mail flow, alignment exists | Continue sending; monitor reputation |
catch-all |
Domain accepts all addresses | Generic mailbox or poorly configured server | Remove or flag addresses from this domain |
risky |
Alignment missing or sender not authorized | SPF not aligned, missing or incorrect selector, incorrect return-path | Review SPF/DKIM configuration and sender role in RFC 7960 |
invalid |
Address or domain does not exist | Typo, inactive domain, or blocked list | Remove from list; verify data source |
For deeper testing, use MailTester’s inbox placement tool to simulate how your message appears in real inboxes. It checks DMARC, SPF, DKIM, and alignment in context. You can also integrate with SendGrid or Klaviyo to catch issues before sending. Test inbox placement with real email clients. For ongoing validation, try the verification API or bulk verification.
For more on how DMARC alignment works, refer to the official RFC 7960 and the DMARC Checker tool for detailed alignment reports.
Why using a real-time verification API helps catch alignment failures early
You can prevent DMARC alignment issues before they cause delivery failures by validating each sender domain in real time using an email verification API like MailTester’s. This catches misaligned SPF or DKIM configurations early—especially when using indirect senders under RFC 7960—so you don’t send to millions only to have messages blocked or marked as spam.
Test domains before sending at scale
Before you blast a large list, verify every sender domain in real time. Indirect senders—like ESPs or partners—may have valid-looking configurations, but their SPF or DKIM records can fail alignment if not properly set up. A real-time API checks these settings on the fly, flagging domains that look valid but fail alignment tests.
Let’s say you’re using a third-party provider to send on your behalf. Even if the provider claims their setup is RFC-compliant, their SPF record might not include your domain as a permitted sender. That breaks alignment. MailTester’s API checks both the presence and validity of SPF and DKIM records, along with domain-level signals like catch-all detection and greylisting, which can otherwise slip through.
Accuracy matters when alignment fails silently
MailTester’s 98.9% accuracy rate means you’re not relying on guesswork. Some tools miss subtle misalignments—especially around include mechanisms in SPF or inconsistent DKIM signing domains. A domain might pass basic syntax checks but still fail RFC 7960 alignment due to missing or incorrect tags.
This precision helps you spot risks before campaigns launch. If a domain fails alignment during verification, you can either adjust the setup, switch providers, or exclude the domain—before it triggers a DMARC rejection at scale. The cost of a single failed email isn’t just delivery loss; it’s reputational drag on sender reputation, which directly impacts inbox placement.
For teams using tools like Mailchimp, HubSpot, or SendGrid, integration with MailTester’s API (https://mailtester.com/api-email-checker) allows on-the-fly validation during list building. It’s not a substitute for configuring SPF, DKIM, and DMARC correctly—but it’s a critical checkpoint.
Drafting a campaign isn’t the time to discover your indirect sender domains are misaligned. Catching misconfigurations early reduces bounces, preserves sender reputation, and improves deliverability. You can test a full list with bulk verification (https://mailtester.com/email-list-verify) or validate sender domains via API. Either way, real-time validation is the first line of defense.
According to RFC 7960 and best practices from trusted sources like the IETF and Spamhaus, alignment must be checked not just during delivery, but pre-sending. Preventing alignment failures at the start reduces operational risk and maintains inbox placement.
How to integrate MailTester with your email workflow to test indirect sender setups
You can catch DMARC alignment issues early by validating both your recipient lists and sender domains directly in your email platform—using MailTester’s integrations with SendGrid, Mailchimp, HubSpot, and Klaviyo. Run verification automatically at list upload or campaign launch to ensure your indirect senders (like transactional gateways or ESPs) align with your domain’s SPF, DKIM, and DMARC policies. This prevents bounces and inbox placement drops from misaligned headers.
Verify before you send
- Connect your SendGrid, Mailchimp, HubSpot, or Klaviyo account to MailTester via the official integrations for real-time list validation.
- Use the bulk verification tool to test all recipients in your campaign list before sending—filter out catch-all, disposable, or invalid addresses.
- Validate the sender domain (e.g., your company’s domain, not just the ESP’s) to confirm it aligns with DMARC policies, especially when using third-party service providers as indirect senders.
- Enable automated verification during list upload or campaign launch to block sends to non-compliant addresses before they hit the inbox.
Analyze and correct alignment issues
- Use the in-app AI assistant to parse email headers and flag DMARC alignment failures between the
Fromdomain and theSPF/DKIMdomains. - Let the AI cross-check your sending setup against RFC 7960, which defines indirect sender practices, to highlight where alignment fails.
- Apply suggested fixes—like adjusting your SPF record to include the indirect sender’s IP or aligning the DKIM selector—to reduce risk of mail rejection.
- Test final delivery with the inbox placement tester to simulate real-world routing and confirm your messages reach the inbox, not the spam folder.
DMARC alignment is not optional—it's a gatekeeper for deliverability. Even small misalignments can cause blocks across large ISPs.
MailTester doesn’t just detect issues—it helps you fix them, step by step. With no credit expiration and 100 free verifications to start, integrating verification into your workflow is both low-risk and highly effective. Use the real-time verification API for high-volume or automated systems that need continuous validation without manual checks.
Conclusion: DMARC alignment with indirect senders doesn't have to be complicated
DMARC alignment failures under RFC 7960 often stem from SPF misconfiguration in indirect sender domains, not from flawed DMARC policies. Understanding that SPF and DMARC operate on different alignment rules is crucial to resolving these issues.
Properly configuring SPF for your indirect sender domain—ensuring it includes the right mechanisms and aligns with your DMARC policy—keeps messages trusted and delivered. Real-time email verification helps catch alignment issues before they impact deliverability.
MailTester’s tools validate sender legitimacy, identify misaligned domains, and confirm email addresses are active and correctly structured. This reduces bounces, improves inbox placement, and strengthens sender reputation.
Sources
- DMARC adoption among top domains surged 75% between 2023 and 2025 — from 27.2% to 47.7% — in the wake of Google and Yahoo's bulk-sender authentication requirements. — EasyDMARC 2025 DMARC Adoption Report (2025)
- Since May 5, 2025, Microsoft Outlook requires SPF, DKIM, and DMARC from domains sending 5,000+ emails per day, rejecting non-compliant mail outright at the SMTP level with error 550 5.7.515. — Microsoft Outlook requirements (via MailOver bulk-sender requirements guide) (2025)
Keep reading
- Email authentication: SPF, DKIM, DMARC, BIMI and MTA-STS (complete guide)
- SPF Record Errors Causing Legitimate Emails to Be Marked as Spam
- How to Resolve DKIM Selector DNS Lookup Timeout Issues in 2026
- How Frequent Should DKIM Signatures Be Rotated for Optimal Deliverability?
- Why Is DKIM Verification Failing Because of Malformed Signature
Ready to put this into practice? MailTester verifies emails with 98.9% accuracy — start with 100 free verifications.
Frequently asked questions
Does DMARC require alignment when using SendGrid or Mailchimp?
Only if the sending domain is not authorized in your SPF record. RFC 7960 allows alignment exceptions when the sender is correctly authorized with SPF.
Can I use a different domain in the MAIL FROM field than my From header?
Yes, but only if the MAIL FROM domain is authorized in your SPF record. Without authorization, alignment fails.
What happens if my sender domain isn’t in SPF when using an indirect sender?
DMARC alignment will fail, and your message may be rejected or quarantined by receiving providers.
Is DKIM enough to fix DMARC alignment issues?
No. DKIM signs the message but does not resolve alignment between From and MAIL FROM domains. SPF authorization is still required.
How do I know if my sender domain is in SPF?
Use DNS lookup tools or MailTester to analyze your SPF TXT record and check whether the sender’s domain is listed as an authorized IP or domain.
Can a catch-all domain cause DMARC alignment issues?
Yes. Catch-all domains accept messages sent to any address, which means they cannot reliably validate sender legitimacy. This increases risk during DMARC checks.
How often should I test my indirect sender configurations?
Test before every major campaign or list send. Use MailTester’s real-time API for on-demand checks.
What does 'risky' mean in MailTester’s verification results?
It indicates a potential delivery risk due to alignment issues, missing SPF, or inconsistent sender behavior.
Do purchased MailTester credits expire?
No. Your purchased credits never expire, so you can verify sender setups anytime without time pressure.
Can I integrate MailTester with my marketing automation platforms?
Yes, MailTester integrates with Mailchimp, HubSpot, Klaviyo, and SendGrid to verify sender and recipient domains before sending.