How To Install sendmail on Fedora 36

In this tutorial we learn how to install sendmail in Fedora 36. sendmail is A widely used Mail Transport Agent (MTA)

Introduction

In this tutorial we learn how to install sendmail on Fedora 36.

What is sendmail

The Sendmail program is a very widely used Mail Transport Agent (MTA). MTAs send mail from one machine to another. Sendmail is not a client program, which you use to read your email. Sendmail is a behind-the-scenes program which actually moves your email over networks or the Internet to where you want it to go. If you ever need to reconfigure Sendmail, you will also need to have the sendmail-cf package installed. If you need documentation on Sendmail, you can install the sendmail-doc package.

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

Install sendmail 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 sendmail using dnf by running the following command:

sudo dnf -y install sendmail

Install sendmail 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 sendmail using yum by running the following command:

sudo yum -y install sendmail

How To Uninstall sendmail on Fedora 36

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

sudo dnf remove sendmail

sendmail Package Contents on Fedora 36

/etc/mail
/etc/mail/Makefile
/etc/mail/access
/etc/mail/access.db
/etc/mail/aliasesdb-stamp
/etc/mail/domaintable
/etc/mail/domaintable.db
/etc/mail/helpfile
/etc/mail/local-host-names
/etc/mail/mailertable
/etc/mail/mailertable.db
/etc/mail/make
/etc/mail/sendmail.cf
/etc/mail/sendmail.mc
/etc/mail/submit.cf
/etc/mail/submit.mc
/etc/mail/trusted-users
/etc/mail/virtusertable
/etc/mail/virtusertable.db
/etc/pam.d/smtp
/etc/pam.d/smtp.sendmail
/etc/sasl2/Sendmail.conf
/etc/smrsh
/etc/sysconfig/sendmail
/usr/bin/hoststat
/usr/bin/mailq
/usr/bin/mailq.sendmail
/usr/bin/makemap
/usr/bin/newaliases
/usr/bin/newaliases.sendmail
/usr/bin/purgestat
/usr/bin/rmail
/usr/bin/rmail.sendmail
/usr/lib/.build-id
/usr/lib/.build-id/02
/usr/lib/.build-id/02/5104a3c5e0a67774a90463521fbe126e499a52
/usr/lib/.build-id/15
/usr/lib/.build-id/15/2d1abbc6fa3dc7f459ba76e24382f12cd50ab7
/usr/lib/.build-id/a9
/usr/lib/.build-id/a9/e277dd6e880ceed6a550ab672adefa6cbba14c
/usr/lib/.build-id/b2
/usr/lib/.build-id/b2/55dd8a905c98e62d9c87cdb6c3d4dc35e7964c
/usr/lib/.build-id/ba
/usr/lib/.build-id/ba/8f99319c0cb2850e75ff7edaab8295fec8d987
/usr/lib/.build-id/d0
/usr/lib/.build-id/d0/aa421f9fbae9ffed852fa7b3a5bd8bfd2d1171
/usr/lib/.build-id/fc
/usr/lib/.build-id/fc/8c129934a2b6b2e83e5590d739952fbf6af6f7
/usr/lib/NetworkManager
/usr/lib/NetworkManager/dispatcher.d
/usr/lib/NetworkManager/dispatcher.d/10-sendmail
/usr/lib/sendmail
/usr/lib/sendmail.sendmail
/usr/lib/systemd/system/sendmail.service
/usr/lib/systemd/system/sm-client.service
/usr/sbin/editmap
/usr/sbin/editmap.sendmail
/usr/sbin/mailstats
/usr/sbin/makemap
/usr/sbin/makemap.sendmail
/usr/sbin/praliases
/usr/sbin/sendmail
/usr/sbin/sendmail.sendmail
/usr/sbin/smrsh
/usr/share/doc/sendmail
/usr/share/doc/sendmail/FAQ
/usr/share/doc/sendmail/KNOWNBUGS
/usr/share/doc/sendmail/LICENSE
/usr/share/doc/sendmail/README
/usr/share/doc/sendmail/RELEASE_NOTES.gz
/usr/share/man/man1/mailq.1.gz
/usr/share/man/man1/mailq.sendmail.1.gz
/usr/share/man/man1/newaliases.1.gz
/usr/share/man/man1/newaliases.sendmail.1.gz
/usr/share/man/man5/aliases.5.gz
/usr/share/man/man5/aliases.sendmail.5.gz
/usr/share/man/man8/editmap.8.gz
/usr/share/man/man8/editmap.sendmail.8.gz
/usr/share/man/man8/hoststat.8.gz
/usr/share/man/man8/mailstats.8.gz
/usr/share/man/man8/makemap.8.gz
/usr/share/man/man8/makemap.sendmail.8.gz
/usr/share/man/man8/praliases.8.gz
/usr/share/man/man8/purgestat.8.gz
/usr/share/man/man8/rmail.8.gz
/usr/share/man/man8/rmail.sendmail.8.gz
/usr/share/man/man8/sendmail.8.gz
/usr/share/man/man8/sendmail.sendmail.8.gz
/usr/share/man/man8/smrsh.8.gz
/var/log/mail
/var/log/mail/statistics
/var/spool/clientmqueue
/var/spool/clientmqueue/sm-client.st
/var/spool/mqueue

References

Summary

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