summaryrefslogtreecommitdiff
path: root/manifests/amavisd.pp
blob: 85e250176d44757269fafcc65a3d3b26b6a713db (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
27
28
29
30
31
32
class mail::amavisd {
  service { "amavisd":
    ensure  => running,
    require => Package['amavisd-new'],
  }

  service { "freshclam":
    ensure  => running,
    require => Package['clamav-freshclam'],
  }

  file { "/etc/amavis/conf.d/15-content_filter_mode":
    ensure => present,
    owner  => root,
    group  => root,
    mode   => 0644,
    source => "puppet://$server/modules/mail/amavisd/15-content_filter_mode",
    notify => Service['amavisd'],
  }

  group { 'amavis':
    ensure => present,
  }

  user { 'amavis':
    ensure  => present,
    gid     => 'amavis',
    require => Group['amavis'],
  }

  postfix::config { "content_filter": value => 'amavis:[127.0.0.1]:10024' }
}