diff -urN ../exim-4.93.orig/src/deliver.c ./src/deliver.c --- ../exim-4.93.orig/src/deliver.c 2019-12-08 14:53:48.000000000 +0200 +++ ./src/deliver.c 2020-08-20 01:18:29.101025000 +0300 @@ -2613,7 +2613,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); @@ -7362,8 +7365,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;" @@ -7601,7 +7606,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); @@ -8212,7 +8220,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.93.orig/src/moan.c ./src/moan.c --- ../exim-4.93.orig/src/moan.c 2019-12-08 14:53:48.000000000 +0200 +++ ./src/moan.c 2020-08-20 01:01:36.959726000 +0300 @@ -183,7 +183,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)