How To Install dovecot-core on Ubuntu 20.04

In this tutorial we learn how to install dovecot-core on Ubuntu 20.04. dovecot-core is secure POP3/IMAP server - core files secure POP3/IMAP server - core files

Introduction

In this tutorial we learn how to install dovecot-core on Ubuntu 20.04.

What is dovecot-core

dovecot-core is:

Dovecot is a mail server whose major goals are security and extreme reliability. It tries very hard to handle all error conditions and verify that all data is valid, making it nearly impossible to crash. It supports mbox/Maildir and its own dbox/mdbox formats, and should also be pretty fast, extensible, and portable.

This package contains the Dovecot main server and its command line utility. Task: mail-server

Package: dovecot-core Architecture: amd64 Version: 1:2.3.7.2-1ubuntu3 Priority: optional Section: mail Source: dovecot Origin: Ubuntu Maintainer: Ubuntu Developers [email protected] Original-Maintainer: Dovecot Maintainers [email protected] Bugs: https://bugs.launchpad.net/ubuntu/+filebug Installed-Size: 9883 Provides: dovecot-abi-2.3.abiv7, dovecot-common Depends: adduser, libpam-runtime (>= 0.76-13.1), lsb-base, openssl, ssl-cert, ucf (>= 2.0020), libapparmor1 (>= 2.7.0~beta1+bzr1772), libbz2-1.0, libc6 (>= 2.27), libexttextcat-2.0-0 (>= 3.3.0), libicu66 (>= 66.1~rc-1~), liblua5.3-0, liblz4-1 (>= 0.0~r130), liblzma5 (>= 5.1.1alpha+20120614), libpam0g (>= 0.99.7.1), libsodium23 (>= 1.0.13), libssl1.1 (>= 1.1.1), libstemmer0d (>= 0+svn527), libwrap0 (>= 7.6-4~), zlib1g (>= 1:1.1.4) Suggests: dovecot-gssapi, dovecot-imapd, dovecot-ldap, dovecot-lmtpd, dovecot-lucene, dovecot-managesieved, dovecot-mysql, dovecot-pgsql, dovecot-pop3d, dovecot-sieve, dovecot-solr, dovecot-sqlite, dovecot-submissiond, ntp Breaks: dovecot-common (« 1:2.0.14-2~), mailavenger (« 0.8.1-4) Replaces: dovecot-common (« 1:2.0.14-2~), mailavenger (« 0.8.1-4) Filename: pool/main/d/dovecot/dovecot-core_2.3.7.2-1ubuntu3_amd64.deb Size: 2917676 MD5sum: 53428de5afe16e6575090c43df89c565 SHA1: 0937eb1ce42e6e92db6b87f7fbf892e835410e21 SHA256: 81cd36ab60b6a889bca9faf2c6f76fafe8471b22ce046f27f1b023face98788b Homepage: http://dovecot.org/ Description-en: secure POP3/IMAP server - core files Dovecot is a mail server whose major goals are security and extreme reliability. It tries very hard to handle all error conditions and verify that all data is valid, making it nearly impossible to crash. It supports mbox/Maildir and its own dbox/mdbox formats, and should also be pretty fast, extensible, and portable.

This package contains the Dovecot main server and its command line utility. Task: mail-server

There are three methods to install dovecot-core 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 dovecot-core Using apt-get

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

sudo apt-get update

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

sudo apt-get -y install dovecot-core

Install dovecot-core Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install dovecot-core

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

sudo aptitude -y install dovecot-core

How To Uninstall dovecot-core on Ubuntu 20.04

To uninstall only the dovecot-core package we can use the following command:

sudo apt-get remove dovecot-core

Uninstall dovecot-core And Its Dependencies

To uninstall dovecot-core and its dependencies that are no longer needed by Ubuntu 20.04, we can use the command below:

sudo apt-get -y autoremove dovecot-core

Remove dovecot-core Configurations and Data

To remove dovecot-core configuration and data from Ubuntu 20.04 we can use the following command:

sudo apt-get -y purge dovecot-core

Remove dovecot-core configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge dovecot-core

References

Summary

In this tutorial we learn how to install dovecot-core package on Ubuntu 20.04 using different package management tools: apt, apt-get and aptitude.