On this page
What this issue is
DMARC is a rule that tells receiving mail servers what to do with email that claims to come from your domain. It does not just ask whether SPF or DKIM passed. It asks whether the passing domain matches the domain people see in the From address. That match is called alignment.
Two checks can provide it. SPF alignment: the hidden envelope sender (Return-Path, also called mailfrom) uses the same domain as From. DKIM alignment: the d= value in the DKIM signature uses the same domain as From. You need only one of the two to align, but you need at least one.
| Check | Aligned (DMARC passes) | Not aligned (DMARC fails) |
|---|---|---|
| From address | info@yourcompany.com | info@yourcompany.com |
| DKIM d= | yourcompany.com | sendingservice.com |
| SPF Return-Path domain | bounce.yourcompany.com | mail.sendingservice.com |
| Result | dmarc=pass | dmarc=fail even with spf=pass and dkim=pass |
Why it costs you leads or sales
What happens to a failing message depends on your DMARC policy. With p=none it is usually delivered but marked as unauthenticated, which hurts inbox placement. With p=quarantine it goes to spam. With p=reject it is refused outright.
- Visitor submits formForm saves the lead
- Email sent as you@yourcompany.comSigned by another domain
- DMARC alignment checkFrom does not match SPF or DKIM domain
- Spam folder or rejectionMessage not seen
- Lead follow-upNobody replies
The form works and the email is sent, but the receiving server rejects or hides it.
Example: illustrative numbers for 100 form notifications sent under a quarantine policy, before and after aligning DKIM.
How to check if your site has it
Send a test message
Trigger the real email: submit your contact form, place a test order or request a password reset. Send it to a Gmail address you control.
Open the original headers
In Gmail, open the message, click the three dots and choose Show original. In Outlook, open File > Properties and read Internet headers.
Find the verdicts
Look at the summary at the top for SPF, DKIM and DMARC. A line such as dmarc=fail with spf=pass and dkim=pass signals an alignment problem.
Compare the domains
Note the From domain, the d= value in the DKIM-Signature header and the domain after smtp.mailfrom or in Return-Path. If neither the d= domain nor the Return-Path domain matches the From domain, alignment fails.
Check your DMARC policy
Look up the TXT record at _dmarc.yourcompany.com to see whether the policy is none, quarantine or reject, and whether adkim or aspf is set to strict.
Authentication-Results: mx.google.com;
dkim=pass header.i=@sendingservice.com header.s=s1;
spf=pass smtp.mailfrom=bounce@mail.sendingservice.com;
dmarc=fail (p=QUARANTINE) header.from=yourcompany.comHow to fix it
The goal is to make at least one of SPF or DKIM pass using your own domain. DKIM is the more reliable choice, because SPF alignment breaks when mail is forwarded. Do this for every service that sends mail as your domain: your website, CRM, newsletter tool, helpdesk and shop.
List everything that sends as your domain
Check DMARC aggregate reports if you receive them, or ask each tool owner. Include forms, store, CRM, newsletters and support desk.
Open the domain authentication page in each service
Look for settings called Domain authentication, Sender authentication, Verify domain or Custom DKIM. Add your sending domain there.
Publish the DKIM records it gives you
Add the CNAME or TXT records at your DNS host. Once verified, the service signs mail with d=yourcompany.com.
Set a custom return-path if offered
Some services let you use a subdomain such as bounce.yourcompany.com for the envelope sender. This gives SPF alignment as well.
Or change the From address
If a tool cannot sign with your domain, send from an address on a domain the tool does authenticate, or route that mail through an SMTP service that can.
Do not loosen DMARC to hide the problem
Keep your policy as it is while you fix senders. Aligning mail is the actual fix.
Stop using plain PHP mail
Install an SMTP plugin (for example WP Mail SMTP or FluentSMTP) and connect a real sending service such as your email provider, SendGrid, Mailgun or Postmark.
Match the From address
Set the From email in the plugin to an address on your authenticated domain, and avoid forcing a different From in the form plugin.
Authenticate the domain in the service
Add the DKIM records the service shows you to your DNS, then verify.
Authenticate your domain
In Shopify admin go to Settings > Notifications > Customer notifications and set the Sender email. Follow the Authenticate domain prompt and add the DNS records shown.
Use an address on your domain
Keep the sender email on the domain you authenticated, not a free mailbox address such as Gmail.
Not applicable
Google Tag Manager does not send email, so alignment is fixed in the sending service and your DNS, not in GTM.
Know where form mail comes from
Webflow form notifications are sent by Webflow, so you cannot sign them with your domain. Send form data to your own system with a webhook or a connected tool instead.
Authenticate that tool
In the tool that sends the email, authenticate your domain with DKIM as described above.
Set up a dedicated sending domain
In Settings, open the email or domain settings, add a sending subdomain (for example mail.yourcompany.com) and publish the DNS records shown.
Match From to that domain
Set the From email on workflows and forms to an address on the authenticated domain.
Use a connected domain mailbox
If you use Google Workspace or Microsoft 365 with Wix, make sure their DKIM is turned on for your domain.
Check automated emails
For site notifications sent by Wix, set the sender details in the Wix dashboard and test the headers. If they do not align, route important mail through your own service.
Check Google Workspace DKIM
If your mailboxes use Google Workspace, generate and turn on DKIM in the Google Admin console and add the TXT record at your DNS host.
Review platform emails
Test form and order notifications by reading the headers. If they fail alignment, send important mail through a service you can authenticate.
Send through an authenticated SMTP or API
Use your email provider's SMTP or API instead of the server's local mail function.
Keep From on your domain
Set the From header to your authenticated domain and put replies in Reply-To if you need another address.
Type: CNAME
Host: s1._domainkey.yourcompany.com
Value: s1.domainkey.u0000000.example-esp.comBefore
- DKIM d=sendingservice.com
- Return-Path on the service's domain
- spf=pass, dkim=pass, dmarc=fail
After
- DKIM d=yourcompany.com
- Optional custom return-path on bounce.yourcompany.com
- dmarc=pass
How to confirm it's fixed
Wait for DNS
Allow time for new records to propagate, then press Verify in the sending service.
Send a new test from the real source
Use the actual form, checkout or workflow, not the service's own test button, because the latter may use a different path.
Read the headers again
Confirm dmarc=pass and that header.i or d= shows your domain.
Test more than one mailbox provider
Send to Gmail and to Outlook, and check that the message arrives in the inbox.
How to prevent it happening again
- Authenticate your domain before connecting any new tool that sends email as you
- Keep a list of every sender and who owns it
- Turn on DMARC aggregate reports (rua=) and review them after changes
- Re-test headers after changing email provider, form plugin or DNS host
- Move from p=none to quarantine or reject only once all senders align
- Remember DKIM keys and DNS records can be lost during a migration
How FunnelGuard handles this
FunnelGuard detects this issue. Its email authentication check looks at whether the From domain is aligned with the DKIM d= domain or the SPF mailfrom domain. If neither matches, it flags the problem.
FunnelGuard also runs your real lead forms on a schedule and checks whether test leads reach the inbox and CRM, so a delivery problem can show up even before a customer complains. A failure is re-checked from a second region before one alert goes out, with a screenshot and a likely cause. You still make the DNS and sender changes yourself. The Free plan covers 1 site and 2 journeys with daily checks and no card, and paid plans have a 3-day free trial.
Questions people ask
Why does DMARC fail when SPF and DKIM both pass?
DMARC needs the passing domain to match the From domain, not just to pass. If SPF passes for the service's return-path domain and DKIM passes for the service's own signing domain, neither matches your From domain, so DMARC fails. Authenticate your own domain with the service to fix it.
What is DMARC alignment?
DMARC alignment means the domain in the visible From address matches the domain validated by SPF (the Return-Path domain) or DKIM (the d= domain). Only one of the two needs to align for DMARC to pass. Relaxed mode allows subdomains of the same organisational domain; strict mode needs an exact match.
How do I fix DMARC alignment for my contact form emails?
Send form emails through an SMTP or API service that lets you authenticate your own domain, and add its DKIM records to your DNS. Set the From address to an address on that domain. Then send a real test and confirm dmarc=pass in the headers.
How can I see whether my email is aligned?
Open the original message headers (Show original in Gmail) and read the Authentication-Results line. Compare the From domain with the DKIM d= domain and the Return-Path domain. If DMARC says fail while SPF and DKIM pass, they are not aligned.
Is DKIM or SPF better for DMARC alignment?
DKIM is usually more dependable, because its signature survives forwarding while SPF often breaks. Ideally set up both, but make sure DKIM signs with your own domain. One aligned method is enough for DMARC to pass.
Will my emails be rejected if DMARC alignment fails?
It depends on your DMARC policy. With p=none mail is normally still delivered but may be treated with suspicion, p=quarantine sends it to spam, and p=reject makes receivers refuse it. Large mailbox providers may also filter unauthenticated mail regardless.
Can I use a different From domain than the sending service?
You can, but DMARC will fail unless the service signs with DKIM for your From domain or uses a matching return-path. Most services offer custom domain authentication for this. If one does not, use an address on a domain it can authenticate.
Related issues
- DLV-048Domain has no SPF recordFix guide
- DLV-051SPF missing the ESP's include (SendGrid, Mailgun, Postmark)Fix guide
- DLV-052DKIM selector record missing or wrong keyFix guide
- DLV-053DMARC record missing (Gmail/Yahoo bulk sender requirement)Fix guide
- DLV-063Email forwarding rule breaks SPF (no SRS)Fix guide
- DLV-057Sending domain or IP on a blocklist (Spamhaus, Barracuda)Fix guide