X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=modules%2Fexim%2Fmanifests%2Finit.pp;h=49504e05e7c204e7335fcb499f29560031d462a0;hb=6185681a342d2d6668e9d11e40516781940c9069;hp=ae732057f265d0dc65315c1a4845da14840fa535;hpb=6f2e5fc86e49c12b12eef39fc69e0e810a32c318;p=mirror%2Fdsa-puppet.git diff --git a/modules/exim/manifests/init.pp b/modules/exim/manifests/init.pp index ae732057f..49504e05e 100644 --- a/modules/exim/manifests/init.pp +++ b/modules/exim/manifests/init.pp @@ -8,6 +8,7 @@ class exim { $is_packagesqamaster = has_role('packagesqamaster') include exim::vdomain::setup + include debian_org::mail_incoming_port munin::check { 'ps_exim4': script => 'ps_' } munin::check { 'exim_mailqueue': } @@ -24,7 +25,7 @@ class exim { concat::fragment { 'virtual_domain_template': target => '/etc/exim4/virtualdomains', content => template('exim/virtualdomains.erb'), - order => 05, + order => '05', } service { 'exim4': @@ -135,28 +136,6 @@ class exim { group => maillog, } - case getfromhash($site::nodeinfo, 'mail_port') { - /^(\d+)$/: { $mail_port = $1 } - default: { $mail_port = '25' } - } - - @ferm::rule { 'dsa-exim': - description => 'Allow SMTP', - 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)" - } - dnsextras::tlsa_record{ 'tlsa-mailport': - zone => 'debian.org', - certfile => "/etc/puppet/modules/exim/files/certs/${::fqdn}.crt", - port => $mail_port, - hostname => $::fqdn, - } - # 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.