-class exim {
-
- $is_mailrelay = has_role('mailrelay')
- $is_bugsmx = has_role('bugsmx')
- $is_rtmaster = has_role('rtmaster')
- $is_packagesmaster = has_role('packagesmaster')
- $is_packagesqamaster = has_role('packagesqamaster')
-
+# our exim class
+# @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_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
+class exim (
+ 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,
+) {