https://bugs.exim.org/show_bug.cgi?id=2685

            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
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]

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:

----8<----
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:

      [email protected]
        550 Custom failure message 

message/delivery-status part:

    Reporting-MTA: dns; server.example.com

    Action: failed
    Final-Recipient: rfc822;[email protected]
    Status: 5.0.0
----8<----


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
addr->message.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-- 
## List details at https://lists.exim.org/mailman/listinfo/exim-dev Exim 
details at http://www.exim.org/ ##

Reply via email to