Chat bot builder? Go to buzzmark.chat

SMTP error · Yahoo

554 5.7.9: Message not accepted for policy reasons (Yahoo)

The error as Yahoo sends it Permanent - not retried
554 5.7.9 Message not accepted for policy reasons. See https://postmaster.yahooinc.com/error-codes

IP addresses, domains and links in the line differ per message, and a long reply may be split over several lines.

What it means

Yahoo refused the message because it broke one of Yahoo's rules for incoming mail. The most common reason by far is authentication: the message failed DMARC for the domain in its From address, or it was not authenticated at all.

It often happens when a message says it is from an @yahoo.com or @aol.com address but was not sent through Yahoo's own servers. Yahoo publishes a DMARC policy of reject for its domains, so such a message is refused everywhere, including at Yahoo itself.

Usual causes

  • The From domain has a DMARC policy of reject or quarantine, and the message failed both SPF and DKIM alignment.
  • You send from a yahoo.com, aol.com or similar free address through your own server, website or email tool.
  • A mailing list or forwarder changed the message, which broke its DKIM signature.
  • Your domain has no working SPF or DKIM at all.
  • The DKIM key in DNS does not match the key that signs your mail, for example after a provider change.

How to fix it

  1. Check the From address

    If it is a free mailbox address (Yahoo, AOL, Gmail), stop sending as it from other systems. Send from a domain you own and put the free address in Reply-To if you need replies to go there.

  2. Check SPF, DKIM and DMARC for your domain

    Look up your records. SPF must include your sending service. DKIM must be published and enabled. At least one of them must match the From domain.

  3. Read the headers of a delivered message

    Send a test to any mailbox you can open and read the Authentication-Results header. It shows spf, dkim and dmarc results and the domains that were checked.

  4. Fix forwarding and mailing lists

    If the bounce comes from a list, set the list software to rewrite the From address for domains with strict DMARC. Mailman and most other list software have a setting for this.

  5. Relax DMARC while you repair

    If your own domain is at p=reject and legitimate mail is failing, move to p=none until the reports show that every sender passes. Then tighten the policy again.

  6. Resend

    A 554 is final. When a test message shows dmarc=pass, send the original again.

Free tools that help

Related errors

All SMTP error codes

Rather not do DNS by hand?

Buzzmark is EU-hosted transactional email that generates your SPF, DKIM, DMARC and Return-Path records, checks them for you and warns you if they ever drift.

Free up to 300 emails a month · No credit card