Code Monkey home page Code Monkey logo

puppet-postfix's Introduction

puppet-postfix

This is a puppet module for installing, configuring and managing the postfix message transfer agent.

Build Status

Intent

The intention of this module is to provide a module that installs and configures postfix using a parametised class and augeas, rather than using custom template files. This included setting up appropriate rspec tests and smoke tests.

Postfix vs. Sendmail

There are many reasons to choose between sendmail and postfix, but in this case it was that the postfix configuration is a simple text file. The sendmail configuration has to be compiled, and this compilation step makes it difficult for Puppet to tell if a configuration change has been implemented, which in turn makes it difficult to create a module that is truly idempotent.

Default Usage

To install postfix with the default configuration:

include postfix

Configuration with Parameters

The postfix class is parametric and allows a single declaration to configure the postfix service. At this stage it only configures a few settings to allow the set up of a SMTP relay that forwards all messages to another SMTP host. The following example replicates the default configuration:

class {'postfix':
	remove_sendmail => false,
	myorigin			=>	undef,
	relayhost			=> undef,
	relayhost_port	=> undef,
}
	

Parameters

  • remove_sendmail The sendmail service and packages will be removed from the system if this parameter is set to true. Default is false.
  • myorigin This sets the default domain part of all outgoing email as per the postfix documentation. The default is undef, which will revert to the system default which is the local hostname.
  • mydestination This sets the default domain part of all outgoing email as per the postfix documentation. The default is undef, which will revert to the system default which is $myhostname localhost.$mydomain localhost.
  • relayhost This sets the FQDN of the host through which email will be relayed to the internet as per the postfix documentation. The default is undef, which reverts to the system default of attempting to send email directly out through the Internet.
  • relayhost_port This sets the port for the relay host specified with the relayhost parameter. The default is undef which leaves the port specifier off the end of the relayhost setting. This parameter does nothing if the relayhost parameter is not set.
  • daemon_directory Sets the directory with Postfix support programs and daemon programs are installed. The default is specific for each operating system. It's not recommended that this parameter be changed.
  • inet_interfaces Sets the network interface for postfix to bind do. The default value is localhost

Attribution

puppet-blank for Puppet Module generation

This module is derived from the puppet-blank module by Aaron Hicks ([email protected])

This module has been developed for the use with Open Source Puppet (Apache 2.0 license) for automating server & service deployment.

Licensing

This file is part of the postfix Puppet module.

Licensed under the Apache License, Version 2.0

puppet-postfix's People

Contributors

aethylred avatar alexsmithhp avatar conzar avatar ht43-bqxfqb avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

puppet-postfix's Issues

sample_directory ANd readme_directory

rhel 6 is ok
sample_directory = /usr/share/doc/postfix-2.6.6/samples
readme_directory = /usr/share/doc/postfix-2.6.6/README_FILES

but rhel7 is
sample_directory = /usr/share/doc/postfix-2.10.1/samples
readme_directory = /usr/share/doc/postfix-2.10.1/README_FILES

Therefore we need a variable for the version

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.