Skip to content

Gmail 550 5.7.40: your sending domain has no DMARC record

Gmail 550 5.7.40 means Google blocked your message because your sending domain has no DMARC record. Publish one at _dmarc with a policy (p=none works); resend.

Koltrix Team6 min read
A red padlock resting on a black computer keyboard
Photo by FlyD on Unsplash
On this page(9 sections)
  1. What does Gmail 550 5.7.40 mean?
  2. Why would a missing DMARC record get mail blocked?
  3. How do you confirm the record is really missing?
  4. What is the smallest DMARC record that fixes it?
  5. What should you check before you publish?
  6. How long until Gmail stops rejecting?
  7. Why might the bounce continue after you publish a record?
  8. How does this relate to the bulk-sender rules?
  9. Bottom line

A Gmail 550 5.7.40 bounce says your message was blocked because the sending domain does not have a DMARC record. The fix is a DNS change, not a content change: publish a DMARC TXT record with a policy at _dmarc.yourdomain.com, and resend. This page covers what Google's own error reference says, what it does not say, and how to publish a first record without risking your mail.

DMARC (Domain-based Message Authentication, Reporting and Conformance, defined in RFC 7489) is a DNS record that tells receivers what to do when a message fails SPF and DKIM alignment, and where to send reports about it. If you want the basics first, read SPF, DKIM and DMARC in plain English.

What does Gmail 550 5.7.40 mean?

It is a permanent rejection (the 5 class) that Google lists in its Gmail SMTP error reference with the message "Your message was blocked because the sending domain doesn't have a DMARC record." Google's resolution is to add a DMARC record with a policy to the sending domain.

The temporary twin is 421 4.7.40, worded as "the sending domain doesn't have a DMARC record, or the DMARC record doesn't specify a DMARC policy." Because the second wording is in the reference too, a record that exists but is malformed or has no p= tag can trigger the same family of errors. Google also lists a 504 5.7.40 code, "XOAUTH is no longer supported," which is unrelated to DMARC. If your bounce says that, you are looking at an SMTP login problem, not DNS.

Why would a missing DMARC record get mail blocked?

Because Google's email sender guidelines require DMARC from bulk senders. The guidelines say that senders who send more than 5,000 messages a day to personal Gmail accounts must set up SPF, DKIM and DMARC, and that the DMARC enforcement policy can be set to none. Messages that fail the requirements may be marked as spam or rejected.

What Google does not publish is the exact moment a given sender starts getting 5.7.40 instead of a spam-folder placement. Third-party posts give thresholds and dates, but treat those as folklore. What you can verify is the bounce text itself, and the cure for it is the same whether you are a large sender or a small one: publish the record.

How do you confirm the record is really missing?

Query the exact name receivers query, which is _dmarc in front of your From domain. Do not check the apex or your mail provider's domain.

dig +short TXT _dmarc.example.com
Result What it means
Empty answer No DMARC record. This is the 5.7.40 cause.
"v=DMARC1; p=none; ..." A policy exists. Look at the other causes below.
"v=DMARC1; rua=mailto:..." No p= tag, so no policy. Add one.
Two TXT strings both starting v=DMARC1 Duplicate records. Receivers treat this as invalid; delete one.
Record exists on the apex of a parent, nothing on your subdomain Usually fine. See the subdomain question below.

Run the check against the domain in the message's From header, because that is the domain DMARC protects. A message sent from news.example.com is judged by the record at _dmarc.news.example.com, and if there is none, by the organizational domain's record. See DMARC subdomain policy for how the fallback works.

What is the smallest DMARC record that fixes it?

A monitoring-only record. Add a TXT record named _dmarc on the sending domain with this value:

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

The tags mean:

  • v=DMARC1 marks it as a DMARC record and must come first.
  • p=none is the policy. none asks receivers to take no action on failures, so it cannot cause bounces by itself.
  • rua= is where aggregate reports are sent, so you can see who sends as your domain.

Google's guidelines say a none policy is enough to meet the DMARC requirement for bulk senders. It does not protect your domain from spoofing, though; that comes later with quarantine or reject. Moving from none to reject lays out a safe order.

If you use a reporting address on another domain, check external report authorization first, or the reports will not arrive.

What should you check before you publish?

A DMARC record does not make failing mail pass. It only makes your failures visible, and later actionable. Ten minutes of checking now saves a second bounce.

  1. Confirm SPF or DKIM passes for each real sender. Google's guidelines say DMARC passes only when SPF or DKIM passes and the domain aligns with the From header. Send yourself a test from every tool that sends as your domain and read the Authentication-Results header (how to read it).
  2. Use p=none first. Do not publish p=reject as your first record. A forgotten sender, such as a billing tool, will start bouncing.
  3. Use one record. Edit the existing TXT if there is one. Two DMARC records at the same name are invalid.
  4. Mind the quotes and the name. Some DNS panels append the domain for you. If you type _dmarc.example.com into such a panel you may end up with _dmarc.example.com.example.com.
  5. Have a mailbox for rua. Aggregate reports are XML files that arrive daily from several receivers. A dedicated address, or a reporting service, keeps them out of a human inbox. Reading DMARC aggregate reports explains what is in them.

For a second pair of eyes on a record you generated from a tool, use the ten-minute review.

How long until Gmail stops rejecting?

As soon as the record is visible to Google's resolvers. Your DNS provider's TTL (time to live) controls how long old answers, including the "no record" answer, may be cached. Negative answers are cached too, so a record you published a minute ago may take a while to be seen. DNS TTL and authentication changes explains the order of operations. Then resend a test message and confirm it lands. A permanent 550 is not retried by your sending server on its own, so you need to resend the messages that bounced.

Why might the bounce continue after you publish a record?

Check these causes, in this order:

Symptom Likely cause Fix
dig returns the record, bounce persists briefly Cached "no record" answer Wait for the TTL, then retry
Bounce says 5.7.40, record has no p= Policy missing Add p=none
Bounce now says 5.7.26 SPF or DKIM is failing, or DMARC fails with a strict policy See Gmail 550 5.7.26
Bounce says 5.7.32 From domain not aligned with the authenticated SPF or DKIM domain See alignment modes
Record published on the wrong domain The From domain is not the domain you edited Publish at _dmarc.<From domain>

Google's reference lists 4.7.32 and 5.7.32 for the alignment case, with the message that the From header "isn't aligned with either the authenticated SPF or DKIM organizational domain." That is a different failure from a missing record and needs a different fix.

How does this relate to the bulk-sender rules?

The 5.7.40 message is the receiving end of the rules in Gmail and Yahoo bulk sender requirements. Those rules ask for authentication, a DMARC record, easy unsubscribe and a low spam-complaint rate. A DMARC record fixes one of them. If you fix 5.7.40 and then see spam-folder placement or 421 4.7.28 rate limiting, you are on a different part of the checklist.

Koltrix supports SPF, DKIM (a separate key per domain) and DMARC for custom domains. The setup steps are in the docs at docs.koltrix.com.

Bottom line

550 5.7.40 means Google found no DMARC record, or no policy in it, for your sending domain. Publish v=DMARC1; p=none; rua=mailto:... at _dmarc on the From domain, confirm every sender passes and aligns, wait for DNS to refresh, and resend the bounced mail. Treat p=none as the start, and move to enforcement only after your reports show that all legitimate mail aligns.

Start with Koltrix

Your domain, one inbox, and an API that sends.

A team inbox where AI sorts and drafts (nothing is sent without your click), plus the transactional API and SMTP relay your product sends with. 7 days free, no card.

SharePost on XLinkedIn