554 5.6.0: The message is malformed

At a glance

The receiving server could not accept your message because of how it is built: broken MIME structure, invalid headers or bad encoding. The recipient is fine; the message itself has to be fixed.

What it means

RFC 3463 §3.7 defines X.6.0 as "other or undefined media error": something about the content made the message undeliverable, and none of the more specific content codes fits. The basic code 554 says the transaction failed (RFC 5321 §4.2.3). Because 5.6.0 is a general code, the text after it matters more than the number.

The format rules are in RFC 5322. Its §3.6 says only two header fields are required in every message: the origination date (Date) and the originator (From). Line endings must be CRLF (RFC 5321 §2.3.8).

Common causes

How providers use it

How to fix it

  1. Send the same message to a mailbox you own and open its raw source ("show original" or "view source").
  2. Check that Date and exactly one From are present and well formed, and that Message-ID is there.
  3. Check the MIME structure: every boundary declared in a Content-Type header should appear in the body, and the last part should end with the closing boundary.
  4. Encode non-ASCII text in headers instead of sending raw UTF-8 bytes.
  5. If the message is built by your own code, switch to a mail library that produces MIME for you rather than joining strings by hand.
  6. If only some messages fail, compare a failing one with one that works; the difference points to the template or attachment at fault.

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