When a server has accepted a message but cannot deliver it, it does not stay silent: it sends the sender a bounce message. This contains the recipient’s address, an error code and the remote server’s reply, so it shows exactly what went wrong.
What it contains
The format is defined by RFC 3464: a multipart/report message with a message/delivery-status part and a copy of the original message or its headers. The envelope sender of a bounce is empty (MAIL FROM:<>): under RFC 5321 this prevents mail loops when the bounce itself cannot be delivered.
Reporting-MTA: dns; mail.example.comFinal-Recipient: rfc822; user@example.netAction: failedStatus: 5.1.1Diagnostic-Code: smtp; 550 5.1.1 User unknownThe Action field takes the values failed, delayed, delivered, relayed and expanded, so a notice can report a delay or a success as well as a failure. Status holds the enhanced status code from RFC 3463, and Diagnostic-Code the server’s reply verbatim.
How to read the code
The code has three numbers: class, subject and detail. Class 2 means success, 4 a temporary error that the server keeps retrying, and 5 a permanent one.
| Code | Meaning | What to do |
|---|---|---|
| 5.1.1 | mailbox does not exist | correct the recipient’s address |
| 5.7.1 | delivery refused by the recipient’s policy | check SPF, DKIM and the IP’s reputation |
| 4.2.2 | recipient’s mailbox is full | wait or contact the recipient |
| 4.4.1 | no response from the recipient’s server | wait: the server will retry |
While the error is temporary, Postfix retries delivery at intervals of 300 to 4000 seconds. After maximal_queue_lifetime (5 days by default) it gives up and generates the bounce.
Sources
the term is written from these pagesVerified 9 Nov