At a glance
- Type: permanent failure (class 5, RFC 3463 §2). The sending server does not retry it and reports the failure to the sender: a bounce message, or an error in the mail app.
- Basic code: varies; the enhanced code is the part that identifies the problem.
- Enhanced code 5.6.5: “Conversion failed” in the IANA registry (RFC 3463), in the group message content or media status (RFC 3463 §3.7).
Your message needed changing before it could go further. The server that tried to change it did not succeed, so the message stopped there.
What it means
RFC 3463 §3.7 defines X.6.5 as "conversion failed": a conversion was required but was unsuccessful. The IANA registry gives no basic reply code for it.
The RFC says the code can be permanent or a persistent temporary notification, so it comes in two forms:
- 5.6.5 is permanent. RFC 3463 §2 says a permanent failure is not likely to be resolved by resending the message in its current form. The message, or the route or converter, has to change.
- 4.6.5 is temporary. The sending server keeps the message and tries again later. If the conversion keeps failing until its retry time runs out, you get a final bounce instead (see 4.4.7).
Unlike 5.6.2, the conversion was allowed. Unlike 554 5.6.3, the server could attempt it. It started and did not finish.
Common causes
- A message part whose content does not match its declared type or encoding, so it cannot be decoded and encoded again.
- Raw 8-bit or binary content that had to be turned into a 7-bit form for a next hop that only carries 7-bit text.
- A gateway into another kind of mail system that could not translate one part of the message.
The text after the code is the best guide.
How to fix it
If you are the sender:
- Read the text after the code. It may name the part that failed.
- Send the message in a form that needs no conversion: base64 for attachments, quoted-printable for non-ASCII text, which a maintained mail library does for you. If the text names a media type or charset conversion, send a format the recipient accepts instead; a transport encoding cannot change the type.
- Check that every part's declared type and encoding match its content. Send a test to a mailbox you own and look at the raw source.
- If you got 4.6.5, let your server retry. If the same message keeps failing, fix it as above instead of waiting for the final bounce.
If you run the server that converts:
- Check your logs for the part and the conversion that failed, and put that detail in the reply text.
What to do with the address
Keep it. The address is not the problem. The content of this message is. Sent in a form that needs no conversion (an encoding the path carries, or a type the recipient accepts), it should go through.
The address on your list is not what failed here. For the bounces your list does cause, clean the list before you send.