How To Install procmail on CentOS 8
Introduction
In this tutorial we learn how to install procmail
on CentOS 8.
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 CentOS 8. In this tutorial we discuss both methods but you only need to choose one of method to install procmail.
Install procmail on CentOS 8 Using dnf
Update yum database with dnf
using the following command.
sudo dnf makecache --refresh
The output should look something like this:
CentOS Linux 8 - AppStream 43 kB/s | 4.3 kB 00:00
CentOS Linux 8 - BaseOS 65 kB/s | 3.9 kB 00:00
CentOS Linux 8 - ContinuousRelease 43 kB/s | 3.0 kB 00:00
CentOS Linux 8 - Extras 23 kB/s | 1.5 kB 00:00
CentOS Linux 8 - FastTrack 40 kB/s | 3.0 kB 00:00
CentOS Linux 8 - HighAvailability 36 kB/s | 3.9 kB 00:00
CentOS Linux 8 - Plus 24 kB/s | 1.5 kB 00:00
CentOS Linux 8 - PowerTools 50 kB/s | 4.3 kB 00:00
Extra Packages for Enterprise Linux Modular 8 - x86_64 13 kB/s | 9.2 kB 00:00
Extra Packages for Enterprise Linux 8 - x86_64 24 kB/s | 8.5 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 CentOS 8 Using yum
Update yum database with yum
using the following command.
sudo yum makecache --refresh
The output should look something like this:
CentOS Linux 8 - AppStream 43 kB/s | 4.3 kB 00:00
CentOS Linux 8 - BaseOS 65 kB/s | 3.9 kB 00:00
CentOS Linux 8 - ContinuousRelease 43 kB/s | 3.0 kB 00:00
CentOS Linux 8 - Extras 23 kB/s | 1.5 kB 00:00
CentOS Linux 8 - FastTrack 40 kB/s | 3.0 kB 00:00
CentOS Linux 8 - HighAvailability 36 kB/s | 3.9 kB 00:00
CentOS Linux 8 - Plus 24 kB/s | 1.5 kB 00:00
CentOS Linux 8 - PowerTools 50 kB/s | 4.3 kB 00:00
Extra Packages for Enterprise Linux Modular 8 - x86_64 13 kB/s | 9.2 kB 00:00
Extra Packages for Enterprise Linux 8 - x86_64 24 kB/s | 8.5 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 CentOS 8
To uninstall only the procmail
package we can use the following command:
sudo dnf remove procmail
procmail Package Contents on CentOS 8
/usr/bin/formail
/usr/bin/lockfile
/usr/bin/mailstat
/usr/bin/procmail
/usr/lib/.build-id
/usr/lib/.build-id/96
/usr/lib/.build-id/96/934488c840058043443b54189ff5b1ad038e2f
/usr/lib/.build-id/eb
/usr/lib/.build-id/eb/960421794f07bdf746b284641cbf02e75af141
/usr/lib/.build-id/f4
/usr/lib/.build-id/f4/12cf4625d50164f7c8605f5784f9915371113d
/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 CentOS 8 using yum and dnf.