summaryrefslogtreecommitdiff
path: root/manifests/amavisd.pp
blob: d59670a000141b0ab9806c795dfb3270d885c262 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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'],
  }

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