summaryrefslogtreecommitdiff
path: root/puppet/modules/site_postfix/files/checks
diff options
context:
space:
mode:
authorMicah Anderson <micah@leap.se>2013-10-03 17:57:48 -0400
committerMicah Anderson <micah@leap.se>2013-10-06 17:31:16 -0400
commited694ff4b412c36801e17c93c0ee587da1ebc981 (patch)
tree22b1013f82610c208a6bb8d876fb3ca8824b4b25 /puppet/modules/site_postfix/files/checks
parent9acb4a7c2a36f12a5ca71e5c4c74364d344e2c5f (diff)
implement stripping user's home IPs from Received headers (#3866)
Change-Id: I6d78286f84144bba5fd3166cc0264570e4fd3ee0
Diffstat (limited to 'puppet/modules/site_postfix/files/checks')
-rw-r--r--puppet/modules/site_postfix/files/checks/received_anon2
1 files changed, 2 insertions, 0 deletions
diff --git a/puppet/modules/site_postfix/files/checks/received_anon b/puppet/modules/site_postfix/files/checks/received_anon
new file mode 100644
index 00000000..2822973e
--- /dev/null
+++ b/puppet/modules/site_postfix/files/checks/received_anon
@@ -0,0 +1,2 @@
+/^Received: from (.* \([-._[:alnum:]]+ \[[.[:digit:]]{7,15}\]\))([[:space:]]+).*(\(using [.[:alnum:]]+ with cipher [-A-Z0-9]+ \([0-9]+\/[0-9]+ bits\)\))[[:space:]]+\(Client CN "([[:alnum:]]+)", Issuer "[[:print:]]+" \(verified OK\)\)[[:space:]]+by ([.[:alnum:]]+) \(([^)]+)\) with (E?SMTPS?A?) id ([A-F[:digit:]]+).*/
+ REPLACE Received: from [127.0.0.1] (localhost [127.0.0.1])${2}${3}${2}(Authenticated sender: $4)${2}with $7 id $8