getmail command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
getmail: command not found
or when using sudo you get the following error message
sudo: getmail: command not found
Solutions to getmail: command not found
How To Fix getmail: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu getmail is provided by getmail6 package.
getmail6 is:
getmail6 is intended as a simple replacement for fetchmail. It retrieves mail (either all messages, or only unread messages) from one or more POP3/IMAP4/SDPS servers for one or more email accounts, and reliably delivers into a qmail-style Maildir, mbox file or to a command (pipe delivery) like maildrop or procmail, specified on a per-account basis. getmail6 also has support for domain (multidrop) mailboxes.
Supported protocols: POP3, POP3-over-SSL, IMAP4, IMAP4-over-SSL, and SDPS mail.
getmail6 is based on getmail with adaptations for Python3.
To fix this problem, we can install more using the command below.
sudo apt-get -y install getmail6
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install getmail6.
sudo apt -y install getmail6
Or if you have aptitude installed you can use the following command.
sudo aptitude install getmail6
Summary
In this tutorial we learn how to fix getmail command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.