summaryrefslogtreecommitdiff
path: root/manifests/mlmmj/list.pp
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2013-01-22 14:56:59 -0200
committerSilvio Rhatto <rhatto@riseup.net>2013-01-22 14:56:59 -0200
commitbeb9ced0191a9c6804332bd741ba30d4eee0040a (patch)
treee9513f0f4d5f77f1a2702b1a91bb65233ed88951 /manifests/mlmmj/list.pp
parent0dce0e69ff64b8c98c0854c33be6886d433dedfb (diff)
downloadpuppet-mail-beb9ced0191a9c6804332bd741ba30d4eee0040a.tar.gz
puppet-mail-beb9ced0191a9c6804332bd741ba30d4eee0040a.tar.bz2
Major refactor
Diffstat (limited to 'manifests/mlmmj/list.pp')
-rw-r--r--manifests/mlmmj/list.pp19
1 files changed, 19 insertions, 0 deletions
diff --git a/manifests/mlmmj/list.pp b/manifests/mlmmj/list.pp
new file mode 100644
index 0000000..13f30a9
--- /dev/null
+++ b/manifests/mlmmj/list.pp
@@ -0,0 +1,19 @@
+# From transport(5):
+#
+# The trivial-rewrite(8) server disallows regular expression
+# substitution of $1 etc. in regular expression lookup
+# tables, because that could open a security hole (Postfix
+# version 2.3 and later).
+#
+# That's why we need one definition per mailing list.
+define mail::mlmmj::list($ensure = 'present') {
+ postfix::transport_regexp_snippet { "mlmmj_transport_regexp-${name}":
+ content => "/^(${name})\\@.*$/ mlmmj:${name}\n",
+ ensure => $ensure,
+ }
+
+ postfix::transport_regexp_snippet { "mlmmj_transport_regexp-${name}-request":
+ content => "/^(${name})\\+.*\\@.*$/ mlmmj:${name}\n",
+ ensure => $ensure,
+ }
+}