From: Adam D. Barratt Date: Fri, 22 Nov 2019 20:47:36 +0000 (+0000) Subject: eximconf: reject mails with clearly faked Received: headers X-Git-Url: https://git.adam-barratt.org.uk/?a=commitdiff_plain;h=9d0250cb427297aaf7ce598f42373398fbc5085c;hp=0d2452ba09f70ff452f726ae50a3eafe0695b2dd;p=mirror%2Fdsa-puppet.git eximconf: reject mails with clearly faked Received: headers Currently this is defined as claiming to have passed through example.com Signed-off-by: Adam D. Barratt --- diff --git a/modules/exim/templates/eximconf.erb b/modules/exim/templates/eximconf.erb index b40926dac..6398331cb 100644 --- a/modules/exim/templates/eximconf.erb +++ b/modules/exim/templates/eximconf.erb @@ -1072,6 +1072,10 @@ check_message: condition = ${if !eq {$acl_m_prf}{PopconMail}} message = Your mailer is not RFC 2047 compliant: message rejected + deny condition = ${if match {$rh_Received:}{\N from [^ ]+\.example\.com \N}} + log_message = Implausible Received header + message = Header problem: message rejected + warn condition = ${if bool_lax{$acl_m_defopt}} condition = ${if or {\ {match {$message_body}{Wenn Sie zukünftig keine weiteren Informationen erhalten möchten,
unwissentlich oder unbeabsichtigt in den Verteiler aufgenommen wurden,}} \