Forge Home


Simple module to manage Postfix mail server


16,111 latest version

2.5 quality score

We run a couple of automated
scans to help you access a
module's quality. Each module is
given a score based on how well
the author has formatted their
code and documentation and
modules are also checked for
malware using VirusTotal.

Please note, the information below
is for guidance only and neither of
these methods should be considered
an endorsement by Puppet.

Version information

  • 2.1.0 (latest)
  • 2.0.1
  • 2.0.0
  • 1.0.0
  • 0.1.0
released Nov 24th 2014
This version is compatible with:
  • Puppet Enterprise 3.x
  • Puppet 3.x
  • , , ,

Start using this module

  • r10k or Code Manager
  • Bolt
  • Manual installation
  • Direct download

Add this module to your Puppetfile:

mod 'nrvale0-postfix', '2.1.0'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add nrvale0-postfix
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install nrvale0-postfix --version 2.1.0

Direct download is not typically how you would use a Puppet module to manage your infrastructure, but you may want to download the module in order to inspect the code.



nrvale0/postfix — version 2.1.0 Nov 24th 2014

Build Status


Table of Contents

  1. Overview
  2. Module Description - What the module does and why it is useful
  3. Setup - The basics of getting started with postfix
  4. Usage - Configuration options and additional functionality
  5. Reference - An under-the-hood peek at what the module is doing and how
  6. Limitations - OS compatibility, etc.
  7. Development - Guide for contributing to the module


Simple module for installing and running the Postfix MTA on RedHat-based and Debian-based systems.

Module Description

The module installs the Postfix MTA from vendor packages on supported platforms and provides the ability to override package name and service init state.

The module is appropriate for forwarding MTA setup and basic inbound MTA. It does not currently expose an API which allows complicated mail filtering, TLS, nor vhosted setups. Pull requests encouraged.


What postfix affects

  • by default, installs from vendor Postfix packages
  • makes modifications to /etc/postfix/

Beginning with postfix

sudo puppet module install nrvale0-postfix


include ::postfix
class { '::postfix':
  relayhost => 'mail.myorg.private',
  myorigin => $::fqdn,

Note there are no required parameters to class postfix.


  • 'relayhost' and 'myorigin' are injected into using Puppet resource type file_line from puppetlabs/stdlib.


  • current OS support:

  • Ubuntu 12.04, 14.04

  • Debian 7

  • RedHat/CentOS 6

  • upcoming OS support

  • Ubuntu 13.10

  • RedHat/CentOS 7



Apache License 2.0

About the author

Nathan Valentine - |