spamc command not found

In this troubleshooting guide we learn how to fix spamc command not found error message

Introduction

When you run more command in linux terminal / console, you get the following error message

spamc: command not found

or when using sudo you get the following error message

sudo: spamc: command not found

Solutions to spamc: command not found

How To Fix spamc: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu spamc is provided by spamc package.

spamc is:

spamc is the client to communicate with spamd, the daemonized form of SpamAssassin (see the spamassassin package). It is written in C for maximum speed and minimum loading overhead.

spamc is quite useful for integrating spamassassin into an MTA or into a .procmailrc file because of its speed.

This package is useless unless you have spamassassin installed, either on this machine or another local machine (i.e. a mail server).

To fix this problem, we can install more using the command below.

sudo apt-get -y install spamc

This command might take some time to finish depending on your machine internet connection.

You can also use apt command to install spamc.

sudo apt -y install spamc

Or if you have aptitude installed you can use the following command.

sudo aptitude install spamc

Summary

In this tutorial we learn how to fix spamc command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.