Blog · Dmarc
Why DMARC Alignment Fails After an Email Platform Migration (And How to Fix It)
You switched to a new email platform. Your sending logs show successful deliveries. SPF passes. DKIM passes. But DMARC fails alignment at several major receiving domains, and you only find out when you check your aggregate reports or notice a sudden drop in replies from Hotmail and Gmail addresses.
This is the DMARC alignment trap, and it appears in almost every significant email platform migration.
What DMARC alignment actually means
SPF and DKIM check whether a message was sent by an authorized server. DMARC alignment checks whether the domain that just passed those checks matches the domain recipients see as the sender.
The From header domain is what shows up in the recipient's mailbox as the sender. DMARC requires that either the SPF-authenticated domain or the DKIM-authenticated domain matches the From header domain. If both authentication mechanisms pass but neither aligns, DMARC fails.
There are two alignment modes. Relaxed alignment requires only the organizational domain to match, so a DKIM signature from subdomain.yourdomain.com still aligns with a From header of yourdomain.com. Most organizations use relaxed alignment. Strict alignment requires exact domain match on both sides. Any domain difference causes a failure.
This distinction matters when platforms send from their own infrastructure. If your From header says yourdomain.com but the new platform signs DKIM with relay.platform.com, authentication passes and alignment fails.
Why platform migrations break alignment
When you migrate email infrastructure, the new platform sends from its own servers using its own domain names. Three configuration choices typically cause alignment failures.
DKIM signing domain. Most platforms sign outgoing mail with their own domain by default. The DKIM signature d= tag shows the platform's domain, not yours. The signature is valid, so DKIM authentication passes. But the signing domain does not match your From header, so DMARC alignment fails. This is the most common alignment problem after a migration.
SPF MailFrom domain. SPF validates the domain in the SMTP MAIL FROM command. Many platforms use their own domain here by default. If your From header is yourdomain.com but your MAIL FROM is mail.platform.com, SPF passes because the platform's servers are authorized for platform.com. But those are different organizational domains, so SPF alignment fails.
Shared infrastructure mismatch. Some platforms assign your outbound mail a sending domain that is not in your organizational domain family. This creates a mismatch even under relaxed alignment rules, since relaxed still requires the same organizational domain on both sides.
Why you probably did not notice immediately
Most major mailbox providers do not send bounces for DMARC alignment failures. The message may land in spam, be silently blocked, or arrive normally depending on the receiver's filtering policies. Your sending logs show successful delivery because the SMTP transaction completed without an error.
The failure surfaces through one of these signals: your DMARC aggregate reports show alignment failures for specific receivers, you notice a drop in responses from addresses at particular domains, a recipient reports they never received a message, or your post-migration monitoring shows DMARC pass rates lower than expected.
This is why checking your aggregate reports in the first two weeks after migration matters. Without them, you have no visibility into alignment failures.
How to diagnose alignment failures step by step
Send a test message to an address you control that logs full email headers. Alternatively, use a receiving service that returns the full Authentication-Results header so you can inspect what each receiver is actually checking.
Step 1: Read the DMARC result in Authentication-Results
Look for dmarc=pass or dmarc=fail. If it fails, look for a sub-result like alignment=fail or a specific mechanism failure. The header tells you whether SPF alignment, DKIM alignment, or both are failing.
Step 2: Compare the MAIL FROM domain to the From header
Find the Return-Path header in the received message. This shows the actual envelope sender domain used during the SMTP transaction. Compare it to the From header domain. If they are different organizational domains, your SPF alignment is broken.
For example, if the From header shows sender@yourdomain.com but the Return-Path shows sender@mail.platform.com, and platform.com is not part of the yourdomain.com organizational domain, that is an SPF alignment failure.
Step 3: Check the DKIM signing domain
Find the DKIM-Signature header and locate the d= tag. This is the domain that authenticated the message. If d=platform.com and your From header is @yourdomain.com, that is your DKIM alignment failure.
Step 4: Isolate which mechanism is failing
DMARC passes if either SPF alignment or DKIM alignment passes. If only one is broken, fixing that one mechanism restores DMARC pass results.
How to fix alignment after migration
Fixing DKIM alignment
The goal is to have outbound messages signed with your own domain's DKIM selector, not the platform's default domain. Most major platforms support custom DKIM signing:
1. Generate a DKIM key pair for your domain using the platform's provided selector name
2. Add the DKIM DNS record the platform gives you to your domain's DNS
3. Enable custom DKIM signing in the platform's outbound email settings
4. Send a test message and verify the DKIM-Signature header now shows d=yourdomain.com
If your platform does not support custom DKIM signing, you can route outbound mail through a transparent proxy that adds your DKIM signature before handing the message to the platform, or work with the platform's support team to see if custom domain signing is on their roadmap.
Fixing SPF alignment
The goal is to use your own domain in the SMTP MAIL FROM address, with an SPF record that includes your platform's sending IPs.
Many platforms have a setting like "use custom MAIL FROM domain" or "custom return path domain." Enable it and set the domain to yourdomain.com or a subdomain you control. Then add or update your SPF record to include the platform's sending infrastructure.
If your platform uses SRS (Sender Rewriting Scheme) for forwarding scenarios, confirm it is enabled. SRS rewrites the envelope sender when mail is forwarded so that SPF continues to pass. Without SRS, forwarded mail often fails SPF alignment because the forwarder's server becomes the new MAIL FROM domain.
Switching to strict alignment
Once your configuration is stable and both mechanisms are aligning correctly, switching from relaxed to strict alignment gives you a cleaner failure signal. Any future configuration change that breaks alignment immediately causes DMARC to fail, which is easier to notice than a gradual drop in alignment pass rates. Only do this once you have monitoring in place to catch failures quickly.
Post-migration verification checklist
Send test messages to at least three external accounts at different major providers. For each message, verify:
- The DKIM-Signature
d=tag shows your domain, not the platform's default - The Return-Path domain matches your From header domain or is in the same organizational domain family
- The Authentication-Results header shows
dmarc=pass - Your DMARC aggregate reports show alignment pass rates consistent with your sending volume
Run this check at day one, day three, and day 14 after migration. A configuration problem that slips through the first week often becomes a chronic deliverability issue that is harder to trace later.
Alignment monitoring over time catches regressions that manual checks miss. DMARCFlow can track alignment pass rates across all your receivers and alert you when results change, which is more reliable than spot-checking headers after each configuration change.
FAQ
Can SPF and DKIM both pass but DMARC still fail?
Yes. SPF and DKIM check whether the sending server is authorized to send for a domain. DMARC alignment checks whether the domain that passed those checks matches the From header domain. You can have valid authentication on both mechanisms and still fail alignment if the authenticated domain and the From header domain are different. This is the exact situation most platform migrations create.
Does relaxed alignment make alignment failures less likely?
Yes, but only if your platform's infrastructure is in the same organizational domain family as your From header. Relaxed alignment requires the organizational domain to match, not the exact domain. So subdomain.yourdomain.com aligns with yourdomain.com. But if your platform sends from platform.com and your From header is yourdomain.com, relaxed alignment does not help because they are different organizational domains.
What if my email platform does not support custom DKIM signing?
Some platforms do not let you sign with your own domain. Confirm with the platform's support whether custom DKIM signing is available or on their roadmap. In the meantime, you can route outbound mail through a transit service that adds your DKIM signature before delivering to the platform, or accept that DKIM alignment will fail until the platform adds this capability.
How do I monitor alignment results over time?
Your DMARC aggregate reports show alignment pass and fail counts for every receiver that participates in DMARC reporting. Review them in the first two weeks after migration to confirm your fixes are holding. DMARCFlow can track these results continuously and alert you when alignment pass rates drop below expected thresholds.
Bottom line
The DMARC alignment trap during platform migration is predictable and fixable. In almost every case, the root cause is that the new platform uses its own domain for DKIM signing, for the SPF MAIL FROM, or both. Configuring the platform to use your domain instead resolves the problem. Check your aggregate reports regularly after migration, and set up automated monitoring so any regression is caught quickly rather than discovered through silent deliverability problems.