]> git.donarmstrong.com Git - dsa-puppet.git/blob - modules/postfix/manifests/init.pp
6ac79cbb918f679c0697e0965527871f4b45f8ea
[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         munin::check { 'ps_exim4':       ensure => absent }
12         munin::check { 'exim_mailqueue': ensure => absent }
13         munin::check { 'exim_mailstats': ensure => absent }
14
15         munin::check { 'postfix_mailqueue': }
16         munin::check { 'postfix_mailstats': }
17         munin::check { 'postfix_mailvolume': }
18         munin::check { 'ps_smtp': script => 'ps_' }
19         munin::check { 'ps_smtpd': script => 'ps_' }
20
21         @ferm::rule { 'smtp':
22                 domain      => '(ip ip6)',
23                 description => 'Allow smtp access',
24                 rule        => '&SERVICE(tcp, 25)'
25         }
26 }