Re: [exim/exim] Diagnostic-Code in DSN does not contain user_message (Issue #2685)

jgh via Exim-dev <[email protected]> Tue, 03 Mar 2026 17:09:29 +0000
Newsgroups gmane.mail.exim.devel
Message-ID <exim/exim/issues/2685/comment/[email protected]>
As of 4.99

* The comment on the function is indeed wrong.
* For the redirect :fail: text case, the text will be in addr->message anyway

* but the print_dsn_diagnostic_code() routine is only used when a connection to a destination host was made; not the case when the router fails deliberately.

* Using an https://datatracker.ietf.org/doc/html/rfc3464#section-2.1.2 Diagnostic-Code: for the text from an Exim :fail: redirection entry should (properly) use an IANA-registered diagnostic-type. Certainly, using smtp would not be correct, but is the only one shown in https://www.iana.org/assignments/dsn-types/dsn-types.xhtml#dsn-types-2.

* Registering one would be considerable effort, being *RFC required*.

Since it's unclear we can add this info in a standards-conformant manner, I'll fix that comment but close the issue as "will not fix".

---
View it on Exim Forgejo ( https://code.exim.org/exim/exim/issues/2685#issuecomment-239165 ) or reply to this email directly.