# @param smarthost_port the port on which satellites send mail to the smarthost (needs to be the same on both sides)
class exim (
Optional[String] $smarthost,
- Optional[Integer] $mail_port,
Boolean $use_smarthost = true,
Boolean $is_bugsmx = false,
Boolean $is_mailrelay = 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
Package['exim4-daemon-heavy']->Mailalias<| |>
- concat::fragment { 'virtual_domain_template':
- target => '/etc/exim4/virtualdomains',
- content => template('exim/virtualdomains.erb'),
- order => '05',
- }
-
service { 'exim4':
ensure => running,
require => [
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')
}