How To Install exim on Rocky Linux 8

In this tutorial we learn how to install exim on Rocky Linux 8. exim is The exim mail transfer agent

Introduction

In this tutorial we learn how to install exim on Rocky Linux 8.

What is exim

Exim is a message transfer agent (MTA) developed at the University of Cambridge for use on Unix systems connected to the Internet. It is freely available under the terms of the GNU General Public Licence. In style it is similar to Smail 3, but its facilities are more general. There is a great deal of flexibility in the way mail can be routed, and there are extensive facilities for checking incoming mail. Exim can be installed in place of sendmail, although the configuration of exim is quite different to that of sendmail.

We can use yum or dnf to install exim on Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install exim.

Install exim on Rocky Linux 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

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

sudo dnf -y install exim

Install exim on Rocky Linux 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

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

sudo yum -y install exim

How To Uninstall exim on Rocky Linux 8

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

sudo dnf remove exim

exim Package Contents on Rocky Linux 8

/etc/cron.daily/exim-tidydb
/etc/exim
/etc/exim/exim.conf
/etc/exim/trusted-configs
/etc/logrotate.d/exim
/etc/pam.d/exim
/etc/pam.d/smtp
/etc/pki/tls/certs/exim.pem
/etc/pki/tls/private/exim.pem
/etc/sysconfig/exim
/usr/bin/mailq
/usr/bin/mailq.exim
/usr/bin/newaliases
/usr/bin/newaliases.exim
/usr/bin/rmail
/usr/bin/rmail.exim
/usr/bin/rsmtp
/usr/bin/rsmtp.exim
/usr/bin/runq
/usr/bin/runq.exim
/usr/lib/.build-id
/usr/lib/.build-id/03
/usr/lib/.build-id/03/f3f34f6ac8c20113cd6e7910ba96d5987c8393
/usr/lib/.build-id/20
/usr/lib/.build-id/20/b5c9daf146ec6ac3965ce07e15cfa828bb33e7
/usr/lib/.build-id/3a
/usr/lib/.build-id/3a/3705646780214e43025ec6f4c48d9ca2ce3ceb
/usr/lib/.build-id/41
/usr/lib/.build-id/41/1abc049a9a5312a6c49bb0477ee68f82f2172d
/usr/lib/.build-id/75
/usr/lib/.build-id/75/64edf80b49054035e479f4b955caaced5faf5e
/usr/lib/.build-id/f6
/usr/lib/.build-id/f6/e4b6e302abdbcb887106aa993cd5114eabed05
/usr/lib/sendmail
/usr/lib/sendmail.exim
/usr/lib/systemd/system/exim.service
/usr/lib64/exim
/usr/lib64/exim/4.94.2-1.el8
/usr/lib64/exim/4.94.2-1.el8/lookups
/usr/libexec/exim-gen-cert
/usr/sbin/convert4r4
/usr/sbin/exicyclog
/usr/sbin/exigrep
/usr/sbin/exim
/usr/sbin/exim_checkaccess
/usr/sbin/exim_dbmbuild
/usr/sbin/exim_dumpdb
/usr/sbin/exim_fixdb
/usr/sbin/exim_lock
/usr/sbin/exim_tidydb
/usr/sbin/eximstats
/usr/sbin/exinext
/usr/sbin/exipick
/usr/sbin/exiqgrep
/usr/sbin/exiqsumm
/usr/sbin/exiwhat
/usr/sbin/sendmail
/usr/sbin/sendmail.exim
/usr/share/doc/exim
/usr/share/doc/exim/ACKNOWLEDGMENTS
/usr/share/doc/exim/README
/usr/share/doc/exim/README.UPDATING
/usr/share/doc/exim/doc
/usr/share/doc/exim/doc/ChangeLog
/usr/share/doc/exim/doc/DANE-draft-notes
/usr/share/doc/exim/doc/Exim3.upgrade
/usr/share/doc/exim/doc/Exim4.upgrade
/usr/share/doc/exim/doc/GnuTLS-FAQ.txt
/usr/share/doc/exim/doc/NewStuff
/usr/share/doc/exim/doc/OptionLists.txt
/usr/share/doc/exim/doc/README
/usr/share/doc/exim/doc/README.SIEVE
/usr/share/doc/exim/doc/cve-2016-9663.txt
/usr/share/doc/exim/doc/cve-2019-13917.txt
/usr/share/doc/exim/doc/cve-2019-15846
/usr/share/doc/exim/doc/cve-2019-15846/cve.txt
/usr/share/doc/exim/doc/cve-2019-15846/mitre.mbx
/usr/share/doc/exim/doc/cve-2019-15846/posting-0.txt
/usr/share/doc/exim/doc/cve-2019-15846/posting-1.txt
/usr/share/doc/exim/doc/cve-2019-15846/posting-2.txt
/usr/share/doc/exim/doc/cve-2019-15846/qualys.mbx
/usr/share/doc/exim/doc/cve-2020-qualys.txt
/usr/share/doc/exim/doc/dbm.discuss.txt
/usr/share/doc/exim/doc/exim.8
/usr/share/doc/exim/doc/experimental-spec.txt
/usr/share/doc/exim/doc/filter.txt
/usr/share/doc/exim/doc/openssl.txt
/usr/share/doc/exim/doc/spec.txt
/usr/share/doc/exim/unknownuser.sh
/usr/share/licenses/exim
/usr/share/licenses/exim/LICENCE
/usr/share/licenses/exim/NOTICE
/usr/share/man/man1/mailq.1.gz
/usr/share/man/man8/exim.8.gz
/usr/share/man/man8/eximstats.8.gz
/var/log/exim
/var/spool/exim
/var/spool/exim/db
/var/spool/exim/input
/var/spool/exim/msglog

References

Summary

In this tutorial we learn how to install exim on Rocky Linux 8 using yum and dnf.