Defined Type: postfix::main

Defined in:
vendor_modules/postfix/manifests/main.pp

Overview

Define additional Postfix settings.

Any settings not (yet) implemented in the main class or per-transport settings can be defined here.

Examples:

An example setting

include postfix
postfix::main { 'dovecot_destination_recipient_limit':
  value => 1,
}

Parameters:

  • value (String)
  • setting (String) (defaults to: $title)
  • ensure (Enum['present', 'absent']) (defaults to: 'present')

See Also:

Since:

  • 1.0.0



20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# File 'vendor_modules/postfix/manifests/main.pp', line 20

define postfix::main (
  String                    $value,
  String                    $setting = $title,
  Enum['present', 'absent'] $ensure  = 'present',
) {

  include postfix

  postfix_main { $setting:
    ensure  => $ensure,
    value   => $value,
    target  => "${postfix::conf_dir}/main.cf",
    require => Class['postfix::config'],
    notify  => Class['postfix::service'],
  }
}