diff -urN ../exim-4.96.orig/src/deliver.c ./src/deliver.c --- ../exim-4.96.orig/src/deliver.c 2023-08-31 22:48:46.556942000 +0300 +++ ./src/deliver.c 2023-08-31 22:51:01.912721000 +0300 @@ -2622,7 +2622,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); @@ -5639,7 +5642,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); @@ -6073,8 +6079,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;" @@ -8286,7 +8294,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); diff -urN ../exim-4.96.orig/src/moan.c ./src/moan.c --- ../exim-4.96.orig/src/moan.c 2022-06-23 16:41:10.000000000 +0300 +++ ./src/moan.c 2023-08-31 22:42:31.214899000 +0300 @@ -186,7 +186,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)