test-filter-module command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
test-filter-module: command not found
or when using sudo you get the following error message
sudo: test-filter-module: command not found
Solutions to test-filter-module: command not found
How To Fix test-filter-module: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu test-filter-module is provided by courier-filter-perl package.
courier-filter-perl is:
Courier::Filter implements the Courier MTA’s courierfilter interface as a framework for mail filter modules. Authors of filter modules can concentrate on writing the actual filter logic without having to care about the usual low-level details of the courierfilter interface. Logging to various facilities is also supported.
Courier::Filter allows multiple filter modules to be installed in stacked and hierarchically grouped configurations. Also, modules’ polarity can be reversed, so some modules can be used for explicitly accepting messages while others are used in the traditional way for rejecting messages.
The following filter modules are included:
- BlankBody: matching of blank bodies (a stupid spammer symptom)
- DNSBL: matching of calling MTA’s IP address against DNS black-lists
- SPF: authentication of sender addresses in inbound messages
- SPFout: authentication of sender addresses in outbound messages
- Envelope: matching of RFC 2821 message envelope fields
- Header: matching of RFC 2822 message header fields
- FakeDate: detection of implausible and malformed date header fields
- ClamAVd: malware detection using the ClamAV scanner
- SpamAssassin: spam detection using SpamAssassin
- Parts: matching of MIME parts and ZIP archive contents
- SendCopy: sending message copies to additional recipients
To fix this problem, we can install more using the command below.
sudo apt-get -y install courier-filter-perl
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install courier-filter-perl.
sudo apt -y install courier-filter-perl
Or if you have aptitude installed you can use the following command.
sudo aptitude install courier-filter-perl
Summary
In this tutorial we learn how to fix test-filter-module command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.