policyd-weight command not found

In this troubleshooting guide we learn how to fix policyd-weight command not found error message

Introduction

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

policyd-weight: command not found

or when using sudo you get the following error message

sudo: policyd-weight: command not found

Solutions to policyd-weight: command not found

How To Fix policyd-weight: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu policyd-weight is provided by policyd-weight package.

policyd-weight is:

policyd-weight is intended to eliminate forged envelope senders and HELOs (i.e. in bogus mails). It allows you to score DNSBLs (RBL/RHSBL), HELO, MAIL FROM and client IP addresses before any queuing is done. It allows you to REJECT messages which have a score higher than allowed, providing improved blocking of spam and virus mails. policyd-weight caches the most frequent client/sender combinations (SPAM as well as HAM) to reduce the number of DNS queries.

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

sudo apt-get -y install policyd-weight

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

You can also use apt command to install policyd-weight.

sudo apt -y install policyd-weight

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

sudo aptitude install policyd-weight

Summary

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