X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=modules%2Fexim%2Fmanifests%2Finit.pp;h=45103629ae48fd04a4129a91edfcfd4a2fa2243a;hb=b365b2d8c7b74703bdfa672f54f5cf6691cf946d;hp=320c7ff18603b3b07110a7b419b36e144ae25f18;hpb=1f37c1198a12c740639535f69d3f42b841c0aca5;p=mirror%2Fdsa-puppet.git diff --git a/modules/exim/manifests/init.pp b/modules/exim/manifests/init.pp index 320c7ff18..45103629a 100644 --- a/modules/exim/manifests/init.pp +++ b/modules/exim/manifests/init.pp @@ -6,19 +6,20 @@ # @param is_rtmaster this system handles rt.debian.org # @param is_packagesmaster this system handles packagesrt.debian.org # @param is_packagesqamaster this system handles packages.qa.debian.org -# @param smarthost_port the port on which satellites send mail to the smarthost +# @param mail_port override the default incoming mailport (only applicable for hosts behind an incoming relay) +# @param smarthost_port the port on which satellites send mail to the smarthost (needs to be the same on both sides) class exim ( - Boolean $use_smarthost = true, Optional[String] $smarthost, + Boolean $use_smarthost = true, Boolean $is_bugsmx = false, Boolean $is_mailrelay = false, Boolean $is_rtmaster = false, Boolean $is_packagesmaster = false, Boolean $is_packagesqamaster = false, Integer $smarthost_port = 587, + Optional[Integer] $mail_port = undef, ) { include exim::vdomain::setup - include debian_org::mail_incoming_port if $use_smarthost { $heavy = false @@ -28,6 +29,9 @@ class exim ( } } else { $heavy = true + if $mail_port { + fail('Cannot override mail_port in heavy/no-smarthost hosts') + } } munin::check { 'ps_exim4': script => 'ps_' } @@ -83,9 +87,6 @@ class exim ( file { '/etc/mailname': content => template('exim/mailname.erb'), } - file { '/etc/exim4/manualroute': - content => template('exim/manualroute.erb') - } file { '/etc/exim4/locals': content => template('exim/locals.erb') }