Forge Home


Puppet module for sendmail


6,819 latest version

2.1 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

  • 0.1.3 (latest)
  • 0.1.1
  • 0.1.0
released Feb 23rd 2017

Start using this module

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

Add this module to your Puppetfile:

mod 'desalvo-sendmail', '0.1.3'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add desalvo-sendmail
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install desalvo-sendmail --version 0.1.3

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.

Tags: sendmail


desalvo/sendmail — version 0.1.3 Feb 23rd 2017


Puppet module for managing sendmail configuration.

Table of Contents

  1. Overview - What is the sendmail module?


This module manages and confgiures the sendmail agent.


  • sendmail_mc_template: path to the template
  • smart_host: the smtp outgoing server
  • smtp_port: the smtp port
  • exposed_user: the username to be displayed instead of the masquerade name
  • masquerade_as: this causes mail being sent to be labeled as coming from the indicated host.domain
  • masquerade_envelope: if masquerading is enabled or the genericstable is in use, set this parameter to true to also masquerade envelopes, normally only the header addresses are masqueraded
  • masquerade_entire_domain: set this to true if you need all hosts within the masquerading domains to be rewritten to the masquerade name
  • masquerade_domain: the effect of this is that although mail to user@otherhost.domain will not be delivered locally, any mail including any user@otherhost.domain will, when relayed, be rewritten to have the masquerade_as address; this can be a space-separated list of names
  • rootmail: mail address for the root user, default is undef
  • aliases: hash of aliases. Example: { 'user' => 'email' }
  • generics_domains: list of domains to serve. Example: [ '', '' }
  • generics_table: hash of user email addresses for multiple domains. Example: { 'user', 'email' }
  • auth_user: SMTP user, not used for authentication
  • auth_email: SMTP email (username)
  • auth_password: SMTP password



This is and example of setting up the sendmail agent using the default configuration.

Using the sendmail module

class { 'sendmail': }


Release Notes


  • Support for authorization


  • Template fix


  • Fix for path to the make command


  • Initial version