diff -urN ../exim-4.93.orig/src/deliver.c ./src/deliver.c --- ../exim-4.93.orig/src/deliver.c 2023-11-04 14:55:49.000000000 +0200 +++ ./src/deliver.c 2023-11-05 21:27:32.580686000 +0200 @@ -2615,7 +2615,10 @@ FILE *f = fdopen(fd, "wb"); if (errors_reply_to && !contains_header(US"Reply-To", warn_message)) fprintf(f, "Reply-To: %s\n", errors_reply_to); - fprintf(f, "Auto-Submitted: auto-replied\n"); + fprintf(f, "Auto-Submitted: auto-replied\n" + "X-Reporting-MTA: dns; %s\n", + smtp_active_hostname + ); if (!contains_header(US"From", warn_message)) moan_write_from(f); fprintf(f, "%s", CS warn_message); @@ -5659,7 +5662,10 @@ if (errors_reply_to) fprintf(fp, "Reply-To: %s\n", errors_reply_to); - fprintf(fp, "Auto-Submitted: auto-replied\n"); + fprintf(fp, "Auto-Submitted: auto-replied\n" + "X-Reporting-MTA: dns; %s\n", + smtp_active_hostname + ); moan_write_from(fp); fprintf(fp, "To: %s\n", bounce_recipient); moan_write_references(fp, NULL); @@ -6045,7 +6051,10 @@ if (errors_reply_to) fprintf(f, "Reply-To: %s\n", errors_reply_to); -fprintf(f, "Auto-Submitted: auto-replied\n"); +fprintf(f, "Auto-Submitted: auto-replied\n" + "X-Reporting-MTA: dns; %s\n", + smtp_active_hostname +); moan_write_from(f); fprintf(f, "To: %s\n", recipients); moan_write_references(f, NULL); @@ -6272,8 +6281,10 @@ moan_write_from(f); fprintf(f, "Auto-Submitted: auto-generated\n" + "X-Reporting-MTA: dns; %s\n" "To: %s\n" "Subject: Delivery Status Notification\n", + smtp_active_hostname, sender_address); moan_write_references(f, NULL); fprintf(f, "Content-Type: multipart/report;" diff -urN ../exim-4.93.orig/src/moan.c ./src/moan.c --- ../exim-4.93.orig/src/moan.c 2023-11-04 14:55:49.000000000 +0200 +++ ./src/moan.c 2023-11-05 21:25:35.133743000 +0200 @@ -206,7 +206,10 @@ fp = fdopen(fd, "wb"); if (errors_reply_to) fprintf(fp, "Reply-To: %s\n", errors_reply_to); -fprintf(fp, "Auto-Submitted: auto-replied\n"); +fprintf(fp, "Auto-Submitted: auto-replied\n" + "X-Reporting-MTA: dns; %s\n", + smtp_active_hostname +); #ifdef SUPPORT_DMARC if (s)