mirror of
https://blitiri.com.ar/repos/chasquid
synced 2026-06-09 19:33:35 +00:00
ab2a6e7eb3
In Go 1.25.11/1.26.4, net/textproto error formatting was changed, and now the message is quoted. This is to protect from general string injections. See https://go-review.googlesource.com/c/go/+/778182 and ec1c380418ec6a0da28d4519872e2b81ba9152ba. After this change, the error strings from net/textproto (and net/smtp which uses it) now include quotes. For chasquid, the only user-observable change in the server is that the errors included in the DSN messages are now quoted, which should not be a problem. However, some of the tests which validate error strings need to be adjusted. The patch also updates go.mod to set the Go version to match this new minimum.
64 lines
1.4 KiB
Plaintext
64 lines
1.4 KiB
Plaintext
From usera@srv-a
|
|
From: Mail Delivery System <postmaster-dsn@srv-a>
|
|
To: <userA@srv-a>
|
|
Subject: Mail delivery failed: returning message to sender
|
|
Message-ID: <chasquid-dsn-*
|
|
Date: *
|
|
In-Reply-To: *
|
|
References: *
|
|
X-Failed-Recipients: userB@srv-b,
|
|
Auto-Submitted: auto-replied
|
|
MIME-Version: 1.0
|
|
Content-Type: multipart/report; report-type=delivery-status;
|
|
boundary="???????????"
|
|
|
|
|
|
--???????????
|
|
Content-Type: text/plain; charset="utf-8"
|
|
Content-Disposition: inline
|
|
Content-Description: Notification
|
|
Content-Transfer-Encoding: 8bit
|
|
|
|
Delivery of your message to the following recipient(s) failed permanently:
|
|
|
|
- userB@srv-b
|
|
|
|
|
|
Technical details:
|
|
- "userB@srv-b" (EMAIL) failed permanently with error:
|
|
MAIL+RCPT 550 "5.7.23 SPF check failed: matched all"
|
|
|
|
|
|
--???????????
|
|
Content-Type: message/global-delivery-status
|
|
Content-Description: Delivery Report
|
|
Content-Transfer-Encoding: 8bit
|
|
|
|
Reporting-MTA: dns; srv-a
|
|
|
|
Original-Recipient: utf-8; userB@srv-b
|
|
Final-Recipient: utf-8; userB@srv-b
|
|
Action: failed
|
|
Status: 5.0.0
|
|
Diagnostic-Code: smtp; MAIL+RCPT 550 "5.7.23 SPF check failed: matched all"
|
|
|
|
|
|
|
|
--???????????
|
|
Content-Type: message/rfc822
|
|
Content-Description: Undelivered Message
|
|
Content-Transfer-Encoding: 8bit
|
|
|
|
Received: from localhost
|
|
by srv-A (chasquid) with ESMTPSA
|
|
tls *
|
|
(over *
|
|
; *
|
|
Subject: Prueba desde el test
|
|
|
|
Crece desde el test el futuro
|
|
Crece desde el test
|
|
|
|
|
|
--???????????--
|