From e2648d2e879ed30e6939fc7203e2fa037a6c2fa8 Mon Sep 17 00:00:00 2001 From: "Adam D. Barratt" Date: Thu, 26 Sep 2019 18:07:17 +0100 Subject: [PATCH] eximconf: make NDRs contain only headers, not bodies This helps avoid us being used as a potential part of redirected "bounce spam". Signed-off-by: Adam D. Barratt --- modules/exim/templates/eximconf.erb | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/modules/exim/templates/eximconf.erb b/modules/exim/templates/eximconf.erb index 9768f25fa..5d0f03abf 100644 --- a/modules/exim/templates/eximconf.erb +++ b/modules/exim/templates/eximconf.erb @@ -176,6 +176,13 @@ local_from_check = false gecos_pattern = ^([^,:]*) gecos_name = $1 +# Do *not* include the body of the original message in a bounce +# The combinaton of bounce_return_message and bounce_return_body +# allows us to return only the headers within a bounce + +bounce_return_message = true +bounce_return_body = false + # This tells Exim to immediately discard error messages (ie double bounces). ignore_bounce_errors_after = 0s auto_thaw = 1d -- 2.20.1