How To Install postfwd on Fedora 36
Introduction
In this tutorial we learn how to install postfwd
on Fedora 36.
What is postfwd
Postfwd is written in Perl to combine complex Postfix restrictions in a ruleset similar to those of the most firewalls. The program uses the Postfix policy delegation protocol to control access to the mail system before a message has been accepted. It allows to choose an action (e.g. reject, dunno) for a combination of several SMTP parameters (like sender and recipient address, size or the client’s TLS fingerprint).
We can use yum
or dnf
to install postfwd
on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install postfwd.
Install postfwd 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 postfwd
using dnf
by running the following command:
sudo dnf -y install postfwd
Install postfwd 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 postfwd
using yum
by running the following command:
sudo yum -y install postfwd
How To Uninstall postfwd on Fedora 36
To uninstall only the postfwd
package we can use the following command:
sudo dnf remove postfwd
postfwd Package Contents on Fedora 36
/etc/postfwd
/etc/postfwd/postfwd.cf
/etc/sysconfig/postfwd
/run/postfwd
/usr/bin/postfwd-client
/usr/lib/systemd/system/postfwd.service
/usr/lib/tmpfiles.d/postfwd.conf
/usr/libexec/postfwd
/usr/libexec/postfwd/hapolicy
/usr/sbin/postfwd
/usr/sbin/postfwd3
/usr/share/doc/postfwd
/usr/share/doc/postfwd/CHANGELOG
/usr/share/doc/postfwd/README.md
/usr/share/doc/postfwd/arch.html
/usr/share/doc/postfwd/hapolicy.html
/usr/share/doc/postfwd/hapolicy.txt
/usr/share/doc/postfwd/hapolicy01.png
/usr/share/doc/postfwd/hapolicy02.png
/usr/share/doc/postfwd/postfwd-ARCH.png
/usr/share/doc/postfwd/postfwd.cf.sample
/usr/share/doc/postfwd/postfwd.plugins.sample
/usr/share/doc/postfwd/postfwd.settings.sample
/usr/share/doc/postfwd/postfwd.settings.sample.full
/usr/share/doc/postfwd/postfwd3.html
/usr/share/doc/postfwd/postfwd3.txt
/usr/share/doc/postfwd/quick.html
/usr/share/licenses/postfwd
/usr/share/licenses/postfwd/LICENSE
/usr/share/man/man8/postfwd.8.gz
/usr/share/man/man8/postfwd3.8.gz
/var/lib/postfwd
References
Summary
In this tutorial we learn how to install postfwd
on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).