Bookmarks

Bounce message

An automatic message in which a mail server tells the sender that a message was not delivered, and gives the reason.

Also: bounce, NDR, non-delivery report, DSN, delivery failure notice, returned mail

checked 9 Nov

All terms

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.

textThe message/delivery-status part
Reporting-MTA: dns; mail.example.comFinal-Recipient: rfc822; user@example.netAction: failedStatus: 5.1.1Diagnostic-Code: smtp; 550 5.1.1 User unknown

The 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.

CodeMeaningWhat to do
5.1.1mailbox does not existcorrect the recipient’s address
5.7.1delivery refused by the recipient’s policycheck SPF, DKIM and the IP’s reputation
4.2.2recipient’s mailbox is fullwait or contact the recipient
4.4.1no response from the recipient’s serverwait: 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 pages

Verified 9 Nov

Not to be confused with

what it is mixed up with and how it differs

In depth in the references

where the topic is covered in detail