How To Install postfix on Fedora 36

In this tutorial we learn how to install postfix in Fedora 36. postfix is Postfix Mail Transport Agent

Introduction

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

What is postfix

Postfix is a Mail Transport Agent (MTA).

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

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

sudo dnf -y install postfix

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

sudo yum -y install postfix

How To Uninstall postfix on Fedora 36

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

sudo dnf remove postfix

postfix Package Contents on Fedora 36

/etc/pam.d/smtp
/etc/pam.d/smtp.postfix
/etc/postfix
/etc/postfix/access
/etc/postfix/canonical
/etc/postfix/dynamicmaps.cf
/etc/postfix/dynamicmaps.cf.d
/etc/postfix/generic
/etc/postfix/header_checks
/etc/postfix/main.cf
/etc/postfix/main.cf.proto
/etc/postfix/master.cf
/etc/postfix/master.cf.proto
/etc/postfix/postfix-files
/etc/postfix/postfix-files.d
/etc/postfix/relocated
/etc/postfix/transport
/etc/postfix/virtual
/etc/sasl2/smtpd.conf
/usr/bin/mailq
/usr/bin/mailq.postfix
/usr/bin/newaliases
/usr/bin/newaliases.postfix
/usr/bin/rmail
/usr/bin/rmail.postfix
/usr/lib/.build-id
/usr/lib/.build-id/00
/usr/lib/.build-id/00/5cbef8b5797209104bc66f02395f15978e2c7c
/usr/lib/.build-id/04
/usr/lib/.build-id/04/cc61a31819e26bc3d559f4df2d84def6ed34cc
/usr/lib/.build-id/05
/usr/lib/.build-id/05/833fa1822e6543d020d9111340340b4e5a3bd7
/usr/lib/.build-id/09
/usr/lib/.build-id/09/affac0260778f1ed261ecd7b42537bb9256d9d
/usr/lib/.build-id/14
/usr/lib/.build-id/14/7d1239930a0faf0527b2f1051754ad6556749b
/usr/lib/.build-id/1e
/usr/lib/.build-id/1e/7e11c15a43b0ef5a31b0055ebe2c0df0b72326
/usr/lib/.build-id/28
/usr/lib/.build-id/28/26dcdb2349b92ea7565fb3794ac22c6529c79e
/usr/lib/.build-id/28/e73679851d975544226c9dff70423fcf475397
/usr/lib/.build-id/29
/usr/lib/.build-id/29/b7f97e8764dfe5d80ded6213d30ffec7c8f5d2
/usr/lib/.build-id/2d
/usr/lib/.build-id/2d/f66ae966d6b303a40d7a404564e0d978047552
/usr/lib/.build-id/2e
/usr/lib/.build-id/2e/aec4049ca2ab68acd2a1498072a0fd86f006a7
/usr/lib/.build-id/44
/usr/lib/.build-id/44/5f73d6652510669ee4261420e5919ed7a06852
/usr/lib/.build-id/45
/usr/lib/.build-id/45/841b1be6f6cf39fe7988be40e52eb5d0b9b06b
/usr/lib/.build-id/49
/usr/lib/.build-id/49/aa29b4b74c613e91521b4e5456e28222bd56ba
/usr/lib/.build-id/4f
/usr/lib/.build-id/4f/91768dd3c9910c78140279cfe19a318b56fdd7
/usr/lib/.build-id/4f/91768dd3c9910c78140279cfe19a318b56fdd7.1
/usr/lib/.build-id/50
/usr/lib/.build-id/50/00a7ebb10c5ed88f27c6b52ec7c174d53471ec
/usr/lib/.build-id/56
/usr/lib/.build-id/56/ec889391e1621a5d1ef8c20c4d801037095de1
/usr/lib/.build-id/5a
/usr/lib/.build-id/5a/eb759d0ebcf410c694486137325df1567dd130
/usr/lib/.build-id/5f
/usr/lib/.build-id/5f/c2364d066b1f53bfd1217bfc63bb7c11ecc8d4
/usr/lib/.build-id/61
/usr/lib/.build-id/61/bd38a7249de92aaeabbbad5c962d3a3cdf0cc3
/usr/lib/.build-id/63
/usr/lib/.build-id/63/5e4cf79049e2e7d46f1037423a9d2b9bcbfa07
/usr/lib/.build-id/63/f99618004ec696a82a8861fff41131f554801f
/usr/lib/.build-id/6a
/usr/lib/.build-id/6a/67a8ddd42107d25fe9da05b420a44ea2fd3f19
/usr/lib/.build-id/75
/usr/lib/.build-id/75/5fc6dca0e87fb60c01dfd54cb48e391e9a1655
/usr/lib/.build-id/7b
/usr/lib/.build-id/7b/5cdf3505552733a1250e3249849c95e8977c34
/usr/lib/.build-id/7e
/usr/lib/.build-id/7e/d13ce12c702e93545389b51b3a6293cbe6a251
/usr/lib/.build-id/81
/usr/lib/.build-id/81/886250d2383aec4027343f7ef2acc1d7bce1d2
/usr/lib/.build-id/87
/usr/lib/.build-id/87/59bf1d286709cd72c7a2bb4bf2ded8f4bc81ce
/usr/lib/.build-id/8b
/usr/lib/.build-id/8b/19f83168f99269848c000cd24bc5ec4e5809de
/usr/lib/.build-id/91
/usr/lib/.build-id/91/a41e5759514b48017ef85f9e46fdc7e4318f4f
/usr/lib/.build-id/93
/usr/lib/.build-id/93/afd68cec5aaef46eba9d3124985c802e442b3a
/usr/lib/.build-id/93/afd68cec5aaef46eba9d3124985c802e442b3a.1
/usr/lib/.build-id/a0
/usr/lib/.build-id/a0/044969989707a1bd0036e5572dd126a548de7c
/usr/lib/.build-id/a0/ebfdd83f6aadf032b35f9d6daa08db96a13f52
/usr/lib/.build-id/a4
/usr/lib/.build-id/a4/20975f1a3f0a2f002505ae11e05b8733b34fe1
/usr/lib/.build-id/a6
/usr/lib/.build-id/a6/cfe2ca2a0ea66ebf51c6a4dc423b500bad8d4c
/usr/lib/.build-id/a8
/usr/lib/.build-id/a8/33c7913a6d1c26607deae3cc695245140f0bb3
/usr/lib/.build-id/a9
/usr/lib/.build-id/a9/a16dfdf1434871082ea850433430e9b417657b
/usr/lib/.build-id/b9
/usr/lib/.build-id/b9/4361b0eedb84a44effb78701175b3060325f48
/usr/lib/.build-id/bd
/usr/lib/.build-id/bd/91c64accd0db318951392bdeb6e349066b5853
/usr/lib/.build-id/c5
/usr/lib/.build-id/c5/e291c45c0d59434e164214550bf62934c777f2
/usr/lib/.build-id/cd
/usr/lib/.build-id/cd/ff60cbeced1bdd0cc2d385c6d4abdd19ede76e
/usr/lib/.build-id/d5
/usr/lib/.build-id/d5/9679685b0b6ed6f43d1028b48f8cc251e9cdeb
/usr/lib/.build-id/da
/usr/lib/.build-id/da/1995cc5f8ba5d067807132d77e7bb2dd61942e
/usr/lib/.build-id/db
/usr/lib/.build-id/db/2c1b0c854106d906ce983e7b81574eeb58a385
/usr/lib/.build-id/db/654fc7cdfe2f841ffafe68982ce3f764e2929b
/usr/lib/.build-id/e1
/usr/lib/.build-id/e1/bf205f0ce3e4a26015e4184eca8cc4eb64a208
/usr/lib/.build-id/f9
/usr/lib/.build-id/f9/ca012f97a9f734c492edd51a0391921af50d62
/usr/lib/.build-id/fe
/usr/lib/.build-id/fe/db3452b2932f0724a7f248fbfe7891171d3b0f
/usr/lib/sendmail
/usr/lib/sendmail.postfix
/usr/lib/systemd/system/postfix.service
/usr/lib64/postfix
/usr/lib64/postfix/libpostfix-dns.so
/usr/lib64/postfix/libpostfix-global.so
/usr/lib64/postfix/libpostfix-master.so
/usr/lib64/postfix/libpostfix-tls.so
/usr/lib64/postfix/libpostfix-util.so
/usr/libexec/postfix
/usr/libexec/postfix/aliasesdb
/usr/libexec/postfix/anvil
/usr/libexec/postfix/bounce
/usr/libexec/postfix/chroot-update
/usr/libexec/postfix/cleanup
/usr/libexec/postfix/discard
/usr/libexec/postfix/dnsblog
/usr/libexec/postfix/error
/usr/libexec/postfix/flush
/usr/libexec/postfix/lmtp
/usr/libexec/postfix/local
/usr/libexec/postfix/master
/usr/libexec/postfix/nqmgr
/usr/libexec/postfix/oqmgr
/usr/libexec/postfix/pickup
/usr/libexec/postfix/pipe
/usr/libexec/postfix/post-install
/usr/libexec/postfix/postfix-script
/usr/libexec/postfix/postfix-tls-script
/usr/libexec/postfix/postfix-wrapper
/usr/libexec/postfix/postlogd
/usr/libexec/postfix/postmulti-script
/usr/libexec/postfix/postscreen
/usr/libexec/postfix/proxymap
/usr/libexec/postfix/qmgr
/usr/libexec/postfix/qmqpd
/usr/libexec/postfix/scache
/usr/libexec/postfix/showq
/usr/libexec/postfix/smtp
/usr/libexec/postfix/smtpd
/usr/libexec/postfix/spawn
/usr/libexec/postfix/tlsmgr
/usr/libexec/postfix/tlsproxy
/usr/libexec/postfix/trivial-rewrite
/usr/libexec/postfix/verify
/usr/libexec/postfix/virtual
/usr/sbin/postalias
/usr/sbin/postcat
/usr/sbin/postconf
/usr/sbin/postdrop
/usr/sbin/postfix
/usr/sbin/postkick
/usr/sbin/postlock
/usr/sbin/postlog
/usr/sbin/postmap
/usr/sbin/postmulti
/usr/sbin/postqueue
/usr/sbin/postsuper
/usr/sbin/posttls-finger
/usr/sbin/sendmail
/usr/sbin/sendmail.postfix
/usr/sbin/smtp-sink
/usr/sbin/smtp-source
/usr/share/doc/postfix
/usr/share/doc/postfix/COMPATIBILITY
/usr/share/doc/postfix/LICENSE
/usr/share/doc/postfix/README-Postfix-SASL-RedHat.txt
/usr/share/doc/postfix/README_FILES
/usr/share/doc/postfix/README_FILES/AAAREADME
/usr/share/doc/postfix/README_FILES/ADDRESS_CLASS_README
/usr/share/doc/postfix/README_FILES/ADDRESS_REWRITING_README
/usr/share/doc/postfix/README_FILES/ADDRESS_VERIFICATION_README
/usr/share/doc/postfix/README_FILES/BACKSCATTER_README
/usr/share/doc/postfix/README_FILES/BASIC_CONFIGURATION_README
/usr/share/doc/postfix/README_FILES/BUILTIN_FILTER_README
/usr/share/doc/postfix/README_FILES/COMPATIBILITY_README
/usr/share/doc/postfix/README_FILES/CONNECTION_CACHE_README
/usr/share/doc/postfix/README_FILES/CONTENT_INSPECTION_README
/usr/share/doc/postfix/README_FILES/DATABASE_README
/usr/share/doc/postfix/README_FILES/DB_README
/usr/share/doc/postfix/README_FILES/DEBUG_README
/usr/share/doc/postfix/README_FILES/DSN_README
/usr/share/doc/postfix/README_FILES/ETRN_README
/usr/share/doc/postfix/README_FILES/FILTER_README
/usr/share/doc/postfix/README_FILES/FORWARD_SECRECY_README
/usr/share/doc/postfix/README_FILES/INSTALL
/usr/share/doc/postfix/README_FILES/IPV6_README
/usr/share/doc/postfix/README_FILES/LINUX_README
/usr/share/doc/postfix/README_FILES/LOCAL_RECIPIENT_README
/usr/share/doc/postfix/README_FILES/MAILDROP_README
/usr/share/doc/postfix/README_FILES/MEMCACHE_README
/usr/share/doc/postfix/README_FILES/MILTER_README
/usr/share/doc/postfix/README_FILES/MULTI_INSTANCE_README
/usr/share/doc/postfix/README_FILES/NFS_README
/usr/share/doc/postfix/README_FILES/OVERVIEW
/usr/share/doc/postfix/README_FILES/PACKAGE_README
/usr/share/doc/postfix/README_FILES/POSTSCREEN_README
/usr/share/doc/postfix/README_FILES/QSHAPE_README
/usr/share/doc/postfix/README_FILES/RELEASE_NOTES
/usr/share/doc/postfix/README_FILES/RESTRICTION_CLASS_README
/usr/share/doc/postfix/README_FILES/SASL_README
/usr/share/doc/postfix/README_FILES/SCHEDULER_README
/usr/share/doc/postfix/README_FILES/SMTPD_ACCESS_README
/usr/share/doc/postfix/README_FILES/SMTPD_POLICY_README
/usr/share/doc/postfix/README_FILES/SMTPD_PROXY_README
/usr/share/doc/postfix/README_FILES/SOHO_README
/usr/share/doc/postfix/README_FILES/STANDARD_CONFIGURATION_README
/usr/share/doc/postfix/README_FILES/STRESS_README
/usr/share/doc/postfix/README_FILES/TLS_LEGACY_README
/usr/share/doc/postfix/README_FILES/TLS_README
/usr/share/doc/postfix/README_FILES/TUNING_README
/usr/share/doc/postfix/README_FILES/ULTRIX_README
/usr/share/doc/postfix/README_FILES/UUCP_README
/usr/share/doc/postfix/README_FILES/VERP_README
/usr/share/doc/postfix/README_FILES/VIRTUAL_README
/usr/share/doc/postfix/README_FILES/XCLIENT_README
/usr/share/doc/postfix/README_FILES/XFORWARD_README
/usr/share/doc/postfix/TLS_ACKNOWLEDGEMENTS
/usr/share/doc/postfix/TLS_LICENSE
/usr/share/doc/postfix/bounce.cf.default
/usr/share/doc/postfix/examples
/usr/share/doc/postfix/examples/chroot-setup
/usr/share/doc/postfix/examples/chroot-setup/LINUX2
/usr/share/doc/postfix/examples/qmail-local
/usr/share/doc/postfix/examples/qmail-local/qmail-local.txt
/usr/share/doc/postfix/examples/smtpd-policy
/usr/share/doc/postfix/examples/smtpd-policy/README.SPF
/usr/share/doc/postfix/examples/smtpd-policy/greylist.pl
/usr/share/doc/postfix/main.cf.default
/usr/share/man/man1/mailq.1.gz
/usr/share/man/man1/mailq.postfix.1.gz
/usr/share/man/man1/newaliases.1.gz
/usr/share/man/man1/newaliases.postfix.1.gz
/usr/share/man/man1/postalias.1.gz
/usr/share/man/man1/postcat.1.gz
/usr/share/man/man1/postconf.1.gz
/usr/share/man/man1/postdrop.1.gz
/usr/share/man/man1/postfix-tls.1.gz
/usr/share/man/man1/postfix.1.gz
/usr/share/man/man1/postkick.1.gz
/usr/share/man/man1/postlock.1.gz
/usr/share/man/man1/postlog.1.gz
/usr/share/man/man1/postmap.1.gz
/usr/share/man/man1/postmulti.1.gz
/usr/share/man/man1/postqueue.1.gz
/usr/share/man/man1/postsuper.1.gz
/usr/share/man/man1/posttls-finger.1.gz
/usr/share/man/man1/sendmail.postfix.1.gz
/usr/share/man/man1/smtp-sink.1.gz
/usr/share/man/man1/smtp-source.1.gz
/usr/share/man/man5/access.5.gz
/usr/share/man/man5/aliases.5.gz
/usr/share/man/man5/aliases.postfix.5.gz
/usr/share/man/man5/body_checks.5.gz
/usr/share/man/man5/bounce.5.gz
/usr/share/man/man5/canonical.5.gz
/usr/share/man/man5/cidr_table.5.gz
/usr/share/man/man5/generic.5.gz
/usr/share/man/man5/header_checks.5.gz
/usr/share/man/man5/master.5.gz
/usr/share/man/man5/memcache_table.5.gz
/usr/share/man/man5/nisplus_table.5.gz
/usr/share/man/man5/postconf.5.gz
/usr/share/man/man5/postfix-wrapper.5.gz
/usr/share/man/man5/regexp_table.5.gz
/usr/share/man/man5/relocated.5.gz
/usr/share/man/man5/socketmap_table.5.gz
/usr/share/man/man5/tcp_table.5.gz
/usr/share/man/man5/transport.5.gz
/usr/share/man/man5/virtual.5.gz
/usr/share/man/man8/anvil.8.gz
/usr/share/man/man8/bounce.8.gz
/usr/share/man/man8/cleanup.8.gz
/usr/share/man/man8/defer.8.gz
/usr/share/man/man8/discard.8.gz
/usr/share/man/man8/dnsblog.8.gz
/usr/share/man/man8/error.8.gz
/usr/share/man/man8/flush.8.gz
/usr/share/man/man8/lmtp.8.gz
/usr/share/man/man8/local.8.gz
/usr/share/man/man8/master.8.gz
/usr/share/man/man8/oqmgr.8.gz
/usr/share/man/man8/pickup.8.gz
/usr/share/man/man8/pipe.8.gz
/usr/share/man/man8/postlogd.8.gz
/usr/share/man/man8/postscreen.8.gz
/usr/share/man/man8/proxymap.8.gz
/usr/share/man/man8/qmgr.8.gz
/usr/share/man/man8/qmqpd.8.gz
/usr/share/man/man8/scache.8.gz
/usr/share/man/man8/sendmail.8.gz
/usr/share/man/man8/showq.8.gz
/usr/share/man/man8/smtp.8.gz
/usr/share/man/man8/smtpd.8.gz
/usr/share/man/man8/smtpd.postfix.8.gz
/usr/share/man/man8/spawn.8.gz
/usr/share/man/man8/tlsmgr.8.gz
/usr/share/man/man8/tlsproxy.8.gz
/usr/share/man/man8/trace.8.gz
/usr/share/man/man8/trivial-rewrite.8.gz
/usr/share/man/man8/verify.8.gz
/usr/share/man/man8/virtual.8.gz
/var/lib/misc/postfix.aliasesdb-stamp
/var/lib/postfix
/var/spool/postfix
/var/spool/postfix/active
/var/spool/postfix/bounce
/var/spool/postfix/corrupt
/var/spool/postfix/defer
/var/spool/postfix/deferred
/var/spool/postfix/flush
/var/spool/postfix/hold
/var/spool/postfix/incoming
/var/spool/postfix/maildrop
/var/spool/postfix/pid
/var/spool/postfix/private
/var/spool/postfix/public
/var/spool/postfix/saved
/var/spool/postfix/trace

References

Summary

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