OquMail
Loading account…
Deliverability6 min readUpdated

DMARC Fail: Message Rejected by DMARC Policy, the Fix

Rejected because DMARC failed? Alignment in plain words, why SPF can pass and DMARC still fail, and how to make SPF or DKIM match your From domain.

When a receiver rejects your email because DMARC failed, it means the message did not prove it came from the domain in its From address, and your domain's DMARC record told receivers to refuse mail like that. Gmail words it as "Unauthenticated email from yourdomain.com is not accepted due to domain's DMARC policy". The fix is to make the server that sent the message pass SPF or DKIM for your own domain, not someone else's. If you never sent the message, a spammer used your name and DMARC did its job.

Quick answer

Find out which service sent the bounced message: your normal mailbox, your website, your shop or a tool like a CRM. Then make that service prove it may send for your domain. The most reliable way is to turn on DKIM signing in that service, using your domain, and publish the record it gives you. If real mail is bouncing today and the fix will take time, change p=reject to p=none in your DMARC record so nothing is refused while you work. Check the result with the free DMARC checker, then move back to reject once every service passes.

What DMARC alignment means in plain words

Think of a posted letter. The address printed on the letter is the From line people see in their inbox. The return address on the envelope, and the stamp the post office checks, are what SPF and DKIM look at. DMARC asks a simple question: does at least one of those checks pass for the same name that is printed on the letter? That match is called alignment.

  • SPF passes when the sending server is on your domain's guest list. It checks the envelope sender, a hidden address used for bounces, not the visible From.
  • DKIM passes when the message carries a valid signature. The signature names a domain in a part called d=.
  • DMARC passes when SPF or DKIM passes and the domain it passed for matches the From domain.
  • Relaxed matching, the default, treats subdomains as a match: a pass for mail.yourdomain.com counts for yourdomain.com. Strict matching needs the exact same name.
  • If both checks fail, or pass only for another company's domain, DMARC fails. With p=reject the receiver refuses the message.

Is it your side or theirs?

Almost always the sender's, and specifically the domain owner's. The receiver is following the instruction published in your own DMARC record. Two cases are different. If you never sent the message, someone forged your domain, and the bounce came back to you because they used your address. Delete it; your account is not hacked. If the message was real but went through a mailing list, or was passed on automatically by the recipient's other mailbox, the change on the way may have broken the checks. That part is on the receiving side and the list owner or recipient's admin has to adjust it.

How each big provider words it

  • Gmail: "550-5.7.26 Unauthenticated email from yourdomain.com is not accepted due to domain's DMARC policy". A 4.7.26 version means a temporary DNS problem stopped the check, so it will be retried.
  • Gmail alignment: "5.7.32 ... the From: header isn't aligned" means SPF or DKIM passed, but not for your From domain.
  • Microsoft 365: "550 5.7.509 Access denied, sending domain does not pass DMARC verification". Covered in 5.7.509 at Microsoft.
  • Yahoo and AOL: a 553 or 554 reply saying the message "failed authentication checks against your sending domain's DMARC or DKIM policy".
  • Other servers often say "rejected due to DMARC policy" or "DMARC fail" with code 550 or 554.

Why SPF can pass while DMARC still fails

This is the most common surprise. Many sending services put their own bounce address on the envelope, such as bounces.servicename.com. SPF then passes, but for the service's domain, not yours, so it does not count for DMARC. The same happens with DKIM when a service signs with its own domain because you never set up your own key. The message shows "SPF: PASS" and "DKIM: PASS" and still fails DMARC. The fix is to set up the service's custom domain options: a DKIM record for your domain and, where offered, a custom bounce domain.

Free business email on your own domain

OquMail gives you up to 15 mailboxes on your domain — free — with guided SPF/DKIM/DMARC, webmail, IMAP/SMTP for any mail app, and a send API. Setup is a few DNS records; changes usually take effect within minutes, occasionally up to 48 hours. Start at oqumail.com.

Get started free

Fix it, step by step

  1. Check your DMARC record with the DMARC checker. Note the policy (p=none, quarantine or reject) and whether reports (rua) are switched on.
  2. Find a copy of a failing message, or one that reached a Gmail account, and open Show original. Read the SPF (Sender Policy Framework — a list of servers allowed to send email as your domain)=, DKIM (a digital signature that proves your email was not tampered with)= and DMARC (a policy that tells providers what to do if someone fakes your domain)= results and the domain named next to each.
  3. If DKIM failed or signed for another domain, turn on DKIM for your domain in that service and paste its record exactly. A cut-off key is a common cause; see DKIM signature failures.
  4. If SPF failed, add the service to your one SPF record with the SPF checker to confirm, and keep it under 10 DNS lookups.
  5. For a website that sends with the server's own mail function, change it to send through a real mailbox over SMTP or through your provider's API.
  6. If you cannot fix every service today, set p=none for now, read the DMARC reports for a week (how to read them), and raise the policy again when every real source passes.

How to confirm it is fixed

Send a fresh test from the service that failed to a Gmail address and open Show original. You want dmarc=pass, and at least one of SPF (Sender Policy Framework — a list of servers allowed to send email as your domain) or DKIM (a digital signature that proves your email was not tampered with) passing with your own domain next to it. Do the same for each sending service. Then watch the next DMARC reports: every IP that sends real mail for you should show as passing. Only then move from none to quarantine and to reject.

If you use OquMail

Mail sent from OquMail webmail, or from a mail app connected to mail.oqumail.com on port 587 with STARTTLS, passes DMARC once your records are live. OquMail uses your own address as the envelope sender, which your SPF covers, and signs each message with a DKIM key for your own domain, so both checks match your From address. Make sure all five records from the dashboard are published: the ownership TXT, MX, SPF (v=spf1 mx a:mail.oqumail.com ~all), DKIM and DMARC. If a DMARC bounce still comes back, the message was sent by something else, such as your website or a booking tool, and that tool needs its own DKIM or should send through OquMail's SMTP or API. Each mailbox can send 250 messages a day.

Common questions

What does "rejected due to DMARC policy" mean?

It means the receiver checked the domain in your From address, found that neither SPF nor DKIM passed for it, and your DMARC record said to reject such mail. Make the sending service pass SPF or DKIM for your domain.

Should I remove my DMARC record to stop the bounces?

No. Lower the policy to p=none for a short time instead. Removing DMARC makes it easier for others to fake your domain, and Gmail and Yahoo expect larger senders to have one.

Why does forwarded or mailing list mail fail DMARC?

A list that adds a footer or changes the subject breaks the DKIM signature, and mail sent on from another server fails SPF. If both break, DMARC fails. Lists that rewrite the From address avoid this.

What is the difference between DMARC fail and DMARC permanent error?

A fail means your mail did not pass the checks. A permanent error means the receiver could not read your DMARC record at all, often because there are two of them; see 554 5.7.5 permanent error.

Want to see how your own domain is set up? Use the free SPF checker and DMARC checker: they run in your browser and store nothing.