policyd-rate-limit command not found

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

Introduction

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

policyd-rate-limit: command not found

or when using sudo you get the following error message

sudo: policyd-rate-limit: command not found

Solutions to policyd-rate-limit: command not found

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

In Ubuntu policyd-rate-limit is provided by policyd-rate-limit package.

policyd-rate-limit is:

policyd-rate-limit is a simple postfix policy daemon written in python3 allowing to limit the number of mails a user can send over time. Users are identified either via their sasl usernames or their ip addresses. Limitation rules are a list of couples (number of mails, number of seconds). If a user has sent more than number of mails in number of seconds, a configurable error is returned to the user.

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

sudo apt-get -y install policyd-rate-limit

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

You can also use apt command to install policyd-rate-limit.

sudo apt -y install policyd-rate-limit

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

sudo aptitude install policyd-rate-limit

Summary

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