ssmtp

sSMTP management module

cbarbour

cbarbour

9,399 downloads

9,106 latest version

3.5 quality score

Version information

  • 0.2.2 (latest)
  • 0.2.1
  • 0.2.0
released Dec 8th 2013

Start using this module

Documentation

cbarbour/ssmtp — version 0.2.2 Dec 8th 2013

#ssmtp

####Table of Contents

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

##Preamble

This is a clone of thbe/ssmtp. This clone fixes a couple of problems that prevents ssmtp from installing on Puppet Enterprise 3.1. This module will be removed when the changes are incorporated into thbe/ssmtp

##Overview

The ssmtp module provides the installation procedure for SSMTP including the setup of the alternate system if not overwritten by class parameter.

##Module Description

The SSMTP module prelace the standard mail server configuration with a light wight sending only server. The behavior is the same as sendmail but without the possibility to recieve mails from external systems.

##Setup

###What ssmtp affects

  • ssmtp package.
  • ssmtp configuration file.
  • ssmtp alternative service configuration.

###Beginning with ssmtp

include '::ssmtp' is enough to get you up and running if the parameters point to proper values. If you wish to pass in parameters like which servers to use then you can use:

class { '::ssmtp':
  mailHub => 'mail.example.local',
}

##Usage

All interaction with the ssmtp module can do be done through the main ssmtp class. This means you can simply toggle the options in the ssmtp class to get at the full functionality.

###I just want SSMTP, what's the minimum I need?

include '::ssmtp'

###I just want to route all mails to central mail gateway, nothing else.

class { '::ssmtp':
  mailHub => 'mail.example.local',
  rootEmail => 'john.doe@example.local',
}

##Reference

###Classes

  • ssmtp: Main class, includes all the rest.
  • ssmtp::install: Handles the packages.
  • ssmtp::config: Handles the configuration file.
  • ssmtp::service: Handles the alternative service link.

###Parameters

The following parameters are available in the ssmtp module

####defaultMta

Replace the default MTA with ssmtp if set to ssmtp.

####rootEmail

Specify which Email address should recieve all mails from root.

####mailHub

Define the mail server which should deliver all mails.

####revaliases

Array to define the reverse aliases.

##Limitations

This module has been built on and tested against Puppet 3.2 and higher.

The module has been tested on:

  • RedHat Enterprise Linux 5/6
  • Scientific Linux 5/6

Testing on other platforms has been light and cannot be guaranteed.

##Development

If you like to add or improve this module, feel free to fork the module and send me a merge request with the modification.