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