You published a DMARC policy to protect your domain from spoofing, and now a chunk of your own legitimate mail — invoices from your accounting app, notifications from your website, campaigns from your marketing platform — is being quarantined or rejected by recipients. DMARC is working exactly as designed: it rejects mail that claims to be from your domain but does not authenticate and align with it. The problem is not the policy; it is that a sending source you forgot about, or never configured, is not aligned. The fix is to enumerate every system that sends as your domain and make each one pass SPF or DKIM in alignment.
What’s happening
DMARC builds on SPF and DKIM but adds a stricter requirement: alignment. It is not enough for a message to pass SPF or DKIM — the domain that passed must match the domain in the visible From: header. A message from billing@example.com passes DMARC only if either SPF passes for example.com (the envelope sender is in example.com’s SPF and the IP is authorized) or DKIM passes with a signature d=example.com, and the passing domain aligns with the From: domain. A message can pass plain SPF for the sending platform’s domain and still fail DMARC because that does not align with your From:.
That is why third-party senders break under DMARC. Your CRM sends from: you@example.com but over its own infrastructure; unless you added the CRM to your SPF record and/or set up CRM-side DKIM signing as example.com, the message authenticates for the CRM’s domain, not yours, so it fails alignment and your p=quarantine/p=reject policy catches it. The same happens with website contact-form mail using PHP mail(), a transactional service like a payment provider, or a newsletter platform. Each is a separate sending source that must be individually authorized and aligned.
How to verify
Read your DMARC aggregate (RUA) reports — they list every source sending as your domain and whether it aligned. This is the authoritative answer.
# Your published DMARC policy and where reports go
dig +short TXT _dmarc.example.com
# Look for p=quarantine|reject and rua=mailto:...
For a specific failing message, inspect its authentication results from the recipient’s headers:
# In the received message's Authentication-Results header, look for:
# dmarc=fail ... spf=pass (but for the wrong domain) ... dkim=fail
# or spf=pass header.from=example.com -> aligned; spf=pass smtp.mailfrom=other.com -> NOT aligned
Confirm what your domain currently authorizes:
# SPF: does it include every legitimate sender?
dig +short TXT example.com | grep -i spf
# DKIM for the cPanel selector and any third-party selector
dig +short TXT default._domainkey.example.com
dig +short TXT <platform-selector>._domainkey.example.com
Check what cPanel’s own mail authenticates with, so cPanel-originated mail is not the failing source:
# cPanel Email Deliverability summary for the domain
whmapi1 get_domain_email_deliverability_status domain=example.com 2>/dev/null
The fix
-
Enumerate every sending source from your RUA reports — the foundational step. The aggregate reports name each IP/source sending as
example.comand whether SPF/DKIM aligned. Make a list: cPanel itself, your CRM, your website, your marketing platform, any payment/transactional service. You cannot align what you have not enumerated. -
Add each legitimate sender to SPF — within the ten-lookup limit — for sources that send over their own infrastructure, add the platform’s published
include:to your SPF record in cPanel » Email » Email Deliverability (or DNS). Watch the SPF ten-lookup limit; if you approach it, flatten or consolidate rather than adding endlessly. -
Set up DKIM signing at each third-party platform as your domain — SPF alone does not survive forwarding, and DKIM is the more durable alignment path. In each platform’s settings, enable DKIM/domain authentication for
example.com; it will give you a CNAME or TXT selector to publish. Add it to your DNS so the platform signs asd=example.com, which aligns. -
Confirm cPanel’s own SPF and DKIM are correct — if cPanel-originated mail is the failing source, use cPanel » Email » Email Deliverability » Manage and click Repair to fix the domain’s SPF and DKIM records. This resolves mail sent directly from the server and webmail.
-
Fix website mail that uses PHP mail() — contact forms sending via the local
mail()function often use a mismatched envelope. Route website mail through authenticated SMTP submission to a local cPanel mailbox (so it is signed with your DKIM) instead of unauthenticatedmail(), which rarely aligns. -
Use a relaxed alignment mode if a sender can only align the organizational domain — DMARC supports
aspf=r/adkim=r(relaxed, the default), which aligns subdomains to the organizational domain. If a platform sends from a subdomain, relaxed alignment lets it pass; only use strict (s) when you specifically need it. -
Lower the policy temporarily while you align sources — if mail is actively being rejected and you need breathing room, move from
p=rejecttop=quarantineorp=nonetemporarily, fix every source using the RUA data, then ratchet back up. Do not leave it atnonepermanently — that abandons the protection you wanted.
After authorizing each source, watch successive RUA reports until the previously failing senders show dmarc=pass with alignment, then move the policy back to quarantine/reject with confidence. DMARC rejecting your own mail is not a malfunction — it is the policy telling you which of your senders is not yet aligned, and the fix is to align them, not to weaken the policy. Stack Harbor inventories sending sources and fixes DMARC alignment under managed cPanel operations — start a conversation.