summaryrefslogtreecommitdiff
path: root/manifests/spamassassin.pp
blob: 12d1e19afa87d978c152af6f7d2dfc2aabb2cc28 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
class mail::spamassassin {
  file { '/etc/default/spamassassin':
    ensure => present,
    owner  => root,
    group  => root,
    mode   => 0644,
    source => "puppet:///modules/mail/spamassassin/default",
    require => Package['spamassassin'],
  }

  service { 'spamassassin':
    ensure  => running,
    enable  => true,
    pattern => "spamd",
    require => File['/etc/default/spamassassin'],
  }

  file { '/etc/spamassassin/awl.pre':
    ensure => present,
    owner  => root,
    group  => root,
    mode   => 0644,
    source => "puppet:///modules/mail/spamassassin/awl.pre",
    require => Package['spamassassin'],
  }
}