550 5.7.40: No DMARC policy for a bulk sender (Gmail)

At a glance

A 5.7.40 bounce from Gmail means your sending domain has no DMARC record, and Gmail requires one from bulk senders. Publishing a basic DMARC policy is enough to clear this particular error.

What it means

This is Google's code, and its meaning comes from Google. Google's SMTP error reference lists it in two forms:

DMARC is a DNS record on your From: domain. It tells receivers what to do with mail that fails SPF and DKIM alignment, and where to send reports.

What Gmail requires

Google's sender guidelines split senders in two:

So the policy does not have to block anything. It only has to exist.

Common causes

Google also lists 504 5.7.40 for an unrecognized authentication type when a client signs in: that is an SMTP AUTH problem, covered under 530 5.7.0 and 535 5.7.8, not DMARC.

How to fix it

  1. Look up your From: domain with the DMARC checker.
  2. If there is no valid record, build one with the DMARC generator. Start with p=none and an address to receive aggregate reports.
  3. Publish it in your DNS, then run the checker again.
  4. Make sure SPF or DKIM passes for your From: domain, or DMARC will fail even with a record: see 5.7.32 for alignment and the SPF checker and DKIM checker.
  5. Read the reports for a few weeks. When every legitimate source passes, you can move to a stricter policy.
  6. Resend, or let your queue retry the deferred mail.

What to do with the address

Keep it. A 5.7.40 refusal is about your domain's DNS, never about the recipient's mailbox.

See every bounce code in the dictionary.

Many bounces from addresses that do not exist can be avoided: check an address with our free email checker, or clean a whole list before you send.

How we wrote this: drafted by the email-validation.org team with the help of AI writing tools, from our product documentation and the sources linked in the text.

Updated · Maintained by the email-validation.org team