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' } }