spamassassin: Deploy config file

This commit is contained in:
Ossi Salmi 2013-07-29 00:13:56 +03:00
parent 1c23696662
commit 33bfafbdbe
2 changed files with 27 additions and 0 deletions

View file

@ -0,0 +1,10 @@
# These values can be overridden by editing ~/.spamassassin/user_prefs.cf
# (see spamassassin(1) for details)
# These should be safe assumptions and allow for simple visual sifting
# without risking lost emails.
required_hits 5
report_safe 0
rewrite_header Subject [SPAM]

View file

@ -11,6 +11,23 @@ class spamassassin::common {
ensure => present, ensure => present,
} }
file { "/etc/mail/spamassassin/local.cf":
ensure => present,
mode => "0644",
owner => "root",
group => $::operatingsystem ? {
"openbsd" => "wheel",
default => "root",
},
source => [
"puppet:///files/mail/spamassassin.cf.${::homename}",
"puppet:///files/mail/spamassassin.cf",
"puppet:///modules/spamassassin/local.cf",
],
notify => Service["spamassassin"],
require => Package["spamassassin"],
}
service { "spamassassin": service { "spamassassin":
ensure => running, ensure => running,
enable => true, enable => true,