]> gitweb.fluxo.info Git - puppet-mail.git/commitdiff
Managing transport_regexp and virtual_regexp even if sympa is not being used
authorSilvio Rhatto <rhatto@riseup.net>
Thu, 26 Aug 2010 01:42:11 +0000 (22:42 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Thu, 26 Aug 2010 01:42:11 +0000 (22:42 -0300)
manifests/base.pp

index 7aa96b12bc7972c87932c0831c9f66eb0f049843..f3b68e4ccca3ef1418cc091773ca0a31da1efd68 100644 (file)
@@ -50,4 +50,26 @@ class mail::base {
     home     => '/var/mail/virtual',
     require  => Group['vmail'],
   }
+
+  # Sympa mailing list manager
+  case $mail_sympa {
+    true: { }
+    default: {
+      file { "/etc/postfix/transport_regexp":
+        ensure  => present,
+        owner   => root,
+        group   => root,
+        mode    => 0644,
+        notify  => Service['postfix'],
+      }
+    
+      file { "/etc/postfix/virtual_regexp":
+        ensure  => present,
+        owner   => root,
+        group   => root,
+        mode    => 0644,
+        notify  => Service['postfix'],
+      }
+    }
+  }
 }