diff options
author | Jeremy Harris <jgh146exb@wizmail.org> | 2019-06-04 18:13:21 +0100 |
---|---|---|
committer | Jeremy Harris <jgh146exb@wizmail.org> | 2019-06-05 17:39:31 +0100 |
commit | 454bab46ae6812e29652d10c390451c962a6f806 (patch) | |
tree | 72528b841b16f64beed5e0b24dde9b5bcbf34c0a | |
parent | 44893ba5249c6c6d5a0d62a1cc57ba3fbf7185b4 (diff) | |
download | exim4-454bab46ae6812e29652d10c390451c962a6f806.tar.gz |
Use dsn_from for success-DSN messages. Bug 2404
(cherry picked from commit 87abcb247b4444bab5fd0bcb212ddb26d5fd9191)
-rw-r--r-- | doc/doc-txt/ChangeLog | 4 | ||||
-rw-r--r-- | src/src/deliver.c | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/doc/doc-txt/ChangeLog b/doc/doc-txt/ChangeLog index 5a3e453d6..1a12c0147 100644 --- a/doc/doc-txt/ChangeLog +++ b/doc/doc-txt/ChangeLog @@ -65,6 +65,10 @@ JH/20 Bug 2389: fix server advertising of usable certificates, under GnuTLS in directory-of-certs mode. Previously they were advertised despite the documentation. +JH/27 Bug 2404: Use the main-section configuration option "dsn_from" for + success-DSN messages. Previously the From: header was always the default + one for these; the option was ignored. + Exim version 4.92 ----------------- diff --git a/src/src/deliver.c b/src/src/deliver.c index e17994117..4720f596a 100644 --- a/src/src/deliver.c +++ b/src/src/deliver.c @@ -7365,8 +7365,8 @@ if (addr_senddsn) if (errors_reply_to) fprintf(f, "Reply-To: %s\n", errors_reply_to); + moan_write_from(f); fprintf(f, "Auto-Submitted: auto-generated\n" - "From: Mail Delivery System <Mailer-Daemon@%s>\n" "To: %s\n" "Subject: Delivery Status Notification\n" "Content-Type: multipart/report; report-type=delivery-status; boundary=%s\n" @@ -7377,7 +7377,7 @@ if (addr_senddsn) "This message was created automatically by mail delivery software.\n" " ----- The following addresses had successful delivery notifications -----\n", - qualify_domain_sender, sender_address, bound, bound); + sender_address, bound, bound); for (addr_dsntmp = addr_senddsn; addr_dsntmp; addr_dsntmp = addr_dsntmp->next) |