Pyspf is a Python implementation of the SPF (Sender Policy Framework) specification. Pyspf can be used with any milter script for Sendmail, Postfix or another MTA. This requires python-pydns.