Resource Type: mailalias

Defined in:
core_modules/mailalias_core/lib/puppet/type/mailalias.rb
Providers:
aliases

Summary

Creates an email alias in the local alias database.

Overview

Examples:

using mailalias to redirect mail for the ftp account to root's mailbox


mailalias { 'ftp':
  ensure    => present,
  recipient => 'root',
}

Properties

  • ensure (defaults to: present)

    The basic property that the resource should be in.

    Supported values:
    • present
    • absent
  • file

    A file containing the alias's contents. The file and the recipient entries are mutually exclusive.

  • recipient

    Where email should be sent. Multiple values should be specified as an array. The file and the recipient entries are mutually exclusive.

  • target

    The file in which to store the aliases. Only used by those providers that write to disk.

Parameters

  • name (namevar)

    The alias name.

  • provider

    The specific backend to use for this `mailalias` resource. You will seldom need to specify this — Puppet will usually discover the appropriate provider for your platform.