policyd-client command not found

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

Introduction

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

policyd-client: command not found

or when using sudo you get the following error message

sudo: policyd-client: command not found

Solutions to policyd-client: command not found

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

In Ubuntu policyd-client is provided by mtpolicyd package.

mtpolicyd is:

mtpolicyd is a modular policy daemon for postfix written in perl. It has support for virtual hosts, session caching, per-user configuration and is easily extensible thru plugins.

It already ships with a lot of plugins:

RBL - query DNS IP black/whitelists
DBL - query DNS domain black/whitelists
SqlList - use SQL query as black/whitelist
CtIpRep - use Commtouch IP reputation
GeoIP - use location of sending IP
Fail2ban - block spammers with fail2ban/iptables
Greylist - greylisting
SPF - Sender Policy Framework
Accounting - collect SMTP-level accounting information
Quota - apply quota limits based on Accounting data
and more... (see Documentation)

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

sudo apt-get -y install mtpolicyd

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

You can also use apt command to install mtpolicyd.

sudo apt -y install mtpolicyd

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

sudo aptitude install mtpolicyd

Summary

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