Add minimal clamav and postgrey classes to the exim::mx class
[mirror/dsa-puppet.git] / modules / exim / manifests / mx.pp
1 class exim::mx inherits exim {
2     include clamav
3     include postgrey
4
5     file {
6         "/etc/exim4/ccTLD.txt":
7           require => Package["exim4-daemon-heavy"],
8           source  => [ "puppet:///exim/common/ccTLD.txt" ]
9           ;
10         "/etc/exim4/surbl_whitelist.txt":
11           require => Package["exim4-daemon-heavy"],
12           source  => [ "puppet:///exim/common/surbl_whitelist.txt" ]
13           ;
14         "/etc/exim4/exim_surbl.pl":
15           require => Package["exim4-daemon-heavy"],
16           source  => [ "puppet:///exim/common/exim_surbl.pl" ],
17           notify  => Exec["exim4 restart"]
18           ;
19     }
20     exec { "exim4 restart":
21         path        => "/etc/init.d:/usr/bin:/usr/sbin:/bin:/sbin",
22         refreshonly => true,
23     }
24 }
25