Forge Home


Postfix installation and configuration module


9,798 latest version

2.5 quality score

Version information

  • 0.9.0 (latest)
released Feb 18th 2014

Start using this module

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

Add this module to your Puppetfile:

mod 'devopera-dopostfix', '0.9.0'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add devopera-dopostfix
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install devopera-dopostfix --version 0.9.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.



devopera/dopostfix — version 0.9.0 Feb 18th 2014


Devopera puppet module for setting up the Postfix mail relay agent, which is a fast, easy to administer and secure alternative to Sendmail.



  • Added relay support and authenticated relay support


Null sender setup

class { 'dopostfix' : }

Relay setup to named host on named port

class { 'dopostfix' :
  relay => true,
  smtp_auth => true,
  smtp_hostname => '',
  smtp_username => 'username',
  smtp_password => 'password_or_API_key',

dopostfix will send mail out via the domain's mail server, found from the FQDN using its MX record unless:

  1. force_restrict_relay => true, or
  2. FQDN finishes .localdomain, or
  3. relayhost != undef

Copyright and License

Copyright (C) 2012 Lightenna Ltd

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.