eximconf: make NDRs contain only headers, not bodies
authorAdam D. Barratt <adam@adam-barratt.org.uk>
Thu, 26 Sep 2019 17:07:17 +0000 (18:07 +0100)
committerAdam D. Barratt <adam@adam-barratt.org.uk>
Thu, 26 Sep 2019 17:07:17 +0000 (18:07 +0100)
This helps avoid us being used as a potential part of redirected
"bounce spam".

Signed-off-by: Adam D. Barratt <adam@adam-barratt.org.uk>
modules/exim/templates/eximconf.erb

index 9768f25..5d0f03a 100644 (file)
@@ -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