summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2012-04-11 18:47:59 -0300
committerSilvio Rhatto <rhatto@riseup.net>2012-04-11 18:47:59 -0300
commitff887b27067ff733091b4488640e8e3b64c0886a (patch)
tree415d1fc955015638dfe76ee0c72a1057630f1dda
parent5624bf0e9073e492ab447a662e359a6cc57995b9 (diff)
downloadpuppet-mail-ff887b27067ff733091b4488640e8e3b64c0886a.tar.gz
puppet-mail-ff887b27067ff733091b4488640e8e3b64c0886a.tar.bz2
Adding transport regexp for firma
-rw-r--r--manifests/firma.pp6
-rw-r--r--templates/postfix/firma/transport_regexp.erb2
2 files changed, 7 insertions, 1 deletions
diff --git a/manifests/firma.pp b/manifests/firma.pp
index ce24d8b..3e137e6 100644
--- a/manifests/firma.pp
+++ b/manifests/firma.pp
@@ -4,8 +4,12 @@ class mail::firma {
postfix::config { "firma_destination_recipient_limit": value => '1', nonstandard => true }
+ postfix::transport_regexp_snippet { 'firma_transport_regexp':
+ content => template('mail/postfix/firma/transport_regexp.erb'),
+ }
+
postfix::transport { "${firma_subdomain}.$domain":
- ensure => present,
+ ensure => absent,
destination => "firma",
}
diff --git a/templates/postfix/firma/transport_regexp.erb b/templates/postfix/firma/transport_regexp.erb
new file mode 100644
index 0000000..a6a940b
--- /dev/null
+++ b/templates/postfix/firma/transport_regexp.erb
@@ -0,0 +1,2 @@
+/^.*-request\@<%= firma_subdomain.gsub(/\./, '\.') %>\.(.*)$/ firmarequest:
+/^.*\@<%= firma_subdomain.gsub(/\./, '\.') %>\.(.*)$/ firma: