clamsmtpd command not found

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

Introduction

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

clamsmtpd: command not found

or when using sudo you get the following error message

sudo: clamsmtpd: command not found

Solutions to clamsmtpd: command not found

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

In Ubuntu clamsmtpd is provided by clamsmtp package.

clamsmtp is:

ClamSMTP is an SMTP proxy daemon that checks for viruses using the ClamAV anti-virus software. It can act as a traditional SMTP proxy with publicly accessible ports or as a transparent proxy, where SMTP traffic is redirected to the ClamSMTP by your router.

ClamSMTP aims to be lightweight, reliable, and simple rather than have a myriad of options. It is written in C without major dependencies. ClamSMTP does not do general spam filtering, it only scans for viruses.

You do not need a local mail-transport-agent installed, since this server can forward to a remote one.

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

sudo apt-get -y install clamsmtp

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

You can also use apt command to install clamsmtp.

sudo apt -y install clamsmtp

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

sudo aptitude install clamsmtp

Summary

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