550 5.7.40 and 421 4.7.40: no DMARC record or policy

Quick fix

Publish one DMARC record with a policy at _dmarc.example.com, for example v=DMARC1; p=none; rua=mailto:[email protected].

v=DMARC1; p=none; rua=mailto:[email protected]

How to fix it

  1. Look up the TXT records at _dmarc.example.com for the domain in the From address: there must be exactly one that starts with v=DMARC1.
  2. If there is none, publish v=DMARC1; p=none; rua=mailto:[email protected] at _dmarc.example.com.
  3. If there are two, merge them into one record, because receivers discard both.
  4. If the record has no p tag or a misspelled value, set p=none, p=quarantine or p=reject.
  5. Read the aggregate reports at the rua address before you move from none to quarantine or reject.

Learn more: DMARC explained: policy, alignment and reports

How to check

The email spoofing check looks up the DMARC record that applies to the From domain and shows its policy, or that there is none. The DMARC check also reports two records or a bad p value. The DMARC generator builds a record to publish, and the BIMI check shows whether the policy is strong enough for BIMI, which Google says needs quarantine or reject.

The Email spoofing check opens with your domain filled in; it runs when you press Check.

Tools to check it

What the error means

Full error text: 550 5.7.40 Your message was blocked because the sending domain doesn't have a DMARC record or the DMARC record doesn't specify a DMARC policy.

421 4.7.40 (rate limited) and 550 5.7.40 (blocked) are Gmail's errors for a bulk sender whose domain has no usable DMARC record. Gmail requires senders of more than 5,000 messages per day to Gmail accounts to publish one, and a monitoring policy is enough: "Your DMARC enforcement policy can be set to none."

Google's list of Gmail SMTP errors has two texts:

  • 421 4.7.40: "Your email has been rate limited because the sending domain doesn't have a DMARC record, or the DMARC record doesn't specify a DMARC policy."
  • 550 5.7.40: "Your message was blocked because the sending domain doesn't have a DMARC record or the DMARC record doesn't specify a DMARC policy."

Both continue "Gmail requires all bulk email senders to add a DMARC record to their sending domain." Google's FAQ gives 4.7.31 for the same rate limit, with the same text. In Google's DMARC help the p tag is "(Required)", with the values none, quarantine and reject.

A record can exist and still count as missing. RFC 9989 section 4.10: "If multiple DMARC Policy Records are returned for a single target, they are all discarded." Records that do not start with v=DMARC1 are discarded too. RFC 9989 itself treats a valid record without p as p=none, but Gmail's text names a record that doesn't specify a policy, so write the p tag.

The same status code is also listed with reply code 504 for "Unrecognized authentication type." and "XOAUTH is no longer supported.", SMTP login errors that have nothing to do with DMARC.

Sources

All findings