envfrom2srs command not found

In this troubleshooting guide we learn how to fix envfrom2srs command not found error message

Introduction

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

envfrom2srs: command not found

or when using sudo you get the following error message

sudo: envfrom2srs: command not found

Solutions to envfrom2srs: command not found

How To Fix envfrom2srs: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu envfrom2srs is provided by pysrs-bin package.

pysrs-bin is:

As SPF is implemented, MTAs that check SPF must account for any forwarders. One way to handle forwarding is to have the forwarding MTA rewrite envfrom to a domain they are authorized to use.

The package also include a package for sign and verify sender addresses with message ID (SES). There is also a base class for sendmail socket server (SocketMap) available.

See http://www.openspf.org/SRS for details.

These are the binaries of the module.

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

sudo apt-get -y install pysrs-bin

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

You can also use apt command to install pysrs-bin.

sudo apt -y install pysrs-bin

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

sudo aptitude install pysrs-bin

Summary

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