Files
chasquid/test/t-05-null_address/expected_dsr
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

67 lines
1.3 KiB
Plaintext

From user@testserver
From: Mail Delivery System <postmaster-dsn@testserver>
To: <user@testserver>
Subject: Mail delivery failed: returning message to sender
Message-ID: *
Date: *
In-Reply-To: <booooo>
References: <booooo>
X-Failed-Recipients: fail@testserver,
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:
- fail@testserver
Technical details:
- "false" (PIPE) failed permanently with error:
exit status 1
--???????????
Content-Type: message/global-delivery-status
Content-Description: Delivery Report
Content-Transfer-Encoding: 8bit
Reporting-MTA: dns; testserver
Original-Recipient: utf-8; fail@testserver
Final-Recipient: utf-8; false
Action: failed
Status: 5.0.0
Diagnostic-Code: smtp; exit status 1
--???????????
Content-Type: message/rfc822
Content-Description: Undelivered Message
Content-Transfer-Encoding: 8bit
Received: from localhost
by testserver (chasquid) with ESMTPSA
tls *
(over *
; *
From: Mailer daemon <somewhere@báratro>
Subject: I've come to haunt you
Message-Id: <booooo>
Ñañañañaña!
--???????????--