1
0
mirror of https://blitiri.com.ar/repos/chasquid synced 2025-12-22 15:27:02 +00:00
Files
go-chasquid-smtp/test/t-05-null_address/expected_dsr
Alberto Bertogli d660f88f67 queue: Send DSN for messages that time out in the queue
The queue currently only considers failed recipients when deciding
whether to send a DSN or not. This is a bug, as recipients that time out
are not taken into account.

This patch fixes that issue by including both failed and pending
recipients in the DSN.

It also adds more comprehensive tests for this case, both in the queue
and in the dsn generation code.
2016-10-21 22:20:49 +01:00

35 lines
691 B
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: *
X-Failed-Recipients: fail@testserver,
Auto-Submitted: auto-replied
Delivery to the following recipient(s) failed permanently:
- fail@testserver
----- Technical details -----
- "false" (PIPE) failed permanently with error:
exit status 1
----- Original message -----
Received: from localhost (authenticated as user@testserver)
by testserver (chasquid)
(over *
(envelope from "user@testserver")
; *
Date: *
From: Mailer daemon <somewhere@horns.com>
Subject: I've come to haunt you
Muahahahaha