How To Install procmail on Fedora 34

procmail is Mail processing program

Introduction

In this tutorial we learn how to install procmail on Fedora 34.

What is procmail

Procmail can be used to create mail-servers, mailing lists, sort your incoming mail into separate folders/files (real convenient when subscribing to one or more mailing lists or for prioritising your mail), preprocess your mail, start any programs upon mail arrival (e.g. to generate different chimes on your workstation for different types of mail) or selectively forward certain incoming mail automatically to someone.

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

Install procmail on Fedora 34 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

The output should look something like this:

Fedora 34 - x86_64                               20 kB/s | 6.6 kB     00:00
Fedora 34 openh264 (From Cisco) - x86_64        1.4 kB/s | 989  B     00:00
Fedora Modular 34 - x86_64                       68 kB/s | 6.5 kB     00:00
Fedora 34 - x86_64 - Updates                    3.5 kB/s | 6.2 kB     00:01
Fedora Modular 34 - x86_64 - Updates             17 kB/s | 5.9 kB     00:00
Metadata cache created.

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

sudo dnf -y install procmail

Install procmail on Fedora 34 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

The output should look something like this:

Fedora 34 - x86_64                               20 kB/s | 6.6 kB     00:00
Fedora 34 openh264 (From Cisco) - x86_64        1.4 kB/s | 989  B     00:00
Fedora Modular 34 - x86_64                       68 kB/s | 6.5 kB     00:00
Fedora 34 - x86_64 - Updates                    3.5 kB/s | 6.2 kB     00:01
Fedora Modular 34 - x86_64 - Updates             17 kB/s | 5.9 kB     00:00
Metadata cache created.

After updating yum database, We can install procmail using yum by running the following command:

sudo yum -y install procmail

How To Uninstall procmail on Fedora 34

To uninstall only the procmail package we can use the following command:

sudo dnf remove procmail

procmail Package Contents on Fedora 34

/usr/bin/formail
/usr/bin/lockfile
/usr/bin/mailstat
/usr/bin/procmail
/usr/lib/.build-id
/usr/lib/.build-id/0e
/usr/lib/.build-id/0e/24bf860dad6ae7065a1ecab09c7f7a00fa98e1
/usr/lib/.build-id/ad
/usr/lib/.build-id/ad/7a0d20fd1487ece3e8b368a4954fa2acb7fe44
/usr/lib/.build-id/ed
/usr/lib/.build-id/ed/ad03051e126cbe26d1a84ae6e65cae77acc3db
/usr/share/doc/procmail
/usr/share/doc/procmail/Artistic
/usr/share/doc/procmail/COPYING
/usr/share/doc/procmail/FAQ
/usr/share/doc/procmail/FEATURES
/usr/share/doc/procmail/HISTORY
/usr/share/doc/procmail/KNOWN_BUGS
/usr/share/doc/procmail/QuickStart
/usr/share/doc/procmail/README
/usr/share/doc/procmail/README.Maildir
/usr/share/doc/procmail/examples
/usr/share/doc/procmail/examples/1procmailrc
/usr/share/doc/procmail/examples/1rmail
/usr/share/doc/procmail/examples/2procmailrc
/usr/share/doc/procmail/examples/2rmail
/usr/share/doc/procmail/examples/3procmailrc
/usr/share/doc/procmail/examples/3rmail
/usr/share/doc/procmail/examples/advanced
/usr/share/doc/procmail/examples/dirname
/usr/share/doc/procmail/examples/forward
/usr/share/doc/procmail/examples/local_procmail_lmtp.m4
/usr/share/doc/procmail/examples/mailstat
/usr/share/doc/procmail/examples/procmail-rpm.spec
/usr/share/doc/procmail/telsas_procmailrc
/usr/share/man/man1/formail.1.gz
/usr/share/man/man1/lockfile.1.gz
/usr/share/man/man1/mailstat.1.gz
/usr/share/man/man1/procmail.1.gz
/usr/share/man/man5/procmailex.5.gz
/usr/share/man/man5/procmailrc.5.gz
/usr/share/man/man5/procmailsc.5.gz

References

Summary

In this tutorial we learn how to install procmail on Fedora 34 using yum and dnf.