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.7.7: “Message integrity failure” in the IANA registry (RFC 3463), in the group security or policy status (RFC 3463 §3.8).
Your message carried protection that lets a system confirm it arrived unchanged. When that system checked, the message no longer matched, so it was refused.
What it means
RFC 3463 §3.8 defines X.7.7 as "message integrity failure": a transport system otherwise authorized to validate a message was unable to do so because the message was corrupted or altered. The IANA registry gives no basic reply code for it.
The class is open. RFC 3463 says X.7.7 may be useful as a permanent, a persistent transient, or even a successful delivery code:
- 5.7.7: permanent. The message was refused. This page covers this form.
- 4.7.7: temporary. As with any 4yz reply, the sending server keeps the message and tries again later (RFC 5321 §4.2).
- 2.7.7: a success code. The message went through, even though the check failed.
Signature failures of DKIM, the domain signing standard, have their own codes, X.7.20 to X.7.22, in RFC 7372.
Common causes
- A system between signing and checking added a footer, a disclaimer or a banner to the message.
- A relay rewrote headers or the body, for example to change links or the character encoding.
- The message was cut short or damaged in transit.
- A mailing list changed the subject line or the body before passing the message on.
For a content problem with no signature involved, see 554 5.6.0.
How to fix it
If you are the sender:
- Read the text after the code. It may say which check failed.
- Find any step after signing that changes the message: a footer added by your server, a link rewriter, a security gateway.
- Sign the message last, after every change, or turn off the step that alters it.
- Send a test message to an address you control on another system, and confirm it now passes.
If you run the checking system:
- Name the failing check in the reply text.
- If the check refuses mail that a mailing list or forwarder changed on purpose, decide whether to accept those messages with the 2.7.7 form instead.
What to do with the address
Keep it. The code is about the message being changed in transit, not about the recipient's address. Fix the step that alters the message and send again.
The address on your list is not what failed here. For the bounces your list does cause, clean the list before you send.