2 # @param use_smarthost use the smarthost
3 # @param smarthost host to relay through (if set and use_smarthost)
5 Optional[String] $smarthost,
6 Boolean $use_smarthost = true,
7 Boolean $manage_maincf = true,
15 fail('No smarthost set but use_smarthost is true')
25 munin::check { 'ps_exim4': ensure => absent }
26 munin::check { 'exim_mailqueue': ensure => absent }
27 munin::check { 'exim_mailstats': ensure => absent }
29 munin::check { 'postfix_mailqueue': }
30 munin::check { 'postfix_mailstats': }
31 munin::check { 'postfix_mailvolume': }
32 munin::check { 'ps_smtp': script => 'ps_' }
33 munin::check { 'ps_smtpd': script => 'ps_' }
36 concat { '/etc/postfix/main.cf':
37 notify => Exec['service postfix reload'],
39 concat::fragment { 'puppet-postfix-main.cf--header':
40 target => '/etc/postfix/main.cf',
42 content => template('postfix/main.cf-header.erb')
45 include fail2ban::postfix
48 exec { 'service postfix reload':
49 path => '/usr/bin:/usr/sbin:/bin:/sbin',
50 command => 'service postfix reload',
52 require => Package['postfix'],