How To Install postfix on Rocky Linux 8
In this tutorial we learn how to install postfix on Rocky Linux 8. postfix is Postfix Mail Transport Agent
Introduction
In this tutorial we learn how to install postfix
on Rocky Linux 8.
What is postfix
Postfix is a Mail Transport Agent (MTA).
We can use yum
or dnf
to install postfix
on Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install postfix.
Install postfix 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 postfix
using dnf
by running the following command:
sudo dnf -y install postfix
Install postfix 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 postfix
using yum
by running the following command:
sudo yum -y install postfix
How To Uninstall postfix on Rocky Linux 8
To uninstall only the postfix
package we can use the following command:
sudo dnf remove postfix
postfix Package Contents on Rocky Linux 8
/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/04
/usr/lib/.build-id/04/d123be04100e667e035e9b4135d60849bd187a
/usr/lib/.build-id/14
/usr/lib/.build-id/14/f84dae06bff1f3cb656756542894eb58a00443
/usr/lib/.build-id/16
/usr/lib/.build-id/16/330e0b45a00753a011490681b29a9b0781919c
/usr/lib/.build-id/1e
/usr/lib/.build-id/1e/1a50fc46e346ebae1b628c8834dc7a2972dad6
/usr/lib/.build-id/21
/usr/lib/.build-id/21/1b77eaa2c05152e4305f4138d6c9749b983e69
/usr/lib/.build-id/23
/usr/lib/.build-id/23/acb46250aa83a7c9276733e2db0bdeb7c20a41
/usr/lib/.build-id/27
/usr/lib/.build-id/27/3661bd4a3e38a3b5aa4899e6d2c4193b46297b
/usr/lib/.build-id/27/803457b7648b6b3ec38ee277b1fd058bae3756
/usr/lib/.build-id/27/803457b7648b6b3ec38ee277b1fd058bae3756.1
/usr/lib/.build-id/35
/usr/lib/.build-id/35/87d2c952df658fc69cac18c2b7393b63882edb
/usr/lib/.build-id/37
/usr/lib/.build-id/37/48c38938e85dcf4fbdee95c9f97aebcca221fc
/usr/lib/.build-id/41
/usr/lib/.build-id/41/0a8c7fecdef713884ce5ddaee3625901db8e9c
/usr/lib/.build-id/41/18e5451e48ba3ac7d2ca808367480b5a434267
/usr/lib/.build-id/43
/usr/lib/.build-id/43/f1aa6d9d01190b21838ef2cd8050dfbb541e1c
/usr/lib/.build-id/46
/usr/lib/.build-id/46/d935b6ecd5676e54c198bbcfbe460f3acf42ca
/usr/lib/.build-id/4b
/usr/lib/.build-id/4b/60bdd79808daace5ef8c5af443f6cb7340fdeb
/usr/lib/.build-id/4b/b1aa5340b058b2519b62018c7221384e829a63
/usr/lib/.build-id/4b/d324e4b22b7b39986cf61de81be08e7c83c6bc
/usr/lib/.build-id/4d
/usr/lib/.build-id/4d/6cc52d6e8954bff6ce3239d3dfa84d720dceb9
/usr/lib/.build-id/50
/usr/lib/.build-id/50/7bbe946abfdec65b6ba2827690039239ed570a
/usr/lib/.build-id/50/e0a745641432e7a697ed8e4f6256c7b9d047db
/usr/lib/.build-id/5f
/usr/lib/.build-id/5f/0f3ea589cd299507b67c4e31cf2808f0cec989
/usr/lib/.build-id/61
/usr/lib/.build-id/61/5b5e6986dde2bd6d6acf959463c84a96a5698e
/usr/lib/.build-id/61/5b5e6986dde2bd6d6acf959463c84a96a5698e.1
/usr/lib/.build-id/66
/usr/lib/.build-id/66/cd11a997b02d13a77cd1e4b16a5a905c3828d1
/usr/lib/.build-id/6d
/usr/lib/.build-id/6d/c86195bf9e8ba7dee9b3684aabc11a8f10c578
/usr/lib/.build-id/7b
/usr/lib/.build-id/7b/dff878b03d35a1028f3b7df2862e6ede2d756b
/usr/lib/.build-id/7d
/usr/lib/.build-id/7d/1a6fa6b3c829ab81700495838e928287613056
/usr/lib/.build-id/7f
/usr/lib/.build-id/7f/137b112104723d0fae738e9a6a624cd3441d41
/usr/lib/.build-id/7f/8a24a048e2691056de18cd8485c7ef5d71ca6a
/usr/lib/.build-id/91
/usr/lib/.build-id/91/5c92e4d17c41da794e3b2e9aa9c3624bc868ca
/usr/lib/.build-id/a1
/usr/lib/.build-id/a1/ef04118f16c784ce4f9c8b5de14293c4fa6a04
/usr/lib/.build-id/a7
/usr/lib/.build-id/a7/4f3704bf545912da31e7145c845520028549ab
/usr/lib/.build-id/ab
/usr/lib/.build-id/ab/560b942477b833b5a66291c817b403ad0c3240
/usr/lib/.build-id/b1
/usr/lib/.build-id/b1/1e2840ff1373fe9118043721a3cf6d11231f8b
/usr/lib/.build-id/b2
/usr/lib/.build-id/b2/985a7100ca8b669b98ffb9f23268a3eea4f9a2
/usr/lib/.build-id/b9
/usr/lib/.build-id/b9/6afcbb4470224bce97a33939cb8aec8e1f9b1f
/usr/lib/.build-id/c3
/usr/lib/.build-id/c3/5d2351ace1a516af9a4e8f809d085ac51aa733
/usr/lib/.build-id/c9
/usr/lib/.build-id/c9/e4344d240f86af0456b3f8aac7a06dbb7a898d
/usr/lib/.build-id/cb
/usr/lib/.build-id/cb/ca97fcdaeeb54dd3fa05177015f518426fc16d
/usr/lib/.build-id/d2
/usr/lib/.build-id/d2/13bd62f10a10755c1b96d298a04193a9b4ccf8
/usr/lib/.build-id/d5
/usr/lib/.build-id/d5/e8cc17e2e472d537883612a3d1d85ca353ee06
/usr/lib/.build-id/d6
/usr/lib/.build-id/d6/44836633b2947d7dd30203154b7355f227000f
/usr/lib/.build-id/db
/usr/lib/.build-id/db/3a6e00163e1c318a71e6d4fe2ee53e50950fe8
/usr/lib/.build-id/db/6ea2413800417140673cf3c21d762c714f879b
/usr/lib/.build-id/df
/usr/lib/.build-id/df/79a4a4b3d2d903c759aeb2889a5d4b4b9c159f
/usr/lib/.build-id/e0
/usr/lib/.build-id/e0/10d4bd4f382421f774ca586fdcd14b5321b0bb
/usr/lib/.build-id/ed
/usr/lib/.build-id/ed/a5b10e7717e349bcbc39c80761c3ac095756b7
/usr/lib/.build-id/f1
/usr/lib/.build-id/f1/e3a62b6222bcdc1233e05b9eee9400596984ea
/usr/lib/.build-id/ff
/usr/lib/.build-id/ff/2742f03d1c748f083dfb4398924d21868ddde2
/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-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 Rocky Linux 8 using yum and dnf.