Forge Home


Installs and configures milter-greylist - opensource solution to shrug one time spam off


1,105 latest version

5.0 quality score

Version information

  • 0.2.4 (latest)
  • 0.2.3
  • 0.2.2
  • 0.2.1
  • 0.1.1
released Aug 10th 2020
This version is compatible with:
  • Puppet Enterprise 2019.8.x, 2019.7.x, 2019.5.x, 2019.4.x, 2019.3.x, 2019.2.x, 2019.1.x, 2019.0.x, 2018.1.x, 2017.3.x, 2017.2.x, 2016.4.x
  • Puppet >= 4.10.0 < 7.0.0
  • ,

Start using this module

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

Add this module to your Puppetfile:

mod 'oleksandriegorov-milter_greylist', '0.2.4'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add oleksandriegorov-milter_greylist
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install oleksandriegorov-milter_greylist --version 0.2.4

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.



oleksandriegorov/milter_greylist — version 0.2.4 Aug 10th 2020


Table of Contents

  1. Description
  2. Setup - The basics of getting started with milter_greylist
  3. Usage - Configuration options and additional functionality
  4. Limitations - OS compatibility, etc.
  5. Development - Guide for contributing to the module


Installs and configures milter-greylist - opensource solution to shrug one time spam off. Its source is at and most verbose manual I found at


Add the following into your manifest include 'milter_greylist'

What milter_greylist affects OPTIONAL

This puppet module installs milter-greylist packages, configures /etc/mail/greylist.conf and enables milter-greylist service

Setup Requirements OPTIONAL

Epel repository needs to be installed for milter-greylist package

Beginning with milter_greylist

install module include into manifest run manifest


Just including milter_greylist runs milter-greylist with default settings to greylist everyone except @mynetworks

include milter_greylist

To add more IP subnets into mynetworks whitelist

include milter_greylist
class {'milter_greylist':
  mynetworks => '',

It is advisable to set certain whitelisted IP addresses or countries to avoid getting into initial delay trouble

include milter_greylist
class {'milter_greylist':
  whlcountries => ['CA'],
  whlips => ['', ''],

By default milter-greylist is configured to listen to inet socket, if you have reasons to use unix socket instead try this

include milter_greylist
class {'milter_greylist':
  socket => '/var/run/milter-greylist/milter-greylist.sock',

If you have registered for a free MaxMind account and downloaded CSV file with ASN information you can greylist by ASN number

include milter_greylist
class {'milter_greylist':
  asncsvfile => '/usr/local/share/geoip/GeoLite2-ASN-Blocks-IPv4.csv',
  greyasns   => ['12220','15555','1333'],


If your MTA is Postfix then unless you set smtpd_delay_open_until_valid_rcpt = no in Postfix's, you won;t get queue id logged


In the Development section, tell other users the ground rules for contributing to your project and how they should submit their work.

Release Notes/Contributors/Etc. Optional

0.1 - Initial version with whitelist by country and by IPs