How To Install opensmtpd on Fedora 36
Introduction
In this tutorial we learn how to install opensmtpd
on Fedora 36.
What is opensmtpd
OpenSMTPD is a FREE implementation of the server-side SMTP protocol as defined by RFC 5321, with some additional standard extensions. It allows ordinary machines to exchange e-mails with other systems speaking the SMTP protocol. Started out of dissatisfaction with other implementations, OpenSMTPD nowadays is a fairly complete SMTP implementation. OpenSMTPD is primarily developed by Gilles Chehade, Eric Faurot and Charles Longeau; with contributions from various OpenBSD hackers. OpenSMTPD is part of the OpenBSD Project. The software is freely usable and re-usable by everyone under an ISC license. This package uses standard “alternatives” mechanism, you may call “/usr/sbin/alternatives –set mta /usr/sbin/sendmail.opensmtpd” if you want to switch to OpenSMTPD MTA immediately after install, and “/usr/sbin/alternatives –set mta /usr/sbin/sendmail.sendmail” to revert back to Sendmail as a default mail daemon.
We can use yum
or dnf
to install opensmtpd
on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install opensmtpd.
Install opensmtpd 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 opensmtpd
using dnf
by running the following command:
sudo dnf -y install opensmtpd
Install opensmtpd 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 opensmtpd
using yum
by running the following command:
sudo yum -y install opensmtpd
How To Uninstall opensmtpd on Fedora 36
To uninstall only the opensmtpd
package we can use the following command:
sudo dnf remove opensmtpd
opensmtpd Package Contents on Fedora 36
/etc/opensmtpd
/etc/opensmtpd/smtpd.conf
/etc/pam.d/smtp
/etc/pam.d/smtp.opensmtpd
/usr/bin/mailq
/usr/bin/mailq.opensmtpd
/usr/bin/newaliases
/usr/bin/newaliases.opensmtpd
/usr/bin/smtp
/usr/lib/.build-id
/usr/lib/.build-id/24
/usr/lib/.build-id/24/3367c2ecdc287128ab3acdc0c5c32e115f7e06
/usr/lib/.build-id/2f
/usr/lib/.build-id/2f/7650c2661ed4039363c487c5e2c4c933c37843
/usr/lib/.build-id/38
/usr/lib/.build-id/38/ffc25007bf52ebad6732a3888508d9c20cd11c
/usr/lib/.build-id/48
/usr/lib/.build-id/48/5aefafed1d01ac91fe71d08e5ddc58ed72f8db
/usr/lib/.build-id/56
/usr/lib/.build-id/56/022989b57722b5ee2d0bcd8831c33cf60f75c7
/usr/lib/.build-id/58
/usr/lib/.build-id/58/e85bfffa66489874e39fe4fbe808bfe51676e0
/usr/lib/.build-id/7a
/usr/lib/.build-id/7a/0652ff828cff72271eebad334d615653d327d1
/usr/lib/.build-id/80
/usr/lib/.build-id/80/a407e37dc2e85a5f2850df343f1cbaa882c0f5
/usr/lib/.build-id/b7
/usr/lib/.build-id/b7/14c262d1b270cd332e8b11b35771ec96445d4c
/usr/lib/.build-id/fb
/usr/lib/.build-id/fb/7a8e594402885fe706e5be9753eaa827977e18
/usr/lib/sendmail
/usr/lib/systemd/system/opensmtpd.service
/usr/libexec/opensmtpd
/usr/libexec/opensmtpd/encrypt
/usr/libexec/opensmtpd/lockspool
/usr/libexec/opensmtpd/mail.lmtp
/usr/libexec/opensmtpd/mail.local
/usr/libexec/opensmtpd/mail.maildir
/usr/libexec/opensmtpd/mail.mboxfile
/usr/libexec/opensmtpd/mail.mda
/usr/sbin/makemap
/usr/sbin/makemap.opensmtpd
/usr/sbin/sendmail
/usr/sbin/sendmail.opensmtpd
/usr/sbin/smtpctl
/usr/sbin/smtpd
/usr/share/doc/opensmtpd
/usr/share/doc/opensmtpd/CHANGES.md
/usr/share/doc/opensmtpd/README.md
/usr/share/licenses/opensmtpd
/usr/share/licenses/opensmtpd/LICENSE
/usr/share/man/man1/mailq.1.gz
/usr/share/man/man1/mailq.opensmtpd.1.gz
/usr/share/man/man1/newaliases.1.gz
/usr/share/man/man1/smtp.opensmtpd.1.gz
/usr/share/man/man5/aliases.5.gz
/usr/share/man/man5/aliases.opensmtpd.5.gz
/usr/share/man/man5/forward.5.gz
/usr/share/man/man5/smtpd.conf.5.gz
/usr/share/man/man5/table.5.gz
/usr/share/man/man8/makemap.8.gz
/usr/share/man/man8/makemap.opensmtpd.8.gz
/usr/share/man/man8/newaliases.opensmtpd.8.gz
/usr/share/man/man8/sendmail.8.gz
/usr/share/man/man8/sendmail.opensmtpd.8.gz
/usr/share/man/man8/smtp.8.gz
/usr/share/man/man8/smtp.opensmtpd.8.gz
/usr/share/man/man8/smtpctl.8.gz
/usr/share/man/man8/smtpd.8.gz
/usr/share/man/man8/smtpd.opensmtpd.8.gz
/var/empty/smtpd
/var/spool/smtpd
/var/spool/smtpd/incoming
/var/spool/smtpd/offline
/var/spool/smtpd/purge
/var/spool/smtpd/queue
References
Summary
In this tutorial we learn how to install opensmtpd
on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).