Forge Home

sqlgrey

A module to manage sqlgrey - postfix greylisting policy

6,030 downloads

5,944 latest version

4.6 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.1 (latest)
  • 0.1.0
released Jan 15th 2018
This version is compatible with:
  • ,

Start using this module

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

Add this module to your Puppetfile:

mod 'abaranov-sqlgrey', '0.1.1'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add abaranov-sqlgrey
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install abaranov-sqlgrey --version 0.1.1

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

abaranov/sqlgrey — version 0.1.1 Jan 15th 2018

Table of Contents

  1. Overview
  2. Usage
  3. Reference
  4. Limitations

Overview

Build Status

This puppet module configures sqlgrey - postfix greylisting policy service with an SQL database as storage backend

Usage

To configure sqlgrey module include it to puppet manifest and define config hash with sqlgrey parameters

class { '::sqlgrey:'
  config => {
    db_type => {
      value => 'mysql',
    },
    db_name => {
      value => 'sqlgrey',
    },
    db_user => {
      value => 'sqlgrey',
    },
    db_pass => {
      value => "DON'T SHARE SECRETS",
    },
    db_host => {
      value => 'localhost',
    },
    regect_code => {
      value => '451'
    },
  }
}

or the same but using using hiera

include ::sqlgrey
sqlgrey::config:
  db_type:
    value: 'mysql'
  db_name:
    value: 'sqlgrey'
  db_user:
    value: 'sqlgrey'
  db_pass:
    value: "DON'T SHARE SECRETS"
  db_host:
    value: 'localhost'
  prepend:
    value: '1'
  optmethod:
    value: 'optout'
  reject_first_attempt:
    value: 'immed'
  reject_early_reconnect:
    value: 'immed'
  regect_code:
    value: '451'
  admin_mail:
    value: /dev/null

To define fqdn or ip whitelist use clients_fqdn_whitelist or clientsip_whitelist arrays:

sqlgrey::clients_fqdn_whitelist:
  - 'test.example.com'
  - 'test1.example.com'
sqlgrey::clients_ip_whitelist:
  - '192.168.0.0/24'
  - '10.0.0.0/8'

Reference

Check ./doc/index.html

Limitations

Tested on Debian 6/7 and RedHat 5/6/7 with Puppet4