machines that smarthost in and out don't need to accept mail from the interwebs
[mirror/dsa-puppet.git] / modules / exim / manifests / mx.pp
index 3eedf11..2f1bfb6 100644 (file)
@@ -1,4 +1,7 @@
 class exim::mx inherits exim {
+    include clamav
+    include postgrey
+
     file {
         "/etc/exim4/ccTLD.txt":
           require => Package["exim4-daemon-heavy"],
@@ -10,8 +13,13 @@ class exim::mx inherits exim {
           ;
         "/etc/exim4/exim_surbl.pl":
           require => Package["exim4-daemon-heavy"],
-          source  => [ "puppet:///exim/common/exim_surbl.pl" ]
+          source  => [ "puppet:///exim/common/exim_surbl.pl" ],
+          notify  => Exec["exim4 restart"]
           ;
     }
+    exec { "exim4 restart":
+        path        => "/etc/init.d:/usr/bin:/usr/sbin:/bin:/sbin",
+        refreshonly => true,
+    }
 }