spamassassin: Deploy config file
This commit is contained in:
parent
1c23696662
commit
33bfafbdbe
2 changed files with 27 additions and 0 deletions
10
spamassassin/files/local.cf
Normal file
10
spamassassin/files/local.cf
Normal 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]
|
||||||
|
|
|
@ -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,
|
||||||
|
|
Loading…
Add table
Reference in a new issue