summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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: