[exim-dev] [Bug 2685] New: Diagnostic-Code in DSN does not c…

Top Page
Delete this message
Reply to this message
Author: admin
Date:  
To: exim-dev
Subject: [exim-dev] [Bug 2685] New: Diagnostic-Code in DSN does not contain user_message
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: unallocated@???
          Reporter: pietpaaltjens@???
                CC: exim-dev@???


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:


      test@???
        550 Custom failure message 


message/delivery-status part:

    Reporting-MTA: dns; server.example.com


    Action: failed
    Final-Recipient: rfc822;test@???
    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.