How To Install pypolicyd-spf on Fedora 36

In this tutorial we learn how to install pypolicyd-spf in Fedora 36. pypolicyd-spf is SPF Policy Server for Postfix (Python implementation)

Introduction

In this tutorial we learn how to install pypolicyd-spf on Fedora 36.

What is pypolicyd-spf

pypolicyd-spf is a Postfix policy engine for Sender Policy Framework (SPF) checking. It is implemented in pure Python and uses the python-spf (pyspf) module. This SPF policy server implementation provides flexible options for different receiver policies and sender whitelisting to enable it to support a very wide range of requirements.

We can use yum or dnf to install pypolicyd-spf on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install pypolicyd-spf.

Install pypolicyd-spf on Fedora 36 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

After updating yum database, We can install pypolicyd-spf using dnf by running the following command:

sudo dnf -y install pypolicyd-spf

Install pypolicyd-spf on Fedora 36 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install pypolicyd-spf using yum by running the following command:

sudo yum -y install pypolicyd-spf

How To Uninstall pypolicyd-spf on Fedora 36

To uninstall only the pypolicyd-spf package we can use the following command:

sudo dnf remove pypolicyd-spf

pypolicyd-spf Package Contents on Fedora 36

/etc/python-policyd-spf
/etc/python-policyd-spf/policyd-spf.conf
/usr/lib/python3.10/site-packages/__pycache__
/usr/lib/python3.10/site-packages/__pycache__/policydspfsupp.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/__pycache__/policydspfsupp.cpython-310.pyc
/usr/lib/python3.10/site-packages/__pycache__/policydspfuser.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/__pycache__/policydspfuser.cpython-310.pyc
/usr/lib/python3.10/site-packages/policydspfsupp.py
/usr/lib/python3.10/site-packages/policydspfuser.py
/usr/lib/python3.10/site-packages/pypolicyd_spf-2.0.2-py3.10.egg-info
/usr/libexec/postfix/policyd-spf
/usr/share/doc/pypolicyd-spf
/usr/share/doc/pypolicyd-spf/CHANGES
/usr/share/doc/pypolicyd-spf/COPYING
/usr/share/doc/pypolicyd-spf/README
/usr/share/doc/pypolicyd-spf/README.per_user_whitelisting
/usr/share/doc/pypolicyd-spf/policyd-spf.conf.commented
/usr/share/man/man1/policyd-spf.1.gz
/usr/share/man/man5/policyd-spf.conf.5.gz
/usr/share/man/man5/policyd-spf.peruser.5.gz

References

Summary

In this tutorial we learn how to install pypolicyd-spf on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).