file { '/etc/exim4/locals':
content => template('exim/locals.erb')
}
- file { '/etc/exim4/submission-domains':
- content => template('exim/submission-domains.erb'),
+
+ concat { '/etc/exim4/submission-domains':
+ ensure_newline => true,
+ warn => @(EOF),
+ ## THIS FILE IS UNDER PUPPET CONTROL. DON'T EDIT IT HERE.
+ | EOF
+ target => '/etc/exim4/submission-domains',
+ order => '00',
}
+
file { '/etc/exim4/host_blacklist':
source => 'puppet:///modules/exim/common/host_blacklist',
}
--- /dev/null
+# add an exim submission domain entry on this host
+#
+# @param domain email domain (defaults to $name)
+define exim::submissiondomain (
+ String $domain = $name,
+) {
+ concat::fragment { "submission_${domain}":
+ target => '/etc/exim4/submission-domains',
+ content => $domain,
+ }
+}
+++ /dev/null
-##
-### THIS FILE IS UNDER PUPPET CONTROL. DON'T EDIT IT HERE.
-### USE: git clone git+ssh://$USER@puppet.debian.org/srv/puppet.debian.org/git/dsa-puppet.git
-###
-
-<% if %w{buxtehude}.include?( scope.lookupvar('::hostname') ) %>
-bugs.debian.org
-<% end %>
}
# The bugs service accepts bug reports on the submission port
+ exim::submissiondomain { 'bugs.debian.org': }
ferm::rule::simple { 'bugs-submission':
description => 'Allow submission access from the world',
port => 'submission',