Skip to main content

pypolicyd-spf SPF Postfix policy server implemented in Python.

Project description

Python Postfix Policy for SPF (python-policy-spf) 1.3
Python based policy daemon for Postfix SPF checking
Tumgreyspf source
Copyright © 2004-2005, Sean Reifschneider,, ltd.
python-policyd-spf changes
Copyright © 2007-2014 Scott Kitterman <>
Documentation inputs:
Copyright © 2004-2005, Sean Reifschneider,, ltd.
2003-2004 Meng Weng Wong <> from postfix-policyd-spf-perl
Copyright © 2007-2014 Scott Kitterman <>

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
See the License for the specific language governing permissions and
limitations under the License.


This is python-policyd-spf, an external policy checker for the postfix mail
server. It will use pyspf to check SPF records to determine if email should
be rejected by your server.

To install from the tar.gz (if this software has been packaged for your
distribution, the packaged version is recommended and should be installed
using your normal distribution packaging tools):

1. Extract the package from the tarball (tar -xvvzf ...)
2. Enter the package directory (cd ...)
3. python build
4. As root python install

It requires Python (python2.6, python2.7, or python3.2+), the pyspf
(python-spf) library version 2.0.7 or higher (2.0.9 is required for all
changes related to the RFC 7208 updates to the SPF design), and (for Python
versions before python3.3, the ipaddr module - for python3.3 and later the
built-in ipaddress module is used).

If pyspf not available through your packaging system, it can be downloaded

If ipaddr not available through your packaging system, it can be downloaded

To use the optional RFC 7001 Authentication-Results header, the authres module
is also needed. It is also need to run some tests. It can be downloaded from
pypi or from:

Nothing is configured by default, so this will not interact with Postfix until
it has been set up.

See man 1 policyd-spf for information on setting up and using this policy

See man 5 policyd-spf.conf for configuration file information.

Project details

Release history Release notifications

History Node


History Node


History Node


History Node


History Node


This version
History Node


History Node


History Node


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
pypolicyd-spf-1.3.tar.gz (31.8 kB) Copy SHA256 hash SHA256 Source None May 10, 2014

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page