postfix uses clamav as well
[mirror/dsa-puppet.git] / modules / postfix / manifests / init.pp
1 class postfix {
2
3         package { 'postfix':
4                 ensure => installed
5         }
6
7         service { 'postfix':
8                 ensure => running
9         }
10
11         include clamav
12
13         munin::check { 'ps_exim4':       ensure => absent }
14         munin::check { 'exim_mailqueue': ensure => absent }
15         munin::check { 'exim_mailstats': ensure => absent }
16
17         munin::check { 'postfix_mailqueue': }
18         munin::check { 'postfix_mailstats': }
19         munin::check { 'postfix_mailvolume': }
20         munin::check { 'ps_smtp': script => 'ps_' }
21         munin::check { 'ps_smtpd': script => 'ps_' }
22
23         @ferm::rule { 'smtp':
24                 domain      => '(ip ip6)',
25                 description => 'Allow smtp access',
26                 rule        => '&SERVICE(tcp, 25)'
27         }
28 }