summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2010-08-18 22:00:32 -0300
committerSilvio Rhatto <rhatto@riseup.net>2010-08-18 22:00:32 -0300
commit05c23e74b9fc3a49a57f4f88271150e79a837a18 (patch)
tree3edd4ee0871864f72e5dc4bf55a4ebe79551fd9b /templates
parent737a42469fbead8a26c17f7129ff5d18ba113614 (diff)
downloadpuppet-mail-05c23e74b9fc3a49a57f4f88271150e79a837a18.tar.gz
puppet-mail-05c23e74b9fc3a49a57f4f88271150e79a837a18.tar.bz2
Using a template for header_checks
Diffstat (limited to 'templates')
-rw-r--r--templates/postfix/header_checks.erb2
1 files changed, 2 insertions, 0 deletions
diff --git a/templates/postfix/header_checks.erb b/templates/postfix/header_checks.erb
new file mode 100644
index 0000000..bca5914
--- /dev/null
+++ b/templates/postfix/header_checks.erb
@@ -0,0 +1,2 @@
+/^Received: from (.* \([-._[:alnum:]]+ \[[.[:digit:]]{7,15}\]\)).*?([[:space:]]+).*\(Authenticated sender: ([^)]+)\).*by (<%= fqdn.gsub(/\./, '\.') %>) \(([^)]+)\) with (E?SMTPS?A?) id ([A-F[:digit:]]+).*/
+ REPLACE Received: from [127.0.0.1] (localhost [127.0.0.1])$2(Authenticated sender: $3)${2}with $6 id $7