Integer $smarthost_port = 587,
Optional[Integer] $mail_port = undef,
) {
- include exim::vdomain::setup
-
if $use_smarthost {
$heavy = false
file { '/etc/mailname':
content => template('exim/mailname.erb'),
}
+
+ concat { '/etc/exim4/virtualdomains': }
+ concat::fragment { 'virtualdomains_header':
+ target => '/etc/exim4/virtualdomains',
+ content => template('exim/virtualdomains.header.erb'),
+ order => '00',
+ }
+
file { '/etc/exim4/locals':
content => template('exim/locals.erb')
}
+++ /dev/null
-class exim::vdomain::setup {
- concat { '/etc/exim4/virtualdomains':
- owner => root,
- group => root,
- mode => '0644',
- require => Package['exim4-daemon-heavy']
- }
-
- concat::fragment { 'virtualdomains_header':
- target => '/etc/exim4/virtualdomains',
- content => template('exim/virtualdomains.header.erb'),
- order => '00',
- }
-}