Gmail 550-5.7.1: "this message is likely unsolicited mail"

Gmail blocked a message it considers spam. What triggers it and what to check in your authentication, content and list.

550-5.7.1 Our system has detected that this message is likely unsolicited
550-5.7.1 mail. To reduce the amount of spam sent to Gmail, this message has
550-5.7.1 been blocked.

Gmail's spam filter was confident enough about this message to refuse it outright rather than put it in the spam folder. It's a judgement about this message and your sending reputation, not a single broken setting, so work through the causes below.

What to check

  1. Authentication. Make sure the message passes SPF, DKIM and DMARC. Unauthenticated mail gets far less benefit of the doubt. See reading the Authentication-Results header.
  2. Blocklists. Check whether your sending IP or any domain linked in the message is on a blocklist. A single link to a blocklisted domain can be enough.
  3. Reputation. Google Postmaster Tools shows your domain's spam rate and reputation. A recent campaign to a poor list is the most common cause.
  4. Content. URL shorteners, a single large image with little text, attachments like .zip or macro-enabled documents, and mismatched link text all count against you.
  5. Consistency. The From name, From address, Reply-To and links should belong to the same, recognisable organisation.

If only one type of message is blocked, compare it with messages that do arrive. The difference is usually a link, an attachment or the list it went to.