diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2012-04-07 21:01:11 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2012-04-07 21:01:11 -0300 |
commit | ea04126f62796c6a8d21aeda4a9c2db4b11ae659 (patch) | |
tree | 3d1606e872e0364785c3c082b69b303479e56808 | |
parent | 15a98e434860aa5211447c6b0f4dbabed287c65c (diff) | |
download | puppet-mail-ea04126f62796c6a8d21aeda4a9c2db4b11ae659.tar.gz puppet-mail-ea04126f62796c6a8d21aeda4a9c2db4b11ae659.tar.bz2 |
Adding mail::mlmmj::list
-rw-r--r-- | manifests/mlmmj.pp | 9 | ||||
-rw-r--r-- | templates/postfix/mlmmj/transport_regexp.erb | 1 | ||||
-rw-r--r-- | templates/postfix/mlmmj/virtual_regexp.erb | 2 |
3 files changed, 9 insertions, 3 deletions
diff --git a/manifests/mlmmj.pp b/manifests/mlmmj.pp index 52b9bd0..a8fc9ff 100644 --- a/manifests/mlmmj.pp +++ b/manifests/mlmmj.pp @@ -30,10 +30,17 @@ class mail::mlmmj { #} postfix::transport_regexp_snippet { 'mlmmj_transport_regexp': - content => template('mail/postfix/mlmmj/transport_regexp.erb'), + content => '', } postfix::virtual_regexp_snippet { 'mlmmj_virtual_regexp': content => template('mail/postfix/mlmmj/virtual_regexp.erb'), } + + define list($ensure = 'present') { + postfix::transport_regexp_snippet { "mlmmj_transport_regexp-$name": + content => "/^($name).*$/ mlmmj:$name", + ensure => $ensure, + } + } } diff --git a/templates/postfix/mlmmj/transport_regexp.erb b/templates/postfix/mlmmj/transport_regexp.erb index ff6cf12..e69de29 100644 --- a/templates/postfix/mlmmj/transport_regexp.erb +++ b/templates/postfix/mlmmj/transport_regexp.erb @@ -1 +0,0 @@ -/^(.*)\@<%= mlmmj_subdomain.gsub(/\./, '\.') %>\.(.*)$/ mlmmj:${1} diff --git a/templates/postfix/mlmmj/virtual_regexp.erb b/templates/postfix/mlmmj/virtual_regexp.erb index a500819..77811dd 100644 --- a/templates/postfix/mlmmj/virtual_regexp.erb +++ b/templates/postfix/mlmmj/virtual_regexp.erb @@ -1 +1 @@ -/^(.*)\@<%= mlmmj_subdomain.gsub(/\./, '\.') %>\.(.*)$/ $1@$2 +/^(.*)\@<%= mlmmj_subdomain.gsub(/\./, '\.') %>\.(.*)$/ ${1} |