How To Install spamassassin on Ubuntu 20.04
Introduction
In this tutorial we learn how to install spamassassin
on Ubuntu 20.04.
What is spamassassin
spamassassin is:
SpamAssassin is a very powerful and fully configurable spam filter with numerous features including automatic white-listing, RBL testing, Bayesian analysis, header and body text analysis. It is designed to be called from a user’s .procmail or .forward file, but can also be integrated into a Mail Transport Agent (MTA).
Included in this package is a daemonized form of spamassassin (spamd) which communicates with its client (spamc) via TCP, to reduce the overhead of loading perl with each message. To take advantage of this, you must install the spamc package.
Package: spamassassin Architecture: all Version: 3.4.4-1ubuntu1 Multi-Arch: foreign Priority: optional Section: mail Origin: Ubuntu Maintainer: Ubuntu Developers [email protected] Original-Maintainer: Noah Meyerhans [email protected] Bugs: https://bugs.launchpad.net/ubuntu/+filebug Installed-Size: 4521 Provides: libmail-spamassassin-perl Depends: perl, libhtml-parser-perl, libsocket6-perl, adduser, libsys-hostname-long-perl, libarchive-tar-perl, libnet-dns-perl, libnetaddr-ip-perl, libhttp-date-perl, libmail-dkim-perl, lsb-base (>= 3.0-6), libwww-perl | curl | w3m, init-system-helpers (>= 1.51) Recommends: spamc, sa-compile, libmail-spf-perl, libsys-syslog-perl, gnupg, libio-socket-inet6-perl Suggests: razor, libio-socket-ssl-perl, libdbi-perl, pyzor, libcompress-zlib-perl, libencode-detect-perl, libgeoip2-perl, libnet-patricia-perl, libbsd-resource-perl Filename: pool/main/s/spamassassin/spamassassin_3.4.4-1ubuntu1_all.deb Size: 1164516 MD5sum: 5a7ef16b9d6fef68ca69e9e7126227bc SHA1: 3c3d600fcd10ac5f0d759b6694d4be8cc701daa0 SHA256: 748196d2913e9d7820ab158d33afeb1db46848f8a25c7dc83e8a81451c30a43c Homepage: https://www.spamassassin.org/ Description-en: Perl-based spam filter using text analysis SpamAssassin is a very powerful and fully configurable spam filter with numerous features including automatic white-listing, RBL testing, Bayesian analysis, header and body text analysis. It is designed to be called from a user’s .procmail or .forward file, but can also be integrated into a Mail Transport Agent (MTA).
Included in this package is a daemonized form of spamassassin (spamd) which communicates with its client (spamc) via TCP, to reduce the overhead of loading perl with each message. To take advantage of this, you must install the spamc package.
There are three methods to install spamassassin
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 spamassassin Using apt-get
Update apt database with apt-get
using the following command.
sudo apt-get update
After updating apt database, We can install spamassassin
using apt-get
by running the following command:
sudo apt-get -y install spamassassin
Install spamassassin Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install spamassassin
using apt
by running the following command:
sudo apt -y install spamassassin
Install spamassassin 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 spamassassin
using aptitude
by running the following command:
sudo aptitude -y install spamassassin
How To Uninstall spamassassin on Ubuntu 20.04
To uninstall only the spamassassin
package we can use the following command:
sudo apt-get remove spamassassin
Uninstall spamassassin And Its Dependencies
To uninstall spamassassin
and its dependencies that are no longer needed by Ubuntu 20.04, we can use the command below:
sudo apt-get -y autoremove spamassassin
Remove spamassassin Configurations and Data
To remove spamassassin
configuration and data from Ubuntu 20.04 we can use the following command:
sudo apt-get -y purge spamassassin
Remove spamassassin configuration, data, and all of its dependencies
We can use the following command to remove spamassassin
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge spamassassin
References
Summary
In this tutorial we learn how to install spamassassin
package on Ubuntu 20.04 using different package management tools: apt
, apt-get
and aptitude
.