Forge Home

sqlgrey

A module to manage sqlgrey - postfix greylisting policy

5,532 downloads

5,459 latest version

4.6 quality score

Version information

  • 0.1.1 (latest)
  • 0.1.0
released Jan 15th 2018
This version is compatible with:
  • Debian
    ,
    RedHat

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