Puppet Class: sendmail::relay_domains

Defined in:
manifests/relay_domains.pp

Summary

Manage entries in the Sendmail relay-domains file.

Overview

Do not declare this class directly. Use the ‘relay_domains` parameter of the `sendmail` class instead.

Parameters:

  • relay_domains (Array[String]) (defaults to: [])

    An array of domain names that will be written into the relay domains file. Leading or trailing whitespace is ignored. Empty entries are also ignored.



13
14
15
16
17
18
19
20
21
22
23
24
25
26
# File 'manifests/relay_domains.pp', line 13

class sendmail::relay_domains (
  Array[String] $relay_domains = [],
) {
  include sendmail::params

  file { $sendmail::params::relay_domains_file:
    ensure  => file,
    owner   => 'root',
    group   => $sendmail::params::sendmail_group,
    mode    => '0644',
    content => join(suffix(sendmail::canonify_array($relay_domains), "\n")),
    notify  => Class['sendmail::service'],
  }
}