Skip to content
FunnelGuard

Fix guide by FunnelsGuard

DMARC alignment fails: From domain differs from sending domain

DLV-054High impactDetectedBy FunnelGuardPublished Updated
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.

What aligned and misaligned look like
CheckAligned (DMARC passes)Not aligned (DMARC fails)
From addressinfo@yourcompany.cominfo@yourcompany.com
DKIM d=yourcompany.comsendingservice.com
SPF Return-Path domainbounce.yourcompany.commail.sendingservice.com
Resultdmarc=passdmarc=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.

Where a misaligned email dies
  1. Visitor submits formForm saves the lead
  2. Email sent as you@yourcompany.comSigned by another domain
  3. DMARC alignment checkFrom does not match SPF or DKIM domain
  4. Spam folder or rejectionMessage not seen
  5. Lead follow-upNobody replies

The form works and the email is sent, but the receiving server rejects or hides it.

Notification emails reaching the inboxExample numbers
Notification emails reaching the inbox (example)Before fix: 20 %; After fix: 98 %038752098Before fixAfter fix%

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

Read the authentication results in a real message
  1. 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.

  2. 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.

  3. 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.

  4. 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.

  5. 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.

Example of a header that fails alignmenttext
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.com

How 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.

Fix alignment for each sender
  1. 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.

  2. 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.

  3. 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.

  4. 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.

  5. 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.

  6. Do not loosen DMARC to hide the problem

    Keep your policy as it is while you fix senders. Aligning mail is the actual fix.

Where to do it on common setups
  1. 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.

  2. 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.

  3. Authenticate the domain in the service

    Add the DKIM records the service shows you to your DNS, then verify.

Example DKIM record shape (use the exact values your service gives you)text
Type:  CNAME
Host:  s1._domainkey.yourcompany.com
Value: s1.domainkey.u0000000.example-esp.com
Headers before and after

Before

  • 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

Verify with fresh messages
  1. Wait for DNS

    Allow time for new records to propagate, then press Verify in the sending service.

  2. 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.

  3. Read the headers again

    Confirm dmarc=pass and that header.i or d= shows your domain.

  4. 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

Keep alignment healthy
  • 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.

Does FunnelGuard catch this?

Detected

FunnelGuard checks for this today.

How: email_auth: From not aligned with DKIM d= or SPF mailfrom.

Stop finding out from your customers

FunnelGuard runs your real forms and checkouts on a schedule, checks the tracking and the leads behind them, and alerts you once, with a screenshot. Try any paid plan free for 3 days.