How To Install sendmail-bin on Debian 11
Introduction
In this tutorial we learn how to install sendmail-bin
on Debian 11.
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 Debian 11. 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 Debian. 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 Debian 11
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 Debian 11, 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 Debian 11 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
Dependencies
sendmail-bin have the following dependencies:
- debconf
- init-system-helpers
- sendmail-base
- sendmail-cf
- procps
- lsb-base
- libc6
- libdb5.3
- libldap-2.4-2
- liblockfile1
- libnsl2
- libsasl2-2
- libssl1.1
- libwrap0
References
Summary
In this tutorial we learn how to install sendmail-bin
package on Debian 11 using different package management tools: apt
, apt-get
and aptitude
.