How To Install msmtp-gnome on Debian 9

In this tutorial we learn how to install msmtp-gnome on Debian 9. msmtp-gnome is light SMTP client with support for server profiles - with GNOME keyring support

Introduction

In this tutorial we learn how to install msmtp-gnome on Debian 9.

What is msmtp-gnome

msmtp-gnome is:

msmtp is an SMTP client that can be used to send mails from Mutt and probably other MUAs (mail user agents). It forwards mails to an SMTP server (for example at a free mail provider), which takes care of the final delivery. Using profiles, it can be easily configured to use different SMTP servers with different configurations, which makes it ideal for mobile clients.

This package is compiled with GSASL and TLS/SSL support, and additionally with GNOME keyring support.

There are three methods to install msmtp-gnome on Debian 9. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install msmtp-gnome Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install msmtp-gnome using apt-get by running the following command:

sudo apt-get -y install msmtp-gnome

Install msmtp-gnome Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install msmtp-gnome using apt by running the following command:

sudo apt -y install msmtp-gnome

Install msmtp-gnome 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 msmtp-gnome using aptitude by running the following command:

sudo aptitude -y install msmtp-gnome

How To Uninstall msmtp-gnome on Debian 9

To uninstall only the msmtp-gnome package we can use the following command:

sudo apt-get remove msmtp-gnome

Uninstall msmtp-gnome And Its Dependencies

To uninstall msmtp-gnome and its dependencies that are no longer needed by Debian 9, we can use the command below:

sudo apt-get -y autoremove msmtp-gnome

Remove msmtp-gnome Configurations and Data

To remove msmtp-gnome configuration and data from Debian 9 we can use the following command:

sudo apt-get -y purge msmtp-gnome

Remove msmtp-gnome configuration, data, and all of its dependencies

We can use the following command to remove msmtp-gnome configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge msmtp-gnome

Dependencies

msmtp-gnome have the following dependencies:

References

Summary

In this tutorial we learn how to install msmtp-gnome package on Debian 9 using different package management tools: apt, apt-get and aptitude.