# our exim class
-# @param smarthost host to relay through (if unset)
+# @param use_smarthost use the smarthost
+# @param smarthost host to relay through (if set and use_smarthost)
# @param is_bugsmx this system handles bugs.debian.org
# @param is_mailrelay this system is a mailrelay, both in and out, for debian hosts
# @param is_rtmaster this system handles rt.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
class exim (
+ Boolean $use_smarthost = true,
Optional[String] $smarthost,
Boolean $is_bugsmx = false,
Boolean $is_mailrelay = false,
include exim::vdomain::setup
include debian_org::mail_incoming_port
- if $smarthost and $smarthost != '' {
+ if $use_smarthost {
$heavy = false
+
+ if ! smarthost {
+ fail('No smarthost set but use_smarthost is true')
+ }
} else {
$heavy = true
}