Forge Home

postfix

Simple module to manage Postfix mail server

17,648 downloads

15,925 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.

Download

Documentation

nrvale0/postfix — version 2.1.0 Nov 24th 2014

Build Status

nrvale0-postfix

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

Overview

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.

Setup

What postfix affects

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

Beginning with postfix

sudo puppet module install nrvale0-postfix

Usage

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

Note there are no required parameters to class postfix.

Reference

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

Limitations

  • current OS support:

  • Ubuntu 12.04, 14.04

  • Debian 7

  • RedHat/CentOS 6

  • upcoming OS support

  • Ubuntu 13.10

  • RedHat/CentOS 7

Development

https://github.com/nrvale0/puppet-postfix

License

Apache License 2.0

About the author

Nathan Valentine - nrvale0@gmail.com | nathan@puppetlabs.com http://about.me/nrvale0