Mailing List Archive

[Bug 2685] New: Diagnostic-Code in DSN does not contain user_message

Bug ID: 2685
Summary: Diagnostic-Code in DSN does not contain user_message
Product: Exim
Version: 4.94
Hardware: All
OS: All
Status: NEW
Severity: bug
Priority: medium
Component: Delivery in general

When a redirect router returns a :fail: with a custom user message, a bounce
message is generated with the custom message in the text/plain part.

However the message/delivery-status part does not use this custom message and
lacks a "Diagnostic-Code" in this case.
For example, a ":fail Custom failure message" generates this:

text/plain part:
This message was created automatically by mail delivery software.

A message that you sent could not be delivered to one or more of its
recipients. This is a permanent error. The following address(es) failed:
550 Custom failure message

message/delivery-status part:

Reporting-MTA: dns;

Action: failed
Final-Recipient: rfc822;
Status: 5.0.0

The comment above print_dsn_diagnostic_code function in delivery.c states:
"it uses the same logic as print_address_error() above. if af_pass_message is
true and addr->message is set it uses the remote host answer. if not
addr->user_message is used instead if available."

But this function does not refer to addr->user_message at all, only

You are receiving this mail because:
You are on the CC list for the bug.
## List details at Exim details at ##