How To Install sendmail-bin on Ubuntu 20.04
Introduction
In this tutorial we learn how to install sendmail-bin
on Ubuntu 20.04.
What is sendmail-bin
sendmail-bin is:
Sendmail is an alternative Mail Transport Agent (MTA) for Debian. It is suitable for handling sophisticated mail configurations, although this means that its configuration can also be complex.
Fortunately, simple things can be done easily, and complex things are possible, even if not easily understood ;) Sendmail is the ONLY MTA with a Turing complete language to control ALL aspects of delivery!
Sendmail provides Security and SPAM/UCE/UBE protection via several means.
Sendmail includes no Mail User Agents (MUA), you’ll have to pick from the plethora of available MUAs (mutt, vm, etc.)
This package supports REGEX, DB, NIS, NIS+, LDAP, DNS maps, and has enabled TCPWrappers, IPv6, LockFile, SMTP AUTH(SASL), STARTTLS(SSL).
There are three methods to install sendmail-bin
on Ubuntu 20.04. We can use apt-get
, apt
and aptitude
. In the following sections we will describe each method. You can choose one of them.
Install sendmail-bin Using apt-get
Update apt database with apt-get
using the following command.
sudo apt-get update
After updating apt database, We can install sendmail-bin
using apt-get
by running the following command:
sudo apt-get -y install sendmail-bin
Install sendmail-bin Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install sendmail-bin
using apt
by running the following command:
sudo apt -y install sendmail-bin
Install sendmail-bin Using aptitude
If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Ubuntu. Update apt database with aptitude
using the following command.
sudo aptitude update
After updating apt database, We can install sendmail-bin
using aptitude
by running the following command:
sudo aptitude -y install sendmail-bin
How To Uninstall sendmail-bin on Ubuntu 20.04
To uninstall only the sendmail-bin
package we can use the following command:
sudo apt-get remove sendmail-bin
Uninstall sendmail-bin And Its Dependencies
To uninstall sendmail-bin
and its dependencies that are no longer needed by Ubuntu 20.04, we can use the command below:
sudo apt-get -y autoremove sendmail-bin
Remove sendmail-bin Configurations and Data
To remove sendmail-bin
configuration and data from Ubuntu 20.04 we can use the following command:
sudo apt-get -y purge sendmail-bin
Remove sendmail-bin configuration, data, and all of its dependencies
We can use the following command to remove sendmail-bin
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge sendmail-bin
References
Summary
In this tutorial we learn how to install sendmail-bin
package on Ubuntu 20.04 using different package management tools: apt
, apt-get
and aptitude
.