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 include debian_org::mail_incoming_port
27 munin::check { 'ps_exim4': ensure => absent }
28 munin::check { 'exim_mailqueue': ensure => absent }
29 munin::check { 'exim_mailstats': ensure => absent }
31 munin::check { 'postfix_mailqueue': }
32 munin::check { 'postfix_mailstats': }
33 munin::check { 'postfix_mailvolume': }
34 munin::check { 'ps_smtp': script => 'ps_' }
35 munin::check { 'ps_smtpd': script => 'ps_' }
38 concat { '/etc/postfix/main.cf':
39 notify => Exec['service postfix reload'],
41 concat::fragment { 'puppet-postfix-main.cf--header':
42 target => '/etc/postfix/main.cf',
44 content => template('postfix/main.cf-header.erb')
47 include fail2ban::postfix
50 exec { 'service postfix reload':
51 path => '/usr/bin:/usr/sbin:/bin:/sbin',
52 command => 'service postfix reload',
54 require => Package['postfix'],