plieven / bley

intelligent greylisting daemon for postfix

Home Page:http://bley.mx

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ABOUT

bley is an intelligent greylisting daemon for Postfix (and Exim).

It uses various test (incl. RBL and SPF) to decide whether a sender should be greylisted or not, thus mostly eliminating the usual greylisting delay while still filtering most of the spam.

DEPENDENCIES

bley is written in Python using the Twisted framework. It uses pyspf for SPF validation and publicsuffix for checking of domains against the PublicSuffix.org database. Database interaction is implemented via sqlite3 for SQLite, psycopg2 for PostgreSQL and MySQL-Python for MySQL.

INSTALLATION

Quick and dirty

Unpack the tarball (or clone the git tree), adjust bley.conf.template, rename it to bley.conf and run ./bley.

Still quick, but not dirty

Unpack the tarball (or clone the git tree), run python setup.py build followed by python setup.py install, copy /etc/bley/bley.conf.template to /etc/bley/bley.conf, adjust it to your needs (see CONFIGURATION below) and run /usr/bin/bley.

CONFIGURATION

Basically you just have to configure the database:

dbtype = pgsql for PostgreSQL, mysql for MySQL or sqlite3 for SQLite
dbhost = the host where the database runs on (usually localhost)
dbuser = the name of the database user
dbpass = the password of the database user
dbname = the name (or path in case of SQLite) of the database

After that you can point your Postfix to bley as a policy server by adding check_policy_service inet:127.0.0.1:1337 to your smtpd_recipient_restrictions in main.cf.

bley will be working now, but you probably would like to tune it more for your needs (esp. the used DNWLs and DNSBLs, the greylisting times and the hit thresholds).

BUILD STATUS

Build Status

About

intelligent greylisting daemon for postfix

http://bley.mx


Languages

Language:Python 100.0%