Skip to main content

pypolicyd-spf SPF Postfix policy server implemented in Python.

Project description

Python Postfix Policy for SPF (python-policy-spf) 1.2
Python based policy daemon for Postfix SPF checking
Tumgreyspf source
Copyright © 2004-2005, Sean Reifschneider,, ltd.
python-policyd-spf changes
Copyright © 2007-2012 Scott Kitterman <>
Documentation inputs:
Copyright © 2004-2005, Sean Reifschneider,, ltd.
2003-2004 Meng Weng Wong <> from postfix-policyd-spf-perl
Copyright © 2007-2013 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 or higher, 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 from:

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

To use the optional RFC 5451 Authentication-Results header, the authres module
is also needed. 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

Download files

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

Files for pypolicyd-spf, version 1.2
Filename, size File type Python version Upload date Hashes
Filename, size pypolicyd-spf-1.2.tar.gz (30.8 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page