package { 'exim4-daemon-heavy': ensure => installed }
+ Package['exim4-daemon-heavy']->Mailalias<| |>
+
service { 'exim4':
ensure => running,
- require => File['/etc/exim4/exim4.conf'],
+ require => [
+ File['/etc/exim4/exim4.conf'],
+ Package['exim4-daemon-heavy'],
+ ]
}
file { '/etc/exim4/':
}
file { '/etc/exim4/exim4.conf':
content => template('exim/eximconf.erb'),
+ require => File['/etc/exim4/ssl/thishost.crt'],
notify => Service['exim4'],
}
file { '/etc/mailname':
content => template('exim/virtualdomains.erb'),
}
file { '/etc/exim4/submission-domains':
- content => template('exim/common/submission-domains.erb'),
+ content => template('exim/submission-domains.erb'),
}
file { '/etc/exim4/host_blacklist':
source => 'puppet:///modules/exim/common/host_blacklist',
@ferm::rule { 'dsa-exim':
description => 'Allow SMTP',
- rule => '&SERVICE_RANGE(tcp, $mail_port, \$SMTP_SOURCES)'
+ rule => "&SERVICE_RANGE(tcp, $mail_port, \$SMTP_SOURCES)"
}
@ferm::rule { 'dsa-exim-v6':
description => 'Allow SMTP',
domain => 'ip6',
- rule => '&SERVICE_RANGE(tcp, $mail_port, \$SMTP_V6_SOURCES)'
+ rule => "&SERVICE_RANGE(tcp, $mail_port, \$SMTP_V6_SOURCES)"
}
# Do we actually want this? I'm only doing it because it's harmless
- # and makes the logs quiet. There are better ways of making logs quiet,
- # though.
+ # and makes the logs quiet. There are better ways of making logs quiet,
+ # though.
@ferm::rule { 'dsa-ident':
domain => '(ip ip6)',
description => 'Allow ident access',