mta-sts-query command not found

In this troubleshooting guide we learn how to fix mta-sts-query command not found error message

Introduction

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

mta-sts-query: command not found

or when using sudo you get the following error message

sudo: mta-sts-query: command not found

Solutions to mta-sts-query: command not found

How To Fix mta-sts-query: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu mta-sts-query is provided by postfix-mta-sts-resolver package.

postfix-mta-sts-resolver is:

postfix-mta-sts-resolver provides a lookup daemon and command line query utility for MTA-STS policies (RFC 8461). The daemon provides TLS client policy to Postfix via socketmap.

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

sudo apt-get -y install postfix-mta-sts-resolver

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

You can also use apt command to install postfix-mta-sts-resolver.

sudo apt -y install postfix-mta-sts-resolver

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

sudo aptitude install postfix-mta-sts-resolver

Summary

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