How To Install fetchmail on CentOS 7

In this tutorial we learn how to install fetchmail on CentOS 7. fetchmail is A remote mail retrieval and forwarding utility

Introduction

In this tutorial we learn how to install fetchmail on CentOS 7.

What is fetchmail

Fetchmail is a remote mail retrieval and forwarding utility intended for use over on-demand TCP/IP links, like SLIP or PPP connections. Fetchmail supports every remote-mail protocol currently in use on the Internet (POP2, POP3, RPOP, APOP, KPOP, all IMAPs, ESMTP ETRN, IPv6, and IPSEC) for retrieval. Then Fetchmail forwards the mail through SMTP so you can read it through your favorite mail client. Install fetchmail if you need to retrieve mail over SLIP or PPP connections.

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

Install fetchmail on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

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

sudo yum -y install fetchmail

Install fetchmail on CentOS 7 Using dnf

If you don’t have dnf installed you can install DNF on CentOS 7 first. Update yum database with dnf using the following command.

sudo dnf makecache

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

sudo dnf -y install fetchmail

How To Uninstall fetchmail on CentOS 7

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

sudo dnf remove fetchmail

References

Summary

In this tutorial we learn how to install fetchmail on CentOS 7 using yum and dnf.