You must login to view /lordwelch/chasquid/commit/1fcc4ffe0f624623690ca2c0c24a204cdc03b571?files=internal%2Fprotoio.
The GitHub option should be usable for most people, it only links via username.

Files
chasquid/test/t-16-spf/expected_dsn
Alberto Bertogli 5eded4edc3 test: Unify (most) SMTP client calls
To send mails, today some tests use msmtp and others our internal smtpc.py.

This works, but msmtp slows down the tests significantly, and smtpc.py
is also not particularly fast, and also has some limitations.

This patch introduces a new SMTP client tool written in Go, and makes
almost all the tests use it.

Some tests still remain on msmtp, mainly for client-check compatibility.
It's likely that this will be moved in later patches to a separate
special-purpose test.

With this patch, integration tests take ~20% less time than before.
2024-03-12 20:43:21 +00:00

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
--???????????--