class exim {
+ activate_munin_check {
+ "ps_exim4": script => "ps_";
+ "exim_mailqueue":;
+ "exim_mailstats":;
+ "postfix_mailqueue": ensure => absent;
+ "postfix_mailstats": ensure => absent;
+ "postfix_mailvolume": ensure => absent;
+ }
+
package { exim4-daemon-heavy: ensure => installed }
owner => root,
group => Debian-exim,
mode => 750,
+ require => Package["exim4-daemon-heavy"],
purge => true
;
+ "/etc/mailname":
+ content => template("exim/mailname.erb"),
+ ;
"/etc/exim4/exim4.conf":
- source => [ "puppet:///exim/per-host/$fqdn/exim4.conf",
- "puppet:///exim/common/exim4.conf" ],
+ content => template("exim/eximconf.erb"),
require => Package["exim4-daemon-heavy"],
notify => Exec["exim4 reload"]
- ;
+ ;
"/etc/exim4/manualroute":
require => Package["exim4-daemon-heavy"],
- source => [ "puppet:///exim/per-host/$fqdn/manualroute",
- "puppet:///exim/common/manualroute" ]
+ content => template("exim/manualroute.erb")
+ ;
+ "/etc/exim4/host_blacklist":
+ require => Package["exim4-daemon-heavy"],
+ source => [ "puppet:///exim/per-host/$fqdn/host_blacklist",
+ "puppet:///exim/common/host_blacklist" ]
;
"/etc/exim4/blacklist":
require => Package["exim4-daemon-heavy"],
;
"/etc/exim4/locals":
require => Package["exim4-daemon-heavy"],
- source => [ "puppet:///exim/per-host/$fqdn/locals",
- "puppet:///exim/common/locals" ]
+ content => template("exim/locals.erb")
;
"/etc/exim4/localusers":
require => Package["exim4-daemon-heavy"],
;
"/etc/exim4/virtualdomains":
require => Package["exim4-daemon-heavy"],
- source => [ "puppet:///exim/per-host/$fqdn/virtualdomains",
- "puppet:///exim/common/virtualdomains" ]
+ content => template("exim/virtualdomains.erb")
;
"/etc/exim4/whitelist":
require => Package["exim4-daemon-heavy"],
source => [ "puppet:///exim/per-host/$fqdn/logrotate-exim4-paniclog",
"puppet:///exim/common/logrotate-exim4-paniclog" ]
;
- "/etc/exim4/local-settings.conf":
- require => Package["exim4-daemon-heavy"],
- source => [ "puppet:///exim/per-host/$fqdn/local-settings.conf",
- "puppet:///exim/common/local-settings.conf" ],
- notify => Exec["exim4 reload"]
- ;
"/etc/exim4/local-auto.conf":
require => Package["exim4-daemon-heavy"],
content => template("exim-local-auto.erb"),
refreshonly => true,
}
}
-
-class eximmx inherits exim {
- include clamav
- include postgrey
-}