Puppet Class: profile::mail::smarthost::wmcs
- Defined in:
- modules/profile/manifests/mail/smarthost/wmcs.pp
Overview
SPDX-License-Identifier: Apache-2.0 sets up a mail smarthost for Wikimedia cloud environment
3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
# File 'modules/profile/manifests/mail/smarthost/wmcs.pp', line 3
class profile::mail::smarthost::wmcs (
Array[Wmflib::Host::Wildcard] $internal_domains = lookup('profile::mail::smarthost::wmcs::internal_domains'),
Stdlib::Fqdn $external_domain = lookup('profile::mail::smarthost::wmcs::external_domain'),
) {
include network::constants
$rewrite_rules = $internal_domains.map |Wmflib::Host::Wildcard $x| {
"*@*.${x} root@${external_domain} F"
}
class { '::profile::mail::smarthost':
relay_from_hosts => $network::constants::cloud_networks,
root_alias_rcpt => "root@${external_domain}",
envelope_rewrite_rules => $rewrite_rules,
}
}
|