Defined Type: postfix::mailalias

Defined in:
manifests/mailalias.pp

Summary

Manage the content of the Postfix alias map

Overview

Creates an email alias in the local alias database and updates the binary version of said database.

Examples:

Simple example

include postfix
postfix::mailalias { 'postmaster':
  ensure    => present,
  recipient => 'foo',
}

Parameters:

  • ensure (Enum['present', 'absent']) (defaults to: 'present')

    Intended state of the resource

  • recipient (Variant[String, Array[String]])

    The recipient address where the mail should be sent to.

See Also:



21
22
23
24
25
26
27
28
29
30
31
# File 'manifests/mailalias.pp', line 21

define postfix::mailalias (
  Variant[String, Array[String]] $recipient,
  Enum['present', 'absent']      $ensure    = 'present'
) {
  mailalias { $title:
    ensure    => $ensure,
    name      => $name,
    recipient => $recipient,
    notify    => Exec['newaliases'],
  }
}