Puppet Class: postfix::satellite
- Defined in:
- manifests/satellite.pp
Overview
Class: postfix::satellite
This class configures all local email (cron, mdadm, etc) to be forwarded to $root_mail_recipient, using $relayhost as a relay.
This class will call postfix::mta and override its parameters. You shouldn’t call postfix::mta yourself or use mta=true in the postfix class.
Parameters
- mydestination
-
(string)
-
- mynetworks
-
(string)
-
- relayhost
-
(string)
-
Examples
class { 'postfix':
relayhost => 'mail.example.com',
myorigin => 'toto.example.com',
root_mail_recipient => 'the.sysadmin@example.com',
satellite => true,
}
25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 |
# File 'manifests/satellite.pp', line 25
class postfix::satellite (
$mydestination = $postfix::mydestination,
$mynetworks = $postfix::mynetworks,
$relayhost = $postfix::relayhost,
) {
assert_type(Pattern[/^\S+$/], $postfix::myorigin)
class { '::postfix::mta':
mydestination => $mydestination,
mynetworks => $mynetworks,
relayhost => $relayhost,
}
postfix::virtual { "@${postfix::myorigin}":
ensure => 'present',
destination => 'root',
}
}
|